/* =====================================================================
   REVEST LACIANA · Hoja de estilos
   Identidad: pizarra #23343C · grafito #20282C · blanco cálido #F4F1EA · champán #C8AE7F
   Motivos: la muesca en V del símbolo ("el valle"), esquinas achaflanadas y la retícula de plano.
   Índice
     1. Tipografías y variables
     2. Base
     3. Utilidades y componentes (botón, etiqueta, iconos…)
     4. Cabecera y menú
     5. Hero y animación "Del plano a la realidad"
     6. Franja de confianza
     7. Quiénes somos · Hecho para Laciana
     8. Productos
     9. Servicios · Cómo trabajamos · Financiación
    10. Proyectos (mosaico y visor)
    11. Contacto
    12. Pie y botón fijo
    13. Páginas legales y 404
    14. Movimiento reducido y ajustes finos
   ===================================================================== */

/* 1 · TIPOGRAFÍAS Y VARIABLES ---------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Marca */
  --graphite: #20282c;
  --slate: #23343c;
  --paper: #f4f1ea;
  --champagne: #c8ae7f;

  /* Derivados de la paleta */
  --slate-900: #1a2226;
  --slate-800: #1f2d34;
  --slate-700: #2f444d;
  --slate-600: #3b545f;
  --slate-500: #52707c;
  --slate-300: #9db0b8;
  --slate-200: #c9d4d8;
  --slate-100: #e4eaec;
  --slate-50: #f0f4f5;
  --champagne-300: #d9c59f;
  --champagne-200: #e7dcc4;
  --champagne-700: #7f6838;
  --paper-2: #ebe6db;
  --white: #ffffff;

  /* Semántica */
  --text: var(--graphite);
  --text-2: #43535a;
  --muted: #5a6a71;
  --line: rgba(32, 40, 44, 0.14);
  --line-strong: rgba(32, 40, 44, 0.3);
  --line-inv: rgba(244, 241, 234, 0.18);
  --ok: #2f6b4f;
  --err: #a5402d;
  --focus: var(--slate);

  /* Tipografía */
  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --fs-h1: clamp(2.3rem, 0.9rem + 4.2vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 1.25rem + 2.5vw, 3.35rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  /* Geometría */
  --r: 8px;
  --r-lg: 12px;
  --chamfer: 30px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);
  --notch-w: clamp(40px, 5.5vw, 84px);
  --notch-h: clamp(34px, 4.6vw, 72px);
  --shadow-1: 0 1px 2px rgba(32, 40, 44, 0.06), 0 14px 32px -16px rgba(32, 40, 44, 0.28);
}

/* 2 · BASE ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 14px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked {
  overflow: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
button {
  font: inherit;
  color: inherit;
}
address {
  font-style: normal;
}
a,
button,
input,
select,
textarea,
label,
summary {
  touch-action: manipulation;
}
button:not(:disabled),
select,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: var(--champagne);
  color: var(--slate-900);
}
html {
  scrollbar-color: var(--slate-500) var(--paper-2);
  scrollbar-width: thin;
}
input,
select,
textarea {
  caret-color: var(--slate);
  accent-color: var(--slate);
}
::placeholder {
  opacity: 1;
}
a {
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

/* 3 · UTILIDADES Y COMPONENTES ----------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.is-dark {
  --focus: var(--champagne);
  color: var(--paper);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 0.8em 1.2em;
  background: var(--champagne);
  color: var(--slate-900);
  font: 700 0.95rem/1 var(--font-display);
  border-radius: var(--r);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* Iconos (sprite SVG en línea) */
.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.18em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
}
.is-dark .lead {
  color: var(--slate-200);
}
.sec-head {
  max-width: 46rem;
}
.sec-head .lead {
  margin-top: 1.3rem;
}

/* Botones */
.btn {
  --btn-bg: var(--champagne);
  --btn-fg: var(--slate-900);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 48px;
  padding: 0.78em 1.5em;
  font: 700 0.96rem/1.15 var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn .icon {
  transition: transform 0.3s var(--ease-out);
}
.btn--lg {
  min-height: 58px;
  padding: 0.95em 1.9em;
  font-size: 1.04rem;
}
.btn--sm {
  min-height: 42px;
  padding: 0.55em 1.1em;
  font-size: 0.86rem;
}
.btn--block {
  width: 100%;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(244, 241, 234, 0.5);
}
.btn--dark {
  --btn-bg: var(--slate);
  --btn-fg: var(--paper);
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--slate);
  --btn-bd: var(--slate);
}
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(244, 241, 234, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-bg: var(--champagne-300);
  }
  .btn--ghost:hover,
  .btn--outline-light:hover {
    --btn-bg: rgba(244, 241, 234, 0.1);
    --btn-bd: rgba(244, 241, 234, 0.85);
  }
  .btn--dark:hover {
    --btn-bg: var(--slate-700);
  }
  .btn--outline:hover {
    --btn-bg: var(--slate);
    --btn-fg: var(--paper);
  }
  .btn:hover .icon--arrow {
    transform: translateX(4px);
  }
}

