/* /INCLINADOS — estilos del sitio. Depende de tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lima); color: var(--ink); }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marca: logotipo y dragón (máscara => hereda color) ---------- */
.mark {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.mark--dragon   { --src: url("../assets/brand/dragon.svg");   aspect-ratio: 964 / 504; }
.mark--wordmark { --src: url("../assets/brand/wordmark.svg"); aspect-ratio: 5560 / 392; }

/* ---------- Tipografía ---------- */
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--mute);
}
.label b { color: var(--ink); font-weight: 500; }
.display {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.title-x { /* título extendido, eco del logotipo y de los PDFs */
  font-size: var(--fs-title);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.05;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--mute); }
.slash::before { content: "/ "; color: var(--azul); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font: 500 0.95rem/1 var(--f-sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--azul); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--lima); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .9rem; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 241, .84);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.header.is-scrolled { border-bottom-color: rgba(0,0,0,.08); }
.header__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark--dragon { width: 40px; }
.brand .mark--wordmark { width: 150px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink-2); transition: color var(--t-fast); }
.nav a:not(.btn):hover { color: var(--azul); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform var(--t-fast); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero__meta { display: flex; justify-content: center; gap: 18px; margin-bottom: var(--s-6); }
.hero .display { max-width: 16ch; margin: 0 auto; }
.hero .lead { margin: var(--s-5) auto 0; }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: var(--s-6); flex-wrap: wrap; }

.arches {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 28px);
  align-items: end;
  margin-top: clamp(56px, 8vw, 104px);
}
.arch {
  position: relative;
  border-radius: var(--r-arch);
  overflow: hidden;
  background: var(--arch);
  aspect-ratio: 3 / 5;
  isolation: isolate;
  margin: 0;
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.arch:hover img { transform: scale(1.0); }
.arches .arch:nth-child(1) { aspect-ratio: 3 / 4.2; }
.arches .arch:nth-child(3) { aspect-ratio: 3 / 4.6; }
.arch__tag {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(255,255,255,.92); color: var(--ink);
  font: 500 var(--fs-label)/1 var(--f-mono);
  padding: 8px 12px; border-radius: var(--r-pill); white-space: nowrap;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .label { display: block; margin-bottom: var(--s-4); }

/* ---------- Disciplinas: cartas arco ---------- */
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.dcard {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  background: var(--arch);
  overflow: hidden; text-decoration: none; color: inherit;
  min-height: 660px;
  padding: clamp(56px, 7vw, 88px) var(--s-6) 0;
}
.dcard__name { font-size: 1.05rem; }
.dcard__stem { width: 1px; height: 72px; background: var(--ink); margin: var(--s-5) 0; opacity: .7; transform-origin: top; transition: transform var(--t-med) var(--ease); }
.dcard__icon { width: 64px; height: 40px; margin-bottom: var(--s-5); display: grid; place-items: center; }
.dcard__icon svg { width: 44px; height: 44px; }
.dcard h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; max-width: 16ch; }
.dcard p { margin-top: var(--s-4); color: var(--ink-2); font-size: .98rem; max-width: 30ch; }
.dcard__img { margin-top: auto; width: calc(100% + 64px); height: 230px; position: relative; }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; }
.dcard__img::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100px; background: linear-gradient(var(--arch), rgba(228,228,230,0)); z-index: 1; }
.dcard__more { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; }
.dcard:hover .dcard__stem { transform: scaleY(1.2); }

