/* ================================================================
   HIGHEND MAGIC — SISTEMA DE DISEÑO (sitio estático)
   Lenguaje: editorial-luxury × SaaS premium minimal (v3/v4 locked).
   Paleta y tipografía: docs/Branding.md
   ================================================================ */

/* ---------- Fuentes auto-alojadas ---------- */
@font-face {
  font-family: 'Poiret One';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poiret-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poiret One';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poiret-one-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Didact Gothic';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/didact-gothic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Didact Gothic';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/didact-gothic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #111415;
  --bg-2:      #0c0f10;
  --bg-3:      #16191a;
  --text:      #eff1f1;
  --mute:      rgba(239,241,241,.66);
  --mute-2:    rgba(239,241,241,.42);
  --primary:   #b4c4c7;
  --secondary: #456064;
  --accent:    #66969e;

  --line:      rgba(180,196,199,.10);
  --line-2:    rgba(180,196,199,.20);
  --line-3:    rgba(180,196,199,.35);
  --surface:   rgba(180,196,199,.03);
  --surface-2: rgba(180,196,199,.06);
  --glass:     rgba(14,17,18,.72);
  --glow:      0 0 40px rgba(102,150,158,.25);

  --font-display: 'Poiret One', 'Century Gothic', 'Avenir Next', sans-serif;
  --font-body:    'Didact Gothic', 'Century Gothic', 'Avenir Next', sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 860px;
  --maxw-prose: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 11vw, 10rem);
  --nav-h: 72px;

  --ease:     cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), border-color .25s var(--ease); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--accent); color: var(--bg); padding: .6em 1em; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.skip-link:focus { top: 1rem; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); letter-spacing: .03em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: .06em; }
.h-display { font-size: clamp(3rem, 9vw, 8rem); line-height: .98; letter-spacing: -.005em; }

p { color: var(--mute); max-width: 64ch; }
p + p { margin-top: 1.1rem; }
strong { color: var(--text); font-weight: 400; }
em.accent, .accent { font-style: normal; color: var(--accent); }
.lead {
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  color: var(--primary);
  max-width: 56ch;
  line-height: 1.55;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-body);
  font-size: .68rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .8; }
