/* Rayen Construcciones
   Identidad: verde y naranja del logo, tipografía Montserrat (titulares, como el catálogo) + Manrope (texto).
   Radios: tarjetas e imágenes 14px, botones y campos 10px, chips 999px. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 500 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-italic.woff2") format("woff2"); font-weight: 600 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f5f7f2;
  --bg-2: #eaefe4;
  --surface: #fcfdfb;
  --ink: #10210f;
  --muted: #4c5a4a;
  --line: #d7dfd0;
  --green: #14761e;        /* verde Rayen legible sobre claro */
  --green-logo: #00b400;   /* verde del logo, solo decorativo */
  --forest: #0f3d14;
  --on-forest: #f1f6ec;
  --on-forest-muted: #b9cbb4;
  --orange: #f26a0a;       /* acento único: llamadas a la acción */
  --orange-ink: #1b1002;
  --orange-text: #b84a05;  /* naranja legible como texto sobre claro */
  --shadow: 0 18px 40px -22px rgba(16, 61, 20, .45);
  --font-d: "Montserrat", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --r-card: 14px;
  --r-btn: 10px;
  --r-ctl: 10px;
  --nav-h: 68px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* capas */
  --z-nav: 50; --z-float: 60; --z-modal: 100;
  --danger: #c22a1c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b170c;
    --bg-2: #10200f;
    --surface: #142716;
    --ink: #edf3e8;
    --muted: #a7b7a3;
    --line: #25402a;
    --green: #62d26b;
    --forest: #08240c;
    --orange-text: #ff9a4d;
    --danger: #ff8b7e;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b170c;
  --bg-2: #10200f;
  --surface: #142716;
  --ink: #edf3e8;
  --muted: #a7b7a3;
  --line: #25402a;
  --green: #62d26b;
  --forest: #08240c;
  --orange-text: #ff9a4d;
  --danger: #ff8b7e;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-b); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-d); margin: 0; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--green); padding-bottom: .06em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tint { background: var(--bg-2); }
.lead { color: var(--muted); max-width: 62ch; margin-top: 1rem; }
.eyebrow { font-family: var(--font-d); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 1rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .7rem 1.35rem; border-radius: var(--r-btn); border: 2px solid transparent; font-family: var(--font-d); font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--orange); color: var(--orange-ink); box-shadow: 0 10px 24px -14px var(--orange); }
.btn--primary:hover { background: color-mix(in srgb, var(--orange) 86%, white); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 42px; padding: .45rem 1rem; font-size: .92rem; }
.btn--light { border-color: var(--on-forest); color: var(--on-forest); background: transparent; }
.btn--light:hover { background: var(--on-forest); color: var(--forest); }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link:hover i { transform: translateX(3px); }
.link i { transition: transform .25s var(--ease); }

/* Navegación */
.nav { position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 0 0 2px var(--green-logo), 0 0 0 4px var(--orange); }
.brand span { font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-b); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: .75rem; }
.theme { width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); font-size: 1.25rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme:hover { border-color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); font-size: 1.4rem; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .brand span { display: none; } .nav__right { gap: .5rem; } .nav__right .btn { padding-inline: .8rem; } }

/* Hero */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-top: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__media { position: relative; padding-left: 14%; padding-bottom: 9%; }
.hero__media img { border-radius: var(--r-card); object-fit: cover; }
.hero__main { width: 100%; height: min(70dvh, 620px); box-shadow: var(--shadow); }
.hero__side { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 5; border: 6px solid var(--bg); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__main { height: 62vw; max-height: 460px; }
  .hero__media { padding-left: 0; padding-bottom: 0; }
  .hero__side { display: none; }
}

/* Franja de garantías */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; align-items: center; gap: .85rem; padding: 1.4rem 1.25rem; font-weight: 600; line-height: 1.3; font-size: .98rem; }
.facts li + li { border-left: 1px solid var(--line); }
.facts i { font-size: 1.7rem; color: var(--green); flex: none; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } .facts li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* Servicios */
.services { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem; margin-top: 2.75rem; }
.svc-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.svc-main img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.svc-main__body { padding: 1.75rem; }
.svc-main__body p { color: var(--muted); margin-top: .6rem; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.chips li { padding: .35rem .85rem; border-radius: 999px; background: var(--bg-2); font-size: .88rem; font-weight: 600; }
.svc-side { display: grid; gap: 1.25rem; }
.svc { border-radius: var(--r-card); padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; }
.svc i { font-size: 2rem; margin-bottom: auto; }
.svc p { margin-top: .5rem; font-size: .98rem; }
.svc--forest { background: var(--forest); color: var(--on-forest); }
.svc--forest i { color: var(--orange); }
.svc--forest p { color: var(--on-forest-muted); }
.svc--line { border: 1px solid var(--line); background: var(--surface); }
.svc--line i { color: var(--green); }
.svc--line p { color: var(--muted); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* Familias de diseños */
.fam { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; margin-top: 2.75rem; }
.fam a { text-decoration: none; display: block; }
.fam a:nth-child(1) { grid-column: span 7; }
.fam a:nth-child(2) { grid-column: span 5; }
.fam a:nth-child(n+3) { grid-column: span 4; }
.fam figure { margin: 0; }
.fam__img { overflow: hidden; border-radius: var(--r-card); }
.fam img { width: 100%; height: 300px; object-fit: cover; transition: transform .7s var(--ease); }
.fam a:nth-child(n+3) img { height: 240px; }
.fam a:hover img { transform: scale(1.045); }
.fam figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem .15rem 0; }
.fam figcaption strong { font-family: var(--font-d); font-weight: 700; font-size: 1.1rem; }
.fam figcaption span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.after-grid { margin-top: 2.25rem; }
@media (max-width: 860px) { .fam a:nth-child(n) { grid-column: span 6; } .fam a:nth-child(1) { grid-column: span 12; } .fam img, .fam a:nth-child(n+3) img { height: 220px; } }
@media (max-width: 520px) { .fam a:nth-child(n) { grid-column: span 12; } }

/* Carrusel de diseños premium */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.rail-ctl { display: flex; gap: .5rem; flex: none; }
.rail-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.2rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.rail-ctl button:hover { background: var(--ink); color: var(--bg); }
.rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 2.5rem; padding-bottom: .5rem; padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--line); }
.rail figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; font-family: var(--font-d); font-weight: 700; }
.rail figcaption span { font-family: var(--font-b); font-weight: 500; color: var(--muted); white-space: nowrap; }

