/* ==========================================================================
   CRISTALAR · Cristalería en Marbella
   Hoja de estilos única. Paleta original de la marca:
   negro azulado #0C1015 · dorado #B09552 · crema #FBF3EA · arena #D8D2CD
   ========================================================================== */

/* ---------- 1. Tipografías (alojadas en el propio servidor) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0C1015;
  --ink-2: #10161D;
  --ink-3: #171F29;
  --ink-4: #222C38;
  --gold: #B09552;
  --gold-2: #CDB57D;
  --gold-3: #8C7440;
  --gold-grad: linear-gradient(120deg, #8C7440 0%, #B09552 28%, #E6D4A3 50%, #B09552 72%, #8C7440 100%);
  --cream: #FBF3EA;
  --cream-2: #F3E9DD;
  --sand: #D8D2CD;
  --steel: #747C89;
  --text: #494B4F;
  --glass-tint: #9FC2BA;

  --on-dark: #F4ECE2;
  --on-dark-2: rgba(244, 236, 226, .7);
  --on-dark-3: rgba(244, 236, 226, .46);
  --line-dark: rgba(255, 255, 255, .1);
  --line-light: rgba(12, 16, 21, .12);

  --ff-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ff-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --nav-h: 76px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-glass: cubic-bezier(.22, .9, .25, 1);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  background: var(--ink);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--on-dark-2);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
em { font-style: normal; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 18px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.section { position: relative; padding-block: clamp(96px, 12vw, 176px); }
.section--light { background: var(--cream); color: var(--text); }

/* ---------- 4. Tipografía de interfaz ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--ff-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2);
}
.section--light .eyebrow { color: var(--gold-3); }
.eyebrow__num {
  font-family: var(--ff-display); font-size: .95rem; letter-spacing: .08em;
  color: var(--gold); padding-right: 14px; border-right: 1px solid currentColor;
  line-height: 1;
}
.eyebrow__line { width: 38px; height: 1px; background: var(--gold); display: inline-block; }

.h2, .about__statement, .hero__title, .phero__title, .lhero__title, .h3 {
  font-family: var(--ff-display); font-weight: 500;
  letter-spacing: .005em; color: var(--on-dark); line-height: .98;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.5rem, 5.6vw, 5rem); margin-top: 22px; }
.h3 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 56px 0 22px; line-height: 1.02; }
.section--light .h2, .section--light .h3 { color: var(--ink); }
.h2 em, .h3 em, .hero__title em, .phero__title em, .about__statement em, .footer__big em {
  font-family: var(--ff-serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--gold-2);
  background: var(--gold-grad); background-size: 220% 100%; background-position: 35% 50%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.section--light .h2 em { background-image: linear-gradient(120deg, #7a6435 0%, #9c8344 35%, #c9ad6c 50%, #9c8344 65%, #7a6435 100%); }

.lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); max-width: 56ch; margin-top: 26px; color: var(--on-dark-2); }
.section--light .lead { color: var(--text); }
.shead { max-width: 820px; }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .lead { margin-inline: auto; }

/* ---------- 5. Vidrio (sistema) ---------- */
.glass {
  background: linear-gradient(140deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025) 60%, rgba(176, 149, 82, .05)), rgba(20, 27, 35, .55);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.nav__bar.glass, .nav__menu.glass, .lightbox .glass { background: rgba(20, 27, 35, .82); }
/* El desenfoque en tiempo real es caro: solo en el menú sobre la portada y en el visor de fotos */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav:not(.is-compact) .nav__bar.glass, .nav__menu.glass, .lightbox .glass {
    background: linear-gradient(140deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025) 60%, rgba(176, 149, 82, .05)), rgba(20, 27, 35, .28);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
}
.glass-light {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 30px 60px -30px rgba(12, 16, 21, .25);
}
/* Canto de cristal: degradado en el borde (blanco arriba, dorado abajo) */
.glass-edge { position: relative; }
.glass-edge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, 0) 60%, rgba(205, 181, 125, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Reflejo que sigue al cursor dentro de las tarjetas [data-tilt] */
[data-tilt] { --mx: 50%; --my: 0%; --glare: 0; transform-style: preserve-3d; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .07), transparent 45%);
  opacity: var(--glare); transition: opacity .4s var(--ease-out);
}

/* Orbes de luz: dan "algo que refractar" detrás del vidrio */
.orb {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  opacity: .3;
}
.orb--gold { background: radial-gradient(closest-side, rgba(176, 149, 82, .7), rgba(176, 149, 82, .25) 45%, rgba(176, 149, 82, 0)); top: -8%; right: -12%; }
.orb--teal { background: radial-gradient(closest-side, rgba(159, 194, 186, .5), rgba(159, 194, 186, .18) 45%, rgba(159, 194, 186, 0)); top: 18%; left: -16%; opacity: .2; }
.orb--big { width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; top: 0; right: -20%; }
.orb--low { top: auto; bottom: -10%; left: -10%; }