.eyebrow--plain::before { display: none; }
.stack { display: grid; gap: 1.4rem; }
.stack > .eyebrow { margin-bottom: 0; }
.center { text-align: center; }
.center p, .center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); position: relative; }
.wrap--narrow { max-width: var(--maxw-narrow); }
.wrap--prose  { max-width: var(--maxw-prose); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--bg2 { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.section--lines { border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1.3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.hairline { height: 1px; background: var(--line); border: 0; }
.divider { width: 40px; height: 1px; background: var(--accent); border: 0; margin: 1.25rem 0 1.6rem; }
.center .divider { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-body);
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  padding: 1.1em 2.2em;
  border: 1px solid var(--accent);
  color: var(--text); background: transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.cta svg { width: 14px; height: 14px; flex: 0 0 14px; transition: transform .35s var(--ease); }
.cta:hover svg { transform: translateX(5px); }
.cta--primary { background: var(--accent); color: var(--bg); }
.cta--primary:hover { background: var(--primary); border-color: var(--primary); color: var(--bg); box-shadow: var(--glow); }
.cta--ghost { border-color: var(--line-2); color: var(--primary); }
.cta--ghost:hover { border-color: var(--primary); color: var(--text); }
.cta--text { border: 0; padding: 0 0 .55em; border-bottom: 1px solid var(--line-2); letter-spacing: .22em; font-size: .74rem; color: var(--primary); }
.cta--text:hover { border-bottom-color: var(--accent); color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cta-row--center { justify-content: center; }
.cta small { display: block; font-size: .6rem; letter-spacing: .3em; opacity: .7; }
.cta--stacked { flex-direction: column; align-items: flex-start; gap: .35rem; line-height: 1.2; }
.cta--stacked svg { display: none; }

/* ---------- Iconos ---------- */
.icon { width: 40px; height: 40px; color: var(--accent); }
.icon--sm { width: 28px; height: 28px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav__brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--text); }
.nav__brand svg { width: 38px; height: 38px; }
.nav__wordmark { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: 2.1rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--primary); }
.nav__menu > li { position: relative; }
.nav__menu a { display: inline-block; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav__menu a:hover, .nav__menu a[aria-current="page"], .nav__menu .is-active > a { border-bottom-color: var(--accent); color: var(--text); }
.nav__dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .55rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.nav__sub {
  position: absolute; top: calc(100% + .6rem); left: -1.25rem;
  min-width: 220px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  padding: .8rem 0;
  display: grid;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__sub a { display: block; padding: .55rem 1.25rem; border: 0; letter-spacing: .18em; font-size: .7rem; }
.nav__sub a:hover { background: var(--surface-2); }
.nav__dd:hover .nav__sub, .nav__dd:focus-within .nav__sub, .nav__dd.is-open .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__cta { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; padding: .8em 1.4em; border: 1px solid var(--line-2); color: var(--primary); transition: all .3s var(--ease); white-space: nowrap; }
.nav__cta:hover { border-color: var(--accent); color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 1.5rem; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.nav__burger span:nth-child(1) { top: 16px; } .nav__burger span:nth-child(2) { top: 22px; } .nav__burger span:nth-child(3) { top: 28px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .nav.is-open .nav__menu {
    display: grid; gap: 0;
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    padding: 1.5rem var(--gutter) 3rem;
    font-size: 1rem; letter-spacing: .18em;
    overflow-y: auto; align-content: start;
  }
  .nav.is-open .nav__menu > li { border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__menu a { display: block; padding: 1.1rem 0; border-bottom: 0; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: transparent; padding: 0 0 .5rem 1rem; min-width: 0; display: none; }
  .nav__dd.is-open .nav__sub { display: grid; }
  .nav__sub a { padding: .6rem 0; font-size: .85rem; }
  .nav.is-open .nav__menu .nav__menu-cta { display: block; margin-top: 1.5rem; border: 0; }
  .nav.is-open .nav__menu .nav__menu-cta a { display: inline-flex; }
}
.nav__menu-cta { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  overflow: hidden; isolation: isolate;
}
.hero--page { min-height: 86svh; align-items: center; padding-bottom: 6rem; }
.hero--short { min-height: 60svh; align-items: flex-end; padding-bottom: 4rem; }
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 60% 50% at 24% 40%, rgba(102,150,158,.17), transparent 62%),
    radial-gradient(ellipse 50% 40% at 82% 78%, rgba(69,96,100,.22), transparent 65%),
    var(--bg);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 20%, transparent 78%);
  opacity: .55;
}
.hero__glow {
  position: absolute; left: -8%; top: 28%; z-index: -2;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102,150,158,.22), transparent 66%);
  filter: blur(70px);
  animation: breathe 12s ease-in-out infinite;
  pointer-events: none;
}
.hero__mark {
  position: absolute; right: -6%; top: 50%; z-index: -1;
  width: clamp(360px, 46vw, 760px); transform: translateY(-50%);
  color: var(--primary); opacity: .06; pointer-events: none;
}
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.hero__content { display: grid; gap: 1.8rem; max-width: 900px; }
.hero__title .line { display: block; }
.hero__ctas { margin-top: .6rem; }
.hero__meta {
  position: absolute; inset: auto 0 1.6rem 0;
  display: flex; justify-content: space-between; align-items: end;
  padding: 0 var(--gutter);
  font-size: .64rem; letter-spacing: .36em; text-transform: uppercase; color: var(--mute-2);
  pointer-events: none;
}
.hero__scroll { display: flex; align-items: center; gap: .8rem; color: var(--accent); opacity: .8; }
.hero__scroll::after { content: ""; width: 38px; height: 1px; background: linear-gradient(to right, var(--accent), transparent); }
@media (max-width: 760px) { .hero__meta span:first-child, .hero__meta span:last-child { display: none; } .hero__meta { justify-content: center; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--mute); }

/* ---------- Manifiesto ---------- */
.manifesto { background: var(--bg-2); border-block: 1px solid var(--line); text-align: center; padding: clamp(6rem, 14vw, 14rem) 0; position: relative; overflow: hidden; }
.manifesto::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(102,150,158,.10), transparent 65%); pointer-events: none; }
.manifesto__text { font-family: var(--font-display); font-size: clamp(1.7rem, 4.6vw, 3.9rem); line-height: 1.16; max-width: 24ch; margin: 0 auto; color: var(--text); position: relative; }
.manifesto__text + .manifesto__text { margin-top: clamp(2rem, 5vw, 4rem); }
.manifesto__text em { font-style: normal; color: var(--accent); }
.manifesto__text--small { font-size: clamp(1.3rem, 2.6vw, 2.2rem); color: var(--primary); }
.manifesto__sig { display: inline-flex; align-items: center; gap: .8rem; margin-top: 3rem; font-size: .66rem; letter-spacing: .42em; text-transform: uppercase; color: var(--mute-2); position: relative; }
.manifesto__sig::before { content: ""; width: 32px; height: 1px; background: var(--accent); }