/* Enlace de texto con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  font: 700 0.95rem/1.2 var(--font-display);
  font-stretch: 110%;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.4em;
}
.link-arrow .icon {
  transition: transform 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .icon {
    transform: translateX(4px);
  }
}

/* Marco con esquina achaflanada (eco del símbolo) */
.chamfer {
  --c: var(--chamfer);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}

/* La muesca en V: la sección de arriba "cuelga" una punta hacia la de abajo */
.notch {
  --from: var(--slate-800);
  --to: var(--white);
  position: relative;
  height: var(--notch-h);
  background: var(--to);
}
.notch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--from);
  clip-path: polygon(calc(50% - var(--notch-w)) 0, calc(50% + var(--notch-w)) 0, 50% 100%);
}

/* Retícula de plano (secciones oscuras) */
.grid-bg {
  position: relative;
  isolation: isolate;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 241, 234, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(244, 241, 234, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.07) 1px, transparent 1px) 0 0 / 120px 120px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
}

/* Revelado al hacer scroll (solo donde aporta) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 4 · CABECERA Y MENÚ -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  color: var(--paper);
  --focus: var(--champagne);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid {
  color: var(--graphite);
  --focus: var(--slate);
  background: rgba(244, 241, 234, 0.96);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(32, 40, 44, 0.5);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid {
    background: rgba(244, 241, 234, 0.88);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.brand {
  position: relative;
  display: block;
  flex: none;
  height: 28px;
  aspect-ratio: 1281.6 / 146;
}
@media (max-width: 400px) {
  .brand {
    height: 22px;
  }
}
.brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}
.brand__dark {
  opacity: 0;
}
.site-header.is-solid .brand__light {
  opacity: 0;
}
.site-header.is-solid .brand__dark {
  opacity: 1;
}
.menu-toggle {
  flex: none;
  order: 3;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: var(--r);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s var(--ease-out);
}
.menu-toggle:active {
  transform: scale(0.95);
}
.menu-toggle .icon {
  width: 22px;
  height: 22px;
}
.site-header__cta {
  display: none;
}

/* Menú móvil: panel lateral */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(90vw, 390px);
  height: 100dvh;
  padding: calc(var(--header-h) + 18px) 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--paper);
  background: var(--slate-900);
  transform: translate3d(104%, 0, 0);
  visibility: hidden;
  transition: transform 0.24s var(--ease-out), visibility 0s linear 0.24s;
  overflow-y: auto;
  --focus: var(--champagne);
}
.nav.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.34s var(--ease-out), visibility 0s;
}
.nav__list {
  list-style: none;
  display: grid;
  gap: 2px;
}
.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 0;
  font: 700 1.6rem/1.1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-inv);
}
.nav__link[aria-current="true"] {
  color: var(--champagne);
}
.nav__extra {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.nav-close {
  position: absolute;
  top: calc((var(--header-h) - 46px) / 2);
  right: 20px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(14, 19, 22, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

@media (min-width: 1020px) {
  .site-header__inner {
    gap: 36px;
  }
  .menu-toggle,
  .nav-close,
  .nav-backdrop,
  .nav__extra {
    display: none;
  }
  .brand {
    height: 30px;
  }
  .nav {
    position: static;
    inset: auto;
    z-index: auto;
    order: 2;
    margin-left: auto;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    gap: 0;
    color: inherit;
    background: none;
    transform: none;
    visibility: visible;
    overflow: visible;
  }
  .nav__list {
    display: flex;
    gap: clamp(18px, 2.2vw, 36px);
  }
  .nav__link {
    position: relative;
    padding: 0.5em 0;
    font: 600 0.78rem/1 var(--font-display);
    font-stretch: 112%;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 0;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--champagne);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
  }
  .nav__link[aria-current="true"] {
    color: inherit;
  }
  .nav__link[aria-current="true"]::after,
  .nav__link:focus-visible::after {
    transform: scaleX(1);
  }
  .site-header__cta {
    order: 3;
    display: inline-flex;
  }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1020px) {
  .nav__link:hover::after {
    transform: scaleX(1);
  }
}

/* 5 · HERO Y ANIMACIÓN "DEL PLANO A LA REALIDAD" ------------------------ */
.hero {
  --t-part: 2.45s; /* momento en que la lámina se parte */
  --t-line2: 2.95s; /* aparece «Lo hacemos realidad.» */
  --t-total: 4.8; /* segundos hasta dar la intro por terminada */
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(640px, 100svh);
  padding-block: calc(var(--header-h) + 36px) clamp(64px, 10vh, 120px);
  color: var(--paper);
  background: var(--slate-800);
  overflow: clip;
  --focus: var(--champagne);
}
.hero__media {
  position: absolute;
  inset: -3%;
  z-index: -3;
  will-change: transform;
}
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, var(--slate-800) 0%, rgba(31, 45, 52, 0) 24%),
    linear-gradient(180deg, rgba(26, 34, 38, 0.6) 0%, rgba(26, 34, 38, 0) 22%),
    linear-gradient(90deg, rgba(26, 34, 38, 0.92) 0%, rgba(26, 34, 38, 0.86) 30%, rgba(26, 34, 38, 0.8) 44%, rgba(26, 34, 38, 0.3) 70%, rgba(26, 34, 38, 0) 100%);
}
.hero__inner {
  position: relative;
  z-index: 4;
}
.hero__copy {
  max-width: 48rem;
}
.hero__title {
  font-size: var(--fs-h1);
  font-stretch: 114%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.028em;
  margin-bottom: 1.5rem;
}
.hero__line {
  display: block;
}
.hero__line em {
  font-style: normal;
  color: var(--champagne);
  text-shadow: 0 2px 26px rgba(26, 34, 38, 0.5);
}
.hero__lead {
  font-size: clamp(1.15rem, 1.02rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  color: rgba(244, 241, 234, 0.94);
  max-width: 28rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  font: 600 0.78rem/1.2 var(--font-display);
  font-stretch: 110%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-200);
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.hero__chips .icon {
  color: var(--champagne);
}

/* La cortina de plano: dos mitades con la geometría del símbolo (muesca en V arriba) */
.hero__curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
  background: var(--slate); /* evita ver la foto antes de que JS monte las mitades */
  transition: opacity 0.4s ease;
}
.hero__curtain.is-leaving {
  opacity: 0;
}
.intro-run .hero__curtain {
  display: block;
}
.hero__half {
  position: absolute;
  inset: 0;
  will-change: transform;
  background:
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(244, 241, 234, 0.085) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(244, 241, 234, 0.085) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--slate);
}
.hero__half--l {
  clip-path: polygon(0 0, calc(50% - 8.4vw + 1px) 0, calc(50% + 1px) 22%, calc(50% + 1px) 100%, 0 100%);
}
.hero__half--r {
  clip-path: polygon(calc(50% + 8.4vw - 1px) 0, 100% 0, 100% 100%, calc(50% - 1px) 100%, calc(50% - 1px) 22%);
}
.hero__sheet {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero__sheet .plan {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
}
@media (max-width: 760px) {
  .hero__half--l {
    clip-path: polygon(0 0, calc(50% - 15vw + 1px) 0, calc(50% + 1px) 11%, calc(50% + 1px) 100%, 0 100%);
  }
  .hero__half--r {
    clip-path: polygon(calc(50% + 15vw - 1px) 0, 100% 0, 100% 100%, calc(50% - 1px) 100%, calc(50% - 1px) 11%);
  }
  .hero__sheet {
    display: block;
    overflow: hidden;
  }
  .hero__sheet .plan {
    position: absolute;
    left: -93.6%;
    top: calc(var(--header-h) + 2vh);
    width: 197.5%;
    max-width: none;
    --sw: 1.25;
  }
}

/* Contrato de dibujo del plano (el SVG solo usa estas clases) */
.plan {
  --c: #f4f1ea;
  --cc: #c8ae7f;
  --sw: 1;
  --k: 0.85; /* velocidad global: <1 acelera */
  fill: none;
  stroke: var(--c);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan .ln {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: plan-draw calc(var(--dur, 1.1s) * var(--k)) cubic-bezier(0.6, 0.05, 0.2, 1) forwards;
  animation-delay: calc((var(--d, 0s) + var(--s, 0s)) * var(--k));
}
@keyframes plan-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.plan .w {
  stroke-width: calc(2.6px * var(--sw));
}
.plan .m {
  stroke-width: calc(1.5px * var(--sw));
}
.plan .t {
  stroke-width: calc(0.8px * var(--sw));
  opacity: 0.5;
}
.plan .a {
  stroke: var(--cc);
}
.plan .f {
  fill: var(--c);
  stroke: none;
}
.plan .fa {
  fill: var(--cc);
  stroke: none;
}
.plan .soft {
  opacity: 0.45;
}
.plan .faint {
  opacity: 0.25;
}
.plan .fade {
  opacity: 0;
  animation: plan-fade 0.7s ease forwards;
  animation-delay: calc((var(--d, 0s) + var(--s, 0s)) * var(--k));
}
@keyframes plan-fade {
  to {
    opacity: 1;
  }
}
.plan text {
  fill: var(--c);
  stroke: none;
  font-family: var(--font-mono);
  font-size: calc(11px * var(--sw));
  letter-spacing: 0.08em;
  opacity: 0;
  animation: plan-fade 0.7s ease forwards;
  animation-delay: calc((var(--d, 0s) + var(--s, 0s) + 0.25s) * var(--k));
}
.plan text.a {
  fill: var(--cc);
}

/* Guion de la intro (solo mientras .intro-run está en <html>) */
.intro-run .hero__half--l {
  animation: part-l 1.2s var(--ease-io) var(--t-part) forwards;
}
.intro-run .hero__half--r {
  animation: part-r 1.2s var(--ease-io) var(--t-part) forwards;
}
@keyframes part-l {
  to {
    transform: translate3d(-101%, 0, 0);
  }
}
@keyframes part-r {
  to {
    transform: translate3d(101%, 0, 0);
  }
}
.intro-run .hero__media img {
  animation: hero-settle 2.6s var(--ease-out) var(--t-part) both;
}
@keyframes hero-settle {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1);
  }
}
.intro-run .hero__line:first-child {
  animation: rise 0.9s var(--ease-out) 0.15s both;
}
.intro-run .hero__lead,
.intro-run .hero__cta,
.intro-run .hero__chips {
  animation: rise 0.85s var(--ease-out) calc(var(--t-line2) + 0.3s) both;
}
.intro-run .hero__chips {
  animation-delay: calc(var(--t-line2) + 0.5s);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero__skip {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  display: none;
  align-items: center;
  gap: 0.7em;
  padding: 0.65em 1em;
  font: 600 0.78rem/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(26, 34, 38, 0.55);
  border: 1px solid rgba(244, 241, 234, 0.32);
  border-radius: var(--r);
  cursor: pointer;
}
.intro-run .hero__skip {
  display: inline-flex;
}

/* Muesca en V bajo el hero */
.notch--hero {
  --from: var(--slate-800);
  --to: var(--white);
}

/* 6 · FRANJA DE CONFIANZA ---------------------------------------------- */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
}
.trust__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 2px;
  border-top: 1px solid var(--line);
}
.trust__item:first-child {
  border-top: 0;
}
.trust__item .icon {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  color: var(--slate-500);
}
.trust__title {
  font: 700 1rem/1.2 var(--font-display);
  font-stretch: 108%;
}
.trust__text {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-2);
}
@media (min-width: 560px) {
  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust__item {
    padding: 26px 20px;
  }
  .trust__item:nth-child(2) {
    border-top: 0;
  }
  .trust__item:nth-child(even) {
    border-left: 1px solid var(--line);
  }
}
@media (min-width: 940px) {
  .trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .trust__item {
    padding: 30px 26px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .trust__item:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

/* 7 · QUIÉNES SOMOS · HECHO PARA LACIANA --------------------------------- */
.about {
  background: var(--paper);
}
.about__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.about__text > * + * {
  margin-top: 1.1em;
}
.about__text h2 {
  margin-bottom: 0.5em;
}
.about__text p {
  color: var(--text-2);
  max-width: 62ch;
}
.values {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 2rem !important;
  border-top: 1px solid var(--line-strong);
}
.value {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.value .icon {
  width: 28px;
  height: 28px;
  margin-top: 4px;
  color: var(--slate-500);
}
.value__title {
  font: 700 1.06rem/1.25 var(--font-display);
  font-stretch: 108%;
  color: var(--text);
}
.value__text {
  margin-top: 0.2rem;
  font-size: 0.97rem;
  color: var(--text-2);
}
.about__cta {
  margin-top: 2rem !important;
}
.about__media {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  padding-bottom: 9%;
}
.about__figure {
  margin: 0;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
  --c: 56px;
}
.about__plans {
  position: absolute;
  left: -3%;
  bottom: 0;
  width: 54%;
  margin: 0;
  background: var(--paper);
  padding: 8px;
  box-shadow: var(--shadow-1);
}
.about__plans img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.about__figure .credit {
  padding-left: 58%;
  text-align: right;
}
.credit {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}
.is-dark .credit {
  color: var(--slate-300);
}
@media (min-width: 980px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(56px, 7vw, 110px);
  }
}

.perf {
  background: var(--slate-800);
  color: var(--paper);
  --focus: var(--champagne);
}
.perf__list {
  list-style: none;
  display: grid;
  gap: 22px;
  margin-top: clamp(36px, 5vw, 60px);
}
@media (min-width: 760px) {
  .perf__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }
}
.perf__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--slate-700);
  --c: 34px;
}
.perf__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.perf__title {
  margin-top: 1rem;
  font: 700 clamp(1.1rem, 1rem + 0.5vw, 1.35rem) / 1.2 var(--font-display);
  font-stretch: 110%;
  max-width: 17em;
}
@media (hover: hover) and (pointer: fine) {
  .perf__item:hover .perf__frame img {
    transform: scale(1.05);
  }
}