/* ---------- 6. Botones ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-family: var(--ff-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s, box-shadow .5s var(--ease-out), border-color .4s;
}
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn > span { position: relative; z-index: 1; }
/* destello de cristal que cruza el botón */
.btn::after {
  content: ""; position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn--gold {
  color: var(--ink); background: var(--gold-grad); background-size: 200% 100%; background-position: 30% 50%;
  box-shadow: 0 14px 36px -14px rgba(176, 149, 82, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover { background-position: 70% 50%; box-shadow: 0 20px 46px -14px rgba(176, 149, 82, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn--glass {
  color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--glass:hover { border-color: rgba(205, 181, 125, .7); background: rgba(255, 255, 255, .1); }
.btn--line { color: var(--ink); border: 1px solid rgba(12, 16, 21, .25); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--gold-3); }
.side .btn--line, .footer .btn--line { color: var(--on-dark); border-color: rgba(255, 255, 255, .22); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .72rem; }
.btn--full { width: 100%; }

/* ---------- 7. Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #151d27 0%, var(--ink) 70%);
  /* red de seguridad: se oculta sola aunque falle el JS */
  animation: splashSafety .01s 4.5s forwards;
  transition: clip-path 1.1s var(--ease-io), opacity .6s;
  clip-path: inset(0 0 0 0);
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.no-splash .splash { display: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash__inner { display: grid; justify-items: center; gap: 22px; }
.splash__sun { width: 132px; color: var(--gold); overflow: visible; }
.splash__sun path, .splash__sun line { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s var(--ease-out) forwards; }
.splash__sun line:nth-of-type(1) { animation-delay: .25s; } .splash__sun line:nth-of-type(2) { animation-delay: .3s; }
.splash__sun line:nth-of-type(3) { animation-delay: .35s; } .splash__sun line:nth-of-type(4) { animation-delay: .4s; }
.splash__sun line:nth-of-type(5) { animation-delay: .45s; } .splash__sun line:nth-of-type(6) { animation-delay: .5s; }
.splash__sun line:nth-of-type(7) { animation-delay: .55s; } .splash__sun line:nth-of-type(8) { animation-delay: .6s; }
.splash__sun line:nth-of-type(9) { animation-delay: .65s; }
.splash__sun .hz1, .splash__sun .hz2, .splash__sun .hz3 { animation-delay: .1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.splash__word { width: 210px; opacity: 0; animation: fadeUp .9s .7s var(--ease-out) forwards; }
.splash__line { width: 210px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); transform: scaleX(0); animation: lineIn 1.2s .5s var(--ease-out) forwards; }
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 9. Navegación ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 820; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0); }
.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 800;
  width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto;
  transition: transform .6s var(--ease-out), inset .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__bar {
  display: flex; align-items: center; gap: 18px; height: var(--nav-h);
  padding: 0 12px 0 24px; border-radius: 999px;
  transition: height .5s var(--ease-out), background-color .5s;
}
.nav.is-compact .nav__bar { height: 64px; background: linear-gradient(140deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 60%, rgba(176, 149, 82, .05)), rgba(15, 20, 27, .94); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.nav__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__sun { width: 40px; color: var(--gold); transition: transform .8s var(--ease-out); }
.nav__brand:hover .nav__sun { transform: rotate(-8deg) scale(1.06); }
.nav__word { width: 150px; height: auto; }
.nav__links { position: relative; display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links > a, .nav__drop > a {
  position: relative; z-index: 1; display: block; padding: 10px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2);
  transition: color .3s;
}
.nav__links > a:hover, .nav__drop > a:hover, .nav__links a.is-current { color: var(--on-dark); }
.nav__pill {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 40px; width: 0; margin-top: -20px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
  opacity: 0; transition: transform .55s var(--ease-glass), width .55s var(--ease-glass), opacity .3s;
}
.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 18px); left: 50%; width: 320px; padding: 22px; border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .35s;
}
.nav__menu::before { content: ""; position: absolute; inset: -20px 0 auto 0; height: 20px; }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav__menu-label { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 10px; }
.nav__menu a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: .92rem; color: var(--on-dark); transition: color .3s, padding .4s var(--ease-out); }
.nav__menu li:last-child a { border: 0; color: var(--gold-2); }
.nav__menu a:hover { color: var(--gold-2); padding-left: 6px; }
.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__phone { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--on-dark-2); transition: color .3s; }
.nav__phone .ico { width: 17px; height: 17px; color: var(--gold); }
.nav__phone:hover { color: var(--on-dark); }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--on-dark); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__burger span:first-child { top: 19px; } .nav__burger span:last-child { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 790; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 28px;
  background: linear-gradient(160deg, #141b24 0%, #0c1015 70%); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translate3d(0, -12px, 0);
  transition: opacity .35s ease, transform .45s var(--ease-out), visibility 0s linear .45s;
  will-change: opacity, transform;
}
.mmenu[hidden] { display: none; }
.mmenu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mmenu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 100%; }
.mmenu__list a { display: flex; align-items: baseline; gap: 16px; padding: 8px 0; font-family: var(--ff-display); font-size: clamp(2.3rem, 10vw, 3.4rem); font-weight: 500; color: var(--on-dark); line-height: 1.05; }
.mmenu__list a span { font-family: var(--ff-body); font-size: .72rem; color: var(--gold); letter-spacing: .2em; }
.mmenu__list li { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .4s, transform .5s var(--ease-out); }
.mmenu.is-open .mmenu__list li { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__list li:nth-child(2) { transition-delay: .05s; } .mmenu.is-open .mmenu__list li:nth-child(3) { transition-delay: .1s; }
.mmenu.is-open .mmenu__list li:nth-child(4) { transition-delay: .15s; } .mmenu.is-open .mmenu__list li:nth-child(5) { transition-delay: .2s; }
.mmenu.is-open .mmenu__list li:nth-child(6) { transition-delay: .25s; }
.mmenu__sub { margin-top: 24px; display: grid; gap: 8px; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.mmenu__sub a { font-size: .95rem; color: var(--on-dark-2); }
.mmenu__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mmenu__foot .btn { padding: 0 16px; }
body.menu-open { overflow: hidden; }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 28px; overflow: hidden; isolation: isolate; color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s var(--ease-io), transform 8s linear;
}
.hero__img.is-active { opacity: 1; transform: scale(1); }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
/* Vidrio acanalado CSS (respaldo si no hay WebGL) */
.hero__flutes {
  position: absolute; inset: 0 42% 0 0;
  background:
    linear-gradient(90deg, rgba(12, 16, 21, .55), rgba(12, 16, 21, .25)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 6px, rgba(255, 255, 255, .09) 16px, rgba(0, 0, 0, .14) 34px, rgba(255, 255, 255, .03) 38px, rgba(255, 255, 255, 0) 40px);
  -webkit-backdrop-filter: blur(9px) saturate(120%); backdrop-filter: blur(9px) saturate(120%);
  border-right: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 1px 0 30px rgba(255, 255, 255, .08);
  transform-origin: 0 50%;
  transition: transform 1.6s var(--ease-glass), opacity .8s;
  transform: scaleX(0);
}
.is-ready .hero__flutes { transform: scaleX(1); }
.hero.gl-ready .hero__gl { opacity: 1; }
.hero.gl-ready .hero__flutes, .hero.gl-ready .hero__img { opacity: 0 !important; visibility: hidden; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 16, 21, .55) 0%, rgba(12, 16, 21, 0) 22%),
    linear-gradient(0deg, rgba(12, 16, 21, .92) 0%, rgba(12, 16, 21, .35) 30%, rgba(12, 16, 21, 0) 55%),
    linear-gradient(90deg, rgba(12, 16, 21, .45) 0%, rgba(12, 16, 21, 0) 60%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(24px, 4.5vh, 56px); }