/* ---------- Puertas (home) ---------- */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.door {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.75rem);
  transition: border-color .4s var(--ease), transform .5s var(--ease-out);
  isolation: isolate;
}
.door:hover { border-color: var(--line-3); transform: translateY(-4px); }
.door::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 70% 55% at 30% 20%, rgba(102,150,158,.16), transparent 60%), linear-gradient(160deg, #1a1f20 0%, #0e1112 100%); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,12,13,.94) 30%, transparent 75%); }
.door__icon { position: absolute; top: clamp(1.4rem, 3vw, 2.5rem); left: clamp(1.6rem, 3vw, 2.75rem); width: 44px; height: 44px; color: var(--accent); transition: color .4s var(--ease); }
.door:hover .door__icon { color: var(--primary); }
.door__num { position: absolute; top: clamp(1.4rem, 3vw, 2.5rem); right: clamp(1.6rem, 3vw, 2.75rem); font-family: var(--font-display); font-size: .7rem; letter-spacing: .4em; color: var(--accent); opacity: .8; }
.door__body { display: grid; gap: 1rem; }
.door h2, .door h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.door p { font-size: .98rem; max-width: 40ch; }
.door .cta { justify-self: start; margin-top: .6rem; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: auto; min-height: 420px; } }

/* ---------- Split (texto + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__body { display: grid; gap: 1.3rem; align-content: center; }
.split__body h2, .split__body h3 { max-width: 16ch; }
.split__num { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5rem); line-height: 1; color: var(--accent); opacity: .3; }
.split__list { display: grid; gap: .55rem; margin-top: .4rem; font-size: .92rem; color: var(--mute); }
.split__list li { padding-left: 1.25rem; position: relative; }
.split__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: var(--accent); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* ---------- Visual abstracto (sin foto) ---------- */
.visual {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #191e1f 0%, #0d1011 100%);
  isolation: isolate;
}
.visual--wide { aspect-ratio: 16/10; }
.visual--square { aspect-ratio: 1; }
.visual::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 25%, transparent 80%);
}
.visual::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 50% at 30% 30%, rgba(102,150,158,.18), transparent 62%); }
.visual > svg { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; z-index: 1; color: var(--accent); opacity: .55; }
.visual__caption { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 2; font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--mute-2); }
.visual--photo { background-size: cover; background-position: center; }
.visual--photo::before, .visual--photo::after { opacity: .35; }
.visual--photo > svg { display: none; }