/* Carta de colores */
.colors { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: 2.75rem; }
.swatch-view { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); isolation: isolate; }
.swatch-view img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.3); }
.swatch-view__tint { position: absolute; inset: 0; mix-blend-mode: multiply; background: var(--c, #9b6d4a); transition: background-color .45s var(--ease); }
.swatch-name { margin-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.swatch-name strong { font-family: var(--font-d); font-size: 1.4rem; font-weight: 800; }
.swatch-name span { color: var(--muted); font-size: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.swatches button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.swatches b { display: block; aspect-ratio: 1; border-radius: var(--r-card); background: var(--c); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.swatches button:hover b { transform: translateY(-3px); }
.swatches button[aria-pressed="true"] b { outline: 3px solid var(--orange); outline-offset: 3px; }
.swatches small { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; max-width: 60ch; }
@media (max-width: 860px) { .colors { grid-template-columns: 1fr; } .swatch-view { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(4, 1fr); } }

/* Proceso */
.process { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.process__intro .btn { margin-top: 1.75rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; padding-block: 1.75rem; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { content: counter(paso); font-family: var(--font-d); font-weight: 800; font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--orange-text); }
.steps p { color: var(--muted); margin-top: .4rem; max-width: 52ch; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process__intro { position: static; } }

/* Galería de obras */
.gallery { columns: 3; column-gap: 1.25rem; margin-top: 2.75rem; }
.gallery button { display: block; width: 100%; margin: 0 0 1.25rem; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-card); overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { column-gap: .75rem; } .gallery button { margin-bottom: .75rem; } }

/* Preguntas */
.faq { max-width: 820px; margin-top: 2.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--font-d); font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; color: var(--green); transition: transform .35s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq p { color: var(--muted); padding-bottom: 1.4rem; max-width: 66ch; }

/* Cotizar */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .25rem; }
.contact a { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact i { font-size: 1.6rem; color: var(--green); flex: none; }
.contact span { display: block; font-size: .85rem; color: var(--muted); }
.contact strong { font-family: var(--font-d); font-weight: 700; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: var(--r-ctl); border: 1.5px solid color-mix(in srgb, var(--ink) 32%, transparent); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); border-color: var(--orange); }
.field small { color: var(--muted); font-size: .83rem; }
.field .err { color: var(--danger); font-size: .85rem; font-weight: 600; display: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
.form .btn { grid-column: 1 / -1; }
.form__ok { grid-column: 1 / -1; display: none; padding: .9rem 1rem; border-radius: var(--r-ctl); background: var(--bg-2); font-weight: 600; }
.form__ok.is-on { display: block; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Pie */
.footer { background: var(--forest); color: var(--on-forest); padding-block: 3.5rem 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer .brand span { color: var(--on-forest); }
.footer .brand small { color: var(--on-forest-muted); }
.footer p { color: var(--on-forest-muted); margin-top: 1rem; max-width: 38ch; }
.footer h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-forest-muted); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer .footer__bottom { max-width: none; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--on-forest) 18%, transparent); font-size: .88rem; color: var(--on-forest-muted); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: var(--z-float); width: 60px; height: 60px; border-radius: 50%; background: #0f7f3b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); transition: transform .3s var(--ease); }
.wa:hover { transform: translateY(-3px) scale(1.04); }

/* Visor de imágenes */
.lb { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(6, 14, 7, .92); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lb.is-open { display: flex; }
.lb img { max-width: min(100%, 1100px); max-height: calc(100dvh - 2rem); border-radius: var(--r-card); object-fit: contain; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.4rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb__close { top: 1rem; right: 1rem; }
.lb__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb__next { right: 1rem; top: 50%; translate: 0 -50%; }

/* Aparición al hacer scroll: jerarquía de lectura, nada más */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Página de catálogo */
.cat-head { padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.cat-head h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.cat-tools { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search i { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; font-size: 1.2rem; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 50px; padding: .7rem .9rem .7rem 2.7rem; border-radius: var(--r-ctl); border: 1.5px solid color-mix(in srgb, var(--ink) 32%, transparent); background: var(--surface); color: var(--ink); font: inherit; }
.search input:focus { outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); border-color: var(--orange); }
.tabs { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.tabs ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.tabs a:hover, .tabs a.is-on { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.family { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 70px); }
.family__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.family__head span { color: var(--muted); font-weight: 600; }
.family__body { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1.75rem; align-items: start; }
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; position: sticky; top: calc(var(--nav-h) + 80px); }
.pages button { padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.pages button:only-child { grid-column: 1 / -1; }
.pages img { width: 100%; transition: transform .6s var(--ease); }
.pages button:hover img { transform: scale(1.04); }
.molds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .75rem; }
.mold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.1rem; display: grid; gap: .15rem; transition: border-color .2s, transform .3s var(--ease); }
.mold:hover { border-color: var(--green); transform: translateY(-2px); }
.mold strong { font-family: var(--font-d); font-weight: 700; line-height: 1.25; }
.mold span { color: var(--muted); font-size: .9rem; min-height: 1.45em; }
.mold__act { display: flex; gap: 1rem; margin-top: .6rem; font-size: .88rem; font-weight: 700; }
.mold__act button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.mold__act a { color: var(--orange-text); text-underline-offset: 3px; }
.empty { display: none; padding: 4rem 0; text-align: center; }
.empty.is-on { display: block; }
.empty i { font-size: 2.6rem; color: var(--muted); }
.empty p { color: var(--muted); margin-top: .5rem; }
.cta-band { background: var(--forest); color: var(--on-forest); border-radius: var(--r-card); padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--on-forest-muted); margin-top: .5rem; max-width: 52ch; }
@media (max-width: 760px) { .molds { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .mold { padding: .85rem .9rem; } .family__body { grid-template-columns: 1fr; } .pages { position: static; grid-template-columns: repeat(3, 1fr); } .pages button:only-child { grid-column: auto; } }

/* Conversión: formulario por pasos, llamadas contextuales y barra fija en móvil */
.row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn--wa { background: #0f7f3b; color: #fff; }
.btn--wa:hover { background: #0c6a31; }
button.link { background: none; border: 0; border-bottom: 2px solid currentColor; padding: 0 0 2px; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; margin-top: .6rem; }
.next { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.next li { display: flex; gap: 1rem; align-items: flex-start; }
.next i { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--green); }
.next strong { display: block; font-family: var(--font-d); font-weight: 700; }
.next span { color: var(--muted); font-size: .95rem; }
.direct { margin-top: 2rem; color: var(--muted); }
.direct a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.form.stepper { display: block; }
.stepper__top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.stepper__back { border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; padding: .2rem 0; }
.stepper__back:hover { color: var(--ink); }
.stepper__bar { height: 4px; border-radius: 999px; background: var(--line); margin: .6rem 0 1.5rem; overflow: hidden; }
.stepper__bar i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(.333); transition: transform .5s var(--ease); }
.stepper fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.stepper legend { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; line-height: 1.2; padding: 0; margin-bottom: 1.1rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.25rem; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; min-height: 52px; padding: .6rem 1rem; border-radius: var(--r-btn); border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--bg); font-weight: 600; line-height: 1.2; transition: border-color .2s, background-color .2s, color .2s; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.stepper .btn { width: 100%; }
.resumen { color: var(--muted); font-size: .92rem; margin: -.5rem 0 1.1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.extra { margin: 1.1rem 0 1.25rem; border-top: 1px solid var(--line); }
.extra summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; font-weight: 700; font-size: .95rem; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary i { transition: transform .3s var(--ease); }
.extra[open] summary i { transform: rotate(180deg); }
.extra .fields { padding-bottom: .25rem; }
.form__ok { margin-top: 1rem; }
@media (max-width: 480px) { .fields { grid-template-columns: 1fr; } }
.lb__cta { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.quotes figure { margin: 0; padding: 1.75rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.quotes blockquote { margin: 0; font-size: 1.05rem; }
.quotes figcaption { margin-top: 1rem; font-size: .9rem; }
.quotes figcaption span { display: block; color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.cbar { display: none; }
@media (max-width: 760px) {
  .wa { display: none; }
  body { padding-bottom: 76px; }
  .cbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float); display: grid; grid-template-columns: 1fr 1.25fr; gap: .6rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: transform .4s var(--ease); }
  .cbar.is-off { transform: translateY(110%); }
  .cbar .btn { min-height: 48px; padding-inline: .6rem; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gracias { text-align: center; padding: 1.5rem 0 .5rem; outline: none; }
.gracias > i { font-size: 3.2rem; color: var(--green); }
.gracias h3 { font-size: 1.5rem; font-weight: 800; margin-top: .5rem; }
.gracias p { color: var(--muted); margin: .6rem auto 1.5rem; max-width: 42ch; }
.aviso { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .55rem 1rem; background: var(--forest); color: var(--on-forest); font-weight: 600; font-size: .92rem; text-decoration: none; text-align: center; }
.family__body--solo { grid-template-columns: 1fr; }
.brand img { object-fit: cover; background: #fff; }

/* Precio: qué lo hace variar */
.price { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.price__from { margin-top: 1.5rem; font-family: var(--font-d); font-size: 1.15rem; font-weight: 600; }
.price__from strong { font-size: 2.4rem; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.price__from small { display: block; font-family: var(--font-b); font-size: .88rem; font-weight: 500; color: var(--muted); }
.price__inc { margin: 1.25rem 0 1.75rem; padding-left: 1rem; border-left: 3px solid var(--orange); color: var(--muted); max-width: 52ch; }
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.factors li { padding: 1.5rem; display: grid; gap: .8rem; align-content: start; border-top: 1px solid var(--line); }
.factors li:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
.factors li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.factors i { font-size: 2rem; color: var(--green); }
.factors p { color: var(--muted); font-size: .97rem; margin-top: .3rem; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .factors { grid-template-columns: 1fr; } .factors li, .factors li:nth-child(odd) { padding: 1.25rem 0; border-right: 0; } .factors li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 1.25rem; } }
/* Comparación con otros pisos */
.cmp { margin-top: 2.5rem; overflow-x: auto; }
.cmp table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.cmp thead th { font-family: var(--font-d); font-weight: 800; font-size: 1.02rem; border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-family: var(--font-d); font-weight: 700; width: 17%; }
.cmp td { color: var(--muted); }
.cmp thead .cmp__us { background: var(--forest); color: var(--on-forest); border-radius: var(--r-card) var(--r-card) 0 0; border-bottom-color: var(--forest); }
.cmp tbody td:nth-child(2) { background: color-mix(in srgb, var(--green) 9%, transparent); color: var(--ink); font-weight: 600; }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: 0; }
/* Obras con descripción y zonas */
.gallery figure { margin: 0; }
.gallery .cap { display: block; padding: .6rem .2rem 0; text-align: left; font-size: .9rem; font-weight: 600; color: var(--muted); }
.zonas { margin-top: 1.5rem; color: var(--muted); display: flex; gap: .5rem; }
.zonas i { color: var(--green); font-size: 1.3rem; flex: none; }
.calc { margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: .5rem; max-width: 440px; }
.calc label { font-weight: 700; font-size: .95rem; }
.calc__row { display: flex; align-items: center; gap: .6rem; }
.calc__row input { width: 110px; min-height: 48px; padding: .5rem .7rem; border-radius: var(--r-ctl); border: 1.5px solid color-mix(in srgb, var(--ink) 32%, transparent); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; }
.calc__row span { color: var(--muted); }
.calc__row output { margin-left: auto; font-family: var(--font-d); font-weight: 800; font-size: 1.35rem; color: var(--green); white-space: nowrap; }
.calc small { color: var(--muted); font-size: .84rem; }
.facts a { color: inherit; text-underline-offset: 3px; }

/* Portada: el piso manda. En teléfono la foto va primero */
.hero__grid { grid-template-columns: 1fr 1.05fr; }
.hero__media { padding-left: 0; padding-bottom: 7%; }
.hero__main { height: min(64dvh, 560px); object-position: 50% 70%; }
.hero__side { left: -7%; width: 36%; }
.hero__start { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 540px; }
.hero__start > span { display: block; font-weight: 700; font-size: .92rem; color: var(--muted); margin-bottom: .65rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__chips button { min-height: 44px; padding: .45rem 1.05rem; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.hero__chips button:hover { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.hero__chips button:active { transform: translateY(1px); }
@media (max-width: 900px) {
  .hero { padding-top: 1rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__media { order: -1; padding-bottom: 0; }
  .hero__main { height: 58vw; max-height: 420px; }
}
@media (max-width: 520px) { .hero__cta .btn--ghost { display: none; } .hero__cta .btn { width: 100%; } .hero__sub { font-size: 1.05rem; margin-top: 1rem; } .hero__cta { margin-top: 1.4rem; } }
.nav__links a.is-on { color: var(--ink); box-shadow: 0 2px 0 var(--orange); }

/* Antes y después: el mismo espacio, deslizando */
.section { --sec: var(--bg); }
.section--tint { --sec: var(--bg-2); }
.ba-wrap { margin-top: 2.75rem; }
.ba__hint { color: var(--muted); font-size: .95rem; margin-top: .35rem; }
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.ba:has(figure:only-child) { max-width: 780px; }
.ba figure { margin: 0; }
.ba__view { --p: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--line); touch-action: pan-y; }
.ba__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__view .ba__antes { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__bar i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #10210f; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.ba__tag { position: absolute; top: .75rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(6, 14, 7, .72); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; }
.ba__tag--a { left: .75rem; }
.ba__tag--d { right: .75rem; }
.ba__view input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__view:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.ba figcaption { padding: .6rem .2rem 0; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* Carta de colores: la vista previa acompaña mientras se eligen tonos */
.colors { align-items: start; }
@media (max-width: 860px) {
  .colors > div:first-child { position: sticky; top: calc(var(--nav-h) + .4rem); z-index: 2; background: var(--sec); padding-block: .4rem .6rem; }
  .swatch-view { aspect-ratio: 16 / 9; box-shadow: none; }
  .swatch-name { margin-top: .55rem; }
  .swatch-name strong { font-size: 1.15rem; }
}

/* Comparación en teléfono: una tarjeta por criterio, sin desplazamiento lateral */
@media (max-width: 720px) {
  .cmp { overflow: visible; }
  .cmp table { min-width: 0; display: block; }
  .cmp thead { display: none; }
  .cmp tbody { display: grid; gap: 1rem; }
  .cmp tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
  .cmp tbody th { display: block; width: auto; padding: .85rem 1rem; font-size: 1.05rem; }
  .cmp td, .cmp tbody tr:last-child td { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .cmp td:last-child, .cmp tbody tr:last-child td:last-child { border-bottom: 0; }
  .cmp td::before { content: attr(data-l); display: block; font-family: var(--font-d); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
  .cmp tbody td:nth-child(2)::before { color: var(--green); }
}

/* Cotizar en teléfono: el formulario antes que la explicación */
@media (max-width: 860px) {
  .quote { gap: 0; }
  .quote > div:first-child { display: contents; }
  .quote > div:first-child > * { order: 4; }
  .quote > div:first-child > h2 { order: 1; }
  .quote > div:first-child > .lead { order: 2; margin-bottom: 1.5rem; }
  .quote > .form { order: 3; }
}

/* Proceso con fotos reales del equipo */
.steps li { grid-template-columns: 3.5rem 1fr 128px; align-items: center; }
.steps img { width: 128px; height: 128px; object-fit: cover; border-radius: var(--r-card); }
@media (max-width: 560px) { .steps li { grid-template-columns: 2.6rem 1fr 76px; gap: .9rem; align-items: start; } .steps img { width: 76px; height: 76px; } .steps li::before { font-size: 2.1rem; } }

/* Qué incluye la obra */
.inc { margin: 1.5rem 0 1.75rem; padding: 1.25rem 1.35rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); max-width: 560px; }
.inc h3 { font-size: 1.05rem; }
.inc ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.25rem; }
.inc li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.4; }
.inc li::before { content: ""; position: absolute; left: 0; top: .28em; width: .95rem; height: .5rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); rotate: -45deg; }
@media (max-width: 480px) { .inc ul { grid-template-columns: 1fr; } }

/* Video de obra */
.vid { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.vid video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); background: var(--forest); box-shadow: var(--shadow); }
.vid p { color: var(--muted); margin: .5rem 0 1.25rem; max-width: 44ch; }
@media (max-width: 640px) { .vid { grid-template-columns: 1fr; } .vid video { max-width: 320px; } }

/* Obras: fichas por proyecto, franja de antes y después con video, y galería pareja */
.projs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.75rem; }
.proj { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.proj__img { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.04); }
.proj__n { position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(6, 14, 7, .72); color: #fff; font-size: .82rem; font-weight: 700; }
.proj strong { display: block; margin-top: .9rem; font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.proj__spec { display: block; margin-top: .25rem; color: var(--muted); font-size: .95rem; }
.proj__spec b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .projs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(76vw, 320px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
  .projs::-webkit-scrollbar { display: none; }
  .proj { scroll-snap-align: start; }
}
.band { display: grid; grid-template-columns: 16fr 9fr; gap: 1.25rem; margin-top: 3.5rem; align-items: start; }
.band:has(> .ba-wrap[hidden]), .band:not(:has(> .vid)) { grid-template-columns: minmax(0, 720px); }
.band:has(> .ba-wrap[hidden]):not(:has(> .vid)) { display: none; }
.band:has(> .ba-wrap[hidden]) .vid { max-width: 340px; }
.band h3 { margin-bottom: .9rem; }
.ba-wrap, .vid { margin-top: 0; display: block; }
.ba { margin-top: 0; grid-template-columns: 1fr; }
.ba:has(figure:only-child) { max-width: none; }
.ba__hint, .vid p { color: var(--muted); font-size: .9rem; margin: .6rem .2rem 0; max-width: none; }
.vid p a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.vid video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); background: var(--forest); box-shadow: none; max-width: none; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; gap: 2.25rem; margin-top: 2.75rem; } .vid video { max-width: 300px; } }
.gal-t { margin-top: 3.5rem; }
.gallery { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.gallery button { margin: 0; border-radius: 0; overflow: visible; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-card); }
.gallery button:hover img { transform: none; filter: brightness(1.06); }
.gallery .cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: .45rem; font-size: .85rem; }
@media (max-width: 860px) { .gallery { columns: auto; grid-template-columns: repeat(2, 1fr); gap: .75rem; } .gallery button { margin: 0; } }

/* ============ Refinamiento visual (oct 2026): base neutra, tipografía más fina, menos adornos ============ */
:root { --bg: #f7f7f4; --bg-2: #eeefe9; --surface: #fdfdfb; --ink: #0e1a10; --muted: #51594f; --line: #dcdfd6; --shadow: 0 28px 56px -32px rgba(15, 45, 20, .38); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b170c; --bg-2: #10200f; --surface: #142716; --ink: #edf3e8; --muted: #a7b7a3; --line: #25402a; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8); } }
:root[data-theme="dark"] { --bg: #0b170c; --bg-2: #10200f; --surface: #142716; --ink: #edf3e8; --muted: #a7b7a3; --line: #25402a; --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8); }
body { font-size: 1.0625rem; line-height: 1.65; }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.3rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
h3 { letter-spacing: -.015em; }
.lead { font-size: 1.125rem; max-width: 58ch; margin-top: 1.1rem; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
/* Botones: sólidos, sin resplandor */
.btn { min-height: 52px; padding: .75rem 1.5rem; border-width: 1.5px; letter-spacing: -.005em; }
.btn--primary { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn--primary:hover { background: color-mix(in srgb, var(--orange) 90%, black); transform: translateY(-1px); }
.btn--ghost { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: .45rem 1.05rem; }
/* Navegación más liviana */
.nav { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.brand img { width: 44px; height: 44px; box-shadow: none; }
.theme, .nav__toggle { border-color: transparent; background: transparent; }
.theme:hover, .nav__toggle:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: transparent; }
/* Portada: una sola idea, la foto llega al borde */
.hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); overflow-x: clip; }
.hero__grid { grid-template-columns: 1.08fr 1fr; }
.hero__sub { font-size: 1.2rem; line-height: 1.55; max-width: 42ch; }
.hero__cta { align-items: center; gap: 1.5rem; margin-top: 2.25rem; }
.hero__link { color: var(--ink); border-bottom-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.hero__link:hover i { transform: translateY(3px); }
.hero__main { height: min(68dvh, 600px); }
.hero__side { width: 34%; left: -9%; border-width: 8px; border-radius: var(--r-card); }
@media (min-width: 1100px) {
  .hero__media { margin-right: calc((100vw - min(100vw - 2.5rem, var(--wrap))) / -2); }
  .hero__media .hero__main { border-radius: var(--r-card) 0 0 var(--r-card); }
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__main { height: 58vw; max-height: 420px; } }
@media (max-width: 520px) { .hero__link { display: none; } .hero__sub { font-size: 1.08rem; } }
/* Franja de datos: cifras reales en grande, sin íconos */
.facts { background: transparent; border-block: 1px solid var(--line); }
.facts ul { grid-template-columns: repeat(4, 1fr); }
.facts li { display: block; padding: 1.75rem 1.5rem 1.75rem 1.75rem; font-weight: 500; font-size: .95rem; line-height: 1.4; color: var(--muted); }
.facts li:first-child { padding-left: 0; }
.facts li strong { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.03em; line-height: 1.1; color: var(--ink); margin-bottom: .3rem; }
.facts li a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li { padding: 1.25rem 1rem; } .facts li:nth-child(odd) { padding-left: 0; } .facts li:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li + li { border-top: 0; } .facts li:nth-child(even) { border-left: 1px solid var(--line); } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
/* Servicios: el radier se muestra con una losa real */
.svc--img { position: relative; overflow: hidden; isolation: isolate; min-height: 250px; }
.svc--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.svc--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--forest) 96%, transparent) 18%, color-mix(in srgb, var(--forest) 55%, transparent) 60%, color-mix(in srgb, var(--forest) 20%, transparent)); }
.svc-main, .svc--line, .form, .inc, .calc { border-color: color-mix(in srgb, var(--line) 80%, transparent); }
.form { box-shadow: var(--shadow); }
/* Fichas de obra: el contador va junto al título, no sobre la foto */
.proj__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
.proj__top strong { margin-top: 0; }
.proj__n { position: static; padding: 0; background: none; color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.steps li::before { color: var(--green); font-style: normal; font-size: 2.2rem; }

/* Sobre nosotros: el único bloque en verde bosque de la página */
.section--forest { background: var(--forest); color: var(--on-forest); --sec: var(--forest); }
.section--forest h2 em { color: var(--green-logo); }
.section--forest .lead, .about__p { color: var(--on-forest-muted); }
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__p { margin-top: 1rem; max-width: 56ch; }
.about .btn { margin-top: 2rem; }
.about__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); }
.about__fotos img:last-child { margin-top: 2.5rem; }
.about__pilares { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid color-mix(in srgb, var(--on-forest) 20%, transparent); }
.about__pilares li { padding-inline: 2rem; }
.about__pilares li:first-child { padding-left: 0; }
.about__pilares li + li { border-left: 1px solid color-mix(in srgb, var(--on-forest) 20%, transparent); }
.about__pilares p { color: var(--on-forest-muted); margin-top: .5rem; font-size: .98rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__fotos { order: -1; }
  .about__fotos img:last-child { margin-top: 1.5rem; }
  .about__pilares { grid-template-columns: 1fr; padding-top: 0; }
  .about__pilares li, .about__pilares li:first-child { padding: 1.5rem 0; }
  .about__pilares li + li { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--on-forest) 20%, transparent); }
}

.about__cifras { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 560px; }
.about__cifras strong { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.about__cifras span, .about__cifras a { display: block; margin-top: .3rem; font-size: .9rem; line-height: 1.35; color: var(--on-forest-muted); }
.about__cifras a { text-underline-offset: 3px; }
.about__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.about .about__cta .btn { margin-top: 0; }
.about__nota { margin-top: .9rem; font-size: .92rem; color: var(--on-forest-muted); }
@media (max-width: 520px) { .about__cta .btn { width: 100%; } .about__cifras { gap: .9rem; } }

/* Tres dudas respondidas (portada) */
.dudas { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.dudas li { padding: .25rem 2rem; }
.dudas li:first-child { padding-left: 0; }
.dudas li + li { border-left: 1px solid var(--line); }
.dudas__q { font-size: .95rem; color: var(--muted); font-style: italic; margin-bottom: .6rem; }
.dudas h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.dudas h3 + p { color: var(--muted); margin-top: .6rem; }
.after-grid.row { gap: 1.5rem; }
@media (max-width: 860px) { .dudas { grid-template-columns: 1fr; margin-top: 1.75rem; } .dudas li, .dudas li:first-child { padding: 1.5rem 0; } .dudas li + li { border-left: 0; border-top: 1px solid var(--line); } }
/* Sobre nosotros: manifiesto y línea de tiempo */
.section--forest h1 em { color: var(--green-logo); }
.section--forest h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.about__mas { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid color-mix(in srgb, var(--on-forest) 20%, transparent); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__manifiesto { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; }
.about__linea { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.about__linea li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--on-forest) 20%, transparent); }
.about__linea li:last-child { border-bottom: 0; padding-bottom: 0; }
.about__linea strong { font-family: var(--font-d); font-weight: 800; }
.about__linea span { color: var(--on-forest-muted); }
@media (max-width: 860px) { .about__mas { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .about__linea li { grid-template-columns: 1fr; gap: .25rem; } }
/* Pie: los enlaces del sitio en dos columnas */
.footer__grid { grid-template-columns: 1.1fr 1.7fr 1fr; }
.footer__grid > div:nth-child(2) ul { display: block; columns: 2; column-gap: 2rem; }
.footer__grid > div:nth-child(2) li { break-inside: avoid; margin-bottom: .55rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } .footer__grid > div:nth-child(2) ul { columns: 1; } }

/* Calculadora por tramos */
.calc { max-width: 560px; gap: .7rem; }
.calc__row output { font-size: 1.6rem; }
.calc input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
.calc__det { color: var(--muted); font-size: .92rem; }
.calc__tip { justify-self: start; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); font-weight: 700; font-size: .9rem; }
.calc__tip[hidden] { display: none; }
.calc__tabla { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.calc__tabla button { width: 100%; height: 100%; display: grid; gap: .05rem; justify-items: start; align-content: start; text-align: left; padding: .6rem .65rem .7rem; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font: inherit; }
.calc__tabla button.is-on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.calc__tabla span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.calc__tabla b { font-family: var(--font-d); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.calc__tabla small { font-size: .74rem; color: var(--muted); }
.calc__tabla em { margin-top: .35rem; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; padding: .1rem .4rem; border-radius: 4px; background: var(--orange); color: var(--orange-ink, #14100a); }
.calc__tabla em.is-baja { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.calc__suma { color: var(--muted); font-size: .9rem; }
.calc .btn { justify-self: start; }
/* Formulario: dos formas de terminar (WhatsApp o que te llamen) */
.envios { display: grid; grid-template-columns: 1.25fr 1fr; gap: .7rem; margin-top: 1rem; }
.envios .btn { width: 100%; padding-inline: .8rem; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); }
.btn--ghost:hover { border-color: var(--ink); }
.envio-error { margin-top: .8rem; padding: .7rem .9rem; border-radius: var(--r-ctl); background: color-mix(in srgb, #b3261e 12%, transparent); color: #b3261e; font-weight: 600; font-size: .93rem; }
.envio-error[hidden] { display: none; }
.field .opc { font-weight: 500; color: var(--muted); }
@media (max-width: 560px) { .envios { grid-template-columns: 1fr; } }
/* Calculadora estable: el ancho no depende del contenido y cada línea reserva su alto, para que nada salte al cambiar los m² */
.price > * { min-width: 0; }
.calc { width: 100%; max-width: min(560px, 100%); min-width: 0; box-sizing: border-box; overflow: hidden; }
.calc > * { min-width: 0; max-width: 100%; }
.calc__row { flex-wrap: wrap; row-gap: .5rem; }
.calc__row output { flex: 1 0 100%; margin-left: 0; min-height: 1.25em; line-height: 1.25; font-size: clamp(1.2rem, 6.2vw, 1.9rem); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc__det { min-height: 3em; line-height: 1.5; font-variant-numeric: tabular-nums; }
.calc__tip { display: block; justify-self: stretch; box-sizing: border-box; min-height: calc(1.4em + .8rem); border-radius: var(--r-ctl); line-height: 1.4; padding: .4rem .8rem; }
.calc__tip.is-vacio { visibility: hidden; }
.calc__tabla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.calc__tabla button { min-width: 0; min-height: 5.6rem; }
.calc__tabla b { font-size: clamp(.95rem, 3.6vw, 1.15rem); white-space: nowrap; }
.calc__tabla button.is-on { box-shadow: inset 0 0 0 2px var(--orange); }
/* Donde la caja es angosta (teléfonos y la columna de tablets apaisadas) los textos ocupan más líneas */
@media (min-width: 861px) and (max-width: 1100px) { .calc__det { min-height: 4.5em; } .calc__tip { min-height: calc(2.8em + .8rem); } }
@media (max-width: 380px) { .calc__det { min-height: 6em !important; } .calc__tip { min-height: calc(4.2em + .8rem) !important; } }
@media (max-width: 560px) {
  .calc__det { min-height: 4.5em; }
  .calc__tip { min-height: calc(2.8em + .8rem); }
  .calc__tabla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Pie: las columnas no empujan el ancho de la página con enlaces largos */
.footer__grid > * { min-width: 0; }
.footer__grid a, .footer__grid li { overflow-wrap: anywhere; }
/* Sección de precio: texto y factores arriba, calculadora a todo el ancho con la tabla de tramos al lado */
@media (min-width: 861px) {
  .price { grid-template-columns: 1fr 1fr; align-items: start; }
  .price > div:first-child { display: contents; }
  .price > div:first-child > :not(.calc):not(.inc):not(.btn) { grid-column: 1; }
  .price > .factors { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .price .calc, .price .inc, .price > div:first-child > .btn { grid-column: 1 / -1; }
  .price .calc { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; padding: clamp(1.25rem, 2.5vw, 2rem); }
  .price .calc > :not(.calc__tabla):not(.calc__suma) { grid-column: 1; }
  .price .calc .calc__tabla { grid-column: 2; grid-row: 1 / span 6; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; margin: 0; }
  .price .calc .calc__suma { grid-column: 2; align-self: start; }
  .price .inc { max-width: none; }
  .price .inc ul { grid-template-columns: repeat(4, 1fr); }
  .price > div:first-child > .btn { justify-self: start; }
}
@media (min-width: 1100px) { .price .calc .calc__tabla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.calc__chips button { min-height: 38px; padding: .25rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.calc__chips button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--orange-ink, #14100a); }
.calc__lw { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.calc__lw input { width: 9.5ch; min-height: 38px; padding: .25rem .55rem; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; }
.svc__mas { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Tarjeta de molde: foto grande arriba, nombre, medida y cotizar (portada y catálogo) */
.mold { position: relative; padding: 0; overflow: hidden; gap: 0; }
.mold__img { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; }
.mold__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.mold:hover .mold__img img { transform: scale(1.05); }
.mold__img--pag { aspect-ratio: 3 / 2; display: grid; place-items: center; color: var(--muted); font-size: 2rem; }
.mold .mold__tag { position: absolute; top: .6rem; left: .6rem; z-index: 1; padding: .2rem .6rem; border-radius: 999px; background: var(--orange); color: var(--orange-ink, #14100a); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mold__body { padding: .8rem .95rem 1rem; display: grid; gap: .1rem; }
.mold__body strong { font-size: 1rem; }
.mold__act { margin-top: .45rem; }
.rail--moldes { gap: 1.1rem; }
.rail--moldes .mold { flex: 0 0 min(70vw, 270px); scroll-snap-align: start; }
@media (max-width: 760px) { .mold { padding: 0; } .mold__body { padding: .65rem .75rem .8rem; } .mold__body strong { font-size: .95rem; } }
/* ===== EFECTOS: movimiento y profundidad. Todo respeta prefers-reduced-motion. ===== */
/* Barra de avance de lectura */
.avance { position: fixed; left: 0; top: 0; z-index: 70; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--avance, 0)); background: linear-gradient(90deg, var(--orange), var(--green)); pointer-events: none; }
/* Cabecera de vidrio al bajar */
.nav.is-stuck { background: color-mix(in srgb, var(--forest) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
/* Botón principal: brillo que cruza al pasar el cursor y latido suave en la portada */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .btn--primary:hover::after { transition: transform .7s var(--ease); transform: translateX(520%) skewX(-18deg); }
  .hero .btn--primary { animation: latido 3.2s ease-in-out infinite; }
  @keyframes latido { 0%, 100% { box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--orange) 95%, transparent); } 50% { box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--orange) 95%, transparent), 0 0 0 9px color-mix(in srgb, var(--orange) 14%, transparent); } }
}
/* Tarjetas con inclinación según el cursor y un reflejo que lo sigue */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
/* La inclinación manda sobre la transición de aparición (misma especificidad, declarada después) */
.js [data-tilt].is-in, [data-tilt] { transition: transform .35s var(--ease), opacity .8s var(--ease), box-shadow .35s var(--ease); }
.js [data-tilt].is-tilt, [data-tilt].is-tilt { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateZ(0); transition: transform .12s ease-out, box-shadow .35s var(--ease); }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 55%); opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2; }
[data-tilt].is-tilt::after { opacity: 1; }
[data-tilt].is-tilt { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); }
/* Foco de luz que sigue al cursor sobre la portada */
@media (hover: hover) and (pointer: fine) {
  .hero { --sx: 50%; --sy: 40%; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(640px circle at var(--sx) var(--sy), color-mix(in srgb, var(--green) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .6s; }
  .hero.is-luz::after { opacity: 1; }
}
/* La foto de la portada se mueve más lento que la página (paralaje) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__main { animation: paralaje linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__side { animation: paralaje2 linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes paralaje { to { transform: translateY(14%) scale(1.06); } }
    @keyframes paralaje2 { to { transform: translateY(-10%); } }
  }
  /* Palabra destacada: el subrayado se dibuja al aparecer */
  h1 em, h2 em { background: linear-gradient(var(--green), var(--green)) no-repeat 0 92% / 0% 3px; animation: subraya 1.1s var(--ease) .5s forwards; }
  @keyframes subraya { to { background-size: 100% 3px; } }
  /* Fotos de galería: entran con un barrido */
  .js .gallery [data-reveal] img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease), transform .7s var(--ease); }
  .js .gallery [data-reveal].is-in img { clip-path: inset(0); }
  /* Trama de los fondos oscuros a la deriva */
  .section--navy::before, .hero::before, .footer::before { animation: deriva 60s linear infinite; }
  @keyframes deriva { to { background-position: 180px 150px; } }
  /* Latido del WhatsApp flotante */
  .wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; z-index: -1; animation: onda 2.6s ease-out infinite; }
  @keyframes onda { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
}
.wa { isolation: isolate; }
/* El precio calculado late cuando cambia */
.is-pulso { animation: pulso .55s var(--ease); }
@keyframes pulso { 0% { transform: scale(1); } 35% { transform: scale(1.06); filter: brightness(1.25); } 100% { transform: scale(1); } }
/* Franja de obras reales */
.strip { background: var(--forest); overflow: hidden; padding: 1rem 0 1.25rem; }
.strip__track { display: flex; gap: .7rem; width: max-content; animation: cinta 80s linear infinite; }
.strip:hover .strip__track, .strip:focus-within .strip__track { animation-play-state: paused; }
.strip button { flex: none; width: clamp(150px, 16vw, 230px); height: clamp(100px, 11vw, 150px); padding: 0; border: 0; border-radius: var(--r-ctl); overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.strip button:hover img { transform: scale(1.07); }
@keyframes cinta { to { transform: translateX(calc(-50% - .35rem)); } }
@media (prefers-reduced-motion: reduce) { .strip { overflow-x: auto; } .strip__track { animation: none; } }
/* ===== EFECTOS DE IMAGEN: zoom al pasar el cursor, fotos que cambian y movimiento suave. Respetan prefers-reduced-motion. ===== */
/* Portada: la foto grande respira (Ken Burns), la chica flota y las obras pasan en fundido */
.hero__media { isolation: isolate; }
.hero__main { transform-origin: 50% 60%; }
.hero__alt { position: absolute; z-index: 1; object-fit: cover; border-radius: var(--r-card); opacity: 0; transition: opacity 1.4s ease; pointer-events: none; transform-origin: 50% 40%; }
.hero__alt.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__main, .hero__alt { animation: respira 18s ease-in-out infinite alternate; }
  .hero__alt { animation-duration: 14s; animation-direction: alternate-reverse; }
  .hero__side { animation: flota 7s ease-in-out infinite; }
  @supports (animation-timeline: scroll()) {
    .hero__main { animation: paralaje linear both, respira 18s ease-in-out infinite alternate; animation-timeline: scroll(root), auto; animation-range: 0 100vh, normal; }
    .hero__side { animation: paralaje2 linear both, flota 7s ease-in-out infinite; animation-timeline: scroll(root), auto; animation-range: 0 100vh, normal; }
  }
  @keyframes respira { from { scale: 1; } to { scale: 1.09; } }
  @keyframes flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
}
/* Tarjetas de familia: la foto se acerca y gira apenas, aparece un velo y el nombre toma color */
.fam__img { position: relative; isolation: isolate; }
.fam__img img { transition: transform 1s var(--ease), filter 1s var(--ease); }
.fam__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--forest) 70%, transparent), transparent 55%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.fam a:hover .fam__img img { transform: scale(1.09) rotate(.6deg); filter: saturate(1.15); }
.fam a:hover .fam__img::after { opacity: 1; }
.fam figcaption strong { transition: color .3s; }
.fam a:hover figcaption strong { color: var(--green); }
/* Galería, proyectos, servicios y premium: zoom y un destello que cruza la foto */
.gallery button, .proj, .svc-main, .rail figure, .mold__img, .fam__img, .strip button { position: relative; overflow: hidden; }
.gallery button::after, .proj::after, .svc-main::after, .rail figure::after, .mold__img::after, .fam__img::before, .strip button::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; z-index: 2; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: translateX(-140%) skewX(-16deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .gallery button:hover::after, .proj:hover::after, .svc-main:hover::after, .rail figure:hover::after, .mold:hover .mold__img::after, .fam a:hover .fam__img::before, .strip button:hover::after { transition: transform .9s var(--ease); transform: translateX(560%) skewX(-16deg); }
}
.gallery button img { transition: transform .9s var(--ease), filter .9s var(--ease); }
.gallery button:hover img { transform: scale(1.07); filter: brightness(1.06) saturate(1.1); }
.proj img, .svc-main img, .rail figure img { transition: transform 1s var(--ease), filter 1s var(--ease); }
.proj:hover img, .svc-main:hover img, .rail figure:hover img { transform: scale(1.06); filter: saturate(1.12); }
.rail figure { transition: transform .4s var(--ease), box-shadow .4s var(--ease); border-radius: var(--r-card); }
.rail figure:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mold:hover .mold__img img { transform: scale(1.08) rotate(-.4deg); filter: saturate(1.12); }
.mold__tag { transition: transform .35s var(--ease), box-shadow .35s; }
.mold:hover .mold__tag { transform: translateX(4px) translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
/* Visor: cada foto entra con un fundido y un leve acercamiento */
@media (prefers-reduced-motion: no-preference) {
  .lb img.is-nueva { animation: aparece .45s var(--ease); }
  @keyframes aparece { from { opacity: 0; transform: scale(.96); } }
}
/* Carta de colores: el cambio de color late y la muestra elegida salta */
.swatch-view__tint { transition: background-color .7s var(--ease); }
.swatch-view.is-cambio { animation: pulso-img .6s var(--ease); }
@keyframes pulso-img { 0% { transform: scale(1); } 40% { transform: scale(1.025); filter: brightness(1.1); } 100% { transform: scale(1); } }
.swatches button[aria-pressed="true"] b { animation: salta .4s var(--ease); }
@keyframes salta { 0% { transform: translateY(0); } 40% { transform: translateY(-7px) scale(1.06); } 100% { transform: translateY(-3px); } }
/* Antes y después: el mango late para invitar a arrastrar */
@media (prefers-reduced-motion: no-preference) {
  .ba__bar i { animation: mango 2.4s ease-in-out infinite; }
  @keyframes mango { 0%, 100% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7); } 50% { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7), 0 0 0 10px rgba(255, 255, 255, .18); } }
  .ba__view img { transition: filter .6s; }
  .ba__view:hover img { filter: saturate(1.08); }
}
/* Video de obra: se acerca apenas al pasar el cursor */
.band video { transition: transform .8s var(--ease), filter .8s; }
.band video:hover { transform: scale(1.015); filter: brightness(1.05); }
/* ICONOS:inicio (generado por _src/optimiza.py) */
@font-face { font-family: "Iconos"; src: url("../fonts/iconos.woff2") format("woff2"); font-display: block; }
.ph { font-family: "Iconos" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ph-arrow-down:before { content: "\e03e"; }
.ph-arrow-left:before { content: "\e058"; }
.ph-arrow-right:before { content: "\e06c"; }
.ph-arrows-horizontal:before { content: "\eb06"; }
.ph-calculator:before { content: "\e538"; }
.ph-caret-down:before { content: "\e136"; }
.ph-caret-left:before { content: "\e138"; }
.ph-caret-right:before { content: "\e13a"; }
.ph-check-circle:before { content: "\e184"; }
.ph-credit-card:before { content: "\e1d2"; }
.ph-download-simple:before { content: "\e20c"; }
.ph-file-text:before { content: "\e23a"; }
.ph-image:before { content: "\e2ca"; }
.ph-images:before { content: "\e836"; }
.ph-list:before { content: "\e2f0"; }
.ph-magnifying-glass:before { content: "\e30c"; }
.ph-map-pin-line:before { content: "\e318"; }
.ph-moon:before { content: "\e330"; }
.ph-phone:before { content: "\e3b8"; }
.ph-ruler:before { content: "\e6b8"; }
.ph-shovel:before { content: "\e9e6"; }
.ph-sparkle:before { content: "\e6a2"; }
.ph-stack:before { content: "\e466"; }
.ph-sun:before { content: "\e472"; }
.ph-tag:before { content: "\e478"; }
.ph-truck:before { content: "\e4b4"; }
.ph-whatsapp-logo:before { content: "\e5d0"; }
/* ICONOS:fin */
