@font-face { font-family: 'Bricolage'; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url(fonts/outfit.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }

/* Base: el CSS aprobado de Consulta Abogados / Munndo Fiit (oscuro teñido de marca, hero dividido con video, secciones claras alternadas).
   Marca: azul marino de las portadas + celeste como acento (--lime) y dorado (--yellow) en pocos detalles.
   Tipografía: Bricolage en títulos y cifras, Outfit en texto e interfaz. */
:root {
  --ink: #091c38;
  --ink-2: #0d2748;
  --ink-3: #14345e;
  --mint: #dbeaf6;
  --paper: #f1f4f7;
  --paper-2: #dfe5ec;
  --on-ink: #f3f7fb;
  --on-ink-muted: #a9bdd6;
  --on-paper: #0a1c36;
  --on-paper-muted: #4a5a70;
  --line: rgba(200, 225, 250, .16);
  --line-paper: rgba(19, 22, 21, .13);
  --lime: #5fc9f3;
  --lime-hover: #8ad9f8;
  --on-lime: #04162b;
  --green-deep: #0b6a96;
  --yellow: #f3c465;
  --radius: 12px;
  --display: 'Bricolage', 'Avenir Next', system-ui, sans-serif;
  --body: 'Outfit', system-ui, sans-serif;
  --sp-section: 136px;
  --sp-band: 64px;
  --sp-head: 64px;
  --dur-1: .2s;
  --dur-2: .45s;
  --dur-3: .9s;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #35598c var(--ink); }
body { margin: 0; background: var(--ink); color: var(--on-ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--lime); }
img, video { display: block; max-width: 100%; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--lime); color: var(--on-lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--on-paper); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(36px, 4.6vw, 62px); }
h3 { font-size: 24px; font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--lime); }
.light h2 em { color: var(--on-paper); background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); }

.light { background: var(--paper); color: var(--on-paper); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn i, .card-cta i { transition: translate var(--dur-2) var(--ease); }
.btn:hover .ph-arrow-up-right { translate: 2px -2px; }
.btn:hover .ph-arrow-down-right { translate: 2px 2px; }
.btn-accent { background: var(--lime); color: var(--on-lime); }
.btn-accent:hover { background: var(--lime-hover); }
.btn-ghost { border: 1.5px solid rgba(243, 244, 241, .3); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); background: rgba(243, 244, 241, .06); }
.btn-line { border: 1.5px solid var(--line); color: var(--on-ink); justify-content: center; }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 18px; }

/* Franja superior y navegación */
.strip { background: var(--lime); color: var(--on-lime); font-size: 14px; font-weight: 600; }
.strip-in { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.strip a { text-decoration: none; }
.strip i { vertical-align: -2px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9, 28, 56, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background var(--dur-2), box-shadow var(--dur-2); }
.nav.is-stuck { background: rgba(9, 28, 56, .96); box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .55); }
.nav-in { display: flex; align-items: center; height: 72px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { position: relative; padding: 6px 0; text-decoration: none; font: 500 16px var(--body); color: var(--on-ink-muted); transition: color .2s; }
.links a:hover { color: var(--on-ink); }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a[aria-current="true"] { color: var(--on-ink); }
.links a[aria-current="true"]::after, .links a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--on-ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu[hidden] { display: none; opacity: 0; translate: 0 -10px; }
.menu { transition: opacity var(--dur-2) var(--ease), translate var(--dur-2) var(--ease), display var(--dur-2) allow-discrete; }
@starting-style { .menu { opacity: 0; translate: 0 -10px; } }
.menu { display: grid; gap: 4px; padding: 12px 20px 24px; border-top: 1px solid var(--line); }
.menu a:not(.btn) { padding: 12px 0; text-decoration: none; font: 700 27px var(--display); letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; justify-content: center; }

/* Progreso de lectura bajo la barra (sólo donde el navegador soporta animaciones por scroll) */
.progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lime); transform-origin: left; scale: 0 1; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { scale: 1 1; } }
}
.m-bar { display: none; }

