@font-face { font-family: 'EB Garamond'; src: url(fonts/ebgaramond.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'EB Garamond'; src: url(fonts/ebgaramond-italic.woff2) format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(fonts/lato-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(fonts/lato-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* Base: el CSS aprobado de Munndo Fiit (oscuro, hero dividido con video, secciones claras alternadas).
   Cambia la marca: grafito del logo + el verde salvia del sitio actual como único acento.
   Tipografía (UI UX Pro Max, par "Legal Professional"): EB Garamond en títulos y cifras, Lato en texto e interfaz.
   Espacios en base 4: sección 136 / franja 64 / título→contenido 64 / grupo 20-24. */
:root {
  --ink: #0c0e0d;
  --ink-2: #131615;
  --ink-3: #1b1f1d;
  --paper: #f2f1ec;
  --paper-2: #e3e2db;
  --on-ink: #f3f4f1;
  --on-ink-muted: #a7aeaa;
  --on-paper: #131615;
  --on-paper-muted: #555c58;
  --line: rgba(243, 244, 241, .11);
  --line-paper: rgba(19, 22, 21, .13);
  --lime: #9bd9ab;
  --lime-hover: #b4e8c1;
  --on-lime: #0a1a10;
  --green-deep: #2f6b41;
  --yellow: #e3c27c;
  --radius: 12px;
  --display: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --body: 'Lato', 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: #3b423e 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: 500; line-height: 1.04; letter-spacing: -.018em; margin: 0; text-wrap: balance; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(40px, 5vw, 68px); }
h3 { font-size: 26px; font-weight: 600; line-height: 1.12; letter-spacing: -.008em; }
h1 em, h2 em { font-style: italic; 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; }
.card-cta:hover i { translate: 5px 0; }
.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(12, 14, 13, .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(12, 14, 13, .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; }
.brand img { height: 52px; width: auto; }
.brand b { display: block; font: 700 16px/1.1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--on-ink-muted); margin-top: 3px; }
.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: 500 32px var(--display); letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; justify-content: center; }

/* 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: var(--ink); }
.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(12,14,13,0) 20%), linear-gradient(0deg, rgba(12,14,13,.5) 0%, rgba(12,14,13,0) 25%); }
.hero h1 { font-size: min(104px, 14.4cqi); line-height: .98; letter-spacing: -.025em; }
.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-note { margin: 26px 0 0; font-size: 15px; color: var(--on-ink-muted); max-width: 44ch; }
.hero-note i { color: var(--lime); vertical-align: -2px; margin-right: 4px; }

/* 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: 600 21px/1.15 var(--display); }
.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 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 32px; }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; margin: 0 0 24px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 29px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.card > p { margin: 8px 0 0; color: var(--on-paper-muted); font-size: 16px; line-height: 1.45; }
.matters { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line-paper); font-size: 15px; line-height: 1.4; }
.matters li { padding: 10px 0; border-bottom: 1px solid var(--line-paper); }
.chip { display: inline-block; background: var(--on-paper); color: var(--lime); font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; }
.card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; align-self: flex-start; color: var(--on-paper); font-weight: 600; text-decoration: none; min-height: 44px; border-bottom: 2px solid var(--on-paper); transition: background .2s; }
.matters + .card-cta { margin-top: 20px; }
.card { gap: 0; }
.card .matters { margin-bottom: auto; }
.card-cta:hover { background: var(--lime); }

/* Cifras */
.stats { background: var(--ink-2); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(3, 1fr) minmax(0, 1.1fr); align-items: center; }
.stat { padding: var(--sp-band) 32px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 500 clamp(56px, 6.6vw, 96px)/1 var(--display); letter-spacing: -.02em; color: var(--lime); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; color: var(--on-ink-muted); max-width: 22ch; }

/* 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(12,14,13,.4) 50%, var(--ink)); }
.plans .wrap { position: relative; }
.picker { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; font-weight: 700; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--on-ink-muted); font: 600 15.5px var(--body); cursor: pointer; position: relative; z-index: 1; transition: color var(--dur-2) var(--ease); }
.seg button:hover { color: var(--on-ink); }
.seg button[aria-pressed="true"] { color: var(--on-lime); }
.seg:not(.has-thumb) button[aria-pressed="true"] { background: var(--lime); }
.seg-thumb { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--lime); transition: translate var(--dur-2) var(--ease), width var(--dur-2) var(--ease), height var(--dur-2) var(--ease); }
.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(27, 31, 29, .94); border: 1.5px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .3s; }
.plan.is-on { border-color: var(--lime); transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.plan.is-on .btn-line { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.badge { position: absolute; top: -13px; left: 32px; background: var(--yellow); color: #1c1403; font: 600 13px var(--body); letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 31px; }
.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: 500; }
.amount .num { font-size: 84px; line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.amount .cur { font-size: 34px; font-style: italic; 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(27, 31, 29, .94); border: 1.5px dashed rgba(155, 217, 171, .45); }
.plan-special h3 { font-size: 28px; }
.tramites { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tramites li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-3); font-size: 15px; color: #d3d8d5; }
.plans-note { margin: 28px 0 0; color: var(--on-ink-muted); font-size: 15px; }
.plans-note i { vertical-align: -2px; color: var(--lime); }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ph-wrap { aspect-ratio: 9 / 7; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: var(--paper-2); }
.ph-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.person:hover .ph-wrap img { transform: scale(1.03); }
.person h3 { font-size: 31px; }
.role { display: inline-block; background: var(--on-paper); color: var(--lime); font: 600 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 6px; margin: 12px 0; }
.person p:not(.role) { color: var(--on-paper-muted); margin: 0; font-size: 16px; max-width: 40ch; }
.creds { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line-paper); font-size: 15px; line-height: 1.4; color: var(--on-paper); }
.creds li { padding: 9px 0; border-bottom: 1px solid var(--line-paper); }
.faces { display: inline-flex; vertical-align: middle; margin: 0 .12em; transform: translateY(-.06em); }
.faces img { width: .9em; height: .9em; border-radius: 999px; object-fit: cover; border: 3px solid var(--paper); }
.faces img:nth-child(1) { object-position: 24% 20%; }
.faces img:nth-child(2) { object-position: 50% 15%; }
.faces img:nth-child(3) { object-position: 70% 25%; }
.faces img + img { margin-left: -.28em; }

/* 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(12,14,13,.97) 0%, rgba(12,14,13,.88) 42%, rgba(12,14,13,.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(38px, 4.3vw, 58px); }
.space-copy > p { color: #d0d5d2; 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(--ink-2); border-block: 1px solid var(--line); }
.steps-wrap { position: relative; margin-top: var(--sp-head); }
.steps-line { position: absolute; top: 27px; left: 28px; width: calc(66.67% + 34px); height: 2px; background: var(--lime); transform-origin: left; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 0 34px 0 0; }
.steps li + li { padding-left: 34px; }
.steps i { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--ink-2); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 28px; }
.steps h3 { margin: 24px 0 8px; font-size: 29px; }
.steps p { margin: 0; color: var(--on-ink-muted); max-width: 32ch; }

/* Preguntas */
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq h2 { font-size: clamp(40px, 4.6vw, 62px); }
.qs details { border-bottom: 1px solid var(--line-paper); }
.qs summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; font: 600 24px/1.2 var(--display); 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(12,14,13,.9) 10%, rgba(12,14,13,.15) 70%); }
.cta-in { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(52px, 6.8vw, 96px); letter-spacing: -.025em; 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: 31px; }
.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: 7px; font-size: 14.5px; font-weight: 500; color: #d3d8d5; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--ink); color: var(--on-ink); font: 400 16px var(--body); transition: border-color .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); }
.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; }
.map { margin-top: 80px; border-radius: var(--radius); overflow: hidden; height: 360px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) invert(.92) hue-rotate(180deg) contrast(.9); }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 96px 0 32px; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 48px; }
.foot-brand img { height: 148px; width: 148px; border-radius: 50%; margin-bottom: 18px; }
.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 */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-size: 32px; text-decoration: none; box-shadow: 0 14px 34px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }

/* Elementos jurídicos y motion graphics */
.brand img { transition: transform .5s var(--ease); transform-origin: 50% 100%; }
.brand:hover img { transform: translateY(-3px) scale(1.06); }
.card-ic { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 26px; box-shadow: 0 0 0 4px var(--paper); transition: transform .5s var(--ease), background .2s, color .2s; }
.card:hover .card-ic { transform: rotate(-10deg) scale(1.08); background: var(--lime); color: var(--on-lime); }

.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: 500 clamp(26px, 3vw, 40px)/1 var(--display); color: var(--on-ink); white-space: nowrap; }
.ticker span:nth-child(even) { font-style: italic; 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%); } }

.mg-balanza { position: absolute; z-index: -1; right: -6%; top: 50%; translate: 0 -50%; width: min(86%, 560px); color: var(--lime); opacity: .1; pointer-events: none; }
.mg-balanza [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mg-draw 1.6s var(--ease) .5s forwards; }
.mg-beam { transform-box: view-box; transform-origin: 200px 84px; animation: mg-sway 5.5s ease-in-out 2s infinite alternate; }
.mg-pan { transform-box: view-box; animation: mg-sway-back 5.5s ease-in-out 2s infinite alternate; }
.mg-pan-l { transform-origin: 60px 84px; }
.mg-pan-r { transform-origin: 340px 84px; }
@keyframes mg-draw { to { stroke-dashoffset: 0; } }
@keyframes mg-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes mg-sway-back { from { transform: rotate(5deg); } to { transform: rotate(-5deg); } }