/* 8 · PRODUCTOS --------------------------------------------------------- */
.products {
  background: var(--white);
}
.products__grid {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 68px);
  align-items: start;
}
@media (min-width: 880px) {
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }
}
.cat {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.cat__media {
  position: relative;
  margin-bottom: 0;
}
.cat__frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
  --c: var(--chamfer);
}
.cat__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.cat__icon {
  position: absolute;
  left: 28px;
  bottom: -28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--slate-900);
  background: var(--champagne);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.cat__icon .icon {
  width: 26px;
  height: 26px;
}
.cat__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 50px 28px 28px;
}
.cat__title {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
}
.cat__short {
  margin-top: 0.8rem;
  color: var(--text-2);
}
.cat__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: auto;
  padding-top: 1.6rem;
}
.cat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0.6em 1.15em;
  font: 700 0.92rem/1.1 var(--font-display);
  font-stretch: 110%;
  color: var(--slate);
  background: transparent;
  border: 1.5px solid var(--slate);
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}
.cat__toggle:active {
  transform: scale(0.97);
}
.cat__toggle .icon {
  transition: transform 0.35s var(--ease-out);
}
.cat__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.cat__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.cat__more.is-open {
  grid-template-rows: 1fr;
}
.cat__more-inner {
  overflow: hidden;
  min-height: 0;
}
.cat__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-strong);
}
.cat__list li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: 0.97rem;
}
.cat__list .icon {
  margin-top: 0.28em;
  color: var(--champagne-700);
}
.cat__quote {
  margin-top: 1.2rem;
}
@media (hover: hover) and (pointer: fine) {
  .cat:hover .cat__frame img {
    transform: scale(1.045);
  }
  .cat__toggle:hover {
    background: var(--slate);
    color: var(--paper);
  }
}

