:root {
  --negro: #262626;
  --blanco: #fcfcfc;
  --verde: #3fa934;
  --rojo: #990000;
  --azul: #050063;
  --azul-claro: #0d85cb;
  --background: #f7fdf7;
  --gris: #524e6a;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;

  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;

  scroll-behavior: smooth;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

p {
  text-wrap: pretty;
}


/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}


/* Columnas del mismo ancho */
.split-columns {
  display: flex;
  flex-direction: column;
}

@media (min-width: 40em) {

  /* 40em = 640px */
  .split-columns {
    flex-direction: row;
  }

  .split-columns>* {
    flex-basis: 100%;
  }
}


/* Navbar */
nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  width: 100%;
  transition: all 0.3s ease;
}

.nav-links,
.login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

nav .logo img {
  width: 180px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: var(--azul);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: var(--azul-claro);
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--verde);
  margin: 3px auto;
  transition: all 0.3s ease;
}

.hero {
  padding: 0 4rem;
  margin-bottom: 10rem;
}

.hero-info {
  padding: 4rem 0;
}

.hero-info h1 {
  font-weight: 900;
  font-size: clamp(2.6em, 1em + 5vw, 4.5em);
  line-height: 1;
}

.hero-info p {
  font-size: 2rem;
  line-height: 1.5;
  margin-top: 2rem;
}

.hero-info span {
  color: var(--azul-claro);
}

.hero-video {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video video {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.2);
}

.hero-leaf {
  position: absolute;
  bottom: -6rem;
  right: -4rem;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}

.btn {
  padding: .75rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-verde {
  background-color: var(--verde);
  color: var(--blanco);
  transition: background-color .3s ease;
}
.btn-verde:hover {
  background-color: #33892a;
  color: var(--blanco);
  transition: background-color .3s ease;
}

.btn-azul {
  background-color: var(--azul);
  color: var(--blanco);
  transition: background-color .3s ease;
}
.btn-azul:hover {
  background-color: var(--azul-claro);
}

.btn-azul-claro {
  background-color: var(--azul-claro);
  color: var(--blanco);
  transition: background-color .3s ease;
}
.btn-azul-claro:hover {
  background-color: var(--azul);
}

.cta-btn {
  margin-top: 2rem;
}

.btn-enviar {
  letter-spacing: 2px;
  width: 50%;
}

/*
  Botón flotante de WhatsApp
*/
.btn-whatsapp {
  color: white;
  font-size: 1em;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: .5rem 1rem;
  position: fixed;
  bottom: 4.6rem;
  right: 0;
  background-color: #0df053;
  border-radius: 50px 0 0 50px;
  box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: background-color .3s ease;
}

.btn-whatsapp:hover {
  background-color: #0ac244;
}

#proveedor-materiales {
  position: relative;
  margin-top: 4rem;
  padding: 4rem 2rem;
}