/* ---------- Servicios: índice ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr) 40px;
  gap: var(--s-6); align-items: start;
  padding: clamp(28px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.service__num { font: 500 var(--fs-small)/1.6 var(--f-mono); color: var(--mute); padding-top: .35em; }
.service__name { font-size: clamp(1.4rem, 2.6vw, 2.25rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; cursor: pointer; }
.service__name small { display: block; margin-top: 10px; font: 400 var(--fs-label)/1.4 var(--f-mono); color: var(--mute); letter-spacing: .03em; }
.service__desc { color: var(--ink-2); padding-top: .3em; }
.service__list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease); }
.service__list > ul { overflow: hidden; display: flex; flex-wrap: wrap; gap: 8px; }
.service__list li { font-size: .85rem; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid rgba(0,0,0,.06); }
.service.is-open .service__list { grid-template-rows: 1fr; }
.service.is-open .service__list > ul { padding-top: var(--s-5); }
.service__toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease);
}
.service__toggle svg { width: 14px; height: 14px; }
.service:hover .service__toggle { border-color: var(--ink); }
.service.is-open .service__toggle { transform: rotate(45deg); background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Feature (texto grande + texto) ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.feature .h2 { position: sticky; top: 120px; }
.feature__body p + p { margin-top: var(--s-4); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step {
  background: var(--white); border-radius: var(--r-md); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4); min-height: 290px;
  border: 1px solid rgba(0,0,0,.04);
}
.step__n { font: 500 .8rem/1 var(--f-mono); color: var(--azul); }
.step h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.step p { font-size: .92rem; color: var(--mute); line-height: 1.5; }
.step__bar { margin-top: auto; height: 3px; border-radius: 3px; background: var(--arch); overflow: hidden; }
.step__bar i { display: block; height: 100%; width: calc(var(--i) * 20%); background: var(--azul); }
.note { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--mute); max-width: 80ch; }

/* ---------- Pilares + garantías ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar { background: var(--arch); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); min-height: 250px; display: flex; flex-direction: column; }
.pillar__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: grid; place-items: center; margin-bottom: var(--s-6); }
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.1rem; font-weight: 600; }
.pillar p { margin-top: auto; padding-top: var(--s-5); font-size: .92rem; color: var(--mute); }

.promise { margin-top: 12px; background: var(--lima); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-6); }
.promise ul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.promise li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Criterium (IA) ---------- */
.criterium { background: var(--noche); color: #E8EAE9; border-radius: var(--r-lg); padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.criterium__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: .85rem; color: #8A8F8C; gap: 12px; }
.criterium__top b { color: #fff; font-weight: 500; }
.criterium__badge { position: absolute; top: 0; left: clamp(20px, 5vw, 64px); background: var(--menta); color: var(--noche); font: 600 11px/1 var(--f-mono); padding: 7px 12px; border-radius: 0 0 10px 10px; letter-spacing: .06em; }
.criterium pre { font-family: var(--f-mono); color: var(--menta); font-size: clamp(5px, 1.05vw, 13px); line-height: 1.15; margin: var(--s-7) 0 var(--s-5); overflow: hidden; }
.criterium h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; color: #fff; }
.criterium__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: var(--s-7); }
.ccard { border: 1px solid #262A28; background: #121414; border-radius: var(--r-md); padding: var(--s-5); }
.ccard__icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--menta); display: grid; place-items: center; color: var(--menta); }
.ccard__icon svg { width: 18px; height: 18px; }
.ccard h4 { margin-top: var(--s-5); font-size: 1.15rem; font-weight: 700; font-stretch: 115%; text-transform: uppercase; color: #fff; }
.ccard .sub { font: 400 .72rem/1.4 var(--f-mono); color: #8A8F8C; margin-top: 4px; }
.ccard ul { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid #262A28; display: grid; gap: 10px; font-size: .92rem; color: #C9CDCB; }
.ccard li::before { content: "› "; color: var(--menta); font-family: var(--f-mono); }
.criterium__foot { margin-top: var(--s-6); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; font: 400 .8rem/1.4 var(--f-mono); color: #8A8F8C; }
.btn--mint { background: transparent; color: var(--menta); border-color: var(--menta); font-family: var(--f-mono); font-size: .85rem; }
.btn--mint:hover { background: var(--menta); color: var(--noche); }

/* ---------- Estudio / equipo ---------- */
.studio { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio__visual .arch { aspect-ratio: 4 / 5; max-width: 460px; }
.team { display: grid; gap: 12px; margin-top: var(--s-6); }
.member { display: flex; align-items: center; gap: 18px; background: var(--white); border-radius: var(--r-pill); padding: 10px 28px 10px 10px; }
.member img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--arch); flex: none; }
.member h3 { font-size: 1.05rem; font-weight: 600; }
.member p { font-size: .9rem; color: var(--mute); }
.member__role { margin-left: auto; font: 400 var(--fs-label)/1 var(--f-mono); color: var(--mute); text-align: right; }
.more { display: flex; align-items: center; gap: 12px; margin-top: var(--s-4); font-size: .9rem; color: var(--mute); padding-left: 10px; }
.more__dots { display: flex; }
.more__dots i { width: 26px; height: 26px; border-radius: 50%; background: var(--arch); border: 2px solid var(--paper); margin-left: -8px; }
.more__dots i:first-child { margin-left: 0; }

/* ---------- Contacto ---------- */
.contact { background: var(--azul); color: #fff; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; }
.contact__copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; }
.contact__copy .display { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.contact__copy .label { color: rgba(255,255,255,.7); margin-bottom: var(--s-5); }
.contact__copy .lead { color: rgba(255,255,255,.85); margin-top: var(--s-5); }
.contact__lines { margin-top: auto; padding-top: var(--s-8); display: grid; gap: 8px; font-size: 1.05rem; }
.contact__lines a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); width: max-content; }
.contact__lines a:hover { border-color: #fff; }
.form { background: var(--white); color: var(--ink); margin: 12px; border-radius: calc(var(--r-lg) - 8px); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: var(--s-5); align-content: start; }
.field { display: grid; gap: 8px; }
.field > label, .field > .flabel { font: 500 var(--fs-label)/1 var(--f-mono); color: var(--mute); letter-spacing: .03em; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--azul); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: .88rem; cursor: pointer; transition: all var(--t-fast); user-select: none; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__hint { font-size: .8rem; color: var(--mute); }

/* ---------- Footer ---------- */
.footer { padding: var(--s-9) 0 var(--s-6); }
.footer__big { display: block; color: var(--ink); }
.footer__big .mark--wordmark { width: 100%; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.footer__grid .mark--dragon { width: 56px; margin-bottom: var(--s-4); }
.footer h4 { font: 500 var(--fs-label)/1 var(--f-mono); color: var(--mute); margin-bottom: var(--s-4); }
.footer ul { display: grid; gap: 8px; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--azul); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: var(--s-8); font: 400 var(--fs-label)/1.4 var(--f-mono); color: var(--mute); }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .arch img, .arch:hover img { transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .criterium__grid { grid-template-columns: 1fr; }
  .disciplines { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all var(--t-med) var(--ease); }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header.is-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .header.is-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .menu-btn { display: block; }
  .section__head, .feature, .studio, .contact, .promise { grid-template-columns: 1fr; }
  .section__head { gap: var(--s-5); }
  .feature .h2 { position: static; }
  .disciplines { grid-template-columns: 1fr; }
  .dcard { min-height: 0; }
  .service { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: var(--s-4); }
  .service__desc { grid-column: 2 / 4; grid-row: 2; }
  .service__toggle { grid-column: 3; grid-row: 1; }
  .studio__visual .arch { max-width: 100%; aspect-ratio: 4 / 3.2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .arches { gap: 8px; margin-top: 48px; }
  .arch__tag { bottom: 10px; padding: 6px 9px; font-size: 10px; }
  .steps, .pillars, .promise ul { grid-template-columns: 1fr; }
  .step, .pillar { min-height: 0; }
  .pillar p { padding-top: var(--s-3); }
  .pillar__icon { margin-bottom: var(--s-4); }
  .member__role { display: none; }
  .brand .mark--wordmark { width: 124px; }
  .brand .mark--dragon { width: 34px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   v2 — movimiento, navegación entre páginas y páginas interiores
   ========================================================== */

/* ---------- Cabecera opaca ---------- */
.header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn)::before { content: "/ "; color: var(--azul); }
.no-smooth, .no-smooth body { scroll-behavior: auto !important; }

/* ---------- Cortina de transición (arco) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  display: grid; place-items: center; align-content: center; gap: 18px;
  color: var(--paper);
  transform: translateY(105%);
}
.curtain__arch {
  position: absolute; left: -10%; right: -10%; top: 0; height: 140%;
  background: var(--ink);
  border-radius: 50% 50% 0 0 / 22vh 22vh 0 0;
  transition: border-radius .7s var(--ease);
}
.curtain .mark--dragon { position: relative; width: 84px; opacity: 0; transform: translateY(20px); transition: opacity .4s .25s, transform .6s .2s var(--ease); }
.curtain__label { position: relative; font: 500 13px/1 var(--f-mono); color: rgba(244,243,241,.6); opacity: 0; transition: opacity .4s .3s; }
.curtain.is-covering { transform: translateY(0); transition: transform .72s cubic-bezier(.7,0,.2,1); pointer-events: auto; }
.curtain.is-covering .curtain__arch { border-radius: 0; }
.curtain.is-covering .mark--dragon, .curtain.is-covering .curtain__label { opacity: 1; transform: none; }
html.is-arriving .curtain { transform: translateY(0); transition: none; }
html.is-arriving .curtain .curtain__arch { border-radius: 0; transition: none; }
html.is-arriving .curtain .mark--dragon { opacity: 1; transform: none; transition: none; }
.curtain.is-leaving { transform: translateY(-108%); transition: transform .95s cubic-bezier(.7,0,.2,1) .05s; }
.curtain.is-leaving .curtain__arch { top: -40%; border-radius: 0 0 50% 50% / 0 0 22vh 22vh; }
.curtain.is-leaving .mark--dragon { opacity: 0; transform: translateY(-30px); transition: opacity .3s, transform .5s var(--ease); }
/* El contenido entra con un leve desplazamiento tras la cortina */
html.is-arriving main, html.is-arriving .header { opacity: 0; }
main, .header { transition: opacity .6s var(--ease) .15s; }

/* ---------- Titulares palabra a palabra ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }
.js .split.reveal { opacity: 1; transform: none; }
.js .split .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.js .split.is-in .w > span { transform: none; }

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: clamp(80px, 10vw, 140px); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; padding-right: 48px; white-space: nowrap; }
.marquee__track span::before { content: "/ "; color: var(--azul); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios con imagen de fondo ---------- */
.service { position: relative; isolation: isolate; }
.service__bg {
  position: absolute; z-index: -1; top: 10px; bottom: 10px; right: 0; width: 72%;
  border-radius: var(--r-md); overflow: hidden; pointer-events: none;
  opacity: .13; filter: saturate(.85);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  transition: opacity .7s var(--ease), filter .7s var(--ease);
}
.service__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.service:hover .service__bg { opacity: .22; }
.service.is-open .service__bg { opacity: .28; filter: saturate(1); }
.service:hover .service__bg img { transform: scale(1); }
.service__list li { background: rgba(255,255,255,.85); }

/* ---------- Accesos a páginas (home) ---------- */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.explore a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 300px; padding: 36px 24px 24px; text-decoration: none; color: var(--ink);
  border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--arch); overflow: hidden; isolation: isolate;
  text-align: center;
}
.explore a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transform: scale(1.1); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.explore a:hover img { opacity: 1; transform: scale(1); }
.explore a:hover { color: #fff; }
.explore .label { color: inherit; opacity: .7; }
.explore h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -0.02em; }
.explore .arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; margin: 0 auto; transition: transform var(--t-med) var(--ease); }
.explore a:hover .arrow { transform: rotate(-45deg); }
.explore .arrow svg { width: 16px; height: 16px; }

/* ---------- Página interior: hero ---------- */
.phero { padding: clamp(56px, 9vw, 130px) 0 clamp(56px, 8vw, 110px); }
.phero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.phero .label { display: block; margin-bottom: var(--s-5); }
.phero .display { font-size: clamp(3rem, 7.4vw, 7.25rem); }
.phero .lead { margin-top: var(--s-6); }
.phero__meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.phero__meta div { display: grid; gap: 4px; }
.phero__meta b { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.phero__meta span { font: 400 var(--fs-label)/1.3 var(--f-mono); color: var(--mute); }

/* ---------- Proceso: línea de tiempo ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.timeline__progress { position: absolute; left: 39px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline__progress i { display: block; height: 100%; background: var(--azul); transform-origin: top; transform: scaleY(0); }
.phase { display: grid; grid-template-columns: 80px 1fr; gap: clamp(20px, 4vw, 56px); padding: 0 0 clamp(56px, 8vw, 104px); position: relative; }
.phase__dot {
  position: sticky; top: 120px; align-self: start; justify-self: center;
  width: 80px; height: 80px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; font: 500 1rem/1 var(--f-mono); color: var(--mute);
  transition: background .5s var(--ease), color .5s, border-color .5s;
}
.phase.is-active .phase__dot { background: var(--azul); border-color: var(--azul); color: #fff; }
.phase__body { padding-top: 14px; }
.phase__body h3 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; }
.phase__body > p { margin-top: var(--s-5); font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.phase__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: var(--s-6); }
.phase__split div { background: var(--white); border-radius: var(--r-md); padding: var(--s-5); }
.phase__split h4 { font: 500 var(--fs-label)/1 var(--f-mono); color: var(--azul); margin-bottom: var(--s-3); }
.phase__split p { font-size: .95rem; color: var(--ink-2); }
.phase__get { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); align-items: center; }
.phase__get .label { margin-right: 6px; }
.phase__get li { font-size: .85rem; padding: 6px 12px; border-radius: var(--r-pill); background: var(--lima); }

/* ---------- Banda de garantías ---------- */
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.guarantee { border-radius: var(--r-md); padding: var(--s-6) var(--s-5); background: var(--ink); color: var(--paper); min-height: 230px; display: flex; flex-direction: column; }
.guarantee b { font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.guarantee b small { font-size: .4em; letter-spacing: 0; margin-left: 4px; color: var(--lima); }
.guarantee p { margin-top: auto; padding-top: var(--s-5); color: rgba(244,243,241,.7); font-size: .95rem; }
.guarantee:nth-child(2) { background: var(--azul); }
.guarantee:nth-child(3) { background: var(--lima); color: var(--ink); }
.guarantee:nth-child(3) b small { color: var(--azul); }
.guarantee:nth-child(3) p { color: var(--ink-2); }
.guarantee:nth-child(4) { background: var(--arch); color: var(--ink); }
.guarantee:nth-child(4) b small { color: var(--azul); }
.guarantee:nth-child(4) p { color: var(--mute); }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink); font: 300 clamp(1.15rem, 1.9vw, 1.55rem)/1.3 var(--f-sans); letter-spacing: -0.01em; }
.faq__q i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform var(--t-med) var(--ease), background var(--t-fast), color var(--t-fast); }
.faq__q i svg { width: 12px; height: 12px; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 26px; color: var(--ink-2); max-width: 70ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col > :first-child { position: sticky; top: 120px; }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; isolation: isolate; }
.cta-band img { position: absolute; right: -4%; top: -20%; height: 140%; width: 46%; object-fit: cover; z-index: -1; opacity: .5; border-radius: 999px 999px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.cta-band .label { color: rgba(244,243,241,.6); display: block; margin-bottom: var(--s-4); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; }
.cta-band .btn--light { height: 56px; padding: 0 28px; }

/* ---------- IA: hero oscuro ---------- */
.dark { background: var(--noche); color: #E8EAE9; }
.dark .label { color: #8A8F8C; }
.dark .label b { color: var(--menta); }
.dark .lead { color: #C9CDCB; }
.ia-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.ia-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.ia-hero .wrap { position: relative; }
.ia-hero .display { color: #fff; max-width: 13ch; }
.ia-hero .display em { font-style: normal; color: var(--menta); }
.ia-hero__actions { display: flex; gap: 12px; margin-top: var(--s-6); flex-wrap: wrap; }
.ia-hero .btn--ghost { color: #fff; border-color: #3A3F3C; }
.ia-hero .btn--ghost:hover { border-color: #fff; }
.btn--mint-solid { background: var(--menta); color: var(--noche); }
.btn--mint-solid:hover { background: #fff; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.flow__step { background: var(--white); border-radius: var(--r-md); padding: var(--s-6) var(--s-5); min-height: 240px; display: flex; flex-direction: column; position: relative; }
.flow__step .n { font: 500 .8rem/1 var(--f-mono); color: var(--azul); }
.flow__step h3 { font-size: 1.5rem; font-weight: 400; margin-top: var(--s-6); letter-spacing: -0.01em; }
.flow__step p { color: var(--mute); margin-top: var(--s-3); font-size: .95rem; }
.flow__step .tag { margin-top: auto; align-self: flex-start; font: 500 11px/1 var(--f-mono); padding: 7px 11px; border-radius: 999px; background: var(--arch); }
.flow__step:first-child .tag { background: var(--menta); }
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.use { border: 1px solid #262A28; background: #121414; border-radius: var(--r-md); padding: var(--s-6); display: grid; grid-template-columns: 44px 1fr; gap: var(--s-5); }
.use .ccard__icon { width: 44px; height: 44px; }
.use h3 { color: #fff; font-size: 1.2rem; font-weight: 500; }
.use p { color: #9EA3A0; margin-top: 6px; font-size: .95rem; }
.chat { background: #121414; border: 1px solid #262A28; border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: 12px; font-size: .95rem; max-width: 520px; margin-left: auto; }
.chat__top { display: flex; align-items: center; gap: 10px; font: 400 .75rem/1 var(--f-mono); color: #8A8F8C; padding-bottom: 12px; border-bottom: 1px solid #262A28; }
.chat__top i { width: 8px; height: 8px; border-radius: 50%; background: var(--menta); box-shadow: 0 0 0 4px rgba(124,255,177,.15); }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.in { opacity: 1; transform: none; }
.msg--user { justify-self: end; background: #E8EAE9; color: var(--noche); border-bottom-right-radius: 6px; }
.msg--bot { background: #1C201E; color: #E8EAE9; border-bottom-left-radius: 6px; }
.msg--sys { justify-self: center; font: 400 .72rem/1.4 var(--f-mono); color: var(--menta); background: transparent; padding: 4px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8A8F8C; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Estudio ---------- */
.manifesto { font-size: clamp(1.8rem, 4.2vw, 3.9rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.12; max-width: 24ch; }
.manifesto span { color: rgba(17,17,17,.16); transition: color .4s var(--ease); }
.manifesto span.on { color: var(--ink); }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.person { display: flex; flex-direction: column; }
.person__photo { border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; background: var(--arch); aspect-ratio: 4 / 5; position: relative; isolation: isolate; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease), transform 1.2s var(--ease); transform: scale(1.03); }
.person:hover .person__photo img { filter: none; transform: scale(1); }
.person__photo::after { content: attr(data-initials); position: absolute; left: 18px; bottom: 16px; font: 500 11px/1 var(--f-mono); color: #fff; background: rgba(17,17,17,.55); padding: 6px 9px; border-radius: 999px; }
.person h3 { margin-top: var(--s-5); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; }
.person .role { font: 400 var(--fs-label)/1.4 var(--f-mono); color: var(--azul); margin-top: 6px; }
.person p { margin-top: var(--s-4); color: var(--ink-2); font-size: .98rem; }
.person ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-4); }
.person li { font-size: .8rem; padding: 5px 10px; border-radius: 999px; background: var(--white); border: 1px solid rgba(0,0,0,.06); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: var(--s-7) var(--s-5); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1; }
.stat span { display: block; margin-top: var(--s-4); color: var(--mute); font-size: .95rem; max-width: 22ch; }
.slashes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slashes div { padding: var(--s-6) var(--s-5); border-radius: var(--r-md); background: var(--white); }
.slashes h3 { font-size: 1.3rem; font-weight: 500; }
.slashes h3::before { content: "/ "; color: var(--azul); }
.slashes p { margin-top: var(--s-3); color: var(--mute); font-size: .95rem; }

/* ---------- Contacto (página) ---------- */
.contact-page { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-page .form { margin: 0; border-radius: var(--r-lg); box-shadow: 0 1px 0 rgba(0,0,0,.04); padding: clamp(24px, 4vw, 52px); }
.channels { display: grid; gap: 12px; margin-top: var(--s-7); }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--r-pill); background: var(--arch); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.channel:hover { background: var(--ink); color: var(--paper); }
.channel span { font: 400 var(--fs-label)/1 var(--f-mono); color: inherit; opacity: .65; }
.channel b { font-weight: 500; font-size: 1.05rem; }
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next div { padding: var(--s-6) var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line); }
.next .n { font: 500 .8rem/1 var(--f-mono); color: var(--azul); }
.next h3 { margin-top: var(--s-5); font-size: 1.3rem; font-weight: 500; }
.next p { margin-top: var(--s-3); color: var(--mute); font-size: .95rem; }

/* ---------- Responsive v2 ---------- */
@media (max-width: 1080px) {
  .explore { grid-template-columns: 1fr 1fr; }
  .guarantees { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .phero__grid, .two-col, .contact-page, .cta-band { grid-template-columns: 1fr; }
  .two-col > :first-child { position: static; }
    .people, .slashes, .next, .flow, .uses { grid-template-columns: 1fr; }
  .phase__split { grid-template-columns: 1fr; }
  .service__bg { width: 100%; opacity: .1; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
  .chat { margin: 0; }
  .cta-band img { width: 80%; opacity: .25; }
}
@media (max-width: 600px) {
  .explore, .guarantees { grid-template-columns: 1fr; }
  .explore a { min-height: 220px; }
  .timeline__progress { left: 23px; }
  .phase { grid-template-columns: 48px 1fr; gap: 16px; }
  .phase__dot { width: 48px; height: 48px; font-size: .8rem; top: 96px; }
  .phase__body { padding-top: 4px; }
  .stat { padding: var(--s-6) var(--s-4); }
  .use { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js .split .w > span { transform: none; transition: none; }
  .curtain { display: none; }
  html.is-arriving main, html.is-arriving .header { opacity: 1; }
  .msg { opacity: 1; transform: none; }
}

.phase__get li.phase__lbl { background: none; padding: 0 4px 0 0; }
.ia-hero .display { font-size: clamp(2.8rem, 5.4vw, 5.4rem); max-width: 12ch; }
.ia-hero .lead { margin-top: var(--s-6); }

/* ==========================================================
   v3 — regla de scroll, degradados vivos, firma y rendimiento
   ========================================================== */
:root {
  --rosa: #F2B9D3;
  --cielo: #A9CDE8;
  --lima-2: #C9DB72;
  --azul-2: #3E86B8;
  --magenta-2: #D0679B;
}

/* ---------- Rendimiento: no pintar lo que no se ve ---------- */
.section, .section--tight, .marquee, .footer__grid { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.hero, .phero, .ia-hero { content-visibility: visible; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- Aurora: degradados vivos de marca ---------- */
.aurora { position: absolute; inset: -10% -6% -4%; z-index: -2; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 42%; height: 70%; left: 2%; top: 20%; background: var(--cielo); }
.aurora i:nth-child(2) { width: 38%; height: 60%; left: 32%; top: 35%; background: var(--rosa); animation-duration: 26s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 40%; height: 70%; right: 0; top: 18%; background: var(--lima); animation-duration: 30s; animation-delay: -12s; }
.aurora i:nth-child(4) { width: 26%; height: 40%; left: 40%; top: 60%; background: var(--azul-2); opacity: .25; animation-duration: 34s; }
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(6%, -8%, 0) scale(1.12); }
  100% { transform: translate3d(-6%, 6%, 0) scale(.94); }
}
.arches { position: relative; isolation: isolate; }

/* ---------- Disciplinas: tarjetas interactivas ---------- */
.dcard { --c1: var(--rosa); --c2: var(--magenta-2); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.dcard--cielo { --c1: var(--cielo); --c2: var(--azul-2); }
.dcard--lima { --c1: var(--lima); --c2: var(--lima-2); }
.dcard > *:not(.dcard__grad):not(.dcard__img):not(.dcard__more) { position: relative; z-index: 2; }
.dcard__grad { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; border-radius: inherit; }
.dcard__grad::before { /* degradado que sube desde abajo */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  background: linear-gradient(180deg, rgba(228,228,230,0) 0%, var(--c1) 58%, var(--c2) 100%);
  transform: translate3d(0, 62%, 0); transition: transform .9s var(--ease);
}
.dcard__grad i { /* luz que sigue al ratón */
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  left: var(--mx, 50%); top: var(--my, 80%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 65%);
  opacity: 0; transition: opacity .5s;
}
.dcard__grad i:nth-child(2) { width: 220px; height: 220px; background: radial-gradient(circle, var(--c1), rgba(255,255,255,0) 70%); left: calc(100% - var(--mx, 50%)); top: calc(100% - var(--my, 20%)); mix-blend-mode: multiply; }
.dcard__img { position: relative; z-index: 1; opacity: .55; mix-blend-mode: multiply; transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.dcard__img::before { display: none; }
.dcard__icon svg { transition: transform .7s var(--ease); }
.dcard h3 { transition: transform .7s var(--ease); }
.dcard__stem { transition: transform .7s var(--ease), background .4s; }
.dcard__more { transition: background .4s, color .4s, transform .6s var(--ease); }
.dcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.dcard:hover .dcard__grad::before { transform: translate3d(0, 0, 0); }
.dcard:hover .dcard__grad i { opacity: 1; }
.dcard:hover .dcard__img { opacity: .2; transform: scale(1.08); }
.dcard:hover .dcard__icon svg { transform: translateY(-6px) scale(1.18) rotate(-6deg); }
.dcard:hover .dcard__stem { transform: scaleY(1.35); }
.dcard:hover h3 { transform: translateY(-4px); }
.dcard:hover .dcard__more { background: var(--ink); color: #fff; transform: translateX(-50%) translateY(-4px); }
.dcard:focus-visible .dcard__grad::before { transform: none; }

/* ---------- Equipo: fotos más pequeñas (sin pixelado) ---------- */
.people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.person__photo { width: 190px; max-width: 100%; aspect-ratio: 4 / 5; }
.person__photo::after { display: none; }
.person__photo { box-shadow: 0 20px 40px -24px rgba(0,0,0,.35); }
.person { position: relative; padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); overflow: hidden; isolation: isolate; transition: transform .6s var(--ease); }
.person::before { content: ""; position: absolute; inset: auto -20% -50% -20%; height: 70%; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .0; transition: opacity .7s var(--ease), transform .9s var(--ease); transform: translateY(20%); }
.person:nth-child(1)::before { background: var(--rosa); }
.person:nth-child(2)::before { background: var(--cielo); }
.person:nth-child(3)::before { background: var(--lima); }
.person:hover { transform: translateY(-4px); }
.person:hover::before { opacity: .8; transform: none; }

/* ---------- CTA con degradado vivo ---------- */
.cta-band img { display: none; }
.cta-band .aurora { inset: -30% -10% -30% 35%; z-index: -1; }
.cta-band .aurora i { opacity: .7; filter: blur(50px); }
.cta-band .aurora i:nth-child(1) { background: var(--azul-2); }
.cta-band .aurora i:nth-child(2) { background: var(--magenta-2); }
.cta-band .aurora i:nth-child(3) { background: var(--lima-2); }

/* ---------- Explorar: degradado en hover ---------- */
.explore a::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease); background: linear-gradient(180deg, rgba(228,228,230,0) 10%, var(--g, var(--cielo)) 75%, var(--g2, var(--azul-2))); }
.explore a:nth-child(2) { --g: var(--menta); --g2: #1c3a2c; }
.explore a:nth-child(3) { --g: var(--lima); --g2: var(--lima-2); }
.explore a:nth-child(4) { --g: var(--rosa); --g2: var(--magenta-2); }
.explore a img { z-index: -2; }
.explore a:hover::after { opacity: 1; }
.explore a:hover { color: var(--ink); }
.explore a:hover img { opacity: .35; }

/* ---------- Firma del pie: nombre animado sobre degradado ---------- */
.footer { padding-bottom: 0; }
.footer__grid { margin-top: 0; }
.sign { position: relative; display: block; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--ink); margin-top: var(--s-8); padding: clamp(56px, 8vw, 120px) 0 24px; }
.sign__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sign__bg i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; animation: drift 20s ease-in-out infinite alternate; }
.sign__bg i:nth-child(1) { width: 70%; height: 140%; left: -18%; top: 10%; background: var(--lima); opacity: .9; }
.sign__bg i:nth-child(2) { width: 45%; height: 110%; left: 20%; top: 45%; background: var(--lima-2); opacity: .55; animation-duration: 24s; }
.sign__bg i:nth-child(3) { width: 40%; height: 120%; right: -10%; top: 30%; background: var(--rosa); opacity: .75; animation-duration: 28s; animation-delay: -8s; }
.sign__bg i:nth-child(4) { width: 30%; height: 90%; right: 18%; top: 55%; background: var(--cielo); opacity: .6; animation-duration: 32s; animation-delay: -14s; }
.sign::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--paper) 0%, rgba(244,243,241,0) 45%); }
.sign__row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.sign__dragon { width: 28%; aspect-ratio: 964 / 504; display: block; flex: none; }
.sign__word { flex: 1; display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(.7,0,.2,1) .35s; }
.sign__word .mark { width: 100%; display: block; }
.sign.is-in .sign__word { clip-path: inset(0 0 0 0); }
.sign__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); font: 400 var(--fs-label)/1.4 var(--f-mono); color: var(--ink-2); }
.footer__legal { display: none; }

/* ---------- Tarjetas «cómo somos» un poco más vivas ---------- */
.slashes div { position: relative; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease); }
.slashes div::after { content: ""; position: absolute; right: -30%; bottom: -60%; width: 80%; height: 120%; border-radius: 50%; z-index: -1; filter: blur(40px); opacity: 0; transition: opacity .6s; background: var(--lima); }
.slashes div:nth-child(2)::after { background: var(--cielo); }
.slashes div:nth-child(3)::after { background: var(--rosa); }
.slashes div:hover { transform: translateY(-4px); }
.slashes div:hover::after { opacity: .9; }

@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; }
  .person { display: grid; grid-template-columns: 120px 1fr; gap: 0 20px; align-items: start; }
  .person__photo { width: 120px; grid-row: span 5; }
  .person h3 { margin-top: 0; }
  .sign__dragon { width: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .sign__bg i { animation: none; }
  .sign__word { clip-path: none; transition: none; }
  .ruler__col { transition: none; }
}
.dcard__img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%); mask-image: linear-gradient(180deg, transparent, #000 55%); }
.footer .sign, .footer .sign:hover { color: var(--ink); }
.sign::before { background: linear-gradient(180deg, var(--paper) 0%, rgba(244,243,241,.6) 25%, rgba(244,243,241,0) 60%); }
.sign:hover .sign__word .mark { background: linear-gradient(90deg, var(--ink), var(--azul) 60%, var(--magenta-2)); }
.sign__word .mark { transition: background .6s; }
/* Rendimiento: manchas de color con degradado radial en vez de filter: blur */
.aurora i, .sign__bg i, .person::before, .slashes div::after { filter: none !important; }
.aurora i:nth-child(1) { background: radial-gradient(closest-side, var(--cielo), rgba(169,205,232,0)); }
.aurora i:nth-child(2) { background: radial-gradient(closest-side, var(--rosa), rgba(242,185,211,0)); }
.aurora i:nth-child(3) { background: radial-gradient(closest-side, var(--lima), rgba(223,232,163,0)); }
.aurora i:nth-child(4) { background: radial-gradient(closest-side, var(--azul-2), rgba(62,134,184,0)); }
.cta-band .aurora i:nth-child(1) { background: radial-gradient(closest-side, var(--azul-2), rgba(62,134,184,0)); }
.cta-band .aurora i:nth-child(2) { background: radial-gradient(closest-side, var(--magenta-2), rgba(208,103,155,0)); }
.cta-band .aurora i:nth-child(3) { background: radial-gradient(closest-side, var(--lima-2), rgba(201,219,114,0)); }
.aurora i { opacity: .8; }
.sign__bg i:nth-child(1) { background: radial-gradient(closest-side, var(--lima), rgba(223,232,163,0)); }
.sign__bg i:nth-child(2) { background: radial-gradient(closest-side, var(--lima-2), rgba(201,219,114,0)); }
.sign__bg i:nth-child(3) { background: radial-gradient(closest-side, var(--rosa), rgba(242,185,211,0)); }
.sign__bg i:nth-child(4) { background: radial-gradient(closest-side, var(--cielo), rgba(169,205,232,0)); }
.sign__bg i { opacity: 1 !important; }
.person::before { background: radial-gradient(closest-side, var(--pc, var(--rosa)), rgba(255,255,255,0)) !important; }
.person:nth-child(2)::before { --pc: var(--cielo); }
.person:nth-child(3)::before { --pc: var(--lima); }
.slashes div::after { background: radial-gradient(closest-side, var(--sc, var(--lima)), rgba(255,255,255,0)) !important; }
.slashes div:nth-child(2)::after { --sc: var(--cielo); }
.slashes div:nth-child(3)::after { --sc: var(--rosa); }
html, body { overflow-x: clip; }
.hero, .phero, .section, .section--tight, .footer { overflow-x: clip; }
@media (max-width: 600px) {
  .g-actions .btn--primary { display: none; }
}

/* ==========================================================
   v4 — regla tipo cinta, ASCII vivo, trazos curvos
   ========================================================== */
.has-smooth, .has-smooth body { scroll-behavior: auto !important; }

/* ---------- Logotipos en SVG incrustado (funciona también sin servidor) ---------- */
svg.mark { background: none; -webkit-mask: none; mask: none; fill: currentColor; height: auto; display: inline-block; overflow: visible; }
svg.mark--dragon { aspect-ratio: 964 / 504; }
svg.mark--wordmark { aspect-ratio: 2780 / 196; }
.sign:hover .sign__word svg.mark { fill: url(#lg-grad); background: none; }

/* ---------- Regla de scroll (marcas pegadas a la página) ---------- */
.ruler {
  position: fixed; top: 0; right: 0; bottom: 0; width: 60px; z-index: 45;
  overflow: hidden; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none;
}
.ruler__glass {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(244,243,241,.55);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.53) 55%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.05) 85%, transparent);
          mask-image: linear-gradient(to left, #000 40%, rgba(0,0,0,.53) 55%, rgba(0,0,0,.22) 70%, rgba(0,0,0,.05) 85%, transparent);
}
.ruler__tape { position: absolute; left: 0; right: 0; top: 0; will-change: transform; pointer-events: none; }
.ruler__mark { position: absolute; left: 0; right: 0; height: 0; }
.ruler__tick {
  position: absolute; right: 0; top: 0; display: block; height: 1px; width: 10px; background: var(--ink); opacity: .35;
  transform-origin: right center; transform: scaleX(0); transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
.ruler__tick.is-major { width: 20px; opacity: .75; }
.ruler.is-ready .ruler__tick { transform: scaleX(1); }
.ruler__mark.is-sec .ruler__tick { width: 26px; background: var(--azul); opacity: .95; }
.ruler__num { position: absolute; right: 24px; top: 0; transform: translateY(-50%); font: 500 9px/1 var(--f-mono); letter-spacing: .08em; color: var(--ink); opacity: .5; }
.ruler__mark.is-sec .ruler__num { color: var(--azul); opacity: 1; }
.ruler__band {
  position: absolute; left: 0; right: 0; top: 0; opacity: 0; transition: opacity .3s ease; will-change: transform; pointer-events: none;
  background: rgba(0,86,135,.09); border-top: 1px solid rgba(0,86,135,.55); border-bottom: 1px solid rgba(0,86,135,.55);
}
.ruler:hover .ruler__band, .ruler.is-dragging .ruler__band { opacity: 1; }
.ruler__ind { position: absolute; left: 0; right: 0; top: 0; height: 0; will-change: transform; pointer-events: none; }
.ruler__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--azul); box-shadow: 0 0 6px var(--azul), 0 0 14px rgba(62,134,184,.5); }
.ruler__read { position: absolute; right: 3px; top: 4px; font: 500 9px/1 var(--f-mono); letter-spacing: .08em; color: var(--azul); white-space: nowrap; }
.ruler__digits { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; }
.ruler__col { display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.2,.9,.2,1); }
.ruler__col > span { display: block; height: 1em; }
.page-ia .ruler__glass { background: rgba(11,12,12,.5); }
.page-ia .ruler__tick, .page-ia .ruler__num { background-color: #E8EAE9; color: #E8EAE9; }
.page-ia .ruler__num { background: none; }
.page-ia .ruler__line { background: var(--menta); box-shadow: 0 0 6px var(--menta), 0 0 14px rgba(124,255,177,.45); }
.page-ia .ruler__read { color: var(--menta); }
.page-ia .ruler__band { background: rgba(124,255,177,.08); border-color: rgba(124,255,177,.5); }
.page-ia .ruler__mark.is-sec .ruler__tick { background: var(--menta); }
@media (max-width: 900px), (hover: none) { .ruler { display: none; } .topbar { display: block; } }

/* ---------- ASCII vivo ---------- */
.ascii { position: absolute; inset: 0; overflow: hidden; background: var(--arch); }
.ascii img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none !important; transition: opacity .6s; }
.ascii canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease); }
.ascii--ready canvas { opacity: 1; }
.ascii--ready img { opacity: 0; }
.ascii--fallback img { opacity: 1; }
.arch .ascii { border-radius: inherit; }
.arch > .ascii ~ .arch__tag { z-index: 2; }

/* ---------- Trazos curvos ---------- */
.ribbons { position: absolute; z-index: -1; pointer-events: none; overflow: visible; }
.ribbons path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.6,0,.2,1); }
.ribbons .rb--1 { transition-delay: .25s; }
.ribbons .rb--2 { transition-delay: .5s; }
.ribbons.is-in path { stroke-dashoffset: 0; }
.ribbons { animation: sway 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes sway { 0% { transform: translate3d(0,0,0) rotate(0deg); } 100% { transform: translate3d(-1.5%, -3%, 0) rotate(-1.2deg); } }
.arches > .ribbons { inset: -14% -8% 6% -8%; width: 116%; height: 108%; }
.pvisual { position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; margin-left: auto; isolation: isolate; }
.pvisual--wide { max-width: 560px; aspect-ratio: 5 / 4.6; margin-left: 0; }
.pvisual > .ribbons { inset: -8% -30% -6% -40%; width: 170%; height: 114%; }
.pvisual__arch { position: absolute; left: 12%; right: 0; top: 0; bottom: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,40,70,.35); }
.pvisual__tag { position: absolute; left: 18%; bottom: 6%; z-index: 2; font: 500 10px/1 var(--f-mono); background: rgba(255,255,255,.9); padding: 6px 9px; border-radius: 999px; }

/* ---------- Tarjetas de disciplinas: corrección del botón y la textura ---------- */
.dcard > .dcard__more { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; }
.dcard:hover > .dcard__more { transform: translateX(-50%) translateY(-4px); }
.dcard__img { position: relative; display: block; margin-top: auto; height: 250px; width: calc(100% + 64px); z-index: 1; opacity: .7; mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
.dcard__img .ascii { background: transparent; }
.dcard:hover .dcard__img { opacity: .35; transform: none; }

@media (max-width: 900px) {
  .pvisual { margin: 0 auto; max-width: 340px; }
  .pvisual--wide { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbons { animation: none; }
  .ribbons path { stroke-dashoffset: 0; transition: none; }
}
.sign__dragon { width: 30%; }

/* ==========================================================
   v5 — barra nativa oculta, desenfoque real, trazo de portada, firma ASCII
   ========================================================== */
/* La regla de marca sustituye a la barra del navegador (solo con ratón) */
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

/* ASCII: el fondo lo difumina el navegador (GPU, sin píxeles) y el canvas solo pinta caracteres */
.ascii img { filter: none; transform: none !important; transition: filter .8s var(--ease), opacity .6s; }
.ascii--ready img { opacity: 1; filter: blur(var(--blur, 14px)) saturate(1.08); transform: scale(1.12) !important; }
.ascii--fallback img { filter: none; transform: none !important; }
.ascii canvas { z-index: 1; }

/* Trazo de fondo de la portada: sigue la curva, muy sutil */
.hero { position: relative; isolation: isolate; }
.hero__ribbon { position: absolute; left: 0; right: 0; top: 0; height: min(100vh, 980px); width: 100%; z-index: -1; pointer-events: none; overflow: visible; opacity: .55; }
.hero__ribbon path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3s cubic-bezier(.6,0,.2,1) .3s; }
.hero__ribbon.is-in path { stroke-dashoffset: 0; }
.hero__ribbon .rb--1 { transition-delay: .7s; }
.arches > .ribbons { display: none; }

/* Firma: un único lienzo ASCII (dragón + nombre) */
.sign__row { display: block; }
.sign__ascii { display: block; width: 100%; height: auto; aspect-ratio: 1224 / 330; }
.sign__word, .sign__dragon { display: none !important; }

/* Fotos del equipo a su tamaño nativo para que no se amplíen */
.person__photo { width: 150px; }
@media (max-width: 900px) { .person__photo { width: 110px; } .sign__ascii { aspect-ratio: 1224 / 420; } }
/* Firma: solo el dragón ASCII, centrado */
.sign__ascii { aspect-ratio: 1224 / 340; }
@media (max-width: 900px) { .sign__ascii { aspect-ratio: 1224 / 520; } }

/* ---------- Páginas legales ---------- */
.legal-doc { max-width: 72ch; display: grid; gap: var(--s-6); }
.legal-doc section { padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.legal-doc h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 400; letter-spacing: -0.02em; }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: .98rem; line-height: 1.65; }
.legal-doc ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.legal-doc a { color: var(--azul); text-underline-offset: 3px; }
.legal-meta { display: inline-flex; flex-wrap: wrap; gap: 10px 20px; margin-top: var(--s-5); font: 400 var(--fs-label)/1.4 var(--f-mono); color: var(--mute); }
.legal-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.legal-btn:hover { color: var(--azul); }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 90;
  width: min(440px, calc(100vw - var(--gutter) * 2));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; box-shadow: 0 18px 48px rgba(17,17,17,.12);
  display: grid; gap: 14px;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.cookie-banner.is-open { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-banner p { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.cookie-banner p a { color: var(--ink); text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { flex: 1 1 auto; justify-content: center; }
