/* ==========================================================================
   Canarias Prime Homes — styles.css
   Paleta: azul atlántico profundo · blanco hueso · arena · piedra volcánica
   ========================================================================== */

/* Tipografías autoalojadas (sin llamadas a Google: más rápido y compatible con RGPD) */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@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: 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: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #081320;
  --navy: #0B1B2C;
  --navy-2: #12283F;
  --ocean: #24506F;
  --sand: #D6BF98;
  --sand-2: #E9DECB;
  --sand-3: #F2EBDF;
  --bone: #F7F3EC;
  --paper: #FBF9F5;
  --stone: #7F7A70;
  --stone-2: #A9A397;
  --sage: #8C9A7E;
  --line-dark: rgba(247, 243, 236, .14);
  --line-light: rgba(11, 27, 44, .12);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1440px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section--dark { background: var(--navy); color: var(--bone); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--stone); display: inline-flex; align-items: center; gap: 12px;
}
.section--dark .eyebrow { color: var(--sand); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 0 rgba(214,191,152,.6); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,191,152,.55); } 70% { box-shadow: 0 0 0 10px rgba(214,191,152,0); } 100% { box-shadow: 0 0 0 0 rgba(214,191,152,0); } }

.h2 {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.015em;
  font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: 1.02; margin-top: 22px;
  text-wrap: balance;
}
.h2 em, .h3 em, .hero__title em, .footer__claim em { font-weight: 300; color: var(--ocean); }
.section--dark .h2 em, .hero__title em, .footer__claim em { color: var(--sand); }
.h2--xl { font-size: clamp(2.9rem, 7vw, 7rem); }
.h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; margin-top: 16px; }

.section-head { max-width: 980px; margin-bottom: clamp(56px, 7vw, 104px); }
.section-head__lead { margin-top: 28px; max-width: 540px; font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--stone); }
.section--dark .section-head__lead { color: rgba(247,243,236,.66); }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; }
.section-head--split .section-head__lead { margin-top: 0; justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 19px 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sand { background: var(--sand); color: var(--ink); }
.btn--sand::before { background: var(--bone); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--bone); }
.btn--ghost::before { background: var(--sand); }
.btn--ghost:hover { color: var(--ink); border-color: var(--sand); }
.btn--sm { padding: 14px 22px; font-size: 11px; }
.btn--block { width: 100%; }

.link-line {
  position: relative; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 0; color: var(--bone);
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); }

