/* ===========================================================
   Patio Web Studio — "El patio recién instalado"
   Verde de césped recién cortado, crema de travertino, bosque
   profundo para las escenas. Las fotos y los objetos 3D hablan
   del oficio: adoquín, césped, piedra. Un solo acento (verde),
   reservado para la acción. Sin dependencias.
   =========================================================== */

/* ---------- 1. Fichas ---------- */
:root {
  --bosque:   #0A1C14;
  --bosque-2: #0E261B;
  --bosque-3: #143324;
  --bosque-4: #06120D;

  --crema:   #F1ECE0;
  --hoja:    #F6F2E8;

  /* El único acento. Solo acciones y lo que señala. */
  --verde:       #2FA862;
  --verde-alto:  #5AD28C;
  --verde-bajo:  #1D7C46;
  --verde-tinta: #03170C;
  --verde-texto: #1A7040;

  --oro: #D9A21B;            /* solo las estrellas: es su color en Google */

  --borde-r: 20px;
  --borde-r-i: 12px;
  --ritmo: clamp(5rem, 10vw, 9rem);
  --ancho-max: 1240px;

  --sale: cubic-bezier(.22, 1, .36, 1);
  --suave: cubic-bezier(.4, 0, .2, 1);
}

/* Dos pieles. Cada sección elige una; los componentes solo leen variables. */
.oscuro {
  --fg: #EFEBE1; --fg-2: #B9C6BC; --fg-3: #8FA094;
  --linea: rgba(239,235,225,.13); --linea-2: rgba(239,235,225,.26);
  --sup: rgba(239,235,225,.055); --sup-2: rgba(239,235,225,.02);
  --campo: rgba(6,18,13,.55);
  --acento: var(--verde-alto);
  --sombra: 0 30px 60px -30px rgba(2,8,5,.9);
  background: var(--bosque); color: var(--fg);
}
.claro {
  --fg: #122019; --fg-2: #43524A; --fg-3: #5C6A60;
  --linea: rgba(18,32,25,.11); --linea-2: rgba(18,32,25,.22);
  --sup: #FDFCF8; --sup-2: #FDFCF8;
  --campo: #fff;
  --acento: var(--verde-texto);
  --sombra: 0 26px 50px -30px rgba(22,48,33,.38);
  background: var(--crema); color: var(--fg);
}
.claro.aire { background: var(--hoja); --sup: #fff; --sup-2: #fff; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--hoja);
  color: #122019;
  font: 400 clamp(1.0625rem, 1.05rem + .18vw, 1.1875rem)/1.62 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.004em;
  overflow-x: hidden;
  overflow-x: clip;          /* clip no crea contenedor de scroll: sticky sigue vivo */
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--verde); color: var(--verde-tinta); }

:focus-visible {
  outline: 2px solid var(--verde-alto);
  outline-offset: 3px;
  border-radius: 4px;
}
.claro :focus-visible { outline-color: var(--verde-bajo); }

.salta {
  position: fixed; top: .6rem; left: .6rem; z-index: 90;
  padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--verde); color: var(--verde-tinta);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .28s var(--sale);
}
.salta:focus-visible { transform: none; }

.ancho {
  width: 100%; max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* El grano rompe la planitud digital. Fijo, sin eventos. */
.grano {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. Barra: píldora de vidrio al centro ---------- */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  color: #EFEBE1;
  transition: background .4s var(--suave), padding .4s var(--suave), box-shadow .4s var(--suave);
}
/* Al bajar hay secciones claras: la barra entera pasa a vidrio oscuro para
   seguir leyéndose, y la píldora suelta el suyo (nunca vidrio sobre vidrio). */
.barra.pegada {
  padding-block: .5rem;
  background: rgba(8,24,17,.76);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 1px 0 rgba(239,235,225,.1), 0 18px 40px -22px rgba(2,8,5,.8);
}
.barra.pegada .vidrio { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; background: transparent; }
.barra.pegada .vidrio::before { opacity: 0; }

.marca {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .62rem;
  text-decoration: none; font-weight: 600; letter-spacing: -.022em; font-size: 1.0625rem;
}
.marca-glifo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 20px; height: 20px; flex: none; }
.marca-glifo i { display: block; border-radius: 2px; background: currentColor; opacity: .78; transition: transform .5s var(--sale); }
.marca-glifo i:nth-child(1) { background: var(--verde-alto); opacity: 1; }
.marca-glifo i:nth-child(4) { background: var(--verde); opacity: 1; }
.marca:hover .marca-glifo i:nth-child(2) { transform: translateY(-2px); }
.marca:hover .marca-glifo i:nth-child(3) { transform: translateX(-2px); }
.marca:hover .marca-glifo i:nth-child(4) { transform: translate(2px, 2px); }