/* Proveedor de materiales */
.background-proveedor-materiales {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  background-image: url('../images/background-proveedor-materiales.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 50%;
}

.text-proveedor-materiales {
  padding: 0rem 2rem;
}

.text-proveedor-materiales h2 {
  color: var(--azul);
  font-size: 3.5em;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

.text-proveedor-materiales p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.image-proveedor-materiales {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.proveedor-materiales-leaf1 {
  position: absolute;
  top: -4rem;
  left: 0;
  z-index: 1;
  max-width: 200px;
}

.proveedor-materiales-leaf2 {
  position: absolute;
  bottom: -6rem;
  left: 0;
  z-index: 3;
  max-width: 200px;
}

.info-proveedor-materiales {
  color: var(--azul);
  padding: 2rem;
  width: 50%;
}

.info-proveedor-materiales p {
  color: var(--azul);
  font-size: 1.5rem;
  line-height: 1.5;
}

.info-proveedor-materiales p span {
  font-weight: 900;
}

.tipo-materiales {
  padding: 0rem 4rem;
  gap: 2rem;
}

.card-tipo-materiales1 {
  background: #3FA934;
  background: linear-gradient(90deg, rgba(63, 169, 52, 1) 0%, rgba(59, 156, 48, 1) 50%);
}

.card-tipo-materiales2 {
  background: #33892A;
  background: linear-gradient(90deg, rgba(51, 137, 42, 1) 0%, rgba(44, 117, 36, 1) 50%);
}

.card-tipo-materiales3 {
  background: #25621E;
  background: linear-gradient(90deg, rgba(37, 98, 30, 1) 0%, rgba(29, 78, 24, 1) 50%);
}

.card-tipo-materiales4 {
  background: #163B12;
  background: linear-gradient(90deg, rgba(22, 59, 18, 1) 0%, rgba(15, 39, 12, 1) 50%);
}

.tipo-materiales h3 {
  color: var(--blanco);
  font-size: 1.8em;
  font-weight: 900;
  text-transform: uppercase;
}

.card-tipo-materiales1,
.card-tipo-materiales2,
.card-tipo-materiales3,
.card-tipo-materiales4 {
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.2);
}

.card-tipo-materiales1 img,
.card-tipo-materiales2 img,
.card-tipo-materiales3 img,
.card-tipo-materiales4 img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
  filter: drop-shadow(8px 8px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.card-tipo-materiales1:hover img,
.card-tipo-materiales2:hover img,
.card-tipo-materiales3:hover img,
.card-tipo-materiales4:hover img {
  transform: scale(1.1);
}

#plastico-peletizado {
  position: relative;
  padding: 4rem;
  margin-top: 4rem;
}

.background-plastico-peletizado {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  background-image: url('../images/background-plastico-peletizado.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

#plastico-peletizado h2 {
  color: var(--azul);
  font-size: 2.5em;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
}

.text-plastico-peletizado {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.text-plastico-peletizado img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  padding: 2rem;
  border-radius: 100%;
  background-color: var(--azul);
}

.text-plastico-peletizado p {
  color: var(--azul);
  font-size: 1.5rem;
  line-height: 1.25;
}

.cta-plastico-peletizado {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

#hagamos-equipo {
  padding: 4rem;
}

.text-hagamos-equipo h2 {
  color: var(--azul);
  font-size: 3em;
  line-height: 1;
  font-weight: 900;
  margin: 1rem 0;
}

.text-hagamos-equipo p:first-child {
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 600;
}

.text-hagamos-equipo p:nth-child(3) {
  color: var(--azul);
  font-size: 1.5rem;
}

.image-hagamos-equipo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-hagamos-equipo {
  padding: 2rem;
}

.image-hagamos-equipo img {
  width: 100px;
  margin-right: 1rem;
  margin-top: 1rem;
  border-radius: 100%;
  border: 4px solid var(--azul);
  padding: 1rem;
}

.image-hagamos-equipo h3 {
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 600;
}

.image-hagamos-equipo p {
  color: var(--azul);
  font-size: 1.2rem;
  line-height: 1.25;
}

#mapa {
  padding: 4rem 0;
}

#mapa h3 {
  color: var(--azul);
  font-size: 3em;
  line-height: 1;
  font-weight: 900;
  margin: 1rem 0;
  text-align: center;
}

#contacto {
  background-color: var(--background);
}

.info-contacto {
  padding: 4rem;
}

.info-contacto img {
  width: 80%;
}

.info-contacto h3 {
  color: var(--verde);
  font-size: 2.5em;
  line-height: 1;
  font-weight: 900;
  margin: 2rem 0;
}

.info-contacto a {
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 600;
}

.info-contacto p {
  color: var(--azul);
  font-size: 1.5rem;
  line-height: 1.25;
}

.info-contacto h4 {
  color: var(--azul);
  font-size: 1.6rem;
  font-weight: 900;
}

.info-contacto ul {
  list-style-type: none;
}

.info-contacto ul li {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 1rem 0;
}

.info-contacto ul li a {
  text-decoration: none;
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 600;
}

.info-contacto ul li a:hover {
  color: var(--azul-claro);
}

.info-contacto ul li a svg {
  margin-right: 1rem;
}

.formulario-de-contacto {
  padding: 4rem;
}

.formulario-de-contacto h3 {
  color: var(--azul-claro);
  font-size: 2.5em;
  line-height: 1;
  font-weight: 900;
  margin: 2rem 0;
}

#contactForm {
  display: flex;
  flex-direction: column;
}

label {
  display: block;
}