/* 9 · SERVICIOS · CÓMO TRABAJAMOS · FINANCIACIÓN ------------------------ */
.services {
  background: var(--slate);
  color: var(--paper);
  --focus: var(--champagne);
}
.services__layout {
  display: grid;
  gap: 52px;
}
.services__intro > * + * {
  margin-top: 1.2rem;
}
.services__intro .btn {
  margin-top: 2rem;
}
.svc-list {
  list-style: none;
  border-top: 1px solid var(--line-inv);
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line-inv);
}
.svc::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.svc__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--champagne);
  background: rgba(200, 174, 127, 0.13);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
.svc__icon .icon {
  width: 25px;
  height: 25px;
}
.svc__title {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
}
.svc__text {
  margin-top: 0.5rem;
  max-width: 38rem;
  color: var(--slate-200);
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover::after {
    transform: scaleX(1);
  }
}
@media (min-width: 980px) {
  .services__layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(56px, 8vw, 120px);
    align-items: start;
  }
  .services__intro {
    position: sticky;
    top: calc(var(--header-h) + 36px);
  }
}

.process {
  background: var(--paper);
}
.steps {
  --progress: 0;
  position: relative;
  display: grid;
  gap: 40px;
  margin-top: clamp(44px, 6vw, 80px);
  list-style: none;
  counter-reset: step;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.steps::after {
  background: var(--champagne);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.step {
  position: relative;
  padding-left: 44px;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--slate-500);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.step.is-reached::before {
  background: var(--champagne);
  border-color: var(--champagne);
}
.step__num {
  display: block;
  font: 800 clamp(3rem, 5.4vw, 4.6rem)/1 var(--font-display);
  font-stretch: 125%;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--slate-500);
  margin-bottom: 0.6rem;
}
.step__title {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}
.step__text {
  margin-top: 0.6rem;
  color: var(--text-2);
  max-width: 26rem;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
    padding-top: 34px;
  }
  .steps::before,
  .steps::after {
    left: 0;
    right: 0;
    top: 5px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .steps::after {
    transform-origin: left;
    transform: scaleX(var(--progress));
  }
  .step {
    padding-left: 0;
  }
  .step::before {
    top: -34px;
  }
}

.finance {
  background: var(--slate-800);
  color: var(--paper);
  overflow: clip;
  --focus: var(--champagne);
}
.finance__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.finance__text > * + * {
  margin-top: 1.2rem;
}
.finance__bullets {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  margin-top: 1.8rem !important;
}
.finance__bullets li {
  display: flex;
  gap: 0.85em;
  align-items: flex-start;
  color: var(--paper);
}
.finance__bullets .icon {
  margin-top: 0.3em;
  color: var(--champagne);
}
.finance__cta {
  margin-top: 2rem !important;
}
.finance__note {
  max-width: 34rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--slate-300);
}
.finance__media {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
}
.finance__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid rgba(200, 174, 127, 0.55);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.finance__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 980px) {
  .finance__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(56px, 8vw, 120px);
  }
}