.barra-pildora { display: flex; align-items: center; gap: .3rem; padding: .36rem; border-radius: 999px; --vidrio-blur: 10px; }
.barra-pildora::before { transition: opacity .4s var(--suave); }
.barra-nav { display: flex; gap: .1rem; font-size: .875rem; font-weight: 500; }
.barra-nav a {
  padding: .5rem .8rem; border-radius: 999px; text-decoration: none;
  color: rgba(239,235,225,.92);
  transition: background .25s var(--suave), color .25s var(--suave);
}
.barra-nav a:hover { background: rgba(239,235,225,.13); color: #fff; }

.idioma {
  justify-self: end;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .75rem; border: 0; border-radius: 999px;
  color: #EFEBE1; font: 600 .75rem/1 "Instrument Sans", sans-serif;
  letter-spacing: .06em; cursor: pointer; --vidrio-blur: 10px;
  transition: transform .12s var(--sale);
}
.idioma:active { transform: scale(.95); }
.idioma-off { opacity: .5; }
html[data-lang="es"] .idioma-on { opacity: .5; }
html[data-lang="es"] .idioma-off { opacity: 1; }

@media (max-width: 860px) {
  .barra { grid-template-columns: 1fr auto auto; gap: .5rem; }
  .barra-nav { display: none; }
  .idioma { order: 2; }
  .barra-pildora { order: 3; padding: .22rem; }
}
@media (max-width: 430px) {
  .barra { padding-inline: 1rem; }
  .marca-txt { font-size: .9375rem; }
  .marca-glifo { width: 18px; height: 18px; }
  .idioma { padding: .55rem .6rem; letter-spacing: .03em; }
  .btn-sm { padding: .6rem .85rem; font-size: .875rem; }
}

/* ---------- 4. Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 1rem 1.6rem;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 "Instrument Sans", sans-serif; letter-spacing: -.012em;
  text-decoration: none; cursor: pointer;
  transition: transform .14s var(--sale), box-shadow .35s var(--sale), background .3s var(--suave);
}
.btn:active { transform: scale(.97); }      /* responde al apretar, no al soltar */
.btn-sm { padding: .62rem 1.05rem; font-size: .9375rem; }
.btn-ancho { width: 100%; }

.btn-marca {
  background: linear-gradient(170deg, var(--verde-alto), var(--verde) 55%, #259455);
  color: var(--verde-tinta);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 30px -14px rgba(31,140,78,.85);
}
.btn-marca:hover { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 20px 42px -14px rgba(31,140,78,.95); }

.btn-vidrio { color: #F3EFE6; --vidrio-fondo: rgba(6,18,13,.22); }
.btn-vidrio:hover { --vidrio-fondo: rgba(239,235,225,.14); }

/* ---------- 5. Tipografía ---------- */
.titular {
  margin: 1.3rem 0 1.5rem;
  font-size: clamp(2.5rem, 5.3vw, 4.5rem);
  font-weight: 600; line-height: 1; letter-spacing: -.042em;
}
.titular em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 1.14em; letter-spacing: -.03em; line-height: .9;
}

.t2 {
  margin: .5rem 0 0;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.032em;
}
.t2-sub {
  margin: 1.1rem 0 0; max-width: 54ch; color: var(--fg-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6;
}
.rotulo {
  margin: 0; display: flex; align-items: center; gap: .6rem;
  color: var(--acento);
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.rotulo::before { content: ""; width: 1.6rem; height: 1px; flex: none; background: currentColor; opacity: .55; }

.seccion { position: relative; z-index: 1; padding-block: var(--ritmo); }
.cabeza { max-width: 62ch; margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }

/* ---------- 6. Portada ---------- */
/* La portada mide dos pantallas y media; lo de adentro se queda fijo
   mientras el visitante baja y el terreno se limpia. */
.hero {
  position: relative; z-index: 2;
  height: 250svh;
  color: #F3EFE6;
  background: var(--bosque);
}
.hero-fija {
  position: sticky; top: 0; height: 100svh; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  padding-block: 6rem 8rem;
}
.hero-foto { position: absolute; inset: 0; z-index: -2; overflow: hidden; display: block; }
.hero-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 62%;
  filter: blur(7px) saturate(.82) sepia(.18) hue-rotate(-6deg) brightness(.78);
  transform: scale(calc(1.08 + var(--t, 0) * .1));
  transform-origin: 62% 72%;
  will-change: transform;
}
/* El velo: bosque a la izquierda para el texto, la foto respira a la derecha */
.hero-velo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6,18,13,.93) 0%, rgba(6,18,13,.78) 30%, rgba(6,18,13,.2) 60%, rgba(6,18,13,.08) 100%),
    linear-gradient(to bottom, rgba(6,18,13,.6), rgba(6,18,13,0) 24%),
    linear-gradient(to top, rgba(6,18,13,.55), rgba(6,18,13,0) 30%);
}
.hero-rejilla {
  display: grid; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}
.hero-pie {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0; padding: .45rem 1rem; border-radius: 999px;
  font-size: .8125rem; font-weight: 500;
  --vidrio-fondo: rgba(6,18,13,.3); --vidrio-blur: 10px;
}
/* ---------- 7. El terreno en 3D ---------- */
.escena3d {
  position: relative; aspect-ratio: 1;
  width: min(120%, 100svh - 8rem); margin-left: -12%;
}
/* Mientras llega el 3D se ve una imagen fija del mismo terreno; luego se cruzan */
.escena3d::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("./3d/terreno-poster.webp") center / contain no-repeat;
  transition: opacity 1.2s var(--suave);
}
.escena3d canvas { opacity: 0; transition: opacity 1.2s var(--suave); }
.escena3d.lista canvas { opacity: 1; }
.escena3d.lista::before { opacity: 0; }
.escena3d.lista { cursor: grab; }
.escena3d.agarrado { cursor: grabbing; }
.escena3d canvas { touch-action: pan-y; }
.escena3d canvas, .obra-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  /* En el celular no cabe todo en una pantalla: el texto pasa normal y el
     terreno tiene su propio tramo, donde se queda fijo mientras se limpia. */
  .hero { height: auto; }
  .hero-fija { position: relative; height: auto; overflow: visible; display: block; padding-block: 6.5rem 2rem; }
  .hero-foto, .hero-velo { bottom: auto; height: 100svh; }
  .hero-rejilla { grid-template-columns: 1fr; }
  .hero-velo {
    background: linear-gradient(to bottom, rgba(6,18,13,.9) 0%, rgba(6,18,13,.8) 52%, rgba(6,18,13,.62) 80%, var(--bosque) 100%);
  }
  .escena-pista { height: 190svh; margin-top: 1rem; }
  .escena3d { position: sticky; top: 9svh; width: 100%; height: 82svh; aspect-ratio: auto; margin: 0; }
}

/* ---------- 8. Los oficios: la banda de fotos ---------- */
.oficios { position: relative; z-index: 1; padding-block: var(--ritmo); overflow: hidden; }
.declara {
  margin: 0; max-width: 24ch;
  font-size: clamp(1.75rem, 4.4vw, 3.4rem);
  font-weight: 500; line-height: 1.14; letter-spacing: -.03em;
}
.declara em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 1.1em; color: var(--acento); letter-spacing: -.02em;
}
.declara > span:last-child {
  display: block; margin-top: 1.1rem; max-width: 36ch;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 400; line-height: 1.6; letter-spacing: -.008em; color: var(--fg-2);
}
.oficios-rot { margin-top: clamp(3rem, 6vw, 5rem); }

/* Dos filas que se cruzan al bajar: una va, la otra viene */
.filas { display: grid; gap: clamp(.6rem, 1.2vw, 1rem); margin-top: 1.6rem; }
.fila { display: flex; gap: clamp(.6rem, 1.2vw, 1rem); width: max-content; will-change: transform; }
.fila-a { transform: translate3d(calc(var(--f, 0) * -24%), 0, 0); }
.fila-b { transform: translate3d(calc(-26% + var(--f, 0) * 24%), 0, 0); }