/* ---------- Image placeholders (listos para sustituir por <img>) ---------- */
.ph {
  position: relative; overflow: hidden; width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(214,191,152,.22), transparent 60%),
    linear-gradient(160deg, #1B3A57 0%, #0E2033 70%);
  isolation: isolate;
}
.ph--sand {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(160deg, #E9DCC5 0%, #CDB48B 100%);
}
.ph::before { /* líneas topográficas sutiles */
  content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .5;
  background: repeating-radial-gradient(ellipse at 70% 30%, transparent 0 22px, rgba(255,255,255,.07) 22px 23px);
}
.ph--sand::before { background: repeating-radial-gradient(ellipse at 30% 70%, transparent 0 22px, rgba(11,27,44,.07) 22px 23px); }
.ph::after { /* barrido de luz */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%);
  transform: translateX(-100%); animation: sweep 6s var(--ease-in-out) infinite;
}
@keyframes sweep { 0%, 35% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }
.ph__tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(247,243,236,.7); display: flex; align-items: center; gap: 8px;
  white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden;
}
.hero__arch .ph__tag { left: auto; right: 22px; top: 50%; bottom: auto; }
.ph__tag::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.ph--sand .ph__tag { color: rgba(11,27,44,.6); }
.ph > img, .ph > picture, .ph > picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3;
}
.ph:has(> img)::after, .ph:has(> picture)::after { display: none; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--bone);
  transition: transform 1.1s var(--ease-in-out), visibility 0s 1.1s;
  animation: loaderSafety 0s 5.5s forwards; /* red de seguridad sin JS */
}
@keyframes loaderSafety { to { transform: translateY(-100%); visibility: hidden; } }
.loader__inner { text-align: center; transition: opacity .5s, transform .9s var(--ease-in-out); }
.loader__mark { width: 58px; height: 58px; margin: 0 auto 22px; fill: none; stroke: var(--sand); stroke-width: 1.4; }
.loader__mark path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s var(--ease) forwards; }
.loader__mark path + path { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__word { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 300; letter-spacing: .01em; }
.loader__word em { color: var(--sand); }
.loader__count { margin-top: 26px; font-size: 11px; letter-spacing: .3em; color: var(--stone-2); font-variant-numeric: tabular-nums; }
.is-loaded .loader { transform: translateY(-100%); visibility: hidden; }
.is-loaded .loader__inner { opacity: 0; transform: translateY(-40px); }

/* ---------- Global overlays ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 950; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--sand); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 980; pointer-events: none; mix-blend-mode: difference; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate3d(var(--x, -100px), var(--y, -100px), 0); }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.7);
    transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0) scale(var(--s, 1));
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
    display: grid; place-items: center;
  }
  .cursor__ring em { font-style: normal; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
  .cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.12); }
  .cursor.is-view .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
  .cursor.is-view .cursor__ring em { opacity: 1; }
  .cursor.is-view .cursor__dot { opacity: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800; color: var(--bone);
  transition: transform .6s var(--ease), background .5s, backdrop-filter .5s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(8, 19, 32, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-dark); transition: opacity .5s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-101%); }
.header__bar { display: flex; align-items: center; gap: 40px; height: 88px; transition: height .5s var(--ease); }
.header.is-scrolled .header__bar { height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; fill: none; stroke: var(--sand); stroke-width: 2; }
.brand__word { font-family: var(--serif); font-size: 1.42rem; font-weight: 400; line-height: 1; letter-spacing: .01em; display: flex; flex-direction: column; }
.brand__word small { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--sand); margin-bottom: 5px; }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: 13px; font-weight: 500; letter-spacing: .04em; opacity: .82; transition: opacity .3s; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 50%; border: 1px solid var(--line-dark); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 790; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between; padding: 120px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.18; border-bottom: 1px solid var(--line-dark);
  padding: 6px 0; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease);
}
.menu__nav a i { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--sand); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; } .menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; } .menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; } .menu-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(247,243,236,.7); }

/* ---------- Topographic lines ---------- */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.topo path { stroke: rgba(214, 191, 152, .10); vector-effect: non-scaling-stroke; }
.js .topo path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .topo.is-drawn path { animation: topoDraw 3.2s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes topoDraw { to { stroke-dashoffset: 0; } }
.topo--section path { stroke: rgba(214,191,152,.11); }
.topo--contact path { stroke: rgba(214,191,152,.10); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding-top: clamp(120px, 15vh, 170px);
}
.hero .topo--hero { animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); } }
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; right: -22vw; top: -30vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(214,191,152,.20) 0%, rgba(36,80,111,.18) 35%, transparent 65%);
  filter: blur(10px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; flex: 1; }
.hero__copy { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__eyebrow { color: var(--sand); }
.hero__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.3rem, min(8.6vw, 13.5vh), 9.6rem);
  line-height: .93; letter-spacing: -.025em; margin: 30px 0 34px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: .9em; }
.hero__lead { max-width: 500px; font-size: clamp(1rem, 1.15vw, 1.1rem); color: rgba(247,243,236,.72); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 40px; }