/* 10 · PROYECTOS: MOSAICO Y VISOR ---------------------------------------- */
.gallery {
  background: var(--white);
}
.gallery__head {
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 900px) {
  .gallery__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
.mosaic {
  columns: 1;
  column-gap: 18px;
  margin-top: clamp(36px, 5vw, 60px);
}
@media (min-width: 620px) {
  .mosaic {
    columns: 2;
  }
}
@media (min-width: 1000px) {
  .mosaic {
    columns: 3;
    column-gap: 22px;
  }
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1000px) {
  .tile {
    margin-bottom: 22px;
  }
}
.tile img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease-out);
}
.tile__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.55em 0.85em;
  font: 600 0.76rem/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(26, 34, 38, 0.86);
}
.tile__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--slate-900);
  background: var(--champagne);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}
.tile:focus-visible .tile__zoom {
  opacity: 1;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover img {
    transform: scale(1.05);
  }
  .tile:hover .tile__zoom {
    opacity: 1;
    transform: none;
  }
}
/* Revelado por recorte: la imagen "se descubre" de arriba abajo */
.js .tile[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.js .tile[data-reveal] img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s var(--ease-io) calc(var(--i, 0) * 100ms), transform 0.9s var(--ease-out);
}
.js .tile[data-reveal].is-in img {
  clip-path: inset(0 0 0 0);
}
.js .tile[data-reveal] .tile__tag {
  opacity: 0;
  transition: opacity 0.5s ease calc(0.75s + var(--i, 0) * 100ms);
}
.js .tile[data-reveal].is-in .tile__tag {
  opacity: 1;
}
/* Escritorio: mosaico de 3 columnas × 8 filas; cada columna suma 8 filas (alto 4 / apaisado 2) */
@media (min-width: 1000px) {
  .mosaic {
    --mw: min(100vw - 2 * var(--gutter), var(--container));
    --w: calc((var(--mw) - 40px) / 3);
    --u: calc((var(--w) * 1.5 - 60px) / 4);
    columns: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(8, var(--u));
    gap: 20px;
  }
  .tile {
    height: 100%;
    margin: 0;
  }
  .tile img {
    height: 100%;
    object-fit: cover;
  }
  .tile[data-slot="a"] { grid-column: 1; grid-row: 1 / span 4; }
  .tile[data-slot="b"] { grid-column: 1; grid-row: 5 / span 2; }
  .tile[data-slot="g"] { grid-column: 1; grid-row: 7 / span 2; }
  .tile[data-slot="c"] { grid-column: 2; grid-row: 1 / span 2; }
  .tile[data-slot="d"] { grid-column: 2; grid-row: 3 / span 2; }
  .tile[data-slot="h"] { grid-column: 2; grid-row: 5 / span 4; }
  .tile[data-slot="e"] { grid-column: 3; grid-row: 1 / span 4; }
  .tile[data-slot="f"] { grid-column: 3; grid-row: 5 / span 4; }
  .mosaic.is-filtered {
    display: block;
    column-gap: 22px;
  }
  .mosaic.is-filtered .tile[data-slot] {
    height: auto;
    margin: 0 0 22px;
    grid-column: auto;
    grid-row: auto;
  }
  .mosaic.is-filtered .tile img {
    height: auto;
  }
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 3.5vw, 40px);
}
.filter {
  min-height: 44px;
  padding: 0.55em 1.15em;
  font: 600 0.88rem/1.1 var(--font-display);
  font-stretch: 108%;
  color: var(--slate);
  background: transparent;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.filter:active {
  transform: scale(0.97);
}
.filter.is-active {
  color: var(--paper);
  background: var(--slate);
  border-color: var(--slate);
}
@media (hover: hover) and (pointer: fine) {
  .filter:not(.is-active):hover {
    border-color: var(--slate);
  }
}
.tile[hidden] {
  display: none;
}
.mosaic.is-filtered {
  columns: var(--cols, 3);
  column-gap: 20px;
  display: block;
  max-width: calc(var(--cols, 3) * 440px);
}
.tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.tile__play::before {
  content: "";
  grid-area: 1 / 1;
  width: 76px;
  height: 76px;
  background: var(--champagne);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.35s var(--ease-out);
}
.tile__play .icon {
  grid-area: 1 / 1;
  z-index: 1;
  width: 26px;
  height: 26px;
  margin-left: 3px;
  color: var(--slate-900);
}
.tile__dur {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 0.55em 0.7em;
  font: 600 0.76rem/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: rgba(26, 34, 38, 0.86);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .tile--video:hover .tile__play::before {
    transform: scale(1.08);
  }
}
.gallery__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.gallery__foot p {
  max-width: 36rem;
  color: var(--text-2);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: transparent;
  overflow: hidden;
  --focus: var(--champagne);
}
.lightbox::backdrop {
  background: rgba(16, 22, 25, 0.94);
}
.lightbox[open] {
  animation: lb-in 0.28s var(--ease-out);
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
}
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 64px clamp(12px, 5vw, 96px) 22px;
}
.lightbox__figure {
  margin: 0;
  min-height: 0;
  display: grid;
  place-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  transition: opacity 0.25s ease;
}
.lightbox__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.lightbox__video[hidden],
.lightbox__img[hidden] {
  display: none;
}
.lightbox__img.is-loading {
  opacity: 0.25;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}