/* ---------- Cards (tipos / formatos) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 2.5rem 2rem 2.25rem;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; gap: 1rem; align-content: start;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 28px 60px -30px rgba(0,0,0,.6); }
.card .icon { margin-bottom: .6rem; transition: color .4s var(--ease); }
.card:hover .icon { color: var(--primary); }
.card__num { position: absolute; top: 1.4rem; right: 1.6rem; font-family: var(--font-display); font-size: .7rem; letter-spacing: .3em; color: var(--accent); opacity: .5; }
.card p { font-size: .95rem; }
.card .cta--text { justify-self: start; margin-top: .4rem; }
.card--link { color: inherit; }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }

/* ---------- Lista de rasgos (borde izquierdo) ---------- */
.traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.traits--2 { grid-template-columns: repeat(2, 1fr); }
.trait { padding: 1.6rem 1.4rem 1.6rem 1.8rem; border-left: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; transition: border-left-color .4s var(--ease), transform .4s var(--ease); }
.trait:hover { border-left-color: var(--accent); transform: translateX(4px); }
.trait .icon--sm { margin-bottom: .4rem; }
.trait p { font-size: .95rem; }
.trait a.cta--text { justify-self: start; }
@media (max-width: 880px) { .traits, .traits--2 { grid-template-columns: 1fr; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 11rem; gap: 1rem; }
.bento__cell { position: relative; border: 1px solid var(--line); background: var(--bg-3); overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: 1.5rem 1.7rem; color: inherit; transition: border-color .35s var(--ease), transform .35s var(--ease); isolation: isolate; }
.bento__cell:hover { border-color: var(--line-3); transform: translateY(-3px); }
.bento__cell::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 70% 60% at 25% 20%, rgba(102,150,158,.14), transparent 60%), linear-gradient(160deg, #1a1f20, #0e1112); }
.bento__cell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,12,13,.92) 10%, transparent 70%); }
.bento__cell h3 { margin-bottom: .3rem; font-size: clamp(1.25rem, 1.6vw, 1.55rem); }
.bento__cell p { font-size: .9rem; max-width: 40ch; }
.bento__tag { position: absolute; top: 1.25rem; left: 1.25rem; font-size: .58rem; letter-spacing: .35em; text-transform: uppercase; color: var(--accent); padding: .35em .8em; border: 1px solid var(--line-2); background: rgba(14,17,18,.55); }
.bento__cell--a { grid-column: span 4; grid-row: span 2; }
.bento__cell--b { grid-column: span 2; }
.bento__cell--c { grid-column: span 2; }
.bento__cell--d { grid-column: span 3; grid-row: span 2; }
.bento__cell--e { grid-column: span 3; grid-row: span 2; }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 15rem; } .bento__cell { grid-column: span 1 !important; grid-row: span 1 !important; } }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); }
.process__step { padding: 2.2rem 2rem 2rem 2rem; border-left: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; }
.process__step:first-child { border-left: 0; padding-left: 0; }
.process__num { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--accent); opacity: .85; margin-bottom: 1rem; }
.process__step p { font-size: .92rem; }
@media (max-width: 880px) { .process { grid-template-columns: 1fr; } .process__step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; } .process__step:first-child { border-top: 0; padding-top: 0; } }

/* ---------- Lista "+" ---------- */
.plus-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 3rem; }
.plus-list li { position: relative; padding-left: 2rem; color: rgba(239,241,241,.84); font-size: 1rem; line-height: 1.55; }
.plus-list li::before, .plus-list li::after { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--accent); }
.plus-list li::after { transform: rotate(90deg); }
.plus-list strong { display: block; color: var(--text); }
@media (max-width: 760px) { .plus-list { grid-template-columns: 1fr; } }

/* ---------- Cobertura (chips) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li, .chips a { display: inline-block; font-size: .74rem; letter-spacing: .14em; padding: .5em 1em; border: 1px solid var(--line-2); color: var(--primary); transition: border-color .3s var(--ease), color .3s var(--ease); }
.chips a:hover { border-color: var(--accent); color: var(--text); }
.chips--accent li { border-color: var(--line); color: var(--mute); }
.coverage { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.coverage__group + .coverage__group { margin-top: 1.6rem; }
.coverage__group h3 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
@media (max-width: 880px) { .coverage { grid-template-columns: 1fr; } }

/* ---------- Cita ---------- */
.quote { text-align: center; padding: clamp(4rem, 9vw, 8rem) 0; border-block: 1px solid var(--line); background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(102,150,158,.07), transparent 65%), var(--bg); }
.quote__mark { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-bottom: 2rem; color: var(--accent); }
.quote__mark::before, .quote__mark::after { content: ""; width: 32px; height: 1px; background: var(--accent); opacity: .7; }
.quote__mark svg { width: 8px; height: 8px; }
.quote blockquote, .quote p.quote__text { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; max-width: 30ch; margin: 0 auto; color: var(--text); letter-spacing: .01em; }
.quote cite, .quote__cite { display: inline-block; margin-top: 2rem; font-style: normal; font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.7rem 0;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--text);
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary h3 { font-size: inherit; letter-spacing: .02em; font-weight: 400; margin: 0; }
.faq__mark { position: relative; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--accent); border-radius: 50%; transition: background .35s var(--ease); }
.faq__mark::before, .faq__mark::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent); transition: transform .35s var(--ease), background .35s var(--ease); }
.faq__mark::before { width: 10px; height: 1px; transform: translate(-50%,-50%); }
.faq__mark::after { width: 1px; height: 10px; transform: translate(-50%,-50%); }
.faq details[open] .faq__mark { background: var(--accent); }
.faq details[open] .faq__mark::before { background: var(--bg); }
.faq details[open] .faq__mark::after { background: var(--bg); transform: translate(-50%,-50%) scaleY(0); }
.faq__body { padding: 0 3rem 1.8rem 0; display: grid; gap: .9rem; }
.faq__body p { font-size: .98rem; max-width: 66ch; }
.faq__body a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.faq__body a:hover { color: var(--primary); }

