/* Carpitap — web pública. Rediseño del 29/10/2026 siguiendo el video de ejemplo del dueño:
   fotos a todo lo ancho que se funden con la página, categorías a pantalla completa que se apilan al bajar,
   títulos que aparecen al bajar y llamados a WhatsApp. Sin estilos en línea (CSP).
   Las animaciones al bajar son solo CSS (animation-timeline) y la página se ve completa sin ellas. */

:root {
  --fondo: #ffffff;
  --suave: #f3f4f1;
  --suave-2: #e9ebe6;
  --tinta: #101512;
  --tinta-2: #434b46;
  --tinta-3: #636c66;
  --linea: rgba(16, 21, 18, .11);
  --verde: #0bb75f;
  --verde-hondo: #087a3f;
  --verde-claro: #c9f0da;
  --amarillo: #f5be16;           /* el amarillo del logo */
  --amarillo-trazo: rgba(245, 190, 22, .55);
  --amarillo-tenue: rgba(245, 190, 22, .16);
  --radio-l: 24px;
  --radio-m: 18px;
  --curva: cubic-bezier(.16, 1, .3, 1);
  --ancho: 1320px;
  --margen: clamp(16px, 4vw, 48px);
  --alto-cabecera: 76px;
  --letra: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--alto-cabecera); scrollbar-color: #b9bfba transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: var(--letra); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
b, strong { font-weight: 650; }
::selection { background: #fbe08a; color: var(--tinta); }
:focus-visible { outline: 2px solid var(--verde-hondo); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--tinta); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s;
}
.saltar:focus { top: 12px; }