.hero__eyebrow { margin-bottom: clamp(16px, 2.6vh, 26px); }
.hero__title { font-size: clamp(3rem, min(7.6vw, 11.4vh), 7.8rem); line-height: .98; letter-spacing: -.01em; }
.hero__line { display: block; white-space: nowrap; overflow: hidden; padding: .06em 0 .08em; margin: -.06em 0 -.08em; }
.hero__line > span { display: inline-block; }
.hero__title em { font-size: 1.08em; line-height: .8; padding-right: .08em; }
.hero__lead { max-width: 50ch; margin-top: clamp(18px, 3vh, 30px); font-size: clamp(1rem, 1.2vw, 1.12rem); color: rgba(244, 236, 226, .8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 3.6vh, 36px); }
.hero__foot { position: relative; z-index: 2; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.hero__facts { display: flex; border-radius: var(--radius); overflow: hidden; }
.hero__facts li { display: grid; gap: 2px; padding: 16px 26px; border-right: 1px solid var(--line-dark); }
.hero__facts li:last-child { border: 0; }
.hero__facts strong { font-family: var(--ff-display); font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--on-dark); }
.hero__facts span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-3); }
.hero__slider { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 22px; row-gap: 12px; padding: 16px 16px 16px 24px; border-radius: var(--radius); width: min(480px, 100%); }
.hero__count { font-family: var(--ff-display); font-size: 1.05rem; letter-spacing: .1em; color: var(--on-dark-3); }
.hero__count span { color: var(--gold-2); }
.hero__cap { min-width: 0; }
.hero__cap-t { font-size: .88rem; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__cap-s { font-size: .74rem; color: var(--on-dark-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__cap.is-swap { animation: capSwap .8s var(--ease-out); }
@keyframes capSwap { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.hero__bar { grid-column: 1 / -1; grid-row: 2; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.hero__bar span { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0); }
.hero__arrows { display: flex; gap: 6px; }
.hero__arrows button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: var(--on-dark); transition: background-color .3s, border-color .3s; }
.hero__arrows button:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.hero__arrows .ico { width: 18px; height: 18px; }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--gold-2); animation: scrollDot 2.2s var(--ease-io) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Intro del hero (CSS puro; el JS solo añade .is-ready a <html>) */
.js [data-intro] { opacity: 0; transform: translateY(24px); }
.js [data-intro-line] { transform: translateY(110%); }
.js.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js.is-ready [data-intro-line] { transform: none; transition: transform 1.3s var(--ease-out); }
.js.is-ready .hero__line:nth-child(2) [data-intro-line] { transition-delay: .09s; }
.js.is-ready .hero__line:nth-child(3) [data-intro-line] { transition-delay: .18s; }
.js.is-ready .hero__lead[data-intro], .js.is-ready .phero__lead[data-intro] { transition-delay: .35s; }
.js.is-ready .hero__ctas[data-intro] { transition-delay: .48s; }
.js.is-ready .hero__foot[data-intro] { transition-delay: .62s; }

/* ---------- 11. Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 34px 0; background: var(--ink); border-block: 1px solid var(--line-dark); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--ff-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1;
  padding: 0 .35em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 236, 226, .3);
}
.marquee__item:nth-of-type(2n) { -webkit-text-stroke-color: rgba(205, 181, 125, .55); }
.marquee__sun { width: 46px; color: var(--gold); flex: none; }
.marquee.no-gsap .marquee__track { animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 12. Sobre nosotros ---------- */
.about { overflow-x: clip; }
.about .container { z-index: 1; }
.about__top { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about__statement { font-size: clamp(2.1rem, 4.3vw, 3.9rem); line-height: 1.02; margin-top: 26px; }
.about__statement .w { transition: opacity .2s linear; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; max-width: 760px; }
.signature { display: block; margin-top: 12px; font-family: var(--ff-serif); font-style: italic; font-size: 1.6rem; color: var(--gold-2); }
.about__visual { position: relative; min-height: 600px; }
.frame { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 35%); pointer-events: none; }
.frame__img { width: 100%; height: 100%; object-fit: cover; }
.frame--a { top: 0; right: 0; width: 82%; aspect-ratio: 4 / 3; }
.frame--b { bottom: 0; left: 0; width: 46%; aspect-ratio: 3 / 4; border: 8px solid rgba(255, 255, 255, .06); }
.badge {
  position: absolute; right: 6%; bottom: 8%; width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center;
}
.badge__ring { position: absolute; inset: 6px; width: calc(100% - 12px); animation: spin 22s linear infinite; }
.badge__ring text { font-family: var(--ff-body); font-size: 12.5px; font-weight: 600; letter-spacing: .22em; fill: var(--on-dark-2); }
.badge__sun { width: 60px; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(70px, 9vw, 120px); }
.stat { padding: 30px 28px; border-radius: var(--radius); overflow: hidden; }
.stat__num { display: flex; align-items: flex-start; font-family: var(--ff-display); font-weight: 500; font-size: clamp(3.2rem, 5.4vw, 4.8rem); line-height: .9; color: var(--on-dark); font-variant-numeric: lining-nums tabular-nums; }
.stat__suf { color: var(--gold); font-size: .55em; margin-left: 4px; margin-top: .1em; }
.stat__label { margin-top: 18px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); }
.stat__sub { margin-top: 6px; font-size: .9rem; color: var(--on-dark-3); line-height: 1.5; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.pillar { padding: 32px 28px 34px; border-radius: var(--radius); overflow: hidden; }
.pillar__ico { width: 34px; height: 34px; color: var(--gold-2); margin-bottom: 26px; }
.pillar__t { font-family: var(--ff-display); font-weight: 500; font-size: 1.55rem; color: var(--on-dark); line-height: 1.05; margin-bottom: 12px; }
.pillar p { font-size: .94rem; line-height: 1.65; }

/* ---------- 13. Servicios: cortina de paneles de cristal ---------- */
.services { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.services__hint { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); flex: none; }
.services__hint .ico { width: 18px; color: var(--gold); animation: nudge 2.4s var(--ease-io) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.panes { display: flex; gap: 10px; height: clamp(540px, 74vh, 720px); }
.pane {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 20px; overflow: hidden; isolation: isolate;
  cursor: pointer; outline-offset: 4px;
  transition: flex-grow .95s var(--ease-glass), box-shadow .6s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.pane.is-active { flex-grow: 5.2; cursor: default; box-shadow: inset 0 0 0 1px rgba(205, 181, 125, .45), 0 40px 80px -40px rgba(0, 0, 0, .9); }
/* Las fotos tienen ancho fijo: al abrirse el panel solo cambia el recorte, no se redibujan */
.panes { container-type: inline-size; }
.pane__img, .pane__blur {
  position: absolute; top: 0; left: 50%; height: 100%; max-width: none; width: 100%; margin-left: -50%; width: 50cqw; margin-left: -25cqw;
  object-fit: cover; z-index: -2;
}
.pane__img { opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease-glass), transform 1.4s var(--ease-glass); }
.pane.is-active .pane__img { opacity: 1; transform: scale(1.02); }
/* estrías de vidrio acanalado que desaparecen al "abrir" el panel */
.pane__flutes {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 5px, rgba(255, 255, 255, .1) 11px, rgba(0, 0, 0, .16) 20px, rgba(255, 255, 255, .04) 22px),
    linear-gradient(180deg, rgba(12, 16, 21, .2), rgba(12, 16, 21, .55));
  transition: opacity 1s var(--ease-glass);
}
.pane::before { /* brillo del canto */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, 0) 54%);
  transform: translateX(-130%); transition: transform 0s;
}
.pane.is-active::before { transform: translateX(130%); transition: transform 1.5s var(--ease-out) .15s; }
.pane::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(0deg, rgba(12, 16, 21, .92) 0%, rgba(12, 16, 21, .35) 40%, rgba(12, 16, 21, 0) 65%); opacity: 0; transition: opacity .8s; }
.pane.is-active::after { opacity: 1; }
.pane.is-active .pane__flutes { opacity: 0; }
@media (min-width: 981px) {
  /* capas propias: al abrir un panel la GPU solo recorta, no vuelve a pintar */
  .pane__img, .pane__blur { will-change: transform; }
  .pane__flutes { inset: 0 auto 0 50%; width: 100%; margin-left: -50%; width: 50cqw; margin-left: -25cqw; will-change: transform; }
}
.pane__closed {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 0; transition: opacity .5s;
}
.pane.is-active .pane__closed { opacity: 0; }
.pane__num { font-family: var(--ff-display); font-size: .95rem; letter-spacing: .14em; color: var(--gold-2); }
.pane__vt {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--ff-display); font-size: clamp(1.25rem, 1.7vw, 1.7rem); letter-spacing: .1em; color: var(--on-dark);
  white-space: nowrap;
}
.pane__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3vw, 44px);
  max-width: 620px; opacity: 0; transform: translateY(30px); pointer-events: none;
  transition: opacity .5s, transform .8s var(--ease-out);
}
.pane.is-active .pane__body { opacity: 1; transform: none; pointer-events: auto; transition-delay: .35s; }
.pane__t { font-family: var(--ff-display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: .98; color: var(--on-dark); margin: 12px 0 14px; }
.pane__d { color: rgba(244, 236, 226, .78); max-width: 46ch; }
.pane__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.pane__link .ico { width: 18px; transition: transform .5s var(--ease-out); }
.pane__link:hover .ico { transform: translateX(6px); }

/* ---------- 14. Material: láminas de vidrio 3D (sala oscura con foco) ---------- */
.material {
  overflow: clip;
  background:
    radial-gradient(60% 46% at 50% 58%, rgba(159, 194, 186, .14), rgba(159, 194, 186, 0) 70%),
    radial-gradient(50% 30% at 50% 100%, rgba(176, 149, 82, .10), rgba(176, 149, 82, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, #111a22 40%, #101820 75%, var(--ink) 100%);
}
.material__bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.material__bg span {
  font-family: var(--ff-display); font-weight: 600; font-size: 23vw; line-height: .8; letter-spacing: -.01em; white-space: nowrap; transform: translateY(14%);
  color: rgba(205, 181, 125, .03); -webkit-text-stroke: 1px rgba(205, 181, 125, .12);
}
.slabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 48px); max-width: 1120px; margin-inline: auto; margin-top: 70px; perspective: 1200px; }
.slab { position: relative; border-radius: var(--radius); }
/* charco de luz bajo cada lámina */
.slab::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 196px; height: 90px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(159, 194, 186, .26), rgba(159, 194, 186, 0));
}
.slab__glass {
  position: relative; height: 230px; border-radius: 18px; transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-18deg); transition: transform 1s var(--ease-out);
  margin: 10px 18px 36px;
}
.slab:hover .slab__glass { transform: rotateX(6deg) rotateY(-6deg) translateZ(20px); }
.slab__face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .06) 32%, rgba(255, 255, 255, 0) 55%, rgba(159, 194, 186, .14) 100%),
    linear-gradient(135deg, rgba(190, 228, 219, .16), rgba(159, 194, 186, .08));
  border: 1px solid rgba(214, 240, 233, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85), inset 1px 0 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(159, 194, 186, .25), inset 0 -36px 60px rgba(159, 194, 186, .14),
    0 0 46px -12px rgba(159, 194, 186, .45), 0 40px 70px -30px rgba(0, 0, 0, .85);
}
/* reflejo diagonal fijo del foco */
.slab__face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .16) 58%, rgba(255, 255, 255, 0) 66%);
}
.slab__edge { /* canto verde del vidrio real */
  position: absolute; left: 10px; right: -10px; bottom: -12px; height: 12px; border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, #6f9c91, #bfe0d7 40%, #6a9489);
  box-shadow: 0 6px 18px -4px rgba(159, 194, 186, .55);
  transform: skewX(-40deg); transform-origin: top; opacity: .9;
}
.slab__shine {
  position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, .55) 42%, rgba(255, 255, 255, 0) 50%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position 1.4s var(--ease-out);
}
.slab:hover .slab__shine { background-position: -40% 0; }
.slab--laminado .slab__face::before { /* lámina intermedia */
  content: ""; position: absolute; inset: 14px; border-radius: 10px; border: 1px solid rgba(230, 212, 163, .75);
  background: linear-gradient(135deg, rgba(230, 212, 163, .22), rgba(176, 149, 82, .08));
  box-shadow: 0 0 22px -6px rgba(230, 212, 163, .5), inset 0 0 18px rgba(230, 212, 163, .12);
}
.slab--laminado .slab__edge { background: linear-gradient(90deg, #6f9c91 0 45%, #e0c98f 45% 55%, #6f9c91 55%); }
/* Doble acristalamiento: dos lunas con cámara sellada y marco separador */
.slab--dvh .slab__face::before {
  content: ""; position: absolute; inset: 12px; border-radius: 10px;
  border: 5px solid rgba(196, 210, 214, .42);
  background: linear-gradient(135deg, rgba(190, 228, 219, .14), rgba(159, 194, 186, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 1px rgba(255, 255, 255, .18);
}
.slab--dvh .slab__edge { background: linear-gradient(90deg, #6f9c91 0 40%, #0e141a 40% 60%, #6f9c91 60%); }
.slab--dvh::before { background: radial-gradient(closest-side, rgba(190, 228, 219, .28), rgba(190, 228, 219, 0)); }
.slab__body { padding: 0 6px; }
.slab__t { font-family: var(--ff-display); font-weight: 500; font-size: 1.8rem; color: var(--on-dark); line-height: 1.05; margin: 4px 0 12px; }
.slab p { font-size: .94rem; line-height: 1.65; color: var(--on-dark-2); }
.slab__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.slab__tags li { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark-3); }

/* ---------- 15. Proyectos ---------- */
.projects { overflow-x: clip; background: var(--ink); }
.projects .container { z-index: 1; }
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 999px; }
.filter { position: relative; z-index: 1; padding: 11px 18px; border-radius: 999px; font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); transition: color .35s; }
.filter sup { font-size: .62rem; margin-left: 4px; color: var(--gold); }
.filter:hover, .filter.is-active { color: var(--ink); }
.filter:hover:not(.is-active) { color: var(--on-dark); }
.filters__pill { position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0; border-radius: 999px; background: var(--gold-grad); background-size: 200% 100%; box-shadow: 0 8px 24px -10px rgba(176, 149, 82, .8); transition: transform .6s var(--ease-glass), width .6s var(--ease-glass), height .6s var(--ease-glass); }
.filters:not(.has-pill) .filter.is-active { background: var(--gold); }
.filter.is-active sup { color: var(--ink); }
/* rejilla bento: cada bloque = 1 pieza grande + 4 pequeñas (alterna izquierda/derecha) */
.works {
  --cell: calc((min(var(--maxw), 100vw - 2 * var(--gutter)) - 42px) / 4);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: var(--cell); grid-auto-flow: dense; gap: 14px;
}
.work { position: relative; border-radius: 16px; overflow: hidden; }
.work.is-big { grid-column: span 2; grid-row: span 2; }
.work.is-big.is-right { grid-column: 3 / span 2; }
.work[hidden] { display: none; }
.work__btn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; text-align: left; cursor: zoom-in; }
.work__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); }
.work__btn:hover .work__img, .work__btn:focus-visible .work__img { transform: scale(1.08); }
.work::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.work__glint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .35) 48%, rgba(255, 255, 255, 0) 56%);
  transform: translateX(-110%);
}
.work__btn:hover .work__glint { transform: translateX(110%); transition: transform 1.1s var(--ease-out); }
.work__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%), rgba(12, 16, 21, .82); border: 1px solid rgba(255, 255, 255, .14);
  transform: translateY(calc(100% + 14px)); transition: transform .6s var(--ease-out);
}
.work__btn:hover .work__cap, .work__btn:focus-visible .work__cap { transform: none; }
.work__cat { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.work__title { display: block; font-size: .84rem; line-height: 1.4; color: var(--on-dark); margin-top: 3px; }
.projects__more { display: flex; justify-content: center; margin-top: 44px; }

.projects__more[hidden] { display: none; }

/* ---------- 16. Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 11, 15, .9); color: var(--on-dark); overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .lightbox { background: rgba(8, 11, 15, .72); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); } }
.lightbox::backdrop { background: rgba(0, 0, 0, .3); }
.lightbox[open] { display: grid; animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { position: absolute; inset: 70px 90px 110px; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 50px 120px -40px #000; transition: opacity .35s, transform .5s var(--ease-out); }
.lightbox__img.is-loading { opacity: 0; transform: scale(.97); }
.lightbox__bar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 22px; border-radius: 999px; }
.lightbox__cap { font-size: .9rem; }
.lightbox__count { font-family: var(--ff-display); letter-spacing: .1em; color: var(--gold-2); flex: none; }
.lightbox__btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); transition: border-color .3s, transform .4s var(--ease-out); }
.lightbox__btn .ico { width: 22px; height: 22px; }
.lightbox__btn:hover { border-color: var(--gold); transform: scale(1.06); }
.lightbox__prev { left: 22px; top: 50%; margin-top: -27px; }
.lightbox__next { right: 22px; top: 50%; margin-top: -27px; }
.lightbox__close { right: 22px; top: 22px; }

/* ---------- 17. Proceso ---------- */
.process { background: linear-gradient(180deg, var(--ink-2), var(--ink)); overflow: clip; }
.process__track { position: relative; margin-top: 80px; }
.process__beam { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: rgba(255, 255, 255, .1); }
.process__beam span { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(176, 149, 82, 0), var(--gold-2) 70%, #fff); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 18px 1px rgba(205, 181, 125, .7); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 92px 28px 34px; border-radius: var(--radius); transition: border-color .6s, transform .8s var(--ease-out), box-shadow .8s; }
.step__num { position: absolute; top: 18px; right: 22px; font-family: var(--ff-display); font-weight: 500; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(244, 236, 226, .22); transition: color .8s, -webkit-text-stroke-color .8s; }
.step__node { position: absolute; top: 40px; left: 28px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(255, 255, 255, .3); transition: background-color .6s, box-shadow .6s, border-color .6s; }
.step__t { font-family: var(--ff-display); font-weight: 500; font-size: 1.6rem; color: var(--on-dark); line-height: 1.05; margin-bottom: 12px; }
.step p { font-size: .94rem; }
.step.is-on { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(176, 149, 82, .45); }
.step.is-on .step__num { color: rgba(176, 149, 82, .2); -webkit-text-stroke-color: var(--gold-2); }
.step.is-on .step__node { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 0 0 6px rgba(205, 181, 125, .15), 0 0 22px 4px rgba(205, 181, 125, .6); }

/* ---------- 18. Zona ---------- */
.zone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.towns li { padding: 9px 16px; border-radius: 999px; font-size: .86rem; color: var(--ink); background: rgba(255, 255, 255, .7); border: 1px solid rgba(176, 149, 82, .28); box-shadow: inset 0 1px 0 #fff; transition: background-color .3s, color .3s; }
.towns li:hover { background: var(--ink); color: var(--cream); }
.towns li:last-child { background: transparent; border-style: dashed; color: var(--steel); }
.zone__hours { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: .95rem; color: var(--text); }
.zone__hours .ico { width: 20px; color: var(--gold-3); }
.map { position: relative; min-height: 460px; border-radius: 28px; overflow: hidden; }
.map::before { /* rejilla tipo plano visto a través del vidrio */
  content: ""; position: absolute; inset: 0; opacity: .6;
  background:
    radial-gradient(60% 60% at 60% 45%, rgba(176, 149, 82, .25), transparent 70%),
    repeating-linear-gradient(0deg, rgba(12, 16, 21, .05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(12, 16, 21, .05) 0 1px, transparent 1px 40px);
}
.map__ph { position: relative; z-index: 1; height: 100%; min-height: 460px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 40px; }
.map__sun { width: 96px; color: var(--gold); margin-bottom: 8px; }
.map__t { font-family: var(--ff-display); font-size: 2rem; color: var(--ink); line-height: 1; }
.map__s { font-size: .88rem; color: var(--steel); max-width: 34ch; }
.map__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; filter: grayscale(.25) contrast(1.05); }

/* ---------- 19. Contacto ---------- */
.contact { overflow-x: clip; background: var(--ink); }
.contact__grid { z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.clist { display: grid; gap: 10px; margin-top: 44px; }
.clist a { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line-dark); transition: border-color .4s, background-color .4s, transform .5s var(--ease-out); }
.clist a:hover { border-color: rgba(205, 181, 125, .5); background: rgba(255, 255, 255, .04); transform: translateX(6px); }
.clist .ico { width: 22px; height: 22px; color: var(--gold-2); flex: none; }
.clist span { display: grid; font-size: 1.02rem; color: var(--on-dark); }
.clist small { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-3); }
.quote { padding: clamp(26px, 3.6vw, 48px); border-radius: 28px; display: grid; gap: 20px; }
.quote__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.quote__kicker .ico { width: 18px; height: 18px; }
.quote__t { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--on-dark); margin-top: 10px; }
.quote__set { border: 0; padding: 0; margin: 0; }
.quote__set legend, .field > span { display: block; margin-bottom: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-3); }
.field em { text-transform: none; letter-spacing: 0; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: 10px 16px; border-radius: 999px; font-size: .84rem; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); color: var(--on-dark-2); transition: all .35s var(--ease-out); }
.chip input:hover + span { border-color: rgba(205, 181, 125, .6); color: var(--on-dark); }
.chip input:checked + span { background: var(--gold-grad); background-size: 200% 100%; color: var(--ink); border-color: transparent; box-shadow: 0 8px 22px -12px rgba(176, 149, 82, .9); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .22); color: var(--on-dark); font-size: .98rem; outline: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--ink-3); color: var(--on-dark); }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 236, 226, .3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 4px rgba(176, 149, 82, .15); }
.quote__error { font-size: .86rem; color: #f0b7a4; }
.quote__note { font-size: .78rem; color: var(--on-dark-3); text-align: center; }
.quote__note a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 20. Footer ---------- */
.footer { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 28px; background: #080b0f; border-top: 1px solid var(--line-dark); }
.footer__glow { position: absolute; left: 50%; top: -40%; width: 90vw; height: 70vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(176, 149, 82, .16), transparent); pointer-events: none; }
.footer__cta { position: relative; display: grid; gap: 20px; padding-bottom: clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line-dark); }
.footer__big { display: inline-flex; align-items: center; gap: .2em; width: max-content; max-width: 100%; font-family: var(--ff-display); font-weight: 500; font-size: clamp(3.4rem, 12vw, 11rem); line-height: .85; color: var(--on-dark); transition: color .5s; --bx: 0px; --by: 0px; transform: translate3d(var(--bx), var(--by), 0); }
.footer__big:hover { color: var(--gold-2); }
.footer__big-ico { width: .6em; height: .6em; stroke-width: 1; color: var(--gold); transition: transform .7s var(--ease-out); }
.footer__big:hover .footer__big-ico { transform: rotate(45deg); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 40px; padding-block: 64px; }
.footer__brand img { width: 190px; margin-bottom: 22px; }
.footer__brand p { font-size: .92rem; max-width: 36ch; }
.footer__social { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .9rem; color: var(--on-dark); }
.footer__social .ico { width: 20px; color: var(--gold); }
.footer__h { font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; font-size: .92rem; }
.footer__list a, .footer__list span { display: inline-flex; align-items: center; gap: 10px; transition: color .3s; overflow-wrap: anywhere; }
.footer__list a:hover { color: var(--on-dark); }
.footer__list .ico { width: 16px; height: 16px; color: var(--gold); flex: none; }
.footer__word {
  font-family: var(--ff-display); font-weight: 600; font-size: min(23vw, 19rem); line-height: .9; text-align: center; letter-spacing: .02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(205, 181, 125, .22);
  user-select: none; margin-top: 10px;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: var(--on-dark-3); }