.oficio {
  position: relative; flex: none; margin: 0;
  height: clamp(210px, 25vw, 330px);
  border-radius: var(--borde-r); overflow: hidden;
  background: var(--crema);
  box-shadow: var(--sombra);
}
.oficio-alto { aspect-ratio: 4 / 5; }
.oficio-ancho { aspect-ratio: 3 / 2; }
.oficio img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--sale); }
.oficio:hover img { transform: scale(1.06); }
.oficio figcaption {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .42rem .8rem; border-radius: 999px;
  background: rgba(6,18,13,.62);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(239,235,225,.2) inset;
  color: #F3EFE6; font-size: .8125rem; font-weight: 600; letter-spacing: -.004em;
}

/* ---------- 9. Servicios: cada tarjeta lo demuestra en vivo ---------- */
.bento { display: grid; gap: clamp(.8rem, 1.4vw, 1.15rem); grid-template-columns: repeat(6, 1fr); }
.tarj {
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 1.4rem;
  padding: clamp(1.4rem, 2vw, 1.9rem);
  border-radius: 24px;
  background: #FDFCF8;
  box-shadow: 0 0 0 1px var(--linea) inset, 0 30px 60px -38px rgba(22,48,33,.5);
  transition: transform .5s var(--sale), box-shadow .5s var(--sale);
}
.tarj:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--linea-2) inset, 0 40px 70px -36px rgba(22,48,33,.6); }
/* 4+2 · 2+4 · 2+2+2: filas exactas, con dos tarjetas oscuras que marcan el ritmo */
.bento > :nth-child(1) { grid-column: span 4; }
.bento > :nth-child(4) { grid-column: span 4; }
.tarj-oscura {
  --fg: #EFEBE1; --fg-2: #B9C6BC; --fg-3: #8FA094; --linea: rgba(239,235,225,.12); --linea-2: rgba(239,235,225,.24);
  color: var(--fg);
  background: radial-gradient(120% 90% at 85% 0%, #1B4430 0%, var(--bosque) 62%);
}
.tarj-txt { max-width: 36ch; }
.tarj h3 { margin: 0 0 .5rem; font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; line-height: 1.18; letter-spacing: -.024em; }
.tarj p { margin: 0; color: var(--fg-2); font-size: .9375rem; line-height: 1.55; }
.demo { margin: auto 0 0; position: relative; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento > :nth-child(1), .bento > :nth-child(4) { grid-column: span 1; }
  .bento > :nth-child(1), .bento > :nth-child(4) { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento > :nth-child(1), .bento > :nth-child(4) { grid-column: span 1; }
}

/* 1 · la búsqueda: se escribe, aparecen resultados, la suya sube al primer lugar */
.d-busca { display: grid; gap: .7rem; max-width: 36rem; width: 100%; }
.db-barra {
  display: flex; align-items: center; gap: .6rem; height: 2.9rem; padding: 0 1rem;
  border-radius: 999px; background: rgba(239,235,225,.95); color: #44524A;
  font-size: .9375rem; box-shadow: 0 10px 30px -14px rgba(0,0,0,.6);
}
.db-q { white-space: nowrap; overflow: hidden; color: #122019; }
.db-cursor { width: 1.5px; height: 1.1rem; background: #1D7C46; }
.db-res { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.db-res li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  padding: .7rem .9rem; border-radius: 14px;
  background: rgba(239,235,225,.06); box-shadow: 0 0 0 1px rgba(239,235,225,.1) inset;
}
.db-pin { width: 1.7rem; height: 1.7rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: rgba(239,235,225,.18); }
.db-otro i { display: block; height: 7px; border-radius: 4px; background: rgba(239,235,225,.16); width: 70%; }
.db-otro i + i { margin-top: .4rem; width: 45%; }
.db-yo { background: rgba(90,210,140,.12) !important; box-shadow: 0 0 0 1px rgba(90,210,140,.55) inset, 0 14px 30px -16px rgba(47,168,98,.7) !important; }
.db-yo .db-pin { background: var(--verde-alto); }
.db-yo b { display: block; font-weight: 600; font-size: .9375rem; }
.db-yo em { font-style: normal; font-size: .8125rem; color: var(--fg-2); }
.db-est { color: var(--oro); letter-spacing: 1px; }
.db-uno { font: italic 400 1.6rem/1 "Instrument Serif", Georgia, serif; color: var(--verde-alto); }

/* 2 · el idioma: el mismo titular, en uno y otro */
.d-idioma { display: grid; gap: 1rem; }
.di-pill { position: relative; display: inline-flex; width: max-content; padding: 3px; border-radius: 999px; background: #EDE8DC; font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.di-pill span { position: relative; z-index: 1; width: 2.6rem; text-align: center; padding: .4rem 0; color: #5C6A60; }
.di-pill i { position: absolute; top: 3px; left: 3px; width: 2.6rem; bottom: 3px; border-radius: 999px; background: var(--verde); box-shadow: 0 4px 12px -4px rgba(31,140,78,.7); }
.tarj .di-t { position: relative; margin: 0; min-height: 4.6rem; font: italic 400 clamp(1.6rem, 2.3vw, 2rem)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.02em; color: var(--fg); }
.di-t span { position: absolute; inset: 0; }
.di-es { opacity: 0; }

/* 3 · el celular: un toque y suena */
.d-cel { display: flex; justify-content: center; padding-top: .4rem; }
.dc-tel {
  position: relative; width: 9.5rem; height: 12.5rem; border-radius: 1.4rem 1.4rem 0 0;
  padding: .5rem .5rem 0; background: #0B1612;
  box-shadow: 0 0 0 1px rgba(239,235,225,.18) inset, 0 -20px 40px -20px rgba(90,210,140,.35);
  overflow: hidden;
}
.dc-foto { display: block; height: 5.4rem; border-radius: .9rem; background: url("./fotos/piscina-casa.webp") center / cover; }
.dc-l { display: block; height: 6px; border-radius: 3px; margin: .7rem .3rem 0; background: rgba(239,235,225,.18); }
.dc-l2 { width: 55%; margin-top: .45rem; }
.dc-barra { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; display: flex; gap: .35rem; }
.dc-barra b { flex: 1; text-align: center; padding: .55rem 0; border-radius: .6rem; font-size: .6875rem; font-weight: 600; box-shadow: 0 0 0 1px rgba(239,235,225,.25) inset; }
.dc-barra b:first-child { background: var(--verde); color: var(--verde-tinta); box-shadow: none; }
.dc-dedo { position: absolute; left: 2.2rem; bottom: .9rem; width: 1.6rem; height: 1.6rem; margin: -.8rem; border-radius: 50%; background: rgba(255,255,255,.55); opacity: 0; }
.dc-aviso {
  position: absolute; left: .6rem; right: .6rem; top: .6rem; padding: .5rem .7rem; border-radius: .8rem;
  background: rgba(239,235,225,.95); color: #122019; font-size: .75rem; font-weight: 600; opacity: 0;
}
.dc-aviso::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; border-radius: 50%; background: var(--verde); }

/* 4 · antes y después: el mismo terreno, arrastrable */
.tarj-ad { background: radial-gradient(90% 90% at 70% 30%, #1B4430, var(--bosque) 70%); color: #EFEBE1; --fg-2: #B9C6BC; --linea: rgba(239,235,225,.12); }
.tarj-ad { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.tarj-ad .tarj-txt { align-self: start; }
.d-ad { --corte: 50%; margin: -1rem -1rem -1.6rem 0; aspect-ratio: 523 / 560; max-height: 25rem; justify-self: center; width: 100%; touch-action: pan-y; }
.da-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.da-despues { clip-path: inset(0 0 0 var(--corte)); }
.da-linea { position: absolute; top: 4%; bottom: 4%; left: var(--corte); width: 2px; margin-left: -1px; background: rgba(255,255,255,.85); pointer-events: none; }
.da-linea i {
  position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; margin: -1.3rem;
  border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.da-linea i::before, .da-linea i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.da-linea i::before { left: 7px; border-right-color: #1D7C46; }
.da-linea i::after { right: 7px; border-left-color: #1D7C46; }
.da-rango { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.da-rango:focus-visible + .da-linea i { outline: 2px solid var(--verde-alto); outline-offset: 3px; }
.da-et { position: absolute; top: 6%; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(6,18,13,.6); color: #EFEBE1; box-shadow: 0 0 0 1px rgba(239,235,225,.2) inset; pointer-events: none; }
.da-et-a { left: 6%; }
.da-et-d { right: 6%; background: var(--verde); color: var(--verde-tinta); box-shadow: none; }
@media (max-width: 1000px) { .tarj-ad { grid-template-columns: 1fr; } .d-ad { margin: 0 auto -1.4rem; max-width: 26rem; } }

/* 5 · reseñas: las estrellas se llenan */
.d-res { height: 9.5rem; }
.dr-tarj {
  position: absolute; left: 0; right: 0; top: .9rem; height: 8.2rem; padding: 1rem;
  border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--linea) inset, 0 16px 30px -18px rgba(22,48,33,.45);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr; column-gap: .7rem; row-gap: .45rem; align-items: center;
}
.dr-atras { top: 0; left: 8%; right: 8%; height: 7rem; opacity: .55; transform: scale(.96); }
.dr-av { width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(135deg, #CFE8D7, #8CC6A2); }
.dr-nom { height: 7px; width: 55%; border-radius: 4px; background: rgba(18,32,25,.14); }
.dr-g { font: 700 1rem/1 "Instrument Sans", sans-serif; background: linear-gradient(90deg, #4285F4, #EA4335 40%, #FBBC05 60%, #34A853); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dr-est { grid-column: 1 / -1; display: flex; gap: .2rem; font-size: 1.15rem; }
.dr-est b { color: rgba(18,32,25,.14); }
.dr-l { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(18,32,25,.1); align-self: start; }
.dr-l2 { width: 62%; margin-top: -.15rem; }

/* 6 · WhatsApp: llega la cotización */
.d-wa {
  height: 9.5rem; border-radius: 16px; padding: .9rem; overflow: hidden;
  background: #ECE5D8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23000' stroke-opacity='.03'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px var(--linea) inset;
}
.dw-cab { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem; border-radius: 999px; background: #fff; font-size: .75rem; color: #122019; opacity: 0; }
.dw-cab i { width: .5rem; height: .5rem; border-radius: 50%; background: #25D366; }
.dw-escribe { position: absolute; left: .9rem; bottom: 1rem; display: inline-flex; gap: 4px; padding: .7rem .8rem; border-radius: 14px 14px 14px 4px; background: #fff; opacity: 0; }
.dw-escribe i { width: 6px; height: 6px; border-radius: 50%; background: #A8B0AA; }
.dw-globo {
  position: absolute; left: .9rem; right: 2.2rem; bottom: 1rem; padding: .6rem .75rem .45rem;
  border-radius: 14px 14px 14px 4px; background: #fff; color: #122019; font-size: .8125rem; line-height: 1.4;
  box-shadow: 0 2px 2px rgba(0,0,0,.06); opacity: 0;
}
.dw-globo em { display: block; text-align: right; font-style: normal; font-size: .6875rem; color: #8A948E; }
.dw-globo em b { color: #8A948E; font-weight: 600; }

/* 7 · mantenimiento: cada cambio pasa de enviado a publicado */
.d-man { list-style: none; padding: 0; display: grid; gap: .5rem; }
.d-man li {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .7rem .85rem; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--linea) inset;
  font-size: .8125rem; color: var(--fg);
}
.d-man b { position: relative; display: grid; font-size: .6875rem; font-weight: 700; }
.d-man em { grid-area: 1 / 1; font-style: normal; padding: .25rem .6rem; border-radius: 999px; text-align: center; white-space: nowrap; }
.d-man em:first-child { background: #EDE8DC; color: #5C6A60; }
.d-man em:last-child { background: rgba(47,168,98,.16); color: #1A7040; opacity: 0; }

/* Las demos corren cuando la tarjeta está a la vista */
@media (prefers-reduced-motion: no-preference) {
  .tarj.dentro .db-q { animation: escribe 7s steps(16) infinite; }
  .tarj.dentro .db-cursor { animation: parpadea .9s steps(1) infinite; }
  .tarj.dentro .db-yo { animation: sube 7s var(--sale) infinite; }
  .tarj.dentro .di-pill i { animation: pildora 6s var(--sale) infinite; }
  .tarj.dentro .di-en { animation: idA 6s var(--sale) infinite; }
  .tarj.dentro .di-es { animation: idB 6s var(--sale) infinite; }
  .tarj.dentro .dc-dedo { animation: toque 4.5s var(--sale) infinite; }
  .tarj.dentro .dc-barra b:first-child { animation: presion 4.5s var(--sale) infinite; }
  .tarj.dentro .dc-aviso { animation: llamada 4.5s var(--sale) infinite; }
  .tarj.dentro .dr-est b { animation: estrella 5s var(--sale) infinite; }
  .tarj.dentro .dr-est b:nth-child(2) { animation-delay: .12s; }
  .tarj.dentro .dr-est b:nth-child(3) { animation-delay: .24s; }
  .tarj.dentro .dr-est b:nth-child(4) { animation-delay: .36s; }
  .tarj.dentro .dr-est b:nth-child(5) { animation-delay: .48s; }
  .tarj.dentro .dw-cab { animation: wcab 6s var(--sale) infinite; }
  .tarj.dentro .dw-escribe { animation: wesc 6s var(--sale) infinite; }
  .tarj.dentro .dw-escribe i { animation: punto 1s ease-in-out infinite; }
  .tarj.dentro .dw-escribe i:nth-child(2) { animation-delay: .15s; }
  .tarj.dentro .dw-escribe i:nth-child(3) { animation-delay: .3s; }
  .tarj.dentro .dw-globo { animation: wglo 6s var(--sale) infinite; }
  .tarj.dentro .dw-globo em b { animation: leido 6s steps(1) infinite; }
  .tarj.dentro .d-man em:first-child { animation: env 6s var(--sale) infinite; }
  .tarj.dentro .d-man em:last-child { animation: pub 6s var(--sale) infinite; }
  .tarj.dentro .d-man li:nth-child(2) em { animation-delay: .7s; }
  .tarj.dentro .d-man li:nth-child(3) em { animation-delay: 1.4s; }
}
@keyframes escribe { 0% { clip-path: inset(0 100% 0 0); } 30%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes parpadea { 50% { opacity: 0; } }
@keyframes sube { 0%, 30% { opacity: 0; transform: translateY(150%) scale(.96); } 42% { opacity: 1; transform: translateY(-4%) scale(1.02); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pildora { 0%, 42% { transform: none; } 50%, 92% { transform: translateX(2.6rem); } 100% { transform: none; } }
@keyframes idA { 0%, 40% { opacity: 1; filter: none; transform: none; } 48%, 92% { opacity: 0; filter: blur(8px); transform: translateY(-8px); } 100% { opacity: 1; filter: none; transform: none; } }
@keyframes idB { 0%, 42% { opacity: 0; filter: blur(8px); transform: translateY(8px); } 50%, 90% { opacity: 1; filter: none; transform: none; } 98%, 100% { opacity: 0; filter: blur(8px); } }
@keyframes toque { 0%, 20% { opacity: 0; transform: scale(1.6); } 28% { opacity: 1; transform: scale(1); } 34% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; } }
@keyframes presion { 0%, 27% { transform: none; } 30% { transform: scale(.92); } 36%, 100% { transform: none; } }
@keyframes llamada { 0%, 32% { opacity: 0; transform: translateY(-10px); } 40%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes estrella { 0%, 10% { color: rgba(18,32,25,.14); transform: none; } 18% { color: var(--oro); transform: scale(1.35); } 24%, 90% { color: var(--oro); transform: none; } 100% { color: rgba(18,32,25,.14); } }
@keyframes wcab { 0%, 5% { opacity: 0; transform: translateY(-6px); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes wesc { 0%, 12% { opacity: 0; } 18%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes punto { 50% { transform: translateY(-3px); opacity: .5; } }
@keyframes wglo { 0%, 40% { opacity: 0; transform: translateY(10px) scale(.97); } 48%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes leido { 0%, 62% { color: #8A948E; } 63%, 100% { color: #34B7F1; } }
@keyframes env { 0%, 30% { opacity: 1; } 36%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pub { 0%, 30% { opacity: 0; transform: scale(.9); } 36%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Sin movimiento: cada demo en su estado final, quieta y legible */
@media (prefers-reduced-motion: reduce) {
  .db-yo, .db-otro, .dc-aviso, .dw-cab, .dw-globo, .d-man em:last-child { opacity: 1 !important; }
  .d-man em:first-child, .dw-escribe, .di-es { opacity: 0 !important; }
  .dr-est b { color: var(--oro); }
}

/* ---------- 10. Cómo se construye: el corte del patio ---------- */
.obra { position: relative; z-index: 1; height: 380vh; }
.obra::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 78% 30%, rgba(47,168,98,.2), transparent 70%),
    radial-gradient(50% 30% at 10% 80%, rgba(47,168,98,.1), transparent 70%);
}
.obra-fija {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; align-items: center; overflow: hidden;
}
.obra-rejilla {
  display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.obra-txt .t2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); max-width: 19ch; }
.obra-sub { margin: .9rem 0 0; color: var(--fg-3); font-size: .9375rem; }

.capas-lista { list-style: none; margin: clamp(1.4rem, 3vh, 2.2rem) 0 0; padding: 0; }
.capas-lista li { border-top: 1px solid var(--linea); padding: .78rem 0; transition: opacity .4s var(--suave); }
.capas-lista li:last-child { border-bottom: 1px solid var(--linea); }
.capas-lista h3 {
  margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em;
}
.capas-lista h3 em { font-style: normal; font-weight: 400; color: var(--fg-3); font-size: .9375rem; }
.capa-n {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none;
  border-radius: 50%; box-shadow: 0 0 0 1px var(--linea-2) inset;
  font-size: .75rem; color: var(--fg-3); font-variant-numeric: tabular-nums;
  transition: background .4s var(--sale), color .4s var(--sale);
  transform: translateY(-1px);
}
/* La descripción se abre con grid-rows: no mide alturas ni empuja a saltos */
.capa-cuerpo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--sale); }
.capa-cuerpo > p { overflow: hidden; min-height: 0; margin: 0; color: var(--fg-2); font-size: .9375rem; line-height: 1.55; max-width: 44ch; }
.capas-lista li.activa .capa-cuerpo { grid-template-rows: 1fr; }
.capas-lista li.activa .capa-cuerpo > p { padding: .45rem 0 .2rem 2.2rem; }
.capas-lista li.activa .capa-n { background: var(--verde-alto); color: var(--verde-tinta); box-shadow: none; }
.obra.abierta .capas-lista li:not(.activa) { opacity: .5; }

.obra-3d {
  position: relative; width: 100%; aspect-ratio: 1; max-height: 88svh; justify-self: center;
  opacity: 0; transition: opacity 1.2s var(--suave);
}
.obra-3d.lista { opacity: 1; }
.obra-3d.fallo { display: none; }

@media (max-width: 860px) {
  .obra { height: 420vh; }
  .obra-fija { align-items: start; padding-top: 5rem; }
  .obra-rejilla { grid-template-columns: 1fr; gap: 0; }
  .obra-txt .t2 { font-size: 1.45rem; max-width: none; }
  .obra-sub { display: none; }
  .capas-lista { margin-top: 1rem; min-height: 7.6rem; }
  /* En el celular solo se lee la capa activa; el resto sigue para lectores de pantalla */
  .capas-lista li:not(.activa) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0;
  }
  .capas-lista li.activa { border: 0; padding: 0; }
  .obra-3d { height: 56svh; aspect-ratio: auto; max-height: none; }
}

/* ---------- 11. La muestra: el celular ---------- */
.muestra-rejilla {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr minmax(280px, 400px); align-items: center;
}
@media (max-width: 900px) {
  .muestra-rejilla { grid-template-columns: 1fr; }
  .celu-zona { order: -1; }
}
.llamadas { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; }
.llamadas li { display: grid; gap: .2rem; padding: 1rem 0; border-top: 1px solid var(--linea); }
.llamadas li:last-child { border-bottom: 1px solid var(--linea); }
.llamadas b { font-weight: 600; font-size: 1rem; letter-spacing: -.016em; }
.llamadas span { color: var(--fg-2); font-size: .9375rem; }

.celu-zona { perspective: 1400px; display: flex; justify-content: center; }
.celu {
  position: relative; width: 100%; max-width: 352px;
  transform:
    rotateY(calc(-11deg + var(--mx, 0) * 5deg))
    rotateX(calc(4deg + var(--my, 0) * -4deg))
    translateY(calc(var(--p, 0) * -22px));
  transform-style: preserve-3d;
  transition: transform .6s var(--sale);
  will-change: transform;
}
@media (max-width: 900px) { .celu { transform: none; max-width: 252px; } }
.celu-cuerpo {
  position: relative; border-radius: 42px; padding: 11px;
  background: linear-gradient(150deg, #3b4640, #161f1b 38%, #0b130f);
  box-shadow: 0 0 0 1px rgba(239,235,225,.16) inset, 0 50px 80px -34px rgba(12,34,22,.75);
}
.celu-auricular { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 58px; height: 5px; border-radius: 3px; background: rgba(4,10,7,.9); z-index: 3; }
.celu-pantalla { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 390 / 800; background: #0A1C14; color: #EFEBE1; }
.celu-brillo {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: 42px;
  background: linear-gradient(142deg, rgba(255,255,255,.16) 0 16%, rgba(255,255,255,0) 34%);
  mix-blend-mode: screen;
}
.celu-sombra {
  position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; border-radius: 50%; z-index: -1;
  background: radial-gradient(ellipse, rgba(12,34,22,.55), transparent 70%); filter: blur(14px);
}

.mini { position: absolute; inset: 0; overflow: hidden; }
.mini-rollo { position: absolute; top: 0; left: 0; right: 0; transform: translateY(calc(var(--p, 0) * -19%)); will-change: transform; }
.mini-barra { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.mini-logo { display: block; width: 54px; height: 9px; border-radius: 3px; background: #B9C6BC; }
.mini-chip { padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(239,235,225,.3); color: #B9C6BC; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.mini-hero {
  position: relative; margin: 0 10px; padding: 46px 14px 16px; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(to top, rgba(6,18,13,.96) 8%, rgba(6,18,13,.55) 58%, rgba(6,18,13,.15)),
    url("./fotos/piscina-casa.webp") center / cover;
}
.mini-k { margin: 0 0 7px; color: var(--verde-alto); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.mini-h { margin: 0 0 9px; font-size: 15px; font-weight: 600; line-height: 1.14; letter-spacing: -.028em; }
.mini-est { margin: 0 0 13px; font-size: 8px; color: #D5DDD6; display: flex; gap: 5px; align-items: center; }
.mini-est b { color: var(--oro); letter-spacing: -1px; font-size: 9px; }
.mini-acc { display: flex; gap: 6px; }
.mini-b { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 9px; font-weight: 600; box-shadow: 0 0 0 1px rgba(239,235,225,.3) inset; }
.mini-b-llena { background: var(--verde); color: var(--verde-tinta); box-shadow: none; }
.mini-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 10px 0; }
.mf { display: block; height: 56px; border-radius: 9px; background-size: cover; background-position: center; }
.mf-1 { background-image: url("./fotos/obra-adoquin.webp"); }
.mf-2 { background-image: url("./fotos/jardin-sendero.webp"); }
.mf-3 { background-image: url("./fotos/escalones-piedra.webp"); }
.mf-4 { background-image: url("./fotos/casa-frente.webp"); }
.mini-serv { margin: 14px 10px 0; display: grid; gap: 6px; }
.mini-serv p { margin: 0 0 2px; font-size: 9px; font-weight: 600; }
.mini-serv span { display: block; height: 7px; border-radius: 4px; background: rgba(239,235,225,.12); }
.mini-serv span:nth-child(3) { width: 72%; }
.mini-serv span:nth-child(4) { width: 55%; }
.mini-pie { margin: 16px 10px 90px; display: grid; gap: 5px; }
.mini-pie span { display: block; height: 6px; border-radius: 3px; background: rgba(239,235,225,.08); }
.mini-pie span:last-child { width: 44%; }
.mini-accion {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2;
  display: flex; gap: 6px; padding: 7px; border-radius: 14px;
  background: rgba(8,24,17,.74);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(239,235,225,.14) inset, 0 -8px 24px -10px rgba(2,8,5,.9);
}
.mini-ab { flex: 1; text-align: center; padding: 9px 0; border-radius: 9px; font-size: 9px; font-weight: 600; box-shadow: 0 0 0 1px rgba(239,235,225,.24) inset; }
.mini-ab-llena { background: var(--verde); color: var(--verde-tinta); box-shadow: none; }

/* ---------- 12. Pasos ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(.75rem, 1.4vw, 1.1rem); }
.paso {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start;
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--borde-r);
  background: var(--sup);
  box-shadow: 0 0 0 1px var(--linea) inset, var(--sombra);
  transition: box-shadow .4s var(--sale), transform .4s var(--sale);
}
.paso:hover { box-shadow: 0 0 0 1px var(--linea-2) inset, var(--sombra); transform: translateY(-2px); }
.paso-n {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 11px;
  background: linear-gradient(150deg, var(--verde-alto), var(--verde));
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 6px 0 var(--verde-bajo), 0 16px 22px -8px rgba(22,72,44,.55);
  color: var(--verde-tinta); font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: transform .9s cubic-bezier(.3, 1.5, .5, 1), box-shadow .6s var(--sale);
}
.paso:hover .paso-n { transform: translateY(4px); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 2px 0 var(--verde-bajo), 0 8px 12px -6px rgba(22,72,44,.5); }
.paso h3 { margin: .25rem 0 .5rem; font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.026em; line-height: 1.2; }
.paso p { margin: 0; color: var(--fg-2); max-width: 58ch; }

/* ---------- 14. Preguntas ---------- */
.qa { margin: 0; display: grid; }
.qa-par {
  display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.4rem, 2.6vw, 2rem) 0; border-top: 1px solid var(--linea);
}
.qa-par:last-child { border-bottom: 1px solid var(--linea); }
.qa dt { margin: 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: -.024em; line-height: 1.26; }
.qa dd { margin: 0; color: var(--fg-2); max-width: 60ch; }
@media (max-width: 760px) { .qa-par { grid-template-columns: 1fr; gap: .55rem; } }

/* ---------- 15. Contacto ---------- */
.seccion-contacto::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 88% 100%, rgba(47,168,98,.26), transparent 62%),
    radial-gradient(40% 40% at 0% 0%, rgba(47,168,98,.12), transparent 70%);
}
.contacto-rejilla { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: 1fr minmax(300px, 30rem); align-items: start; }
@media (max-width: 900px) { .contacto-rejilla { grid-template-columns: 1fr; } }

.wa {
  display: flex; align-items: center; gap: 1rem; max-width: 24rem;
  margin-top: 2.2rem; padding: 1.15rem 1.5rem; border-radius: 999px; text-decoration: none;
  background: linear-gradient(170deg, var(--verde-alto), var(--verde) 55%, #259455);
  color: var(--verde-tinta);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 44px -18px rgba(47,168,98,.9);
  transition: transform .14s var(--sale), box-shadow .4s var(--sale);
}
.wa:active { transform: scale(.985); }
.wa:hover { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 26px 56px -18px rgba(47,168,98,1); }
.wa-ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(3,23,12,.14); flex: none; }
.wa-txt { display: grid; gap: .1rem; }
.wa-txt b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.016em; }
.wa-txt i { font-style: normal; font-size: .9375rem; opacity: .82; font-variant-numeric: tabular-nums; }
.wa-fl {
  margin-left: auto; width: 20px; height: 8px; flex: none; background: currentColor;
  clip-path: polygon(0 3px, 12px 3px, 9px 0, 20px 4px, 9px 8px, 12px 5px, 0 5px);
  transition: transform .35s var(--sale);
}
.wa:hover .wa-fl { transform: translateX(4px); }
.contacto-nota { margin: 1.1rem 0 0; color: var(--fg-3); font-size: .875rem; }

.forma {
  display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--borde-r);
  background: linear-gradient(165deg, var(--sup), var(--sup-2));
  box-shadow: 0 0 0 1px var(--linea) inset, var(--sombra);
}
.forma-t { margin: 0 0 .2rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.campo { display: grid; gap: .35rem; }
.campo-fila { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .campo-fila { grid-template-columns: 1fr; } }
.campo label { font-size: .8125rem; font-weight: 500; color: var(--fg-2); }
.campo .opt { color: var(--fg-3); font-weight: 400; }
.campo input, .campo select {
  width: 100%; padding: .8rem .9rem;
  border: 1px solid var(--linea-2); border-radius: var(--borde-r-i);
  background: var(--campo); color: var(--fg);
  font: 400 1rem/1.3 "Instrument Sans", sans-serif;
  transition: border-color .25s var(--suave), background .25s var(--suave);
}
.campo input::placeholder { color: #85958A; }
.campo input:hover, .campo select:hover { border-color: rgba(239,235,225,.42); }
.campo input:focus, .campo select:focus { border-color: var(--verde-alto); }
.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B9C6BC' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem;
}
.campo input[aria-invalid="true"],
.campo input[aria-invalid="true"]:focus { border-color: #F07A66; background: rgba(240,122,102,.08); }
.err { margin: 0; display: flex; gap: .4rem; color: #F7A898; font-size: .8125rem; }
.err::before { content: "!"; font-weight: 700; }
.err[hidden] { display: none; }
.forma-pie { margin: 0; color: var(--fg-3); font-size: .8125rem; line-height: 1.5; }
.forma-estado { margin: 0; color: var(--verde-alto); font-size: .875rem; min-height: 1.2em; }

/* ---------- 16. Pie ---------- */
.pie { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; background: var(--bosque-4); border-top: 1px solid var(--linea); }
.pie-rejilla { display: grid; gap: 2rem; grid-template-columns: 1fr auto; align-items: start; }
@media (max-width: 760px) { .pie-rejilla { grid-template-columns: 1fr; } }
.pie-nota { margin: .9rem 0 0; color: var(--fg-2); font-size: .9375rem; max-width: 34ch; }
.pie-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9375rem; color: var(--fg-2); }
.pie-nav a { text-decoration: none; transition: color .25s var(--suave); }
.pie-nav a:hover { color: var(--verde-alto); }
.pie-copy {
  grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between;
  color: var(--fg-3); font-size: .8125rem; font-variant-numeric: tabular-nums;
}

/* ---------- 16b. Vidrio líquido ---------- */
/* Relleno casi invisible, desenfoque de lo que hay detrás y un filo de luz
   que es un degradado recortado con máscara: brilla arriba y abajo, se
   apaga a los lados. Solo vive sobre fondos oscuros o sobre imagen. */
.vidrio, .vidrio-fuerte {
  position: relative; overflow: hidden;
  background: var(--vidrio-fondo, rgba(255,255,255,.01));
  background-blend-mode: luminosity;
}
.vidrio {
  -webkit-backdrop-filter: blur(var(--vidrio-blur, 4px)); backdrop-filter: blur(var(--vidrio-blur, 4px));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
}
.vidrio-fuerte {
  -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px);
  box-shadow: 4px 4px 4px rgba(0,0,0,.05), inset 0 1px 1px rgba(255,255,255,.15);
}
.vidrio::before, .vidrio-fuerte::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 20%, rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.vidrio-fuerte::before {
  background: linear-gradient(180deg,
    rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 20%, rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%, rgba(255,255,255,.2) 80%, rgba(255,255,255,.5) 100%);
}

/* ---------- 16c. Portada: datos en vidrio y la fila de oficios ---------- */
.hero-obj { position: relative; }

.hero-fondo { position: absolute; left: 0; right: 0; bottom: 1.5rem; display: grid; justify-items: center; gap: .9rem; }
.sello { margin: 0; padding: .5rem 1rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; --vidrio-fondo: rgba(6,18,13,.3); --vidrio-blur: 10px; }
.hero-oficios {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem clamp(1.6rem, 4vw, 3.6rem);
  font: italic 400 clamp(1.5rem, 2.3vw, 2rem)/1.1 "Instrument Serif", Georgia, serif; letter-spacing: -.02em;
  color: rgba(243,239,230,.95); text-shadow: 0 2px 18px rgba(2,8,5,.7);
}
@media (max-width: 900px) { .hero-fondo { display: none; } }
/* En pantallas bajas la fila de oficios no cabe con el resto: se guarda */
@media (max-height: 920px) { .hero-fondo { display: none; } .hero-fija { padding-bottom: 3rem; } }

/* ---------- 16d. Videos de fondo ---------- */
/* Entran fundidos, se funden antes de terminar y vuelven a empezar. Los
   renders vienen sobre negro: con 'screen' el negro desaparece y el objeto
   queda flotando sobre el fondo de la sección. */
.video-fondo {
  position: absolute; z-index: -1; object-fit: cover; pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .55s linear;
}
.video-fondo.viva { opacity: 1; }

/* ---------- 16e. Un solo oficio: la sección de cine ---------- */
.cine {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  background: var(--bosque) radial-gradient(70% 60% at 68% 46%, #15372A, var(--bosque) 70%);
}
/* La roca queda a la derecha del centro: el texto respira a la izquierda */
.cine-video { top: -4%; left: 9%; width: 124%; height: 100%; }
.cine-cuerpo {
  position: relative; display: flex; flex-direction: column;
  min-height: 100svh; padding-block: 7.5rem 5rem; justify-content: center;
}
.cine-cabeza { max-width: 33rem; }
.cine-t {
  margin: 1.1rem 0 0;
  font: italic 400 clamp(3.1rem, 7.4vw, 6rem)/.9 "Instrument Serif", Georgia, serif;
  letter-spacing: -.035em;
}
.cine-sub { margin: 1.5rem 0 0; max-width: 41ch; color: var(--fg-2); font-size: 1rem; line-height: 1.58; }
.cine-sub span:nth-child(2) { color: var(--fg); }

@media (max-width: 860px) {
  /* En el celular la roca entra en el flujo, debajo del texto */
  .cine-video { position: relative; top: auto; left: auto; width: 150%; height: auto; aspect-ratio: 16 / 10; margin: -1rem -25% -2rem; }
  .cine-cuerpo { padding-block: 6rem 2rem; justify-content: flex-start; min-height: 0; }
}

/* ---------- 16f. Contacto: la esfera sobre el musgo, al pie ---------- */
.seccion-contacto { overflow: hidden; isolation: isolate; padding-bottom: calc(var(--ritmo) * .6 + 24vw); }
.contacto-video {
  left: 0; bottom: -7vw; width: 100%; height: auto; aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 34%, #000 60%);
  mask-image: linear-gradient(to bottom, transparent 34%, #000 60%);
}
@media (max-width: 860px) {
  .seccion-contacto { padding-bottom: calc(var(--ritmo) * .6 + 46vw); }
  .contacto-video { left: -40%; width: 180%; bottom: -12vw; }
}

/* ---------- 17. Entradas ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-rev] { opacity: 0; filter: blur(8px); transform: translate3d(0, 22px, 0); transition: opacity .8s var(--sale), filter .8s var(--sale), transform .8s var(--sale); }
  [data-rev].dentro { opacity: 1; filter: none; transform: none; }
  /* La fila de oficios entra sola al cargar, la última de la portada */
  .hero-fondo { animation: llega .9s var(--sale) 1.3s both; }
  @keyframes llega { from { opacity: 0; filter: blur(10px); transform: translateY(20px); } to { opacity: 1; filter: none; transform: none; } }
  /* Palabra por palabra, saliendo del desenfoque */
  .pal {
    display: inline-block; opacity: 0; filter: blur(10px); transform: translate3d(0, 40px, 0);
    transition: opacity .7s var(--sale), filter .7s var(--sale), transform .7s var(--sale);
    transition-delay: calc(120ms + var(--n) * 90ms);
  }
  [data-blur].dentro .pal { opacity: 1; filter: none; transform: none; }

  .tarj { transition: box-shadow .4s var(--sale), transform .6s var(--sale), opacity .7s var(--sale); }
  .paso[data-rev]:not(.dentro) .paso-n { transform: translateY(-26px) rotate(-8deg); }
}

/* ---------- 18. Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-foto img, .celu, .mini-rollo { transform: none !important; }
  .video-fondo { display: none; }
  /* Sin recorrido fijo: la portada se lee de corrido y el terreno ya está limpio */
  .hero { height: auto; }
  .hero-fija { position: relative; height: auto; min-height: 100svh; }
  .escena-pista { height: auto; }
  .escena3d { position: relative; top: auto; }
  /* Sin recorrido fijo: el corte se muestra ya abierto y todo el texto a la vista */
  .obra { height: auto; padding-block: var(--ritmo); }
  .obra-fija { position: static; height: auto; overflow: visible; padding-top: 0; }
  .obra { --e: 1; --r: .35; }
  .obra-sub { display: none; }      /* no hay nada que desarmar bajando */
  .capa-cuerpo { grid-template-rows: 1fr; }
  .capa-cuerpo > p { padding: .45rem 0 .2rem 2.2rem; }
  .capas-lista li:not(.activa) { position: static; width: auto; height: auto; clip-path: none; white-space: normal; border-top: 1px solid var(--linea); padding: .78rem 0; }
  /* Las filas dejan de moverse solas y pasan a deslizarse con el dedo */
  .filas { overflow-x: auto; padding-bottom: .5rem; }
  .fila { transform: none !important; padding-inline: clamp(1.25rem, 5vw, 3rem); }
}

@media (prefers-reduced-transparency: reduce) {
  .barra.pegada, .mini-accion, .oficio figcaption, .vidrio, .vidrio-fuerte {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bosque-3);
  }
}

@media (prefers-contrast: more) {
  .oscuro { --linea: rgba(239,235,225,.36); --linea-2: rgba(239,235,225,.55); --fg-2: #DCE4DD; --fg-3: #C2CDC4; }
  .claro { --linea: rgba(18,32,25,.4); --linea-2: rgba(18,32,25,.6); --fg-2: #25332B; --fg-3: #36453C; }
  .grano { display: none; }
  .hero-velo { background: rgba(6,18,13,.9); }
}

@media print {
  .grano, .barra, .escena3d, .obra-3d, .celu-zona, .filas, .video-fondo { display: none !important; }
  .obra { height: auto; } .obra-fija { position: static; height: auto; }
  body, .oscuro, .claro { background: #fff !important; color: #111 !important; }
}

/* El número de llamadas: enlace discreto, subrayado fino */
.tel { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.tel:hover { color: var(--verde-alto); }
.claro .tel:hover { color: var(--verde-texto); }