.hero__visual { grid-column: 8 / span 5; position: relative; height: clamp(440px, 60vh, 700px); }
.hero__arch { position: absolute; right: 0; top: 0; width: 80%; height: 92%; }
.hero__arch .ph { border-radius: 999px 999px 4px 4px; }
.hero__inset { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3; z-index: 2; }
.hero__inset .ph { border: 8px solid var(--ink); border-radius: 4px; }
.badge { position: absolute; left: 4%; top: 6%; width: 136px; height: 136px; z-index: 3; }
.badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font-size: 15.5px; letter-spacing: .26em; text-transform: uppercase; fill: var(--sand); font-family: var(--sans); font-weight: 500; }
.badge__core {
  position: absolute; inset: 30%; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .06em;
}
@keyframes spin { to { transform: rotate(360deg); } }
.float-card {
  position: absolute; right: -2%; bottom: 20%; z-index: 3; width: 210px; padding: 18px 20px 16px;
  border-radius: 14px; background: rgba(247,243,236,.08); border: 1px solid rgba(247,243,236,.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }
.float-card__k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,236,.6); }
.float-card__v { font-family: var(--serif); font-size: 3rem; line-height: 1; margin-top: 8px; }
.float-card__v small { font-size: 1.4rem; color: var(--sand); margin-left: 2px; }
.spark { width: 100%; height: 34px; margin-top: 8px; fill: none; stroke: var(--sand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spark path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2.4s 1.8s var(--ease) forwards; }

.hero__foot { position: relative; display: flex; align-items: flex-end; gap: 48px; padding-top: 32px; padding-bottom: 28px; }
.scroll-cue { display: flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(247,243,236,.6); white-space: nowrap; }
.scroll-cue__line { position: relative; width: 1px; height: 54px; background: rgba(247,243,236,.18); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--sand); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
.kpis { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.kpis li { padding: 22px 22px 0 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.kpis li + li { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.kpis strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; }
.kpis li > span { font-size: 12.5px; color: rgba(247,243,236,.58); }

/* Hero intro choreography */
.js [data-hero] { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js .hero__title [data-hero] { opacity: 1; transform: translateY(110%); transition: transform 1.5s var(--ease); }
.js [data-hero="7"] { transform: translateY(0) scale(.96); clip-path: inset(12% 0 0 0 round 4px); transition: opacity 1.4s var(--ease), transform 1.8s var(--ease), clip-path 1.8s var(--ease); }
.is-loaded [data-hero] { opacity: 1; transform: none !important; }
.is-loaded [data-hero="7"] { clip-path: inset(0 0 0 0 round 0); }
.is-loaded [data-hero="2"] { transition-delay: .15s; } .is-loaded [data-hero="3"] { transition-delay: .27s; }
.is-loaded [data-hero="4"] { transition-delay: .39s; } .is-loaded [data-hero="5"] { transition-delay: .6s; }
.is-loaded [data-hero="6"] { transition-delay: .72s; } .is-loaded [data-hero="7"] { transition-delay: .2s; }
.js .hero__foot { opacity: 0; transition: opacity 1.4s 1s var(--ease); }
.is-loaded .hero__foot { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee { background: var(--bone); overflow: hidden; padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line-light); }
.marquee__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(11,27,44,.35); transition: color .5s; }
.marquee span:nth-of-type(odd) { color: var(--navy); -webkit-text-stroke: 0; font-style: italic; }
.marquee i { font-style: normal; color: var(--sand); font-size: clamp(1rem, 2vw, 1.6rem); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--bone); padding-top: clamp(100px, 12vw, 180px); }
.manifesto__grid { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; align-items: start; }
.manifesto__grid > .eyebrow { padding-top: 18px; }
.manifesto__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.7vw, 3.7rem); line-height: 1.16; letter-spacing: -.01em; color: var(--navy); text-wrap: pretty; }
.manifesto__text .w { opacity: .14; transition: opacity .35s linear; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__sign { display: flex; align-items: center; gap: 22px; margin-top: 48px; color: var(--stone); font-size: 14px; }
.manifesto__rule { width: 72px; height: 1px; background: var(--sand); flex: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .h2.reveal:not(.in) { transform: translateY(46px); }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.svc { border-top: 1px solid var(--line-light); counter-reset: svc; }
.svc__item {
  position: relative; display: grid; grid-template-columns: 90px 1.1fr 1fr 220px; gap: 32px; align-items: start;
  padding: 38px 0; border-bottom: 1px solid var(--line-light); cursor: default;
}
.svc__item::before { /* capa hover */
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--navy); z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.svc__item > * { position: relative; z-index: 1; transition: color .5s var(--ease), transform .7s var(--ease); }
.svc__n { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--stone); padding-top: 12px; }
.svc__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.08; }
.svc__d { color: var(--stone); font-size: 15px; padding-top: 6px; max-width: 460px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 8px; }
.svc__tags em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--stone); transition: border-color .5s, color .5s; }
@media (hover: hover) {
  .svc__item:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc__item:hover > * { color: var(--bone); }
  .svc__item:hover .svc__t { transform: translateX(14px); }
  .svc__item:hover .svc__n { color: var(--sand); }
  .svc__item:hover .svc__d { color: rgba(247,243,236,.7); }
  .svc__item:hover .svc__tags em { border-color: rgba(214,191,152,.4); color: var(--sand); }
}
.svc-preview { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .js .svc-preview {
    display: block; position: fixed; left: 0; top: 0; width: 300px; height: 380px; z-index: 50; pointer-events: none;
    transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--pr, 0deg)); border-radius: 4px; overflow: hidden;
    clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  }
  .js .svc-preview.is-on { clip-path: inset(0 0 0 0); }
  .svc-preview .ph { position: absolute; inset: 0; opacity: 0; transform: scale(1.12); transition: opacity .5s, transform .9s var(--ease); }
  .svc-preview .ph.is-on { opacity: 1; transform: none; }
}