.icono { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icono--relleno { fill: currentColor; stroke: none; }
.contenedor { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }

/* ---------- Píldoras (botones) ---------- */
.pildora {
  display: inline-flex; align-items: center; gap: .85rem; min-height: 46px;
  padding: 5px 5px 5px 20px; border-radius: 999px; border: 0;
  font: 600 .95rem/1.1 var(--letra); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--curva), color .3s var(--curva), box-shadow .3s var(--curva), transform .3s var(--curva);
}
.pildora--grande { min-height: 56px; padding-left: 24px; font-size: 1rem; }
.pildora__icono { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: transform .45s var(--curva); }
.pildora--grande .pildora__icono { width: 46px; height: 46px; }
.pildora__icono .icono { width: 18px; height: 18px; }
.pildora--grande .pildora__icono .icono { width: 20px; height: 20px; }
.pildora__icono--verde { background: var(--verde); color: #fff; }
.pildora:hover .pildora__icono { transform: rotate(-12deg) scale(1.06); }
.pildora:active { transform: scale(.98); }
.pildora--negra { background: var(--tinta); color: #fff; }
.pildora--negra:hover { background: #26302a; }
.pildora--blanca { background: #fff; color: var(--tinta); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.pildora--blanca:hover { background: #f2f4f1; }
.pildora--borde { padding: 0 26px; color: var(--tinta); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(16, 21, 18, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pildora--borde:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--amarillo), 0 0 0 4px var(--amarillo-tenue); }

/* ---------- Cabecera (transparente sobre la portada, blanca al bajar) ---------- */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--alto-cabecera);
  transition: background-color .35s, box-shadow .35s;
}
.cabecera--menu { background: #fff; }
.cabecera--movida {
  background: rgba(255, 255, 255, .86); box-shadow: 0 1px 0 var(--linea);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.cabecera__inner { height: 100%; width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.logo { position: relative; display: block; flex: 0 0 auto; color: #111; text-decoration: none; }
.logo img { width: 142px; height: auto; }
.logo__sub { position: absolute; left: 39.5%; bottom: -2px; white-space: nowrap; font-size: 6.4px; font-weight: 700; letter-spacing: .13em; line-height: 1; color: #111; }
.menu { margin-left: auto; }
.menu__lista { display: flex; gap: 4px; }
.menu__lista a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 500; color: var(--tinta-2); transition: color .2s, background-color .2s;
}
.menu__lista a:hover { color: var(--tinta); background: rgba(16, 21, 18, .06); }
.menu__lista a[aria-current="true"] { color: var(--tinta); background: var(--amarillo-tenue); }
.menu__extra { display: none; }
.cabecera__cta { flex: 0 0 auto; margin-left: 12px; }
.menu-boton { display: none; place-items: center; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: rgba(16, 21, 18, .07); color: var(--tinta); cursor: pointer; }
.menu-boton .icono { width: 22px; height: 22px; }
.menu-boton .icono--cerrar, .menu-boton[aria-expanded="true"] .icono--abrir { display: none; }
.menu-boton[aria-expanded="true"] .icono--cerrar { display: block; }

/* ---------- Portada: la foto ocupa toda la pantalla y se funde con la página ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; height: 100svh; min-height: 640px; max-height: 1100px;
  display: grid; justify-items: center; align-content: start; text-align: center; view-timeline-name: --hero;
}
.hero__foto, .hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__foto img {
  object-fit: cover; object-position: center 62%;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 253, 246, .97) 0%, rgba(255, 253, 246, .9) 24%, rgba(255, 253, 246, .55) 42%, rgba(255, 253, 246, 0) 60%);
}
.hero__texto { padding: calc(var(--alto-cabecera) + clamp(36px, 7svh, 88px)) var(--margen) 0; max-width: 1040px; }
.hero h1 {
  max-width: 15ch; margin-inline: auto; font-size: clamp(2.6rem, 1.15rem + 4.7vw, 5.5rem); font-weight: 650;
  line-height: .98; letter-spacing: -.042em; text-wrap: balance;
}
.hero__bajada { margin: 20px auto 0; max-width: 40ch; color: var(--tinta-2); font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.45; }
.hero__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(80px, 10vw, 150px); }
.titulo { font-size: clamp(2.1rem, 1.25rem + 3vw, 3.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.cabeza { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 20px 64px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.cabeza .titulo { max-width: 16ch; }
.cabeza__lado { display: grid; justify-items: start; gap: 20px; max-width: 36ch; justify-self: end; color: var(--tinta-2); line-height: 1.5; }

/* ---------- Nosotros: datos con dos fotos y la declaración que se enciende al bajar ---------- */
.nosotros { padding-top: clamp(64px, 8vw, 120px); }
.datos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.datos__foto { display: block; overflow: hidden; border-radius: var(--radio-l); min-height: 300px; background: var(--suave-2); }
.datos__foto img { width: 100%; height: 100%; object-fit: cover; }
.datos__lista { display: grid; align-content: center; padding: 0 clamp(8px, 1.6vw, 24px); }
.datos__lista div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--linea); }
.datos__lista div:first-child { border-top: 1px solid var(--linea); }
.datos__lista dt { font-size: clamp(1.5rem, .95rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.datos__lista dt::before { content: ""; display: inline-block; width: .28em; height: .28em; margin: 0 .32em .12em 0; border-radius: 50%; background: var(--amarillo); vertical-align: middle; }
.datos__lista dd { max-width: 22ch; color: var(--tinta-2); font-size: .9rem; line-height: 1.4; text-align: right; }

.declaracion {
  max-width: 30ch; margin: clamp(96px, 12vw, 180px) auto 0; padding-bottom: clamp(96px, 12vw, 180px); text-align: center; text-wrap: balance;
  font-size: clamp(1.7rem, .95rem + 2.9vw, 3.4rem); font-weight: 500; line-height: 1.14; letter-spacing: -.03em;
}
.declaracion b {
  font-weight: 700; background-image: linear-gradient(var(--amarillo-trazo), var(--amarillo-trazo)); background-repeat: no-repeat;
  background-size: 100% .28em; background-position: 0 88%; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.declaracion.revelar-listo b { background-size: 0% .28em; transition: background-size .9s var(--curva); }
.declaracion.revelar-listo b.on { background-size: 100% .28em; }
.declaracion.revelar-listo .palabra { color: #c3c9c4; filter: blur(5px); transition: color .5s ease, filter .6s var(--curva); }
.declaracion.revelar-listo .palabra.on { color: var(--tinta); filter: none; }

/* ---------- Categorías: a pantalla completa, cada una tapa a la anterior al bajar ---------- */
.categorias .cabeza { margin-bottom: clamp(32px, 4vw, 56px); }
.pila { margin: 0; }
.panel {
  position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; padding: var(--alto-cabecera) 16px 16px; color: #fff; background: #1e1c18;
}
.panel + .panel { box-shadow: 0 -40px 80px -30px rgba(0, 0, 0, .5); }
.panel__foto, .panel__foto img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.panel__foto img { object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(8, 11, 9, .42) 0%, rgba(8, 11, 9, .18) 65%, rgba(8, 11, 9, .3) 100%); }
.panel__tarjeta {
  display: grid; justify-items: center; gap: 8px; width: min(100%, 400px); padding: 26px 26px 24px; border-radius: 26px; text-align: center;
  background: rgba(16, 21, 18, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 30px 80px -30px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
}
.panel__etiqueta { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--amarillo); color: var(--tinta); font-size: .78rem; font-weight: 600; }
.panel h3 { margin-top: 4px; font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.7rem); font-weight: 600; letter-spacing: -.032em; line-height: 1.04; }
.panel p { max-width: 30ch; color: rgba(255, 255, 255, .88); font-size: .98rem; line-height: 1.45; }
.panel .pildora { margin-top: 10px; }

/* ---------- Servicios: franja que se despliega ---------- */
.acordeon { display: flex; gap: 12px; height: clamp(440px, 40vw, 560px); }
.acordeon__item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radio-l);
  background: var(--suave); color: var(--tinta); transition: flex-grow .7s var(--curva), background-color .4s, color .4s;
}
.acordeon__item.abierto { flex-grow: 2.7; background: var(--tinta); color: #fff; }
.acordeon h3 { position: relative; z-index: 2; margin: 0; font: inherit; }
.acordeon__boton {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; padding: 24px;
  border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  font: 600 1.25rem/1.15 var(--letra); letter-spacing: -.02em;
}
.acordeon__boton .icono { width: 22px; height: 22px; transition: transform .5s var(--curva); }
.abierto .acordeon__boton .icono { transform: rotate(45deg); color: var(--amarillo); }
.acordeon__item:not(.abierto):hover { background: #f6f1e1; }
.acordeon__cuerpo { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; padding: 24px; }
.acordeon__cuerpo picture, .acordeon__cuerpo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.acordeon__cuerpo img { object-fit: cover; }
.acordeon__cuerpo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(16, 21, 18, .82) 0%, rgba(16, 21, 18, .12) 38%, rgba(16, 21, 18, .2) 55%, rgba(16, 21, 18, .9) 100%); }
.acordeon__cuerpo p, .acordeon__cuerpo .pildora { position: relative; z-index: 1; }
.acordeon__cuerpo p { max-width: 36ch; color: rgba(255, 255, 255, .9); font-size: 1.02rem; line-height: 1.45; }
.acordeon.listo .acordeon__item:not(.abierto) .acordeon__cuerpo { opacity: 0; visibility: hidden; }
.acordeon.listo .acordeon__cuerpo { transition: opacity .45s .15s, visibility 0s; }
.acordeon:not(.listo) .acordeon__item { background: var(--tinta); color: #fff; }

/* ---------- Productos destacados ---------- */
#destacados { padding-top: 0; }
.productos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.producto {
  position: relative; display: block; aspect-ratio: 4 / 3.3; overflow: hidden; isolation: isolate; border-radius: var(--radio-l);
  color: #fff; text-decoration: none; background: var(--suave-2);
}
.producto picture, .producto img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.producto img { object-fit: cover; transition: transform 1.1s var(--curva); }
.producto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 11, 9, 0) 45%, rgba(8, 11, 9, .72) 100%); }
.etiqueta { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--amarillo); color: var(--tinta); font-size: .78rem; font-weight: 600; }
.producto__pie { position: absolute; left: 20px; right: 16px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.producto h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.producto p { margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: .9rem; line-height: 1.35; }
.circulo { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--verde); color: #fff; transition: transform .5s var(--curva); }
.circulo .icono { width: 20px; height: 20px; }
.producto:hover img { transform: scale(1.045); }
.producto:hover .circulo { transform: scale(1.08) rotate(-10deg); }

/* ---------- Marcas ---------- */
.marcas { padding-block: clamp(40px, 6vw, 96px) clamp(80px, 10vw, 150px); text-align: center; }
.marcas .titulo { max-width: 18ch; margin-inline: auto; }
.marcas__fila { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 88px); margin-top: clamp(40px, 5vw, 64px); }
.marca { display: block; padding: 10px; border-radius: 12px; transition: transform .45s var(--curva), opacity .3s; }
.marca img { width: auto; max-width: 170px; max-height: 52px; }
.marca:hover { transform: translateY(-3px); }
.marcas__nota { margin-top: 32px; color: var(--tinta-3); font-size: .95rem; }

/* ---------- Proyectos: la foto crece hasta ocupar toda la pantalla y la cinta corre detrás ---------- */
.proyectos .cabeza { margin-bottom: clamp(24px, 3vw, 40px); }
.escena { position: relative; }
.escena__fija { position: relative; overflow: hidden; }
.cinta {
  white-space: nowrap; font-size: clamp(3.4rem, 1.5rem + 7vw, 9rem); font-weight: 600; line-height: 1;
  letter-spacing: -.045em; color: #d2d7d2; padding-left: var(--margen); margin-bottom: -.3em;
}
.cinta span { color: var(--amarillo); }
.escena__foto { position: relative; z-index: 1; height: min(92svh, 900px); overflow: hidden; background: var(--suave-2); }
.escena__foto picture, .escena__foto img { width: 100%; height: 100%; }
.escena__foto img { object-fit: cover; }
.escena__llamado {
  position: absolute; left: 50%; bottom: clamp(24px, 6svh, 56px); z-index: 2; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 24px; border-radius: 999px; white-space: nowrap;
  color: #fff; font-weight: 600; background: rgba(16, 21, 18, .4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}

/* ---------- Preguntas ---------- */
.preguntas { padding-top: clamp(96px, 12vw, 170px); }
.preguntas__marco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px 72px; align-items: start; }
.preguntas__cabeza { position: sticky; top: calc(var(--alto-cabecera) + 32px); display: grid; justify-items: start; gap: 18px; }
.preguntas__cabeza p { max-width: 32ch; color: var(--tinta-2); line-height: 1.5; }
.preguntas__lista details { border-bottom: 1px solid var(--linea); }
.preguntas__lista details:first-child { border-top: 1px solid var(--linea); }
.preguntas__lista summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px;
  font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.preguntas__lista summary::-webkit-details-marker { display: none; }
.preguntas__lista summary .icono { width: 22px; height: 22px; color: var(--tinta-3); transition: transform .45s var(--curva); }
.preguntas__lista details[open] summary .icono { transform: rotate(45deg); color: #a87f00; }
.preguntas__lista details p { max-width: 62ch; padding: 0 4px 24px; color: var(--tinta-2); line-height: 1.55; }
.preguntas__lista details a { color: var(--verde-hondo); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Contacto y pie: franja clara con el llamado y la foto a todo lo ancho ---------- */
.pie { background: linear-gradient(180deg, #ffffff 0%, #fdf8e8 45%, #f8ecc4 100%); }
.llamado { display: grid; justify-items: center; gap: 18px; padding: clamp(96px, 12vw, 170px) var(--margen) clamp(48px, 6vw, 88px); text-align: center; }
.llamado .titulo { max-width: 15ch; }
.llamado p { max-width: 40ch; color: var(--tinta-2); font-size: 1.1rem; line-height: 1.5; }
.llamado .pildora { margin-top: 8px; }
.pie__foto {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(680px, 72vw, 1000px); color: #fff;
}
.pie__foto > picture, .pie__foto > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.pie__foto > picture img { object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%); }
.pie__foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 10, 0) 30%, rgba(10, 12, 10, .55) 58%, rgba(10, 12, 10, .94) 100%); }
.pie__marca {
  position: relative; margin-bottom: clamp(20px, 3vw, 40px); text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font-size: clamp(4.2rem, 18.5vw, 20rem); font-weight: 700; line-height: .8; letter-spacing: -.055em; color: var(--amarillo);
}
.pie__contenido {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px;
  width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; padding-top: 32px; border-top: 1px solid rgba(245, 190, 22, .35);
}
.pie__logo { position: relative; display: inline-block; padding: 12px 16px 16px; border-radius: 16px; background: #fff; text-decoration: none; }
.pie__logo img { width: 118px; }
.pie__logo .logo__sub { left: calc(16px + 118px * .395); bottom: 9px; font-size: 5.3px; }
.pie__marca-texto p { max-width: 34ch; margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.5; }
.pie__red { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-top: 16px; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: background-color .3s; }
.pie__red:hover { background: var(--amarillo); color: var(--tinta); box-shadow: none; }
.pie__red .icono { width: 20px; height: 20px; }
.pie__columna { display: grid; align-content: start; gap: 4px; }
.pie__columna h3 { margin-bottom: 8px; color: var(--amarillo); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pie__columna a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: rgba(255, 255, 255, .92); text-decoration: none; font-size: .98rem; }
.pie__columna a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pie__columna .icono { width: 18px; height: 18px; }
.pie__derechos { padding: 36px var(--margen) 24px; text-align: center; color: rgba(255, 255, 255, .55); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--verde); color: #fff; box-shadow: 0 14px 34px -10px rgba(8, 122, 63, .7);
  transition: transform .5s var(--curva), opacity .4s var(--curva);
}
.whatsapp-flotante .icono { width: 28px; height: 28px; }
.whatsapp-flotante:hover { transform: scale(1.06); }
.whatsapp-flotante--oculto { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }

/* ---------- Movimiento al bajar (solo donde el navegador lo admite; sin él todo se ve igual, quieto) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Portada: la foto sube más rápido que la página y el texto se desvanece */
    .hero__foto { animation: hero-foto linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__texto { animation: hero-texto linear both; animation-timeline: --hero; animation-range: exit 0% exit 55%; }

    /* Títulos: aparecen nítidos desde un desenfoque */
    .revelar { animation: revelar linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }

    /* Proyectos: la foto empieza pequeña en el centro y crece hasta la pantalla completa */
    .escena { height: 260vh; view-timeline-name: --escena; }
    .escena__fija { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
    .cinta { position: absolute; left: 0; top: 50%; margin: 0; translate: 0 -50%; animation: correr-cinta linear both; animation-timeline: --escena; animation-range: contain 0% contain 100%; }
    .escena__foto { position: absolute; inset: 0; height: auto; animation: crecer-foto linear both; animation-timeline: --escena; animation-range: contain 0% contain 62%; }
    .escena__llamado { animation: aparecer linear both; animation-timeline: --escena; animation-range: contain 55% contain 75%; }
  }
}
@keyframes hero-foto { to { transform: translateY(-16%) scale(1.05); } }
@keyframes hero-texto { to { opacity: 0; filter: blur(8px); transform: translateY(-48px); } }
@keyframes revelar { from { opacity: 0; filter: blur(10px); transform: translateY(28px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes crecer-foto { from { transform: scale(.36); border-radius: 80px; } to { transform: scale(1); border-radius: 0; } }
@keyframes correr-cinta { from { transform: translateX(6%); } to { transform: translateX(-40%); } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Tableta ---------- */
@media (max-width: 1080px) {
  .menu-boton { display: grid; }
  .cabecera__cta { display: none; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px var(--margen) 24px;
    background: #fff; box-shadow: 0 1px 0 var(--linea), 0 24px 40px -20px rgba(16, 21, 18, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--curva), transform .3s var(--curva), visibility 0s .3s;
  }
  .menu.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--curva), transform .3s var(--curva); }
  .menu__lista { flex-direction: column; gap: 2px; }
  .menu__lista a { padding: 13px 14px; font-size: 1.05rem; border-radius: 14px; }
  .menu__extra { display: grid; gap: 14px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--linea); justify-items: start; }
  .menu__direccion { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--tinta-2); text-decoration: none; }
  .menu__direccion .icono { width: 18px; height: 18px; }

  .datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datos__lista { grid-column: 1 / -1; order: -1; padding: 0; }
  .datos__foto { min-height: 220px; }
  .acordeon { flex-direction: column; height: auto; }
  .acordeon__item { flex: none; min-height: 76px; transition: background-color .4s, color .4s; }
  .acordeon__item.abierto { min-height: 400px; }
  .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preguntas__marco { grid-template-columns: 1fr; }
  .preguntas__cabeza { position: static; }
  .pie__contenido { grid-template-columns: 1fr 1fr; }
  .pie__marca-texto { grid-column: 1 / -1; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 700px) {
  :root { --alto-cabecera: 64px; --radio-l: 20px; }
  body { font-size: 1rem; }
  .logo img { width: 116px; }
  .logo__sub { font-size: 5.2px; }

  .hero { min-height: 600px; }
  .hero__texto { padding-top: calc(var(--alto-cabecera) + 28px); }
  .hero__acciones { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .hero__acciones .pildora--negra { justify-content: space-between; }
  .hero__acciones .pildora--borde { justify-content: center; }
  .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 34%, rgba(255, 255, 255, .5) 52%, rgba(255, 255, 255, 0) 68%); }

  .cabeza { grid-template-columns: 1fr; gap: 14px; }
  .cabeza__lado { justify-self: start; }
  .datos__lista div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; }
  .datos__lista dd { text-align: left; }
  .datos__foto { min-height: 150px; }

  .panel { padding-inline: 14px; }
  .panel__tarjeta { padding: 22px 20px 20px; }

  .acordeon__boton { padding: 20px; font-size: 1.12rem; }
  .acordeon__cuerpo { padding: 20px; }
  .acordeon__item.abierto { min-height: 380px; }

  .productos { gap: 10px; }
  .producto { aspect-ratio: 3 / 4; }
  .producto__pie { left: 12px; right: 10px; bottom: 12px; }
  .producto h3 { font-size: 1rem; }
  .producto p { font-size: .8rem; }
  .producto .circulo { width: 36px; height: 36px; }
  .producto .circulo .icono { width: 18px; height: 18px; }
  .etiqueta { top: 10px; right: 10px; height: 24px; padding: 0 9px; font-size: .72rem; }

  .marcas__fila { gap: 24px 36px; }
  .marca img { max-width: 130px; max-height: 40px; }

  .escena__llamado { flex-direction: column; gap: 10px; padding: 16px; border-radius: 24px; width: calc(100% - 32px); white-space: normal; text-align: center; }
  .escena__llamado .pildora { width: 100%; justify-content: space-between; }

  .pie__foto { min-height: 760px; }
  .pie__contenido { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
    .escena { height: 220vh; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