.footer__bottom a { transition: color .3s; }
.footer__bottom a:hover { color: var(--gold-2); }
.footer__bottom p:nth-child(2) { display: flex; gap: 22px; }

/* ---------- 21. WhatsApp flotante ---------- */
/* Selector de idioma, sobre el botón de WhatsApp */
.lang-switch {
  position: fixed; right: 30px; bottom: 96px; z-index: 700; display: grid; gap: 8px; padding: 6px;
  border-radius: 999px; background: rgba(15, 20, 27, .82); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.lang-switch__a { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; opacity: .55; transition: opacity .3s, box-shadow .3s; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-switch__a:hover, .lang-switch__a:focus-visible { opacity: 1; }
.lang-switch__a.is-current { opacity: 1; box-shadow: 0 0 0 2px var(--gold-2); }
.lang-switch__a svg { width: 100%; height: 100%; display: block; transform: scale(1.6); }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 700; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, rgba(37, 211, 102, .95), rgba(18, 140, 126, .95));
  box-shadow: 0 16px 40px -12px rgba(18, 140, 126, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .5s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float__ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(205, 181, 125, .7); animation: ring 2.8s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.wa-float__tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: .8rem; color: var(--on-dark); background: rgba(12, 16, 21, .85); border: 1px solid rgba(255, 255, 255, .12); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); }