.lightbox__caption {
  max-width: 52rem;
  color: var(--slate-200);
}
.lightbox__count {
  flex: none;
  font: 600 0.78rem/1 var(--font-display);
  font-stretch: 110%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--paper);
  background: rgba(244, 241, 234, 0.08);
  border: 1.5px solid rgba(244, 241, 234, 0.35);
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.16s var(--ease-out);
}
.lightbox__btn:active {
  transform: scale(0.95);
}
.lightbox__btn--close {
  top: 14px;
  right: clamp(12px, 3vw, 28px);
}
.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  margin-top: -26px;
}
.lightbox__btn--prev {
  left: clamp(8px, 2vw, 28px);
}
.lightbox__btn--next {
  right: clamp(8px, 2vw, 28px);
}
@media (hover: hover) and (pointer: fine) {
  .lightbox__btn:hover {
    background: rgba(244, 241, 234, 0.2);
  }
}
@media (max-width: 700px) {
  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 70px;
    margin-top: 0;
  }
}

/* 11 · CONTACTO ----------------------------------------------------------- */
.contact {
  background: var(--paper);
}
.contact__grid {
  display: grid;
  gap: 32px;
  margin-top: clamp(36px, 5vw, 60px);
  align-items: stretch;
}
@media (min-width: 980px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 36px;
  }
}
.form-card {
  position: relative;
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--white);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.form-card__title {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  margin-bottom: 1.5rem;
}
.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}
.field label,
.field legend {
  font-weight: 650;
  font-size: 0.95rem;
}
.field .req {
  margin-left: 0.15em;
  color: var(--err);
  font-weight: 700;
}
.form-required {
  margin: -0.6rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75em 0.95em;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2323343C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 12px 8px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #66767d;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate-500);
  box-shadow: 0 0 0 4px rgba(82, 112, 124, 0.24);
}
.field [aria-invalid="true"] {
  border-color: var(--err);
  box-shadow: 0 0 0 4px rgba(165, 64, 45, 0.12);
}
.field__error {
  min-height: 1.25em;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--err);
}
.field__error:empty {
  display: none;
}
.field-row {
  display: grid;
  gap: 0;
}
@media (min-width: 620px) {
  .field-row--2 {
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0.4rem 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-2);
}
.consent input {
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 1px 0 0;
  accent-color: var(--slate);
}
.consent a {
  color: var(--slate);
  font-weight: 600;
}
.form-actions {
  display: grid;
  gap: 14px;
  margin-top: 1.4rem;
}
.form-note {
  font-size: 0.86rem;
  color: var(--muted);
}
.form-summary {
  margin-bottom: 1.4rem;
  padding: 16px 18px;
  color: var(--err);
  background: rgba(165, 64, 45, 0.07);
  border: 1px solid rgba(165, 64, 45, 0.4);
  border-radius: var(--r);
}
.form-summary:focus-visible {
  outline: 3px solid var(--err);
  outline-offset: 3px;
}
.form-summary__title {
  font: 700 1rem/1.3 var(--font-display);
  font-stretch: 108%;
}
.form-summary ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.2rem;
}
.form-summary a {
  color: var(--err);
  font-weight: 600;
}
.form-status {
  margin-top: 1rem;
}
.form-status[hidden] {
  display: none;
}
.form-alert {
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--err);
  background: rgba(165, 64, 45, 0.07);
  border: 1px solid rgba(165, 64, 45, 0.4);
  border-radius: var(--r);
}
.form-success {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(6px, 2vw, 18px) 0;
}
.form-success[hidden] {
  display: none;
}
.form-success .icon {
  width: 44px;
  height: 44px;
  color: var(--ok);
}
.form-success h3 {
  font-size: 1.5rem;
}
.is-sending .btn {
  opacity: 0.7;
  pointer-events: none;
}