/* ---------- Ciudades (strip de enlaces) ---------- */
.cities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cities a { display: grid; gap: .5rem; padding: 1.6rem 1.4rem; background: var(--bg); color: inherit; transition: background .3s var(--ease); }
.cities a:hover { background: var(--bg-3); }
.cities a:hover .cities__name { color: var(--accent); }
.cities__name { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; color: var(--text); transition: color .3s; }
.cities__meta { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-2); }
@media (max-width: 960px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cities { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tarjetas relacionadas / servicios ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.related a { display: grid; gap: .7rem; padding: 1.8rem 1.6rem; border: 1px solid var(--line); background: var(--surface); color: inherit; transition: border-color .3s var(--ease), background .3s var(--ease); }
.related a:hover { border-color: var(--line-3); background: var(--surface-2); }
.related a:hover .related__title { color: var(--accent); }
.related__kicker { font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.related__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); transition: color .3s; }
.related p { font-size: .9rem; }
@media (max-width: 880px) { .related { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; text-align: center; padding: clamp(5rem, 11vw, 10rem) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(102,150,158,.15), transparent 65%); }
.cta-final__rings { position: absolute; top: 50%; left: 50%; width: 620px; height: 620px; max-width: 90vw; max-height: 90vw; transform: translate(-50%,-50%); z-index: -1; opacity: .3; pointer-events: none; color: var(--accent); }
.cta-final h2 { max-width: 20ch; margin: 0 auto 1.5rem; }
.cta-final p { margin: 0 auto 2.6rem; }
.cta-final .cta-row { justify-content: center; }

/* ---------- Contacto / Formulario ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__details { display: grid; gap: .9rem; margin-top: 2rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.contact__details span { color: var(--accent); margin-right: 1rem; }
.contact__details a:hover { color: var(--text); }
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.form__field { display: grid; gap: .5rem; }
.form__label { font-size: .62rem; letter-spacing: .35em; text-transform: uppercase; color: var(--mute); }
.form__input, .form__textarea, .form__select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--text); font-family: inherit; font-size: 1rem;
  padding: .65rem 0; width: 100%; border-radius: 0;
  transition: border-bottom-color .3s var(--ease);
}
.form__select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.form__select option { background: var(--bg-2); color: var(--text); }
.form__input:focus, .form__textarea:focus, .form__select:focus { outline: 0; border-bottom-color: var(--accent); }
.form__input::placeholder, .form__textarea::placeholder { color: var(--mute-2); }
.form__textarea { resize: vertical; min-height: 7rem; }
.form__consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .8rem; color: var(--mute); }
.form__consent input { margin-top: .35rem; accent-color: var(--accent); }
.form__consent a { color: var(--accent); }
.form__submit { justify-self: start; margin-top: .5rem; }
.form__status { font-size: .9rem; color: var(--primary); min-height: 1.4em; }
.form__status.is-error { color: #d9a08c; }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }

/* ---------- Prosa (blog) ---------- */
.article-head { padding: calc(var(--nav-h) + 5rem) 0 3rem; }
.article-head h1 { max-width: 26ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--mute-2); margin-top: 1.5rem; }
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { margin-top: 3.6rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.prose h3 { margin-top: 2.4rem; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.prose h2 + p, .prose h3 + p { margin-top: 1rem; }
.prose p { max-width: none; font-size: 1.05rem; }
.prose .lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
.prose ul, .prose ol { display: grid; gap: .6rem; padding-left: 1.4rem; color: var(--mute); font-size: 1.02rem; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.4rem; top: .8em; width: 8px; height: 1px; background: var(--accent); }
.prose ol { counter-reset: item; }
.prose ol li { list-style: none; position: relative; counter-increment: item; }
.prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: -1.7rem; top: .05em; font-family: var(--font-display); font-size: .85rem; color: var(--accent); }
.prose a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.prose a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.prose blockquote { border-left: 1px solid var(--accent); padding: .4rem 0 .4rem 1.6rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.35; color: var(--text); }
.prose figure { margin-top: 2.4rem; }
.prose figcaption { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mute-2); margin-top: .8rem; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3rem 0; }
.prose .callout { border: 1px solid var(--line-2); background: var(--surface); padding: 1.6rem 1.8rem; display: grid; gap: .7rem; }
.prose .callout .eyebrow { margin-bottom: .2rem; }
.prose .callout p { font-size: .98rem; }
.prose .callout .cta { justify-self: start; margin-top: .6rem; }
.prose .cta-row { margin-top: 1.8rem; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.data th, table.data td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-body); font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); background: var(--surface); font-weight: 400; }
table.data td { color: var(--mute); }
table.data td:first-child { color: var(--text); }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); white-space: nowrap; }