input {
  color: var(--azul);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  padding: .75rem;
  background: none;
  outline: none;
  border: 2px solid #fff;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 1rem;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.1), inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}

textarea {
  color: var(--azul);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  padding: .75rem;
  resize: none;
  field-sizing: content;
  background: none;
  outline: none;
  border: 2px solid #fff;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 2rem;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.1), inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}

select {
  color: var(--azul);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.3rem;
  padding: 1rem .75rem;
  background: none;
  outline: none;
  border: 2px solid #fff;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 2rem;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.1), inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.error {
  color: var(--rojo);
  margin-top: -1rem;
  padding-bottom: 1rem;
  display: none;
}

.gracias {
  text-align: center;
  padding: 1rem 0;
  display: none;
}


.main-title {
  /* old browser interpolation */
  background: linear-gradient(to right,
      hsl(114, 53%, 43%) 0%,
      hsl(202, 88%, 55%) 20%,
      hsl(243, 100%, 19%) 50%);

  /* modern interpolation */
  background: linear-gradient(to right in oklch,
      hsl(114, 53%, 43%) 0%,
      hsl(202, 88%, 55%) 20%,
      hsl(243, 100%, 19%) 50%);

  /* old browser support */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* modern browser version */
  background-clip: text;
  color: transparent;
}

.main-title h1 {
  font-weight: 900;
  font-size: 4em;
  padding-left: 4rem;
}

/* Login */
.user-initials {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--verde);
  color: var(--blanco);
  font-weight: 700;
  border-radius: 100vmax;
  font-size: 1.2rem;
  cursor: pointer;
}

.valid-user {
  position: absolute;
  top: 120px;
  right: 2rem;
  background-color: var(--background);
  border-radius: 10px;
  border: 2px solid var(--verde);
  padding: 10px 1rem;
  box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
}
.valid-user ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.valid-user ul li a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--azul);
  text-decoration: none;
}

#login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100dvh - 273px);
  padding: 2rem 0;
  /* background-color: var(--background); */
}
.login-container {
  background-color: var(--blanco);
  padding: 4rem;
  border-radius: 10px;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.1),  -8px -8px 12px rgba(242, 242, 242, 0.4);
  /* box-shadow: 8px 8px 12px rgba(63, 169, 52, 0.1); */
  width: 400px;
}

.login-div-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.login-div-checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.login-div-checkbox label {
  font-size: 1rem;
  margin: 1rem 0 2rem 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--azul);
}

.register-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  gap: 10px;
}

.error-message {
  color: var(--rojo);
}



/* Responsive */
@media screen and (max-width: 768px) {

  nav {
    padding: 2rem 1rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav-links {
    position: fixed;
    top: 127px;
    left: -100%;
    gap: 0;
    flex-direction: column;
    background-color: var(--azul-claro);
    width: 100%;
    height: calc(100% - 127px);
    text-align: center;
    transition: all 0.3s ease;
  }

  .nav-item {
    margin: 16px 0;
  }

  .nav-links.active {
    left: 0;
    z-index: 1000;
  }

  nav ul li a  {
    color: var(--blanco);
  }

  .login-links .nav-item a {
    color: var(--azul);
    font-size: 1em;
  }

  .hero {
    padding: 0 1rem;
  }

  .hero-info {
    padding: 1rem 0;
  }

  .hero-info p {
    font-size: 1.2em;
  }

  .hero-video {
    display: none;
  }

  .main-title h1 {
    font-size: 3em;
    line-height: 1;
    padding: 0;
    text-align: center;
  }

  .btn {
    padding: .5rem 1rem;
    font-size: 1em;
  }

  .btn-whatsapp p {
    display: none;
  }

  #proveedor-materiales {
    padding: 2rem 1rem;
  }

  .proveedor-materiales-leaf1 {
    top: -7rem;
  }

  .text-proveedor-materiales {
    padding: 0rem 1rem;
  }

  .text-proveedor-materiales h2 {
    font-size: 2em;
  }

  .text-proveedor-materiales p {
    font-size: 1.2em;
  }

  .proveedor-materiales-leaf2 {
    display: none;
  }

  .info-proveedor-materiales {
    width: 100%;
    padding:  4rem 1rem 0 1rem;
  }

  #plastico-peletizado {
    padding: 4rem 1rem;
  }

  .tipo-materiales {
    padding: 0rem 1rem;
  }

  .text-plastico-peletizado img {
    width: 100px;
    height: 100px;
  }

  #hagamos-equipo {
    padding: 4rem 1rem;
  }

  .text-hagamos-equipo h2 {
    font-size: 2em;
  }

  .text-hagamos-equipo p:nth-child(3) {
    font-size: 1.2em;
  }

  .info-contacto {
    padding: 4rem 1rem;
  }

  .info-contacto ul li a {
    font-size: 1em;
  }

  .formulario-de-contacto {
    padding: 0rem 1.5rem 4rem 1.5rem;
  }
  
}