/* Hero dividido: texto en su columna, el video a la derecha sin texto encima */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100dvh - 108px), 800px); background: radial-gradient(110% 120% at 0% 0%, #17508f 0%, var(--ink) 62%); }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 64px 40px 64px max(20px, calc((100vw - 1240px) / 2)); position: relative; z-index: 1; container-type: inline-size; }
.hero-media { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(9, 28, 56,0) 20%), linear-gradient(0deg, rgba(9, 28, 56,.5) 0%, rgba(9, 28, 56,0) 25%); }
.hero h1 { font-size: min(96px, 14.4cqi); line-height: .98; letter-spacing: -.032em; }
.hero h1 em { display: block; }
.lead { font-size: 20px; line-height: 1.55; color: var(--on-ink-muted); max-width: 42ch; margin: 28px 0 36px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 480px; }
.hero-trust p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--on-ink-muted); }
.hero-trust b { display: block; color: var(--on-ink); font-weight: 600; }

/* Pilares bajo el hero */
.pillars { border-block: 1px solid var(--line); background: var(--ink-2); }
.pillars-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { display: flex; gap: 16px; align-items: center; padding: 32px 24px; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar i { font-size: 30px; color: var(--lime); flex: none; }
.pillar b { display: block; font: 700 18px/1.15 var(--display); letter-spacing: -.01em; }
.pillar span { display: block; font-size: 14.5px; color: var(--on-ink-muted); line-height: 1.4; margin-top: 3px; }

/* Secciones */
.sec { padding: var(--sp-section) 0; position: relative; }
.head { max-width: 820px; margin-bottom: var(--sp-head); }
.head p { color: var(--on-ink-muted); font-size: 19px; margin: 20px 0 0; max-width: 58ch; }
.light .head p { color: var(--on-paper-muted); }

/* Áreas: foto completa en su proporción, texto y materias debajo */

/* Áreas: explorador. Lista que se abre a la izquierda, foto fija que cambia a la derecha. */
.areas { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.area { border-top: 1px solid var(--line-paper); }
.area:last-child { border-bottom: 1px solid var(--line-paper); }
.area-title { font: inherit; letter-spacing: 0; }
.area-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; width: 100%; padding: 26px 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.area-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 999px; background: var(--paper-2); color: var(--on-paper); font-size: 26px; transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), rotate var(--dur-2) var(--ease); }
.area-name { font: 700 clamp(26px, 2.7vw, 38px)/1.05 var(--display); letter-spacing: -.025em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; transition: translate var(--dur-2) var(--ease); }
.area-name small { flex-basis: 100%; font: 400 16px/1.4 var(--body); letter-spacing: 0; color: var(--on-paper-muted); margin-top: 4px; }
.area-plus { position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line-paper); transition: background var(--dur-2), border-color var(--dur-2), rotate var(--dur-2) var(--ease); }
.area-plus::before, .area-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.area-plus::after { rotate: 90deg; transition: rotate var(--dur-2) var(--ease); }
.area-head:hover .area-name { translate: 6px 0; }
.area-head:hover .area-ic { rotate: -8deg; }
.area.is-open .area-ic { background: var(--on-paper); color: var(--lime); }
.area.is-open .area-plus { background: var(--on-paper); border-color: var(--on-paper); color: var(--lime); }
.area.is-open .area-plus::after { rotate: 0deg; }
.area-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease); }
.areas.is-ready .area:not(.is-open) .area-body { grid-template-rows: 0fr; }
.area-inner { overflow: hidden; min-height: 0; padding-left: 76px; }
.area-inner > :last-child { margin-bottom: 32px; }
.areas.is-ready .area-inner { opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.areas.is-ready .area.is-open .area-inner { opacity: 1; transition-delay: .12s; }
.area-foto { display: none; margin: 0 0 20px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.area-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.matters { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; font-size: 16px; line-height: 1.4; }
.matters li { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line-paper); }
.matters i { color: var(--green-deep); flex: none; font-size: 14px; translate: 0 1px; }
.btn-dark { background: var(--on-paper); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-dark:hover .ph-arrow-right { translate: 4px 0; }
.areas-visual { position: sticky; top: 108px; aspect-ratio: 4 / 5; max-height: calc(100dvh - 148px); width: 100%; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.areas-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.08; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease), scale 1.4s var(--ease), opacity 0s .9s; }
.areas-visual img.is-on { opacity: 1; scale: 1; clip-path: inset(0); z-index: 1; transition: clip-path .9s var(--ease), scale 1.4s var(--ease), opacity 0s; }


/* Servicios online */
.plans { background: var(--ink); overflow: hidden; }
.plans-bg { position: absolute; inset: 0; opacity: .2; }
.plans-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.plans-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), rgba(9, 28, 56,.4) 50%, var(--ink)); }
.plans .wrap { position: relative; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 40px 32px 32px; border-radius: var(--radius); background: rgba(20, 52, 94, .94); border: 1.5px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .3s; }
.plan h3 { font-size: 28px; }
.plan-sub { margin: 8px 0 28px; color: var(--on-ink-muted); font-size: 16px; }
.amount { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; }
.amount .num { font-size: 76px; line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.amount .cur { font-size: 30px; letter-spacing: -.02em; color: var(--lime); }
.amount .per { font: 500 16px var(--body); color: var(--on-ink-muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 24px; display: grid; gap: 12px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li i { color: var(--lime); flex: none; transform: translateY(2px); }
.unit { margin: auto 0 20px; font-size: 15px; color: var(--on-ink-muted); padding-top: 16px; border-top: 1px solid var(--line); }
.plan-special { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; margin-top: 24px; padding: 32px; border-radius: var(--radius); background: rgba(20, 52, 94, .94); border: 1.5px dashed rgba(95, 201, 243, .45); }
.plan-special h3 { font-size: 25px; }
.plans-note { margin: 28px 0 0; color: var(--on-ink-muted); font-size: 15px; }
.plans-note i { vertical-align: -2px; color: var(--lime); }

/* Equipo */

/* Mediación */
.space { padding: 0; min-height: 720px; display: flex; align-items: center; }
.space-media { position: absolute; inset: 0; overflow: hidden; }
.space-media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.space-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(9, 28, 56,.97) 0%, rgba(9, 28, 56,.88) 42%, rgba(9, 28, 56,.1) 75%); }
.space-in { position: relative; display: flex; justify-content: flex-end; padding: var(--sp-section) 0; }
.space-copy { max-width: 540px; }
.space-copy h2 { font-size: clamp(34px, 3.9vw, 52px); }
.space-copy > p { color: #d0d9e6; font-size: 18px; margin: 24px 0 36px; }
.facts { display: grid; gap: 20px; margin: 0 0 40px; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--lime); }
.facts dd { margin: 4px 0 0; font-size: 17px; }

/* Pasos */
.start { background: var(--mint); color: var(--on-paper); }
.start :focus-visible { outline-color: var(--on-paper); }
.start-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.start-side { position: sticky; top: 120px; }
.start-side p { color: var(--on-paper-muted); font-size: 19px; margin: 20px 0 32px; max-width: 34ch; }
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 36px; bottom: 36px; left: 35px; width: 2px; background: var(--green-deep); transform-origin: top; }
.steps-wrap::before { content: ''; position: absolute; top: 36px; bottom: 36px; left: 35px; width: 2px; background: rgba(10, 28, 54, .16); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: center; padding: 28px 32px 28px 0; }
.steps li > div { padding: 28px 32px; border-radius: var(--radius); background: #f7fbfe; border: 1px solid rgba(10, 28, 54, .1); box-shadow: 0 18px 36px -28px rgba(10, 28, 54, .5); transition: border-color var(--dur-2), translate var(--dur-2) var(--ease); }
.steps li:hover > div { border-color: var(--green-deep); translate: 6px 0; }
.steps li { padding: 0; }
.steps i { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--mint); display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: var(--on-paper); color: var(--lime); font-size: 34px; }
.steps h3 { margin: 0 0 8px; font-size: 28px; }
.steps p { margin: 0; color: var(--on-paper-muted); max-width: 44ch; }

