/* Alianza Ambiental: hoja de estilos */

:root {
  /* Paleta: verdes del logo */
  --verde-alianza: #1C5C34;        /* "Alianza" en el logo: titulares, botones y fondos verdes */
  --verde-alianza-hover: #144628;
  /* Fondos verdes "con luz": de claro (arriba a la izquierda) a profundo. Elegido por el usuario. */
  --verde-luz: #18804A;
  --verde-medio: #0B5E36;
  --verde-profundo: #06381F;
  --verde-ambiental: #4BB235;      /* "Ambiental": detalles, nunca como texto sobre blanco */
  --brote: #ADE656;                /* brillo del símbolo: botón principal y opciones marcadas sobre verde */
  --brote-hover: #C3F07A;
  --tinta: #10291B;                /* texto */
  --tinta-suave: #44574A;          /* texto secundario */
  --papel: #FFFFFF;
  --hormigon: #ECEEE9;
  --linea: #D5DBD2;
  --borde-campo: #A9B5A6;
  --error: #B3261E;

  /* Vidrio: piezas traslúcidas sobre verde o sobre foto */
  --vidrio: rgba(255, 255, 255, .1);
  --vidrio-hover: rgba(255, 255, 255, .18);
  --vidrio-borde: rgba(255, 255, 255, .42);

  --margen: clamp(20px, 5vw, 56px);
  --ancho: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 136px;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a {
  color: var(--verde-alianza);
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}
a:hover { text-decoration-thickness: .14em; }
/* Que el número de teléfono nunca se corte en dos líneas */
a[href^="https://wa.me"], a[href^="tel:"] { white-space: nowrap; }
/* El correo es largo: si no cabe, se corta donde haga falta */
.correo { overflow-wrap: anywhere; }

:focus-visible {
  outline: 3px solid var(--verde-alianza);
  outline-offset: 3px;
  border-radius: 4px;
}

.contenedor {
  width: min(100% - 2 * var(--margen), var(--ancho));
  margin-inline: auto;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tipografía: Archivo, ancha en titulares y normal en texto */
h1, h2, h3 { margin: 0; color: var(--verde-alianza); text-wrap: balance; }
h1 {
  /* Sigue al ancho de la columna para que el titular quede siempre en tres líneas */
  font-size: clamp(2rem, 4.5vw - 6px, 3.375rem);
  line-height: 1;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.024em;
}
h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.375rem);
  line-height: 1.04;
  font-weight: 760;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.02em;
}
h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
  font-weight: 680;
  font-variation-settings: "wdth" 106;
}
p { margin: 0; }
/* Párrafos largos justificados, solo desde tablet hacia arriba: en la columna angosta del celular
   el justificado deja huecos grandes entre palabras, así que ahí siguen alineados a la izquierda.
   Titulares, rótulos, botones y textos de una o dos líneas no se justifican. */
@media (min-width: 641px) {
  .texto p, .servicio p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}