.toc { border: 1px solid var(--line); padding: 1.6rem 1.8rem; display: grid; gap: .6rem; background: var(--surface); }
.toc h2 { font-family: var(--font-body); font-size: .64rem; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.toc ol { display: grid; gap: .45rem; padding: 0; }
.toc li::before { display: none; }
.toc a { border: 0; color: var(--primary); font-size: .95rem; }
.toc a:hover { color: var(--text); }

.price-tag { display: inline-flex; flex-direction: column; gap: .3rem; padding: 1.6rem 2rem; border: 1px solid var(--line-2); background: var(--surface); }
.price-tag__label { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); }
.price-tag__value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--text); }
.price-tag__note { font-size: .82rem; color: var(--mute-2); }

/* ---------- Perfiles (magos famosos) ---------- */
.profiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.6rem; }
.profile { border: 1px solid var(--line); padding: 1.6rem 1.7rem; display: grid; gap: .6rem; background: var(--surface); }
.profile h3 { margin: 0 !important; font-size: 1.3rem; }
.profile__meta { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.profile p { font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .profiles { grid-template-columns: 1fr; } }

/* ---------- Blog índice ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.post-card { display: grid; gap: 1rem; padding: 2.2rem 2rem; border: 1px solid var(--line); background: var(--surface); color: inherit; transition: border-color .3s var(--ease), background .3s var(--ease), transform .4s var(--ease); align-content: start; }
.post-card:hover { border-color: var(--line-3); background: var(--surface-2); transform: translateY(-3px); }
.post-card:hover h2, .post-card:hover h3 { color: var(--accent); }
.post-card h2, .post-card h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); transition: color .3s; }
.post-card p { font-size: .95rem; }
.post-card__meta { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--mute-2); }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Página legal / texto ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.legal p, .legal li { font-size: .98rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 5rem 0 2rem; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer__brand { display: inline-flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; color: var(--text); }
.footer__brand svg { width: 34px; height: 34px; }
.footer__brand span { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .34em; text-transform: uppercase; }
.footer__about { font-size: .9rem; max-width: 34ch; }
.footer__col h2 { font-family: var(--font-body); font-size: .64rem; letter-spacing: .36em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; }
.footer__col ul { display: grid; gap: .7rem; font-size: .9rem; color: var(--mute); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute-2); }
.footer__bottom a:hover { color: var(--text); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal (progressive) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gutter) 4rem; }
.nf h1 { font-size: clamp(4rem, 14vw, 10rem); line-height: 1; color: var(--accent); opacity: .7; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .cta-final, .hero__bg, .hero__grid, .hero__glow, .hero__mark { display: none !important; }
  body { background: #fff; color: #111; }
  h1, h2, h3, p { color: #111; }
}