.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 44px);
  color: var(--paper);
  background: var(--slate);
  --focus: var(--champagne);
}
.info-card h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  margin-bottom: 0.4rem;
}
.info-list {
  list-style: none;
}
.info-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-inv);
}
.info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-item > .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--champagne);
}
.info-item__label {
  font: 600 0.76rem/1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-bottom: 0.55rem;
}
.info-item a {
  overflow-wrap: anywhere;
  display: inline-block;
  padding: 0.25rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.35);
}
.info-item a:hover {
  border-bottom-color: var(--champagne);
}
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.4rem;
  margin: 0;
}
.hours dt {
  color: var(--slate-200);
}
.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .hours {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hours dd {
    margin-bottom: 0.7rem;
  }
}
.info-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--slate-300);
}
.info-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 1.8rem;
}
@media (min-width: 520px) {
  .info-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.map {
  position: relative;
  margin-top: 36px;
  min-height: 340px;
  background: var(--slate-800);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  display: grid;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__consent {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: start;
  padding: clamp(26px, 5vw, 56px);
  max-width: 34rem;
}
.map__consent h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
}
.map__consent p {
  color: var(--slate-200);
  font-size: 0.97rem;
}
.map__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.map.is-loaded .map__consent,
.map.is-loaded .map__art {
  display: none;
}

/* 12 · PIE Y BOTÓN FIJO ----------------------------------------------------- */
.notch--footer {
  --from: var(--paper);
  --to: var(--graphite);
}
.site-footer {
  background: var(--graphite);
  color: var(--slate-200);
  padding: clamp(48px, 6vw, 88px) 0 30px;
  --focus: var(--champagne);
}
.footer__grid {
  display: grid;
  gap: 44px;
}
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}
.footer__brand img {
  height: 30px;
  width: auto;
}
.footer__blurb {
  margin-top: 1.4rem;
  max-width: 26rem;
  font-size: 0.97rem;
}
.footer__title {
  margin: 0 0 1rem;
  font: 600 0.78rem/1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
}
.footer__list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.footer__list a {
  display: inline-block;
  padding: 0.3rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--champagne);
}
.social {
  display: flex;
  gap: 10px;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--paper);
  border: 1.5px solid rgba(244, 241, 234, 0.35);
  border-radius: var(--r);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.social a:active {
  transform: scale(0.95);
}
.social .icon {
  width: 21px;
  height: 21px;
}
@media (hover: hover) and (pointer: fine) {
  .social a:hover {
    color: var(--slate-900);
    background: var(--champagne);
    border-color: var(--champagne);
  }
}
.footer__notice {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line-inv);
  display: grid;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--slate-300);
}
.footer__notice strong {
  color: var(--paper);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--slate-300);
}