/* ---------- Advantages ---------- */
.advantages { overflow: hidden; }
.bento { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: 6px; padding: clamp(26px, 2.6vw, 40px);
  background: linear-gradient(180deg, rgba(247,243,236,.045), rgba(247,243,236,.015));
  border: 1px solid var(--line-dark); min-height: 280px; display: flex; flex-direction: column;
  transition: border-color .5s, transform .6s var(--ease);
}
.card::before { /* foco que sigue al cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(214,191,152,.14), transparent 60%);
}
.card:hover { border-color: rgba(214,191,152,.35); }
.card:hover::before { opacity: 1; }
.card--xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--navy-2), rgba(36,80,111,.35)); }
.card--wide { grid-column: span 4; min-height: 0; }
.card__k { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); }
.card__big { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 11vw, 10rem); line-height: .9; margin: 20px 0 10px; letter-spacing: -.03em; }
.card__big small { font-size: .42em; color: var(--sand); }
.card__ico { width: 44px; height: 44px; fill: none; stroke: var(--sand); stroke-width: 1.3; margin-bottom: auto; }
.card__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.9vw, 1.9rem); line-height: 1.1; margin-top: 36px; }
.card--xl .card__t { margin-top: 0; font-size: clamp(1.7rem, 2.3vw, 2.3rem); }
.card__d { margin-top: 12px; font-size: 14.5px; color: rgba(247,243,236,.62); max-width: 460px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-top: auto; padding-top: 36px; }
.bars span { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--sand), rgba(214,191,152,.15)); transform-origin: bottom; transform: scaleY(1); transition: transform 1.2s var(--ease); }
.js .card--xl:not(.in) .bars span { transform: scaleY(0); }
.bars span:nth-child(n) { transition-delay: calc(var(--h) * .6s); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.compare__col { padding: 6px 36px 6px 0; }
.compare__col--us { padding: 6px 0 6px 36px; border-left: 1px solid var(--line-dark); }
.compare__h { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 18px; }
.compare__col--us .compare__h { color: var(--sand); }
.compare li { position: relative; padding: 10px 0 10px 28px; font-size: 15px; color: rgba(247,243,236,.55); border-top: 1px solid var(--line-dark); }
.compare li::before { content: "—"; position: absolute; left: 0; color: var(--stone); }
.compare__col--us li { color: var(--bone); }
.compare__col--us li::before { content: "✦"; color: var(--sand); font-size: 12px; top: 13px; }
.footnote { margin-top: 28px; font-size: 12px; color: rgba(247,243,236,.4); }

/* ---------- Method ---------- */
.method { background: var(--bone); }
.method__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); }
.method__sticky { position: sticky; top: 130px; }
.method__meter { display: flex; align-items: baseline; gap: 10px; margin-top: 56px; position: relative; padding-top: 22px; }
.method__meter::before, .method__meter-fill { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--line-light); }
.method__meter-fill { background: var(--navy); transform-origin: 0 50%; transform: scaleX(var(--mp, .2)); transition: transform .4s var(--ease); }
.method__meter-n { font-family: var(--serif); font-size: 4.2rem; line-height: 1; font-weight: 300; font-variant-numeric: tabular-nums; }
.method__meter-of { font-size: 13px; color: var(--stone); letter-spacing: .1em; }
.steps { display: flex; flex-direction: column; }
.step { padding: 44px 0 48px; border-top: 1px solid var(--line-light); transition: opacity .6s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line-light); }
.steps.is-tracking .step { opacity: .38; }
.steps.is-tracking .step.is-current { opacity: 1; }
.step__head { display: flex; align-items: center; justify-content: space-between; }
.step__n { font-family: var(--serif); font-size: clamp(3.6rem, 6vw, 5.6rem); font-weight: 300; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--navy); transition: color .6s; }
.step.is-current .step__n { color: var(--navy); }
.chip { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--sand-2); color: var(--navy); }
.step__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.08; margin-top: 26px; }
.step__d { margin-top: 12px; color: var(--stone); max-width: 540px; }