/* La bajada de la portada va en media pantalla: solo se justifica cuando esa columna es ancha */
@media (min-width: 1180px) {
  .bajada {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--verde-alianza);
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 640;
  font-variation-settings: "wdth" 104;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.boton--principal { background: var(--verde-alianza); color: #fff; }
.boton--principal:hover { background: var(--verde-alianza-hover); border-color: var(--verde-alianza-hover); }
.boton--secundario { background: #fff; color: var(--verde-alianza); }
.boton--secundario:hover { background: #E7F1E4; }
.boton--chico { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
/* Sobre fondo verde */
.boton--brote { border-color: var(--brote); background: var(--brote); color: var(--tinta); }
.boton--brote:hover { border-color: var(--brote-hover); background: var(--brote-hover); }
.boton--claro { border-color: #fff; background: var(--vidrio); color: #fff; }
.boton--claro:hover { background: var(--vidrio-hover); }

.contador {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 10px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brote);
  color: var(--tinta);
  font-size: .8125rem;
  font-weight: 760;
}
.contador--oscuro { background: var(--verde-alianza); color: #fff; }

.saltar {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--verde-alianza);
  color: #fff;
  font-weight: 600;
}
.saltar:focus { top: 12px; }

/* Cabecera */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.cabecera .contenedor { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 32px); min-height: 88px; }
.marca { flex: none; }
.marca img { width: auto; height: 54px; }
.nav { display: flex; gap: clamp(16px, 1.8vw, 28px); margin-left: auto; }
.nav a { color: var(--tinta); font-size: 1rem; font-weight: 560; text-decoration: none; }
.nav a:hover { color: var(--verde-alianza); text-decoration: underline; }
/* Cinta de la Ley REP: va dentro de la cabecera fija, así que se ve en toda la página */
.aviso {
  padding: 8px var(--margen);
  background: var(--brote);
  color: var(--tinta);
  font-size: .9375rem;
  line-height: 1.3;
}
.aviso__interior {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  width: min(100%, var(--ancho));
  margin-inline: auto;
}
.aviso strong { font-weight: 740; font-variation-settings: "wdth" 106; }
.aviso__corto { display: none; }
.menu-boton {
  display: none;
  min-height: 42px;
  margin-left: auto;
  padding: 0 18px;
  border: 2px solid var(--verde-alianza);
  border-radius: 999px;
  background: #fff;
  color: var(--verde-alianza);
  font: inherit;
  font-size: .9375rem;
  font-weight: 640;
  cursor: pointer;
}

/* Portada: texto a la izquierda y fotos reales, traslúcidas sobre el verde, a la derecha */
.portada {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 5vw, 76px) clamp(50px, 5.6vw, 86px);
  /* El "verde con luz" va semitransparente sobre la foto del cartón (intensidad intermedia, elegida por el usuario) */
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(24, 128, 74, .76) 0%, rgba(11, 94, 54, .8) 42%, rgba(6, 56, 31, .9) 100%),
    var(--verde-medio) url("assets/fotos/carton.jpg") left 42% / cover no-repeat;
  color: #fff;
}
/* Franja verde clara que cierra la portada */
.portada::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 10px;
  background: linear-gradient(to bottom, var(--brote) 0 3px, var(--verde-ambiental) 3px);
}
.portada :focus-visible, .materiales :focus-visible { outline-color: #fff; }
.portada a:not(.boton) { color: #fff; }
.portada__grilla > :not(.portada__fotos) { position: relative; z-index: 2; width: calc(50% - 8px); }
.portada h1 { color: #fff; }
.bajada {
  margin-top: 22px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.5;
}
.portada__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portada__alternativa { margin-top: 18px; color: rgba(255, 255, 255, .84); font-size: 1rem; }

.portada__fotos {
  position: absolute;
  inset: 0 0 10px calc(50% + 28px);
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* El borde izquierdo se disuelve en el verde */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 130px);
  mask-image: linear-gradient(90deg, transparent, #000 130px);
}
.foto {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: flex-grow .55s cubic-bezier(.3, .8, .3, 1);
}
.foto--activa { flex-grow: 2.4; }
.foto__boton {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.foto__boton:focus-visible { outline-offset: -5px; }
/* Siempre difuminadas: el verde de la portada se ve a través de todas las fotos.
   El usuario no quiere que ninguna se muestre nítida y a todo color. */
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  transition: opacity .45s ease;
}
.foto--activa img { opacity: .58; }
.foto__boton::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, rgba(6, 56, 31, 0), rgba(6, 56, 31, .72));
  pointer-events: none;
}
.foto__pie {
  position: absolute;
  right: 12px;
  bottom: 22px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 8px 13px;
  border: 1px solid var(--vidrio-borde);
  border-radius: 16px;
  background: rgba(16, 41, 27, .46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: .9375rem;
  font-weight: 640;
  font-variation-settings: "wdth" 104;
  line-height: 1.2;
  opacity: 0;
  transition: opacity .15s ease;
}
.foto--activa .foto__pie { opacity: 1; transition: opacity .25s ease .28s; }

/* Selector de residuos de la portada */
.carga { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.carga legend { padding: 0; font-size: 1.1875rem; font-weight: 700; font-variation-settings: "wdth" 108; }
.carga__ayuda { margin-top: 2px; color: rgba(255, 255, 255, .82); font-size: .9375rem; }
.carga__opciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--vidrio-borde);
  border-radius: 999px;
  background: var(--vidrio);
  font-size: .9375rem;
  font-weight: 560;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: #fff; background: var(--vidrio-hover); }
.chip input:checked + span { border-color: var(--brote); background: var(--brote); color: var(--tinta); }
.chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.carga__estado { margin-top: 12px; color: rgba(255, 255, 255, .88); font-size: .9375rem; }
.carga__estado:empty { display: none; }
/* Sin JavaScript no hay selector: quedan el titular, las fotos y los botones */
html:not(.js) .carga { display: none; }

/* Secciones */
.seccion { padding-block: clamp(64px, 8vw, 112px); }
.seccion__intro { max-width: 60ch; margin-top: 16px; color: var(--tinta-suave); }

/* Secciones claras: una foto real se ve a través de un velo casi blanco */
.soluciones {
  background:
    linear-gradient(90deg, rgba(246, 249, 244, .9), rgba(246, 249, 244, .8) 50%, rgba(246, 249, 244, .66)),
    var(--hormigon) url("assets/fotos/compostaje.jpg") center 55% / cover;
}
.contacto {
  background:
    linear-gradient(90deg, rgba(246, 249, 244, .78), rgba(246, 249, 244, .84) 50%, rgba(246, 249, 244, .7)),
    var(--hormigon) url("assets/fotos/planta-tratamiento.jpg") center 40% / cover;
}
/* Soluciones */
/* La frase grande usa el ancho completo, en líneas parejas; el tamaño sigue al ancho de la página */
.declaracion {
  margin-bottom: clamp(40px, 5vw, 72px);
  font-size: clamp(1.625rem, 3.4vw, 2.875rem);
  line-height: 1.12;
  font-weight: 640;
  font-variation-settings: "wdth" 108;
  letter-spacing: -.016em;
  text-wrap: balance;
}
.soluciones__grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.soluciones h2 { max-width: 14ch; }
.texto p { max-width: 58ch; margin-top: 20px; }
.ficha {
  padding: clamp(22px, 3vw, 32px);
  border: 2px solid var(--verde-alianza);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ficha h3 { margin-bottom: 8px; }
.ficha dl { margin: 0; }
.ficha__fila { padding: 16px 0; border-bottom: 1.5px dashed #B7C3B4; }
.ficha__fila:last-child { padding-bottom: 0; border-bottom: 0; }
.ficha dt { font-weight: 640; }
.ficha dd { margin: 4px 0 0; color: var(--tinta-suave); font-size: 1rem; }

/* Servicios */
.servicios { background: var(--hormigon); }
.servicios__lista { margin-top: clamp(32px, 4vw, 56px); }
.servicio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(24px, 5vw, 72px);
  padding-block: clamp(26px, 3.2vw, 40px);
  border-top: 2px solid var(--tinta);
}
.servicio:last-child { padding-bottom: 0; }
.servicio h3 {
  max-width: 16ch;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  line-height: 1.08;
  font-weight: 720;
  font-variation-settings: "wdth" 110;
  letter-spacing: -.012em;
}
.servicio p { max-width: 60ch; }

/* Materiales: banda giratoria de platos redondos sobre una foto real teñida de verde */
.materiales {
  position: relative;
  background:
    linear-gradient(160deg, rgba(11, 94, 54, .82), rgba(6, 56, 31, .9)),
    var(--verde-alianza) url("assets/fotos/chatarra.jpg") center 50% / cover;
  color: #fff;
  padding-block: clamp(44px, 5vw, 72px) clamp(16px, 3vw, 40px);
}
.materiales h2 { color: #fff; }
/* La banda va de borde a borde; el primer plato parte alineado con el resto del contenido.
   El relleno vertical deja sitio al plato del centro, que crece, y a su sombra. */
.banda {
  overflow-x: auto;
  margin-top: clamp(20px, 2.4vw, 30px);
  padding-block: 24px 48px;
  padding-inline: max(var(--margen), calc((100% - var(--ancho)) / 2));
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.banda::-webkit-scrollbar { display: none; }
.banda:focus-visible { outline-offset: -3px; }
/* Sin separación: los platos de los lados van reducidos y eso deja el espacio entre ellos */
.banda__pista, .banda__lista { display: flex; }
.banda__pista { width: max-content; }
.banda__lista { margin: 0; padding: 0; list-style: none; }
/* main.js pone --luz en cada plato: 0 lejos del centro de la banda, 1 justo al centro.
   El plato crece de 0,8 a 1,14 y se enciende a medida que le toca su turno. */
.plato {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 264px;
  height: 264px;
  border: 3px solid color-mix(in srgb, var(--brote) calc(var(--luz, 0) * 100%), rgba(255, 255, 255, .75));
  border-radius: 50%;
  /* Sin foto: vidrio oscuro, que se vuelve verde al centro */
  background: color-mix(in srgb, rgba(24, 128, 74, .85) calc(var(--luz, 0) * 100%), rgba(16, 41, 27, .4));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 14px 30px rgba(2, 16, 9, calc(.2 + .4 * var(--luz, 0)));
  text-align: center;
  transform: scale(calc(.8 + var(--crece, .34) * var(--luz, 0)));
}
/* Con foto real del material: siempre teñida de verde; al centro se aclara, sin llegar a verse nítida */
.plato--foto {
  background:
    linear-gradient(180deg, rgba(11, 94, 54, calc(.74 - .34 * var(--luz, 0))), rgba(6, 56, 31, calc(.9 - .2 * var(--luz, 0)))),
    var(--foto) var(--encuadre, center) / cover;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.plato--foto .plato__nombre, .plato--foto .plato__ejemplos { text-shadow: 0 1px 10px rgba(2, 16, 9, .7); }
.plato__icono {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brote);
  color: var(--tinta);
}
.plato__icono svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plato__nombre {
  max-width: 196px;
  margin-top: 12px;
  color: #fff;
  font-size: 1.1875rem;
  font-variation-settings: "wdth" 108;
  line-height: 1.15;
}
.plato__ejemplos {
  max-width: 186px;
  margin-top: 6px;
  color: rgba(255, 255, 255, .88);
  font-size: .875rem;
  line-height: 1.35;
  text-wrap: balance;
}

/* Contacto */
.contacto__grilla {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.formulario {
  margin-top: 36px;
  padding: clamp(20px, 3vw, 36px);
  border: 2px solid var(--verde-alianza);
  border-radius: 16px;
  background: #fff;
}
.pasos__cabecera { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pasos__cuenta { flex: none; color: var(--tinta-suave); font-size: .9375rem; font-weight: 640; }
.pasos__barra { display: flex; flex: 1; gap: 6px; }
.pasos__barra i { flex: 1; height: 6px; border-radius: 3px; background: var(--linea); transition: background-color .2s ease; }
.pasos__barra i.hecho { background: var(--verde-ambiental); }
html:not(.js) .pasos__cabecera, html:not(.js) [data-volver], html:not(.js) [data-continuar], html:not(.js) .vista-previa { display: none; }
.paso { display: grid; gap: 24px; }
.paso + .paso { margin-top: 32px; }
.paso__titulo { font-size: 1.5rem; font-variation-settings: "wdth" 110; outline: 0; }
.fila-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grupo { min-width: 0; margin: 0; padding: 0; border: 0; }
.campo label, .grupo legend { display: block; margin-bottom: 8px; padding: 0; font-size: 1rem; font-weight: 640; }
.opcional { color: var(--tinta-suave); font-weight: 400; }
.campo input, .campo textarea, .campo select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--borde-campo);
  border-radius: 10px;
  background: #fff;
  color: var(--tinta);
  font: inherit;
  font-size: 1rem;
}
.campo textarea { min-height: 96px; resize: vertical; }
/* Lista desplegable con flecha propia, igual de alta que los demás campos */
.campo select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%231C5C34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
  cursor: pointer;
}
.campo__otra { margin-top: 12px; }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  border-color: var(--verde-alianza);
  outline: 3px solid rgba(75, 178, 53, .35);
  outline-offset: 0;
}
.campo input[aria-invalid="true"] { border-color: var(--error); }
/* Teléfono: el prefijo +56 9 queda fijo dentro del campo y solo se escriben los números */
.campo__telefono {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--borde-campo);
  border-radius: 10px;
  background: #fff;
}
.campo__telefono span { padding-left: 16px; font-size: 1rem; font-weight: 640; white-space: nowrap; }
.campo__telefono input { min-width: 0; padding-left: 8px; border: 0; background: transparent; }
.campo__telefono input:focus { outline: 0; }
.campo__telefono:focus-within { border-color: var(--verde-alianza); outline: 3px solid rgba(75, 178, 53, .35); }
.campo__telefono:has(input[aria-invalid="true"]) { border-color: var(--error); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opcion span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--borde-campo);
  border-radius: 999px;
  background: #fff;
  font-size: .9375rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.opcion input:checked + span { border-color: var(--verde-alianza); background: var(--verde-alianza); color: #fff; }
.opcion input:focus-visible + span { outline: 3px solid var(--verde-alianza); outline-offset: 2px; }
.opciones--solicitud .opcion span { min-height: 52px; padding: 0 22px; font-size: 1.0625rem; font-weight: 600; }
.vista-previa__titulo { margin-bottom: 8px; font-size: 1rem; font-weight: 640; }
/* Mensaje de gracias: ocupa el lugar del formulario cuando la solicitud se envió */
.formulario--enviado > :not(.gracias) { display: none; }
/* Versión compacta, elegida por el usuario: visto y título en una fila, a todo el ancho */
.gracias { padding-block: 8px; outline: 0; }
.gracias__cabeza { display: flex; align-items: center; gap: 18px; }
.gracias__visto {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brote) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l3 3 5.8-6.6' fill='none' stroke='%2310291B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.gracias__titulo {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.06;
  font-weight: 760;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.018em;
}
.gracias__texto { max-width: 48ch; margin: 18px 0 22px; }
.gracias__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.trampa { display: none; }
.boton:disabled { opacity: .6; cursor: progress; }
.vista-previa__mensaje {
  max-width: 52ch;
  padding: 14px 18px;
  border: 1.5px dashed #B7C3B4;
  border-radius: 10px;
  background: #F4F7F2;
  font-size: .9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.formulario__envio { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.formulario__nota { color: var(--tinta-suave); font-size: .9375rem; }
.formulario__estado { flex-basis: 100%; font-size: 1rem; font-weight: 560; }
.formulario__estado:empty { display: none; }
.formulario__estado[data-tipo="error"] { color: var(--error); }
.formulario__estado[data-tipo="ok"] { color: var(--verde-alianza); }

.lateral { display: grid; gap: 20px; }
.bloque {
  padding: clamp(22px, 3vw, 28px);
  border: 2px solid var(--verde-alianza);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bloque h3 { margin-bottom: 14px; }
.bloque p + p { margin-top: 8px; }
/* Datos de contacto: cada uno con su rótulo, igual que la ficha de Soluciones */
.datos { margin: 0; }
.datos__fila { padding: 12px 0; border-top: 1.5px dashed #B7C3B4; }
.datos dt { color: var(--tinta-suave); font-size: .875rem; }
.datos dd { margin: 2px 0 0; font-weight: 640; }
.bloque__acciones { display: flex; gap: 8px; margin-top: 8px; }
.bloque__acciones .boton { flex: 1; min-height: 44px; }

/* Pie */
.pie {
  padding-block: 40px;
  border-top: 1px solid var(--linea);
  color: var(--tinta-suave);
  font-size: .9375rem;
}
.pie .contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
}
.pie img { width: auto; height: 52px; }

/* Barra fija del celular */
.barra-fija { display: none; }

/* Con mouse, las fotos de fondo quedan fijas y la página pasa por encima */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .soluciones, .materiales, .contacto { background-attachment: fixed; }
}

/* Responsivo */

/* Bajo 1080 px el menú pasa al botón "Menú" y la cinta muestra su versión corta */
@media (max-width: 1080px) {
  .aviso__detalle { display: none; }
  .aviso__corto { display: inline; }
  .js .cabecera__cta { margin-left: auto; }
  .js .menu-boton { display: inline-flex; align-items: center; margin-left: 0; }
  .js .cabecera .contenedor { gap: 12px; }
  .js .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 8px var(--margen) 16px;
    border-bottom: 1px solid var(--linea);
    background: #fff;
  }
  .js .nav--abierto { display: flex; }
  .js .nav a { padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 1.125rem; }
  .js .nav a:last-child { border-bottom: 0; }
  html:not(.js) .nav { gap: 14px; }
  html:not(.js) .nav a { font-size: .9375rem; }
}

@media (max-width: 900px) {
  h1 { font-size: clamp(1.875rem, 6.4vw, 3.25rem); }
  .portada__grilla > :not(.portada__fotos) { width: auto; }
  /* Las fotos pasan a una franja de borde a borde, entre el texto y el selector */
  .portada__fotos {
    position: relative;
    inset: auto;
    height: clamp(280px, 62vw, 420px);
    margin: 26px calc(-1 * var(--margen)) 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* En la franja angosta, el rótulo puede ocupar dos líneas */
  .foto__pie {
    left: 10px;
    right: auto;
    bottom: 12px;
    max-width: calc(100% - 20px);
    padding: 7px 12px;
    border-radius: 14px;
    font-size: .875rem;
    white-space: normal;
  }
  .soluciones__grilla, .contacto__grilla { grid-template-columns: minmax(0, 1fr); }
  .servicio { grid-template-columns: minmax(0, 1fr); }
  /* En celular el botón de cotizar vive en la barra fija de abajo */
  .cabecera__cta { display: none; }
  .js .menu-boton { margin-left: auto; }

  .barra-fija {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px var(--margen) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--linea);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .barra-fija--visible { transform: none; }
  .barra-fija .boton { min-height: 48px; padding: 0 14px; font-size: .9375rem; white-space: nowrap; }
  .barra-fija .boton--principal { flex: 1; }
  .pie { padding-bottom: 104px; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .cabecera .contenedor { min-height: 72px; gap: 12px; }
  .marca img { height: 44px; }
  .pie img { height: 46px; }
  .aviso { padding-block: 6px; font-size: .875rem; }
  .fila-doble { grid-template-columns: minmax(0, 1fr); }
  .portada__acciones .boton { width: 100%; }
  .formulario__envio .boton { flex: 1; }
  /* En pantallas angostas el plato del centro crece menos, para que no toque los bordes */
  .plato { --crece: .24; }
  .gracias__visto { width: 44px; height: 44px; background-size: 24px; }
  .gracias__cabeza { gap: 14px; }
  .gracias__acciones .boton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