.sticky-cta {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 50;
  display: flex;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  --focus: var(--champagne);
}
.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
}
.sticky-cta .btn {
  min-height: 54px;
  box-shadow: 0 14px 30px -12px rgba(16, 22, 25, 0.6);
}
.sticky-cta__call {
  display: none;
}
@media (max-width: 760px) {
  .sticky-cta {
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(26, 34, 38, 0.96);
    box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.5);
  }
  .sticky-cta .btn {
    box-shadow: none;
    flex: 1;
  }
  .sticky-cta__call {
    display: inline-flex;
    flex: 0 0 auto;
    margin-right: 10px;
    --btn-bg: transparent;
    --btn-fg: var(--paper);
    --btn-bd: rgba(244, 241, 234, 0.45);
  }
  html {
    scroll-padding-bottom: 96px;
  }
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* 13 · PÁGINAS LEGALES Y 404 -------------------------------------------------- */
.page-legal {
  background: var(--paper);
}
.legal-hero {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 4vw, 48px);
  color: var(--paper);
  background: var(--slate);
}
.legal-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-stretch: 118%;
}
.legal-wrap {
  padding-block: clamp(40px, 6vw, 80px) var(--section-y);
}
.legal {
  max-width: 50rem;
}
.legal > h1 {
  display: none;
}
.legal h2 {
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
}
.legal h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.legal p,
.legal li {
  color: var(--text-2);
}
.legal p + p {
  margin-top: 0.9rem;
}
.legal ul,
.legal ol {
  margin: 0.9rem 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
}
.legal a {
  color: var(--slate);
  font-weight: 600;
}
.legal__updated {
  margin-bottom: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.legal__table {
  width: 100%;
  margin-top: 1.2rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.legal__table th,
.legal__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-strong);
}
.legal__table th {
  font: 700 0.8rem/1.2 var(--font-display);
  font-stretch: 108%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--paper-2);
}
.legal__table-wrap {
  overflow-x: auto;
}
mark.todo {
  padding: 0.05em 0.35em;
  color: var(--slate-900);
  background: var(--champagne-200);
  border-bottom: 2px solid var(--champagne);
}
[data-placeholder] {
  text-decoration: underline dotted rgba(127, 104, 56, 0.6);
  text-underline-offset: 0.25em;
}

.nf {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 80px;
  color: var(--paper);
  background: var(--slate);
}
.nf__code {
  font: 800 clamp(5rem, 18vw, 12rem)/0.9 var(--font-display);
  font-stretch: 125%;
  color: transparent;
  -webkit-text-stroke: 2px var(--champagne);
}
.nf h1 {
  margin: 1.2rem 0 1rem;
  font-size: var(--fs-h2);
}
.nf p {
  max-width: 32rem;
  color: var(--slate-200);
}
.nf .btn {
  margin-top: 2rem;
}

/* 14 · MOVIMIENTO REDUCIDO Y AJUSTES FINOS ----------------------------------------- */
@media (max-width: 480px) {
  body {
    font-size: 1.03rem;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .cat__actions .btn,
  .cat__actions .cat__toggle {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .hero {
    align-items: end;
    padding-block: calc(var(--header-h) + 24px) 40px;
  }
  .hero__media img {
    object-position: 50% 50%;
  }
  .hero__shade {
    background:
      linear-gradient(0deg, var(--slate-800) 0%, rgba(31, 45, 52, 0) 18%),
      linear-gradient(180deg, rgba(26, 34, 38, 0.7) 0%, rgba(26, 34, 38, 0) 22%),
      linear-gradient(0deg, rgba(26, 34, 38, 0.96) 0%, rgba(26, 34, 38, 0.82) 48%, rgba(26, 34, 38, 0.3) 100%);
  }
  .hero__chips {
    display: none;
  }
  .hero__skip {
    left: auto;
    right: var(--gutter);
    bottom: auto;
    top: calc(var(--header-h) + 8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .hero__curtain {
    display: none !important;
  }
  .js [data-reveal],
  .js .tile[data-reveal] img {
    clip-path: none;
  }
  .js .tile[data-reveal] .tile__tag {
    opacity: 1;
  }
}
@media print {
  .site-header,
  .sticky-cta,
  .hero__curtain,
  .nav,
  .nav-backdrop {
    display: none !important;
  }
  .hero {
    min-height: 0;
    color: var(--text);
    background: none;
  }
}