.portal {
  position: relative; margin-top: clamp(80px, 10vw, 160px); border-radius: 8px; overflow: hidden;
  background: var(--navy); color: var(--bone); display: grid; grid-template-columns: 4fr 7fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 80px);
}
.portal::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(214,191,152,.18), transparent 65%); }
.portal__copy { position: relative; }
.portal__copy .eyebrow { color: var(--sand); }
.portal__copy p:last-child { margin-top: 18px; color: rgba(247,243,236,.65); max-width: 380px; }
.dash {
  position: relative; background: var(--paper); color: var(--navy); border-radius: 12px; padding: 22px;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform 1s var(--ease);
}
.portal:hover .dash { transform: perspective(1400px) rotateY(0) rotateX(0); }
.dash__top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); font-size: 12.5px; }
.dash__dots { display: flex; gap: 6px; } .dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sand-2); }
.dash__title { font-weight: 600; margin-right: auto; }
.dash__live { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--sage); font-weight: 600; letter-spacing: .06em; }
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: pulse 2s infinite; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.dash__kpis div { background: var(--bone); border-radius: 8px; padding: 14px 16px; }
.dash__kpis small { display: block; font-size: 10.5px; color: var(--stone); letter-spacing: .04em; }
.dash__kpis strong { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 500; line-height: 1.1; margin-top: 4px; }
.dash__kpis em { font-style: normal; font-size: 11px; color: var(--sage); font-weight: 600; }
.dash__chart { margin-top: 14px; background: var(--bone); border-radius: 8px; padding: 18px 16px 10px; }
.dash__bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; }
.dash__bars span { flex: 1; position: relative; height: calc(var(--h) * 100%); background: var(--navy-2); opacity: .85; border-radius: 3px 3px 0 0; transform-origin: bottom; transition: transform 1.2s var(--ease); transition-delay: calc(var(--h) * .5s); }
.dash__bars span.is-hot { background: var(--sand); opacity: 1; }
.dash__bars b { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 600; color: var(--stone); }
.dash__chart { padding-bottom: 28px; }
.js .portal:not(.in) .dash__bars span { transform: scaleY(0); }
.dash__feed { margin-top: 14px; }
.dash__feed li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-size: 12.5px; border-top: 1px solid var(--line-light); }
.dash__feed li span { margin-left: auto; color: var(--stone); font-size: 11px; white-space: nowrap; }
.dash__feed i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--navy); flex: none; }
.dash__feed i.ok { background: var(--sage); border-color: var(--sage); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--sand-3); overflow: hidden; }
.t-nav { justify-self: end; display: flex; align-items: center; gap: 18px; }
.t-nav__btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(11,27,44,.2); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s; }
.t-nav__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.t-nav__btn:hover { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.t-nav__count { font-size: 13px; letter-spacing: .12em; color: var(--stone); font-variant-numeric: tabular-nums; }
.t-nav__count b { color: var(--navy); font-weight: 600; }
.t-stage { position: relative; display: grid; padding-left: clamp(0px, 8vw, 140px); }
.t-quote-mark { position: absolute; left: -10px; top: -60px; font-family: var(--serif); font-size: clamp(10rem, 22vw, 20rem); line-height: 1; color: var(--sand); opacity: .55; pointer-events: none; }
.t { position: relative; grid-area: 1 / 1; margin-bottom: 40px; }
.js .t { opacity: 0; visibility: hidden; transform: translateY(24px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease), visibility 0s .9s; margin-bottom: 0; }
.js .t.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .15s, .15s, .15s, 0s; }
.t blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.3vw, 3.2rem); line-height: 1.18; letter-spacing: -.01em; max-width: 1080px; text-wrap: pretty; }
.t figcaption { display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.t__avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; }
.t figcaption strong { display: block; font-weight: 600; font-size: 15px; }
.t figcaption small { display: block; font-size: 13px; color: var(--stone); }
.t-progress { grid-area: 2 / 1; height: 1px; background: rgba(11,27,44,.14); margin-top: 56px; overflow: hidden; }
.t-progress span { display: block; height: 100%; background: var(--navy); transform-origin: 0 50%; transform: scaleX(0); }
.t-progress.run span { animation: tprog var(--t-dur, 8s) linear forwards; }
@keyframes tprog { to { transform: scaleX(1); } }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 7vw, 110px); border-top: 1px solid rgba(11,27,44,.14); }
.trust li { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 2px; }
.trust li + li { padding-left: 24px; border-left: 1px solid rgba(11,27,44,.14); }
.trust strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.1; }
.trust span { font-size: 12.5px; color: var(--stone); letter-spacing: .04em; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 130px); align-items: start; }
.about__visual { position: relative; padding-bottom: 90px; }
.about__arch { aspect-ratio: 3 / 4; width: 86%; }
.about__arch .ph { border-radius: 999px 999px 4px 4px; }
.about__small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; z-index: 2; }
.about__small .ph { border: 8px solid var(--paper); border-radius: 50%; }
.about__caption { position: absolute; left: -4px; bottom: 30px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); writing-mode: vertical-rl; transform: rotate(180deg) translateX(100%); }
.about__lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.25; font-weight: 400; margin: 34px 0 22px; }
.about__copy > p.reveal:not(.eyebrow):not(.about__lead) { color: var(--stone); max-width: 600px; }
.values { margin-top: 44px; border-top: 1px solid var(--line-light); }
.values li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-light); color: var(--stone); font-size: 15px; }
.values span { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.archi-wrap { margin-top: 64px; padding: 28px 28px 20px; border-radius: 8px; background: var(--bone); border: 1px solid var(--line-light); }
.archi-wrap__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.archi-legend { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--stone); }
.lg { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--stone-2); display: inline-block; margin-left: 8px; }
.lg--on { background: var(--navy); border-color: var(--navy); }
.archi { width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.isle { cursor: default; outline: none; }
.isle__shape { fill: url(#dots); color: var(--stone-2); stroke: rgba(11,27,44,.18); stroke-width: 1; transition: fill .5s, color .5s, transform .6s var(--ease); transform-box: fill-box; transform-origin: center; }
.isle--activa .isle__shape { color: var(--navy); stroke: rgba(11,27,44,.35); }
.isle__pin { fill: var(--sand); stroke: var(--navy); stroke-width: 1.5; opacity: 0; transition: opacity .4s; }
.isle--activa .isle__pin { opacity: 1; }
.isle__label { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: var(--stone); transition: fill .4s; }
.isle--activa .isle__label { fill: var(--navy); }
.isle:hover .isle__shape, .isle:focus .isle__shape { fill: var(--sand); color: var(--sand); transform: scale(1.06); }
.isle--activa:hover .isle__shape, .isle--activa:focus .isle__shape { fill: var(--navy); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; background: var(--ink); }
.contact__grid { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__list { margin-top: 48px; border-top: 1px solid var(--line-dark); }
.contact__list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.contact__list small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,243,236,.45); }
.contact__list a, .contact__list span { font-size: 16px; overflow-wrap: anywhere; }
.contact__list a { transition: color .3s; } .contact__list a:hover { color: var(--sand); }
.promise { display: flex; gap: 16px; margin-top: 40px; padding: 22px 24px; border-radius: 6px; background: rgba(214,191,152,.08); border: 1px solid rgba(214,191,152,.2); }
.promise__i { color: var(--sand); }
.promise p { font-size: 14.5px; color: rgba(247,243,236,.8); }

.form { position: relative; background: var(--paper); color: var(--navy); border-radius: 10px; padding: clamp(28px, 3.6vw, 54px); box-shadow: 0 60px 120px -50px rgba(0,0,0,.7); overflow: hidden; }
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line-light); }
.form__title { font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; }
.form__sub { font-size: 12px; color: var(--sage); font-weight: 600; letter-spacing: .06em; }
.form__group { border: 0; padding: 0; margin: 0 0 22px; }
.form__group legend { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 13.5px; font-weight: 500; transition: background .35s, color .35s, border-color .35s; }
.chips label:hover span { border-color: var(--navy); }
.chips input:checked + span { background: var(--navy); color: var(--bone); border-color: var(--navy); }
.chips input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.field { position: relative; margin-top: 10px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(11,27,44,.2); background: transparent; border-radius: 0;
  padding: 26px 0 12px; font: inherit; font-size: 16px; color: var(--navy); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field label { position: absolute; left: 0; top: 26px; font-size: 15px; color: var(--stone); pointer-events: none; transform-origin: 0 0; transition: transform .4s var(--ease), color .4s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-20px) scale(.78); color: var(--navy); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field--select::before { content: ""; position: absolute; right: 4px; top: 32px; width: 8px; height: 8px; border-right: 1.5px solid var(--stone); border-bottom: 1.5px solid var(--stone); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #B0503A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 26px 0 26px; font-size: 13.5px; color: var(--stone); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check > span { flex: none; width: 20px; height: 20px; border: 1px solid rgba(11,27,44,.3); border-radius: 4px; position: relative; transition: background .3s, border-color .3s; margin-top: 1px; }
.check > span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--bone); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + span { background: var(--navy); border-color: var(--navy); }
.check input:checked + span::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.check.is-invalid > span { border-color: #B0503A; }
.check a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.form .btn--sand { background: var(--navy); color: var(--bone); }
.form .btn--sand::before { background: var(--sand); }
.form .btn--sand:hover { color: var(--ink); }
.form__msg { min-height: 1.4em; margin-top: 14px; font-size: 13.5px; color: #B0503A; text-align: center; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }
.form__done {
  position: absolute; inset: 0; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px; gap: 14px; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s;
}
.form__done p:last-child { color: var(--stone); max-width: 340px; }
.form__done svg { width: 76px; height: 76px; fill: none; stroke: var(--navy); stroke-width: 1.4; }
.form__done svg circle { stroke: var(--sand); stroke-dasharray: 180; stroke-dashoffset: 180; }
.form__done svg path { stroke-dasharray: 50; stroke-dashoffset: 50; }
.form.is-done .form__done { opacity: 1; visibility: visible; transition-delay: 0s; }
.form.is-done .form__done svg circle { animation: draw 1.2s .2s var(--ease) forwards; }
.form.is-done .form__done svg path { animation: draw .8s .9s var(--ease) forwards; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bone); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; border-top: 1px solid var(--line-dark); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer__claim { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.02; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px 0; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__cols small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 6px; }
.footer__cols a, .footer__cols span { color: rgba(247,243,236,.66); transition: color .3s; overflow-wrap: anywhere; }
.footer__cols a:hover { color: var(--bone); }
.footer__word {
  font-family: var(--serif); font-weight: 300; font-size: clamp(4.4rem, 19.5vw, 20rem); line-height: .8; letter-spacing: -.04em;
  white-space: nowrap; text-align: center; margin: 0 calc(var(--gutter) * -.4); padding-bottom: .06em;
  background: linear-gradient(180deg, rgba(214,191,152,.9), rgba(214,191,152,.05) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: rgba(247,243,236,.5); }
.to-top:hover { color: var(--sand); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { gap: 24px; }
  .svc__item { grid-template-columns: 70px 1fr 1fr; }
  .svc__tags { display: none; }
  .hero__visual { grid-column: 8 / span 5; }
  .float-card { right: 0; }
}

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__copy, .hero__visual { grid-column: auto; }
  .hero__visual { height: min(118vw, 640px); max-width: 640px; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 32px; }
  .scroll-cue { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis li:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpis li:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 22px; }
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .section-head--split .section-head__lead { justify-self: start; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl { grid-column: span 2; grid-row: auto; }
  .card--wide { grid-column: span 2; }
  .method__grid { grid-template-columns: 1fr; }
  .method__sticky { position: static; }
  .method__meter { display: none; }
  .steps.is-tracking .step { opacity: 1; }
  .portal { grid-template-columns: 1fr; }
  .dash { transform: none; }
  .t-nav { justify-self: start; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 560px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .header__bar { height: 72px; gap: 16px; }
  .brand__word { font-size: 1.22rem; }
  .brand__mark { width: 30px; height: 30px; }
  .hero { padding-top: 112px; }
  .hero__title { margin: 22px 0 24px; font-size: 15.5vw; }
  .hero__title .line:nth-child(2) { padding-left: .5em; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { height: 128vw; }
  .hero__arch { width: 84%; height: 90%; }
  .hero__inset { width: 52%; bottom: 5%; }
  .hero__inset .ph { border-width: 6px; }
  .badge { width: 96px; height: 96px; left: 0; top: 4%; }
  .badge__core { font-size: .9rem; }
  .float-card { width: 158px; padding: 14px 14px 12px; right: 0; bottom: 18%; }
  .float-card__v { font-size: 2.2rem; }
  .kpis li { padding-right: 14px; }
  .kpis li + li { padding-left: 14px; }
  .kpis li:nth-child(3) { padding-left: 0; }
  .svc__item { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .svc__n { padding-top: 0; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card--xl, .card--wide { grid-column: auto; }
  .card { min-height: 0; }
  .card__t { margin-top: 28px; }
  .compare { grid-template-columns: 1fr; gap: 28px; }
  .compare__col, .compare__col--us { padding: 0; border-left: 0; }
  .step { padding: 32px 0 36px; }
  .dash { padding: 14px; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .dash__kpis div:last-child { grid-column: span 2; }
  .dash__bars { height: 100px; gap: 4px; }
  .dash__feed li { font-size: 11.5px; }
  .t-stage { padding-left: 0; }
  .t-quote-mark { top: -40px; left: -6px; }
  .t-nav__btn { width: 50px; height: 50px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust li:nth-child(n+3) { margin-top: 24px; border-top: 1px solid rgba(11,27,44,.14); }
  .values li { grid-template-columns: 1fr; gap: 4px; }
  .about__caption { display: none; }
  .archi-wrap { padding: 20px 14px 14px; }
  .isle__label { font-size: 24px; letter-spacing: .06em; }
  .hero__arch .ph__tag { display: none; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__base { flex-direction: column; }
}

/* Movimiento reducido: solo se atenúan efectos intrusivos (bucles continuos y desplazamientos grandes) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation-duration: 160s; }
  .grain, .hero .topo--hero, .float-card { animation: none; }
  .ph::after { animation: none; display: none; }
}