.stat-mg { display: grid; place-items: center; padding: 20px 28px; }
.mg-mazo { width: min(100%, 260px); color: var(--lime); overflow: visible; }
.mg-martillo { transform-box: view-box; transform-origin: 306px 144px; transform: rotate(32deg); animation: mg-hit 3.2s cubic-bezier(.5, 0, .9, .4) infinite paused; }
.mg-golpe { opacity: 0; animation: mg-spark 3.2s linear infinite paused; }
.mg-mazo.playing .mg-martillo, .mg-mazo.playing .mg-golpe { animation-play-state: running; }
@keyframes mg-hit { 0% { transform: rotate(32deg); } 14% { transform: rotate(0); } 19% { transform: rotate(7deg); animation-timing-function: ease-in; } 24% { transform: rotate(0); } 34% { transform: rotate(0); animation-timing-function: cubic-bezier(.3, 0, .2, 1); } 80%, 100% { transform: rotate(32deg); } }
@keyframes mg-spark { 0%, 13% { opacity: 0; } 15% { opacity: 1; } 32% { opacity: 0; } 100% { opacity: 0; } }

.faq-side { position: sticky; top: 110px; }
.justicia { width: min(100%, 280px); height: auto; margin-top: 48px; filter: drop-shadow(0 24px 24px rgba(19, 22, 21, .22)); }

/* 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); }
.card-img, .ph-wrap { clip-path: inset(0 round var(--radius)); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.js .rv.card:not(.in), .js .rv.person:not(.in) { translate: none; filter: none; }
.js .rv:not(.in) .card-img, .js .rv:not(.in) .ph-wrap { clip-path: inset(0 0 100% 0 round var(--radius)); }
.js .rv:not(.in) .card-img img, .js .rv:not(.in) .ph-wrap img { transform: scale(1.22); }

/* 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; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .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); }
  .team { gap: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .picker { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 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; }
  .brand img { height: 44px; width: auto; }
  .brand b { font-size: 14px; letter-spacing: .12em; }
  .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(12,14,13,0) 35%); }
  .hero-copy { padding: 8px 16px 44px; }
  .hero h1 { font-size: min(104px, 15.4cqi); }
  .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; }
  .cards { grid-template-columns: 1fr; gap: 64px; }
  .card-img { aspect-ratio: 16 / 11; }
  .card-img img { object-position: 50% 30%; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat-mg { grid-column: 2; grid-row: 1 / span 3; padding: 0; border: 0 !important; }
  .stat, .stat:first-child { padding: 28px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .seg { width: 100%; flex-direction: column; border-radius: 16px; }
  .seg button { border-radius: 12px; }
  .plan-grid { grid-template-columns: 1fr; gap: 24px; }
  .plan.is-on { transform: none; }
  .plan-special { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .plan-special .btn { justify-content: center; }
  .team { grid-template-columns: 1fr; gap: 64px; }
  .space { min-height: 0; display: block; }
  .space-media { position: relative; height: 280px; }
  .space-media::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(12,14,13,0) 50%); }
  .space-in { padding: 16px 0 88px; }
  .space-copy .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 30px; margin-top: 34px; }
  .steps li, .steps li + li { padding: 0; border: 0; }
  .steps li + li { padding-top: 30px; border-top: 1px solid var(--line); }
  .steps-line { display: none; }
  .faq-in, .contact-in { grid-template-columns: 1fr; gap: 26px; }
  .qs summary { font-size: 21px; 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(12,14,13,.95) 25%, rgba(12,14,13,.15) 80%); }
  .cta-band .btn-lg { width: 100%; justify-content: center; font-size: 17px; }
  .form { padding: 28px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .map { height: 300px; margin-top: 48px; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .mg-balanza { display: none; }
  .seg-thumb { border-radius: 12px; }
  @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; }
  .justicia { width: 110px; margin: 0; }
  .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; }
  .mg-martillo { transform: none; }
  .mg-balanza [pathLength] { animation: none; stroke-dashoffset: 0; }
}