.wa-float:hover .wa-float__tip { opacity: 1; transform: translate(0, -50%); }

/* ---------- 22. Subpáginas de servicio ---------- */
.phero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 80px) 0 clamp(56px, 9vh, 100px); overflow: hidden; isolation: isolate; color: var(--on-dark); }
.phero__inner { position: relative; z-index: 2; }
/* Cabecera sin foto: luz suave tras el vidrio acanalado */
.phero--plain .hero__media {
  background:
    radial-gradient(55% 60% at 78% 30%, rgba(159, 194, 186, .22), rgba(159, 194, 186, 0) 70%),
    radial-gradient(40% 45% at 62% 85%, rgba(176, 149, 82, .18), rgba(176, 149, 82, 0) 70%),
    linear-gradient(160deg, #16212b 0%, var(--ink) 70%);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.crumbs a { transition: color .3s; } .crumbs a:hover { color: var(--gold-2); }
.crumbs [aria-current] { color: var(--on-dark); }
.phero .eyebrow { margin-bottom: 22px; }
.phero__title { font-size: clamp(2.6rem, 6.2vw, 6.4rem); line-height: 1; max-width: 15ch; }
.phero__title .hero__line { white-space: normal; }
.phero__lead { max-width: 54ch; margin-top: 26px; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(244, 236, 226, .82); }

.article { overflow-x: clip; }
.article__grid { z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.prose p { font-size: 1.06rem; line-height: 1.85; margin-bottom: 1.2em; max-width: 68ch; }
.prose strong { color: var(--on-dark); font-weight: 600; }
.kicker { font-family: var(--ff-serif); font-style: italic; font-size: 1.6rem; color: var(--gold-2); margin: 40px 0 20px; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 40px; }
.benefit { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; color: var(--on-dark); overflow: hidden; }
.benefit__ico { width: 28px; height: 28px; color: var(--gold-2); flex: none; }
.apps { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); margin-bottom: 30px; }
.app { display: flex; align-items: center; gap: 14px; padding: 20px 4px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.app:nth-child(odd) { border-right: 1px solid var(--line-dark); }
.app:nth-child(even) { padding-left: 20px; }
.app__ico { width: 22px; height: 22px; color: var(--gold); flex: none; }
.article__aside { position: sticky; top: 110px; }
.side { padding: 34px 30px; border-radius: 26px; display: grid; gap: 14px; }
.side__sun { width: 64px; color: var(--gold); }
.side__k { font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin-top: 8px; }
.side__t { font-family: var(--ff-display); font-weight: 500; font-size: 1.7rem; line-height: 1.05; color: var(--on-dark); margin-bottom: 8px; }
.side .btn { padding: 0 18px; }
.side__facts { display: grid; gap: 8px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.side__facts strong { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 500; color: var(--gold-2); margin-right: 6px; }

.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.why__list { display: grid; border-top: 1px solid var(--line-light); }
.why__list li { display: flex; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line-light); font-size: 1.05rem; color: var(--ink); }
.why__ico { width: 24px; height: 24px; color: var(--gold-3); flex: none; padding: 4px; border-radius: 50%; border: 1px solid rgba(176, 149, 82, .45); }

.projects--sub .shead { margin-bottom: 44px; }
.works--sub { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
.works--sub .work { aspect-ratio: 4 / 5; }

.others { background: var(--ink-2); }
.ocards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.ocard { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.ocard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: brightness(.82); }
.ocard:hover .ocard__img { transform: scale(1.07); filter: brightness(1); }
.ocard__body { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; }
.ocard__t { font-family: var(--ff-display); font-size: 1.35rem; line-height: 1.05; color: var(--on-dark); }
.ocard__body .ico { width: 22px; color: var(--gold-2); flex: none; transition: transform .6s var(--ease-out); }
.ocard:hover .ocard__body .ico { transform: rotate(45deg); }

.cta-band { position: relative; overflow-x: clip; padding: clamp(60px, 9vw, 120px) 0; }
.cta-band__inner { z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; }
.cta-band .h2 { margin-top: 16px; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 23. Páginas legales ---------- */
.lhero { position: relative; overflow-x: clip; padding: calc(var(--nav-h) + 110px) 0 40px; }
.lhero .container { z-index: 1; }
.lhero__title { font-size: clamp(3rem, 8vw, 6.6rem); line-height: .92; }
.legal { padding-top: 30px; }
.legal__doc { padding: clamp(28px, 5vw, 64px); border-radius: 28px; max-width: 920px; }
.legal__doc h2 { font-family: var(--ff-display); font-weight: 500; font-size: 1.6rem; color: var(--on-dark); margin: 38px 0 12px; line-height: 1.1; }
.legal__doc h2:first-child { margin-top: 0; }
.legal__doc p, .legal__doc li { font-size: 1rem; line-height: 1.8; margin-bottom: 1em; }
.legal__doc ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal__doc strong { color: var(--on-dark); }
.legal__doc a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- 24. Revelados al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* defensa: un elemento con split nunca debe quedarse invisible */
.reveal[data-split] { opacity: 1 !important; transform: none !important; }
/* titulares: cada palabra emerge desde una máscara, con desfase */
[data-split] .sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .08em; margin: -.04em -.02em -.08em; }
[data-split] .sw > span { display: inline-block; }
.js [data-split].is-split .sw > span { transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-split].is-split.is-visible .sw > span { transform: none; }
/* desfase escalonado dentro de rejillas */
.stats .reveal:nth-child(2), .pillars .reveal:nth-child(2), .slabs .reveal:nth-child(2), .benefits .reveal:nth-child(2) { transition-delay: .08s; }
.stats .reveal:nth-child(3), .pillars .reveal:nth-child(3), .slabs .reveal:nth-child(3), .benefits .reveal:nth-child(3) { transition-delay: .16s; }
.stats .reveal:nth-child(4), .pillars .reveal:nth-child(4), .slabs .reveal:nth-child(4), .benefits .reveal:nth-child(4) { transition-delay: .24s; }
.js .work { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.js .work.is-visible { opacity: 1; transform: none; }
.js .works.is-flipping .work { transition: none; }

/* ---------- 25. Movimiento reducido: solo lo intrusivo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .badge__ring, .wa-float__ring, .marquee__item, .footer__word, .hero__scroll span { animation: none; }
  .hero__img { transition: opacity 1s; transform: none !important; }
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1180px) {
  .nav__phone span { display: none; }
  .nav__links > a, .nav__drop > a { padding: 10px 12px; letter-spacing: .1em; }
  .stats, .pillars { grid-template-columns: repeat(2, 1fr); }
  .slabs { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .slabs .slab:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --nav-h: 66px; }
  .nav__links, .nav__phone, .nav__actions > .btn { display: none; }
  .nav__burger { display: block; }
  .nav__bar { padding: 0 9px 0 18px; justify-content: space-between; }
  .nav.is-compact .nav__bar { height: 60px; }
  .about__top, .zone__grid, .contact__grid, .why__grid, .article__grid { grid-template-columns: 1fr; }
  .about__visual { min-height: 0; aspect-ratio: 1 / .95; max-width: 620px; width: 100%; margin-inline: auto; }
  .article__aside { position: static; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services__hint { display: none; }
  /* paneles apilados: el vidrio se aclara al pasar por el centro de la pantalla */
  .panes { flex-direction: column; height: auto; gap: 14px; }
  .pane { flex: none; height: 440px; cursor: default; }
  .pane__img, .pane__blur { width: 100cqw; margin-left: -50cqw; }
  .pane.is-active { flex-grow: 0; }
  .pane__closed { flex-direction: row; justify-content: flex-start; align-items: flex-end; gap: 14px; padding: 24px; }
  .pane__vt { writing-mode: horizontal-tb; transform: none; font-size: 1.7rem; }
  .works { --cell: calc((100vw - 2 * var(--gutter) - 10px) / 2); grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .works--sub { grid-template-columns: repeat(2, 1fr); }
  .work.is-big.is-right { grid-column: span 2; }
  .ocards { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .process__beam { display: none; }
  .hero__foot { flex-direction: column; align-items: stretch; }
  .hero__facts { width: 100%; }
  .hero__facts li { flex: 1; padding: 14px 16px; }
  .hero__slider { width: 100%; }
  .hero__flutes { display: none; }
  .phero--plain .hero__flutes { display: block; inset: 0; transform: none; border: 0; }
  .phero .hero__shade { background: linear-gradient(180deg, rgba(12, 16, 21, .72) 0%, rgba(12, 16, 21, .6) 45%, rgba(12, 16, 21, .92) 100%); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(12, 16, 21, .6) 0%, rgba(12, 16, 21, 0) 26%),
      linear-gradient(0deg, rgba(12, 16, 21, .95) 0%, rgba(12, 16, 21, .7) 38%, rgba(12, 16, 21, .18) 70%, rgba(12, 16, 21, .1) 100%);
  }
}
@media (max-width: 640px) {
  .section { padding-block: 88px; }
  .hero { padding-bottom: 18px; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4.4rem); }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: .66rem; letter-spacing: .06em; }
  .hero__ctas .btn .ico { display: none; }
  .hero__eyebrow { font-size: .62rem; letter-spacing: .2em; }
  .hero__eyebrow .eyebrow__line { display: none; }
  .hero__scroll { display: none; }
  .hero__facts strong { font-size: 1.35rem; }
  .hero__facts span { font-size: .6rem; letter-spacing: .14em; }
  .hero__slider { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .hero__arrows { display: none; }
  .about__cols { grid-template-columns: 1fr; gap: 16px; }
  .badge { width: 124px; height: 124px; right: 2%; }
  .badge__ring text { font-size: 14px; }
  .badge__sun { width: 44px; }
  .stats, .pillars, .slabs, .steps, .benefits, .apps { grid-template-columns: 1fr; }
  .stat { padding: 24px; }
  .pane { height: 400px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: 10px 14px; font-size: .7rem; }
  .app:nth-child(odd) { border-right: 0; }
  .app:nth-child(even) { padding-left: 4px; }
  .quote__row { grid-template-columns: 1fr; }
  .ocards { grid-template-columns: 1fr; }
  .ocard { aspect-ratio: 16 / 10; }
  .lightbox__stage { inset: 70px 12px 120px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 88px; margin: 0; width: 48px; height: 48px; }
  .lightbox__bar { border-radius: 18px; bottom: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .lang-switch { right: 20px; bottom: 80px; gap: 6px; padding: 5px; }
  .lang-switch__a { width: 30px; height: 30px; }
  .cta-band__btns .btn { flex: 1 1 100%; }
  .phero .hero__ctas .btn { flex: 1 1 100%; font-size: .72rem; }
  .phero .hero__ctas .btn .ico { display: block; }
}