/* Preguntas */
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq h2 { font-size: clamp(36px, 4.2vw, 56px); }
.qs details { border-bottom: 1px solid var(--line-paper); }
.qs summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; font: 600 20px/1.3 var(--body); position: relative; transition: color var(--dur-1); }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: '+'; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border-radius: 999px; background: var(--on-paper); color: var(--lime); font: 500 24px/1 var(--body); transition: transform .3s var(--ease), background .2s; }
.qs details[open] summary::after { transform: rotate(45deg); background: var(--lime); color: var(--on-lime); }
.qs details { interpolate-size: allow-keywords; }
.qs details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease), content-visibility var(--dur-2) allow-discrete; }
.qs details[open]::details-content { block-size: auto; opacity: 1; }
.qs summary:hover { color: var(--green-deep); }
.qs p { margin: 0 0 22px; color: var(--on-paper-muted); max-width: 60ch; }

/* Banda final */
.cta-band { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 28, 56,.9) 10%, rgba(9, 28, 56,.15) 70%); }
.cta-in { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(46px, 6.4vw, 92px); letter-spacing: -.035em; max-width: 11ch; margin-bottom: 40px; }
.cta-band h2 em { display: block; }

/* Contacto */
.contact-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.clist { list-style: none; padding: 0; margin: 40px 0; display: grid; gap: 28px; }
.clist li { display: flex; gap: 16px; }
.clist i { font-size: 26px; color: var(--lime); margin-top: 2px; }
.clist b { display: block; font-size: 18px; font-weight: 600; }
.clist b a { text-decoration: none; }
.clist b a:hover { color: var(--lime); }
.clist span { color: var(--on-ink-muted); font-size: 16px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); font-size: 22px; text-decoration: none; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--lime); color: var(--lime); }
.form { display: grid; gap: 20px; padding: 40px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.form h3 { font-size: 28px; }
.form-sub { margin: -8px 0 4px; color: var(--on-ink-muted); font-size: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; color: var(--on-ink); }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgba(243, 244, 241, .22); background: var(--ink-3); color: var(--on-ink); font: 400 16px var(--body); transition: border-color .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:not([type=checkbox]):hover, .form select:hover, .form textarea:hover { border-color: rgba(243, 244, 241, .42); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(95, 201, 243, .16); }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; }
.form .check input { width: 20px; height: 20px; accent-color: var(--lime); flex: none; }
.form .btn { justify-content: center; }
.form-err { margin: 0; color: #ffb4a8; font-size: 15px; }
.form-err[hidden] { display: none; }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 96px 0 32px; background: #061427; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 48px; }
.foot-brand p { margin: 0; color: var(--on-ink-muted); max-width: 32ch; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-col h3 { font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.foot-col a, .foot-col span { color: var(--on-ink-muted); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.foot-col a:hover { color: var(--on-ink); }
.foot-col a.btn-accent, .foot-col a.btn-accent:hover { color: var(--on-lime); min-height: 48px; }
.foot-cta p { margin: 0 0 16px; color: var(--on-ink-muted); }
.foot-cta .btn { align-self: flex-start; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--on-ink-muted); }
.foot-bottom a { color: var(--on-ink); }

/* WhatsApp flotante */

/* Elementos jurídicos y motion graphics */

.ticker { overflow: hidden; background: var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-set { display: flex; flex: none; }
.ticker span { display: inline-flex; align-items: center; gap: 14px; padding: 0 32px; font: 700 clamp(22px, 2.6vw, 34px)/1 var(--display); letter-spacing: -.02em; color: var(--on-ink); white-space: nowrap; }
.ticker span:nth-child(even) { color: var(--on-ink-muted); }
.ticker i { color: var(--lime); font-size: .7em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }



.faq-side { position: sticky; top: 110px; }

/* Entradas al hacer scroll: se activan con .js (app.js) y se limpian al terminar */
.js .rv { transition: opacity var(--dur-3) var(--ease) var(--d, 0s), translate var(--dur-3) var(--ease) var(--d, 0s), filter var(--dur-3) var(--ease) var(--d, 0s); }
.js .rv:not(.in) { opacity: 0; translate: 0 28px; filter: blur(8px); }

/* El video del hero entra con un barrido */
.js .hero-media { animation: hero-wipe 1.5s var(--ease) both; }
.js .hero-media video { animation: hero-zoom 2.2s var(--ease) both; }
@keyframes hero-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes hero-zoom { from { scale: 1.14; } to { scale: 1; } }

/* Animación de titulares */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }
.split .w > span { display: inline-block; }

/* Tablet */
@media (max-width: 1024px) {
  .links, .nav-cta { display: none; }
  .menu { min-height: calc(100dvh - 100px); align-content: start; }
  .burger { display: block; }
  .hero-copy { padding-right: 24px; }
  .pillars-in { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .areas { gap: 40px; }
  .start-in { gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Celular: video arriba, texto debajo, una columna */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .strip span { display: none; }
  .strip-in { justify-content: center; }
  .nav-in { height: 64px; }
  .hero { display: block; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3.2; }
  .hero-media video { object-position: 58% 50%; }
  .hero-media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(9, 28, 56,0) 35%); }
  .hero-copy { padding: 8px 16px 44px; }
  .hero h1 { font-size: min(100px, 13.8cqi); }
  .hero-trust { margin-top: 28px; padding-top: 24px; }
  .lead { font-size: 18px; margin: 18px 0 24px; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .pillar { padding: 18px 14px; gap: 10px; align-items: flex-start; }
  .pillar i { font-size: 24px; }
  .pillar b { font-size: 16px; }
  .pillar span { font-size: 13.5px; }
  :root { --sp-section: 88px; --sp-band: 36px; --sp-head: 40px; }
  .pillar:first-child, .pillar:last-child { padding-inline: 14px; }
  .head p { font-size: 17px; }
  .plan-grid { grid-template-columns: 1fr; gap: 24px; }
  .plan-special { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .plan-special .btn { justify-content: center; }
  .space { min-height: 0; display: block; }
  .space-media { position: relative; height: 280px; }
  .space-media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(9, 28, 56,0) 50%); }
  .space-in { padding: 16px 0 88px; }
  .space-copy .btn { width: 100%; justify-content: center; }
  .start-in { grid-template-columns: 1fr; gap: 40px; }
  .start-side { position: static; }
  .start-side p { font-size: 17px; margin: 16px 0 24px; }
  .steps li { grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
  .steps li > div { padding: 20px; }
  .steps i { width: 52px; height: 52px; font-size: 26px; margin-top: 8px; }
  .steps-line, .steps-wrap::before { left: 25px; top: 30px; bottom: 60px; }
  .steps h3 { font-size: 23px; }
  .areas { grid-template-columns: 1fr; gap: 0; }
  .areas-visual { display: none; }
  .area-foto { display: block; }
  .area-head { gap: 14px; padding: 22px 0; }
  .area-ic { width: 46px; height: 46px; font-size: 22px; }
  .area-name small { font-size: 14.5px; }
  .area-plus { width: 34px; height: 34px; }
  .area-inner { padding-left: 0; }
  .matters { grid-template-columns: 1fr; font-size: 15.5px; }
  .area-inner .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; min-height: 52px; }
  .faq-in, .contact-in { grid-template-columns: 1fr; gap: 26px; }
  .qs summary { font-size: 18px; padding-block: 22px; }
  .cta-band { min-height: 560px; align-items: flex-end; padding-bottom: 54px; }
  .cta-band > img { object-position: 88% 50%; height: 62%; }
  .cta-band::after { background: linear-gradient(0deg, rgba(9, 28, 56,.95) 25%, rgba(9, 28, 56,.15) 80%); }
  .cta-band .btn-lg { width: 100%; justify-content: center; font-size: 17px; }
  .form { padding: 28px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .m-bar { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(9, 28, 56, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); translate: 0 110%; transition: translate var(--dur-2) var(--ease); }
  .m-bar.show { translate: 0 0; }
  .m-bar .btn { justify-content: center; min-height: 50px; padding: 0 12px; }
  .foot { padding-bottom: 104px; }
  @keyframes hero-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
  .faq-side { position: static; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .ticker { padding: 16px 0; }
  .ticker span { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .ticker-track, .mg-beam, .mg-pan, .mg-martillo, .mg-golpe { animation: none; }
}

/* ===== Mundo Bursátil: piezas propias ===== */
.brand img { height: 46px; width: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: translateY(-2px); }
.nav-login { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font: 500 16px var(--body); color: var(--on-ink-muted); transition: color .2s; }
.nav-login:hover { color: var(--on-ink); }
.nav-login i { font-size: 20px; }
.links { gap: 26px; }

/* Portadas reales en miniatura junto al dato de la portada */
.trust-covers { display: inline-flex; flex: none; }
.trust-covers img { width: 44px; height: 57px; object-fit: cover; border-radius: 5px; border: 2px solid var(--ink); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6); }
.trust-covers img + img { margin-left: -16px; }
.trust-covers img:nth-child(1) { rotate: -6deg; }
.trust-covers img:nth-child(3) { rotate: 6deg; }

/* Gráfico que se dibuja detrás del texto de la portada */
.mg-chart { position: absolute; z-index: -1; right: 0; bottom: 0; width: min(100%, 680px); color: rgba(200, 225, 250, .12); pointer-events: none; }
.mg-line { stroke: var(--lime); opacity: .22; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mg-draw 2.4s var(--ease) .5s forwards; }
.mg-area { fill: var(--lime); opacity: 0; animation: mg-fade 1.6s ease 1.6s forwards; }
.mg-dot { fill: var(--yellow); opacity: 0; transform-box: fill-box; transform-origin: center; animation: mg-pop .5s var(--ease) 2.5s forwards, mg-pulse 2.4s ease-in-out 3s infinite; }
@keyframes mg-draw { to { stroke-dashoffset: 0; } }
@keyframes mg-fade { to { opacity: .07; } }
@keyframes mg-pop { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes mg-pulse { 50% { scale: 1.35; } }


/* Beneficios */
.area-p { margin: 0 0 12px; font-size: 18px; color: var(--on-paper-muted); max-width: 52ch; }
.areas-cta { margin-top: 36px; }
.areas-visual img { object-position: 50% 40%; }

/* La revista: texto y abanico de portadas reales */
.issues { background: var(--ink); overflow: hidden; }
.issues-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.issues-copy > p { color: var(--on-ink-muted); font-size: 19px; margin: 24px 0 0; max-width: 46ch; }
.issue-list { list-style: none; padding: 0; margin: 40px 0 0; }
.issue-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.issue-list li:last-child { border-bottom: 1px solid var(--line); }
.issue-list i { font-size: 28px; color: var(--lime); flex: none; margin-top: 2px; }
.issue-list b { display: block; font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.issue-list span { display: block; color: var(--on-ink-muted); font-size: 16px; margin-top: 4px; }
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; padding: 40px 0 0; }
.cover { margin: 0; transition: translate var(--dur-2) var(--ease); }
.cover img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .75), 0 0 0 1px rgba(200, 225, 250, .14); transition: scale var(--dur-2) var(--ease); }
.cover figcaption { margin-top: 18px; font-size: 15.5px; line-height: 1.35; color: var(--on-ink); }
.cover figcaption b { display: block; color: var(--lime); font: 600 12px var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.cover:nth-child(2) { translate: 0 -40px; }
.cover:hover img { scale: 1.04; }

/* Suscripción: la presentadora real señala la tarjeta */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 56px; align-items: end; }
.offer-copy { display: grid; grid-template-columns: 1fr; align-content: start; position: relative; min-height: 640px; }
.offer-copy h2 { max-width: 11ch; }
.offer-copy > p { color: var(--on-ink-muted); font-size: 19px; margin: 20px 0 0; max-width: 30ch; }
.presenter { position: absolute; right: -24px; bottom: calc(-1 * var(--sp-band)); height: 600px; width: auto; max-width: none; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .35)); mask-image: linear-gradient(#000 82%, transparent); }
.plans { background: radial-gradient(90% 80% at 100% 0%, #123f73 0%, var(--ink) 60%); }
.offer .plan { background: var(--ink-3); border-color: rgba(95, 201, 243, .5); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8); padding: 48px 40px 36px; }
.offer .plan h3 { font-size: 30px; }
.offer .amount .num { font-size: 92px; }
.offer .amount .cur { font-size: 40px; align-self: flex-start; margin-top: 10px; }
.offer .plan .btn { justify-content: center; }
.badge { position: absolute; top: -14px; left: 40px; background: var(--yellow); color: #231803; font: 600 13px var(--body); letter-spacing: .02em; padding: 5px 13px; border-radius: 999px; }
.plan-login { display: block; text-align: center; margin-top: 16px; min-height: 32px; font-size: 15px; color: var(--on-ink-muted); }
.plan-login:hover { color: var(--on-ink); }
.plan-special { margin-top: 64px; }
.plan-special p { margin: 10px 0 0; color: var(--on-ink-muted); max-width: 56ch; }

/* Preguntas + quiénes somos */
.faq-side { position: sticky; top: 110px; }
.about { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--on-paper); max-width: 40ch; }
.about h3 { font-size: 22px; margin-bottom: 12px; }
.about p { margin: 0; color: var(--on-paper-muted); font-size: 16.5px; }

.cta-band h2 { max-width: 13ch; margin-bottom: 20px; }
.cta-p { font-size: 20px; color: #d0d9e6; margin: 0 0 36px; max-width: 34ch; }
.cta-band > img { object-position: 70% 50%; }
.cta-band::after { background: linear-gradient(90deg, rgba(9, 28, 56, .92) 8%, rgba(9, 28, 56, .2) 72%); }
.space-media img { object-position: 30% 50%; }
.space-media::after { background: linear-gradient(270deg, rgba(9, 28, 56, .97) 0%, rgba(9, 28, 56, .9) 46%, rgba(9, 28, 56, .05) 78%); }
.contact-in { align-items: center; }
.foot-brand img { height: 62px; width: auto; margin-bottom: 18px; }
.steps { gap: 16px; }

@media (max-width: 1180px) { .nav-login { display: none; } }
@media (max-width: 1024px) {
  .issues-in { grid-template-columns: 1fr; gap: 48px; }
  .offer { grid-template-columns: 1fr; gap: 0; }
  .offer-copy { min-height: 0; padding-bottom: 300px; }
  .presenter { height: 320px; right: auto; left: 50%; translate: -50% 0; bottom: 0; object-fit: cover; object-position: top; }
  .offer .plan { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 767px) {
  .brand img { height: 40px; }
  .mg-chart { display: none; }
  .covers { gap: 12px; }
  .cover:nth-child(2) { translate: 0 -20px; }
  .cover figcaption { font-size: 13.5px; margin-top: 12px; }
  .issue-list b { font-size: 18px; }
  .area-p { font-size: 16.5px; }
  .areas-cta { width: 100%; justify-content: center; margin-top: 28px; }
  .offer-copy { padding-bottom: 290px; }
  .presenter { height: 268px; }
  .offer .plan { padding: 40px 22px 28px; }
  .badge { left: 22px; }
  .offer .amount .num { font-size: 72px; }
  .offer .amount .cur { font-size: 32px; }
  .plan-special { margin-top: 40px; }
  .faq-side { position: static; display: block; }
  .about { margin-top: 28px; }
  .cta-p { font-size: 18px; }
  .m-bar { grid-template-columns: 1.3fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-line { animation: none; stroke-dashoffset: 0; } .mg-area { animation: none; opacity: .07; } .mg-dot { animation: none; opacity: 1; }
}

.js .cover.rv:not(.in) { translate: 0 70px; }

/* ===== Segunda pasada (2026-11-16): motion graphics y técnicas nuevas de CSS ===== */
:root {
  /* Resorte suave con linear(): sólo en movimientos decorativos (portadas, flechas) */
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
}
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn i, .card-cta i { transition: translate .6s var(--spring); }

/* Velas detrás del gráfico de la portada */
.mg-candles { color: rgba(200, 225, 250, .1); }
.hero .btn-ghost { background: rgba(9, 28, 56, .72); }
.mg-candles g { transform-box: fill-box; transform-origin: 50% 100%; animation: candle 1s var(--ease) calc(.25s + var(--i) * 70ms) both; }
@keyframes candle { from { scale: 1 0; opacity: 0; } to { scale: 1 1; opacity: 1; } }

/* Tu año: doce meses que se llenan con cada edición y cada boletín */
.year { background: var(--lime); color: var(--on-lime); padding: 88px 0 80px; overflow: hidden; }
.year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.year-head h2 { font-size: clamp(32px, 3.8vw, 52px); }
.year-head p { margin: 0; font-size: 19px; font-weight: 500; color: #0b3d5c; max-width: 44ch; }
.year-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; perspective: 900px; }
.year-track li { display: grid; justify-items: center; gap: 12px; }
.yr-mag { width: 100%; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 8px; background: var(--on-lime); color: var(--lime); font-size: clamp(18px, 2vw, 28px); box-shadow: 0 16px 24px -16px rgba(4, 22, 43, .7); transform-origin: 50% 100%; transition: opacity .7s var(--ease) calc(var(--i) * 80ms), transform .9s var(--ease) calc(var(--i) * 80ms); }
.yr-dots { display: flex; gap: 6px; }
.yr-dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--on-lime); transition: scale .5s var(--spring) calc(var(--i) * 80ms + .35s), opacity .3s calc(var(--i) * 80ms + .35s); }
.yr-dots i + i { transition-delay: calc(var(--i) * 80ms + .5s); }
.year-track b { font: 600 12.5px var(--body); letter-spacing: .04em; color: #0b3d5c; white-space: nowrap; transition: opacity .5s calc(var(--i) * 80ms + .2s); }
.year-bar { height: 10px; border-radius: 999px; background: rgba(4, 22, 43, .14); margin-top: 28px; overflow: hidden; }
.year-bar span { display: block; height: 100%; border-radius: inherit; background: var(--on-lime); transform-origin: left; transition: scale 1.5s cubic-bezier(.4, 0, .2, 1) .1s; }
.year-legend { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15.5px; font-weight: 500; }
.year-legend li { display: flex; align-items: center; gap: 10px; }
.lg { flex: none; background: var(--on-lime); }
.lg-mag { width: 13px; height: 17px; border-radius: 3px; }
.lg-dot { width: 9px; height: 9px; border-radius: 999px; }
.lg-bar { width: 26px; height: 7px; border-radius: 999px; }
.js .year:not(.playing) .yr-mag { opacity: 0; transform: rotateX(-75deg) translateY(10px); }
.js .year:not(.playing) .yr-dots i { scale: .3; opacity: 0; }
.js .year:not(.playing) .year-track b { opacity: 0; }
.js .year:not(.playing) .year-bar span { scale: 0 1; }
.js .year:not(.playing) :is(.yr-mag, .yr-dots i, .year-track b, .year-bar span) { transition-duration: .2s; transition-delay: 0s; }
/* Donde existe sibling-index() el escalonado no depende del --i escrito en el HTML */
@supports (order: sibling-index()) { .year-track li { --i: calc(sibling-index() - 1); } }

/* Del ruido a la claridad: la línea se ordena con el scroll (la mueve app.js) */
.mg-signal { display: block; width: 100%; height: auto; margin: 0 0 28px; overflow: visible; }
.sig-line { stroke: var(--lime); }
.sig-dot { fill: var(--yellow); }

/* Suscripción: haz que recorre el borde, brillo que sigue al cursor, precio dígito a dígito */
.offer .plan { isolation: isolate; }
.offer .plan::before { content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--beam), transparent 0 68%, var(--lime) 84%, var(--yellow) 93%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: beam 7s linear infinite paused; pointer-events: none; }
.offer .plan.is-live::before { animation-play-state: running; }
@keyframes beam { to { --beam: 360deg; } }
.offer .plan::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(95, 201, 243, .16), transparent 62%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.odo { display: inline-flex; }
.odo .d { display: inline-block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.odo .d > span { display: inline-block; transition: translate 1s var(--ease) calc(.15s + var(--k) * 80ms); }
.js .plan:not(.is-seen) .odo .d > span { translate: 0 110%; }

/* Portadas: inclinación 3D con el cursor y deriva con el scroll */
.covers { perspective: 1100px; }
.cover img { transition: transform .9s var(--spring), scale var(--dur-2) var(--ease); will-change: transform; }
.cover.is-tilting img { transition: transform .12s linear, scale var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .offer .plan:hover::after { opacity: 1; }
}
@media (hover: none) { .cover:hover img { scale: 1; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    .cover:nth-child(1) { --drift: 22px; } .cover:nth-child(2) { --drift: 54px; } .cover:nth-child(3) { --drift: 34px; }
    .cover img, .cover figcaption { animation: cover-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes cover-drift { from { translate: 0 var(--drift); } to { translate: 0 calc(var(--drift) * -1); } }
  }
}

@media (max-width: 1024px) {
  .year-track { grid-template-columns: repeat(6, 1fr); gap: 20px 12px; }
}
@media (max-width: 767px) {
  .year { padding: 64px 0 56px; }
  .year-head { margin-bottom: 32px; }
  .year-head p { font-size: 17px; }
  .year-track { gap: 18px 8px; }
  .year-track b { font-size: 11.5px; }
  .year-legend { flex-direction: column; gap: 10px; font-size: 15px; }
  .mg-signal { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-candles g { animation: none; }
  .offer .plan::before { animation: none; }
}
