/* ============================================================
   CNPJ — Comunidad Nacional de Peritos Judiciales
   Estilos del sitio público. Paleta marino + oro (familia UDAE/PERIDICT).
   Sin dependencias externas: tipografías de sistema, iconos SVG inline.
   ============================================================ */

:root {
  /* ---- Institutional palette (light) — refined premium tones ---- */
  --paper:      #EFF2F7;   /* clean cool near-white */
  --paper-2:    #FFFFFF;   /* card surface */
  --paper-3:    #E6EBF2;   /* alt / recessed surface */
  --ink:        #0E1B2E;
  --ink-soft:   #45566B;
  --navy:       #1A3250;   /* family navy — authority / action */
  --navy-deep:  #0F2138;   /* deeper, richer ground */
  --blue:       #1A3250;   /* interactive = navy (family) */
  --blue-soft:  #2A527F;
  --gold:       #91701F;   /* text-safe ochre — accent on paper (AA) */
  --gold-bright:#C8A24B;   /* brand gold, aligned to logo */
  --gold-hi:    #E6D19A;   /* metallic highlight */
  --gold-lo:    #A67C2C;   /* metallic shadow */
  --line:       rgba(15,33,56,.12);
  --line-soft:  rgba(15,33,56,.07);
  --line-strong:rgba(15,33,56,.20);
  --shadow:     0 1px 2px rgba(15,33,56,.05), 0 6px 16px -8px rgba(15,33,56,.13), 0 22px 46px -26px rgba(15,33,56,.22);
  --shadow-lg:  0 4px 10px -4px rgba(15,33,56,.10), 0 34px 64px -26px rgba(15,33,56,.32);
  --focus:      #1A3250;
  --radius:     14px;
  --wrap:       1120px;

  /* ---- Motion system (theme-independent) ---- */
  --ease:       cubic-bezier(.16,1,.3,1);   /* expo-out, decisive settle */
  --ease-inout: cubic-bezier(.7,0,.2,1);
  --dur-1: .18s; --dur-2: .44s; --dur-3: .9s;
  --gold-grad:  linear-gradient(135deg, var(--gold-hi) 0%, var(--gold-bright) 50%, var(--gold-lo) 100%);
  --header-h: 72px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", Georgia, serif;
  --sans:  "Seravek", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0A1626;
    --paper-2:    #0F2138;
    --paper-3:    #14273D;
    --ink:        #E9EFF7;
    --ink-soft:   #A6B7CC;
    --navy:       #2A527F;
    --navy-deep:  #070F1C;
    --blue:       #5FA3E0;
    --blue-soft:  #7FB6E8;
    --gold:       #D6B45C;
    --gold-bright:#E0C074;
    --gold-hi:    #F0DBA4;
    --gold-lo:    #C29B4E;
    --line:       rgba(200,220,245,.15);
    --line-soft:  rgba(200,220,245,.08);
    --line-strong:rgba(200,220,245,.24);
    --shadow:     0 1px 2px rgba(0,0,0,.5), 0 10px 26px -12px rgba(0,0,0,.6);
    --shadow-lg:  0 20px 52px -18px rgba(0,0,0,.78);
    --focus:      #7FB6E8;
  }
}
:root[data-theme="dark"] {
  --paper:#0A1626; --paper-2:#0F2138; --paper-3:#14273D; --ink:#E9EFF7; --ink-soft:#A6B7CC;
  --navy:#2A527F; --navy-deep:#070F1C; --blue:#5FA3E0; --blue-soft:#7FB6E8;
  --gold:#D6B45C; --gold-bright:#E0C074; --gold-hi:#F0DBA4; --gold-lo:#C29B4E;
  --line:rgba(200,220,245,.15); --line-soft:rgba(200,220,245,.08); --line-strong:rgba(200,220,245,.24);
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 10px 26px -12px rgba(0,0,0,.6);
  --shadow-lg:0 20px 52px -18px rgba(0,0,0,.78); --focus:#7FB6E8;
}
:root[data-theme="light"] {
  --paper:#EFF2F7; --paper-2:#FFFFFF; --paper-3:#E6EBF2; --ink:#0E1B2E; --ink-soft:#45566B;
  --navy:#1A3250; --navy-deep:#0F2138; --blue:#1A3250; --blue-soft:#2A527F;
  --gold:#91701F; --gold-bright:#C8A24B; --gold-hi:#E6D19A; --gold-lo:#A67C2C;
  --line:rgba(15,33,56,.12); --line-soft:rgba(15,33,56,.07); --line-strong:rgba(15,33,56,.20);
  --shadow:0 1px 2px rgba(15,33,56,.05), 0 6px 16px -8px rgba(15,33,56,.13), 0 22px 46px -26px rgba(15,33,56,.22);
  --shadow-lg:0 4px 10px -4px rgba(15,33,56,.10), 0 34px 64px -26px rgba(15,33,56,.32); --focus:#1A3250;
}

/* ---- Cross-page transitions (View Transitions API, progressive) ---- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .38s; animation-timing-function: var(--ease-inout); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
/* El header fijo no debe tapar el destino al saltar a una ancla */
section[id], main[id], [id].section { scroll-margin-top: calc(var(--header-h) + 20px); }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .2em;
  font-weight: 700; color: var(--gold); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.lead { font-size: 1.24rem; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }

/* ---- Buttons ---- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  padding: 13px 24px; border-radius: 11px; border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.btn:active { transform: translateY(0) scale(.985); }
/* Barrido de brillo en botones sólidos */
.btn-primary::before, .btn-gold::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-inout);
}
.btn-primary:hover::before, .btn-gold:hover::before { transform: translateX(120%); }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 86%, #fff), var(--navy));
  color: #fff; box-shadow: 0 10px 24px -12px var(--navy), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px var(--navy), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow); }
.btn-gold {
  background: var(--gold-grad); color: #2A1F00;
  box-shadow: 0 10px 24px -12px var(--gold-lo), inset 0 1px 0 rgba(255,255,255,.4);
}
:root[data-theme="dark"] .btn-gold { color:#22190a; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px var(--gold-lo), inset 0 1px 0 rgba(255,255,255,.45); }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 40;
  view-transition-name: site-header;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
header.site.scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(15,33,56,.4);
}
.nav { display: flex; align-items: center; gap: 22px; height: var(--header-h); transition: height var(--dur-2) var(--ease); }
header.site.scrolled .nav { height: 60px; }
.brand-logo { transition: height var(--dur-2) var(--ease); }
header.site.scrolled .brand-logo { height: 34px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .seal-mini { width: 38px; height: 38px; flex: none; }
.brand b { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .02em; }
.brand small { display:block; font-size:.6rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-soft); font-family:var(--sans); font-weight:600; margin-top:1px; }

/* Wordmark oficial (marino+oro en claro, blanco+oro en oscuro) */
.brand-logo { height: 40px; width: auto; display: block; }
.foot-brand .brand-logo { height: 46px; }
.brand-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-logo--light { display: none; }
  :root:not([data-theme]) .brand-logo--dark  { display: block; }
}
:root[data-theme="dark"]  .brand-logo--light { display: none; }
:root[data-theme="dark"]  .brand-logo--dark  { display: block; }
:root[data-theme="light"] .brand-logo--light { display: block; }
:root[data-theme="light"] .brand-logo--dark  { display: none; }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a {
  position: relative; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: 8px 4px; transition: color var(--dur-1) var(--ease);
}
.nav .links a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform var(--dur-2) var(--ease);
}
.nav .links a:hover { color: var(--ink); }
.nav .links a:hover::after,
.nav .links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .links a[aria-current="page"] { color: var(--ink); }
.nav .cta-join { margin-left: 8px; }
@media (max-width: 860px) { .nav .links { display: none; } }

/* ---- Theme toggle ---- */
.theme-toggle {
  margin-left: 4px; width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--blue); }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: none; }
}
:root[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"]  .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 96px);
}
.hero h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); }
.hero .lead { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .register {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .86rem; max-width: 46ch;
}
.hero .register svg { flex: none; color: var(--gold); }

/* Seal medallion — a committed object (fixed navy) regardless of theme */
.seal-wrap { display: grid; place-items: center; }
.seal {
  position: relative; width: min(400px, 82vw); aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #234e86 0%, #16375f 42%, #0f2749 100%);
  box-shadow:
    0 40px 80px -30px rgba(10,24,44,.7),
    inset 0 2px 3px rgba(255,255,255,.14),
    inset 0 0 0 1px rgba(200,169,81,.28);
  display: grid; place-items: center;
}
.seal canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-escudo { position: relative; z-index: 2; width: 84%; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }

/* ---- Hero: orchestrated entrance + subtle ambient float ---- */
@keyframes rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes sealIn { from { opacity: 0; transform: scale(.9) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-grid > div:first-child > * { opacity: 0; animation: rise var(--dur-3) var(--ease) forwards; }
.hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .14s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .23s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .32s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .41s; }
.hero .seal { animation: sealIn 1.1s var(--ease) .15s both; }
.hero .seal-escudo { animation: floatY 7s ease-in-out 1.3s infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-grid > div:first-child > *, .hero .seal, .hero .seal-escudo { animation: none; opacity: 1; transform: none; }
}
.seal .mono {
  position: relative; text-align: center; color: #EBD9A5; z-index: 2;
  font-family: var(--serif);
}
.seal .mono .abbr { font-size: clamp(2.6rem, 8vw, 3.7rem); letter-spacing: .1em; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.seal .mono .est { font-family: var(--sans); font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: #C8A951; margin-top: 6px; }
.seal .mono .rule { width: 46px; height: 1px; background: rgba(200,169,81,.6); margin: 9px auto; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .seal-wrap { order: -1; }
}

/* ---- Quiénes somos strip ---- */
.qs { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.qs-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.qs h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.qs p { color: var(--ink-soft); font-size: 1.08rem; }
.qs a.more { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; }
.qs a.more:hover { border-color: var(--blue); }
@media (max-width: 760px){ .qs-grid{ grid-template-columns:1fr; gap:20px; } }

/* ---- Section head ---- */
.head { max-width: 60ch; margin-bottom: 44px; }
.head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; }

/* ---- Benefits ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold-bright) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold-bright) 16%, transparent);
  color: var(--gold); margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--gold-bright) 30%, transparent);
}
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
@media (max-width: 900px){ .cards{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 580px){ .cards{ grid-template-columns: 1fr;} }

/* ---- Especialidades ---- */
.spec { background: var(--navy-deep); color: #EAF1F9; }
.spec .eyebrow { color: var(--gold-bright); }
.spec .eyebrow::before { background: var(--gold-bright); }
.spec h2 { color: #fff; }
.spec .head p { color: #B9CAE0; }
.tags { display: flex; flex-wrap: wrap; gap: 11px; }
.tag {
  font-size: .93rem; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #DCE7F4;
  transition: background .18s, border-color .18s, transform .18s;
}
.tag:hover { background: rgba(200,169,81,.16); border-color: rgba(200,169,81,.5); transform: translateY(-2px); }
.spec .foot { margin-top: 30px; color: #9DB2CE; font-size: 1rem; max-width: 66ch; }
.spec .foot b { color: var(--gold-bright); font-weight: 600; }

/* ---- Pricing + process ---- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 32px; position: relative; box-shadow: var(--shadow);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.best { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), var(--shadow); }
.plan.best:hover { box-shadow: 0 0 0 1px var(--gold-bright), var(--shadow-lg); }
.plan .badge {
  position: absolute; top: -12px; right: 24px; background: var(--gold-bright); color: #2A1F00;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan .kind { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); font-weight: 700; }
.plan .amt { font-family: var(--serif); font-size: 2.9rem; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.plan .amt span { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.plan .equiv { color: var(--ink-soft); font-size: .92rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink-soft); }
.plan li svg { flex: none; color: var(--gold); margin-top: 3px; }
.plan .save { color: var(--gold); font-weight: 700; }
.alta-note { text-align: center; margin-top: 22px; color: var(--ink-soft); font-size: .95rem; }
.alta-note b { color: var(--ink); font-variant-numeric: tabular-nums; }

.process { margin-top: 64px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.step { text-align: left; }
.step .n {
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--gold-bright) 45%, transparent); margin-bottom: 14px;
}
.step p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.step p b { color: var(--ink); font-weight: 600; display: block; font-family: var(--sans); margin-bottom: 2px; font-size:.95rem; }
@media (max-width: 960px){ .steps{ grid-template-columns: repeat(3,1fr); gap: 22px 16px;} }
@media (max-width: 700px){ .price-grid{ grid-template-columns:1fr;} .steps{ grid-template-columns: repeat(2,1fr);} }

/* ---- Requisitos + FAQ split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px){ .split{ grid-template-columns:1fr; gap: 44px; } }
.req-list { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; gap: 4px; }
.req-list li {
  counter-increment: r; display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: 1rem;
}
.req-list li::before {
  content: counter(r, decimal-leading-zero); font-family: var(--serif); color: var(--gold);
  font-size: 1rem; font-weight: 600; min-width: 26px; font-variant-numeric: tabular-nums;
}
.req-list li b { color: var(--ink); font-weight: 600; }
.req-note { margin-top: 22px; font-size: .92rem; color: var(--ink-soft); font-style: italic; }

details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative;
  font-weight: 600; font-size: 1.06rem; color: var(--ink); font-family: var(--sans);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); font-weight: 400; transition: transform .2s;
}
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 20px; color: var(--ink-soft); font-size: 1rem; max-width: 60ch; }

/* ---- CTA final ---- */
.cta-final { background: var(--navy-deep); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-final .price { margin: 22px auto 4px; font-size: 1.2rem; color: #CFDDEE; font-variant-numeric: tabular-nums; }
.cta-final .price b { color: var(--gold-bright); }
.cta-final .sub { color: #93A9C6; font-size: .96rem; }
.cta-final .actions { display: flex; justify-content: center; margin-top: 30px; }

/* ---- Footer ---- */
footer.site { background: var(--paper-2); border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; }
.foot-brand { max-width: 34ch; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.foot-contact { display: grid; gap: 8px; align-content: start; }
.foot-contact a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; display: inline-flex; align-items:center; gap:8px; }
.foot-contact a:hover { color: var(--blue); }
.foot-legal { border-top: 1px solid var(--line-soft); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.foot-legal a { color: var(--ink-soft); text-decoration: none; font-size: .85rem; }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal .copy { margin-left: auto; color: var(--ink-soft); font-size: .8rem; max-width: 44ch; text-align: right; }
@media (max-width: 640px){ .foot-legal .copy{ margin-left:0; text-align:left; } }

/* ============================================================
   Sub-páginas (quiénes somos, servicios, contacto, legales)
   ============================================================ */

/* Banda de título de página */
.subhead { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.subhead .wrap { padding-top: clamp(40px,6vw,76px); padding-bottom: clamp(36px,5vw,60px); }
.subhead h1 { font-size: clamp(2rem,4.2vw,3.05rem); max-width: 22ch; }
.subhead .lead { margin-top: 18px; }
.breadcrumb { font-size:.82rem; color:var(--ink-soft); margin-bottom:16px; display:flex; flex-wrap:wrap; gap:8px; }
.breadcrumb a { color:var(--ink-soft); text-decoration:none; }
.breadcrumb a:hover { color:var(--blue); }
.breadcrumb span[aria-current] { color:var(--ink); }

/* Prosa / textos legales */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.12rem; font-family:var(--sans); font-weight:700; margin-top:1.5em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; display:grid; gap:.5em; margin-top:.7em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose strong, .prose b { color: var(--ink); }
.legal-meta { font-size:.85rem; color:var(--ink-soft); border:1px solid var(--line); border-radius:10px; padding:12px 16px; }
.table-wrap { overflow-x:auto; margin-top:1em; }
.data-table { width:100%; border-collapse:collapse; font-size:.92rem; min-width:520px; }
.data-table th, .data-table td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; color:var(--ink-soft); }
.data-table th { color:var(--ink); font-family:var(--sans); font-weight:700; }

/* Misión / visión / valores / objetivos */
.mv-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
@media(max-width:760px){ .mv-grid{ grid-template-columns:1fr; } }
.mv { background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); }
.mv h3 { font-family:var(--serif); font-size:1.3rem; margin-bottom:8px; }
.mv p { color:var(--ink-soft); margin:0; }
.val-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px 26px; }
@media(max-width:820px){ .val-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .val-grid{ grid-template-columns:1fr; } }
.val { border-left:2px solid var(--gold-bright); padding:2px 0 2px 18px; }
.val h4 { font-family:var(--serif); font-size:1.1rem; margin:0 0 4px; }
.val p { color:var(--ink-soft); margin:0; font-size:.95rem; }

/* Servicios y descuentos */
.svc-cat { margin-top:44px; }
.svc-cat > .eyebrow { margin-bottom:18px; }
.svc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
@media(max-width:720px){ .svc-grid{ grid-template-columns:1fr; } }
.svc { background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; box-shadow:var(--shadow); }
.svc h3 { font-size:1.12rem; margin-bottom:6px; font-family:var(--serif); }
.svc p { color:var(--ink-soft); font-size:.95rem; margin:0; }
.svc details { margin-top:12px; }
.svc summary { cursor:pointer; color:var(--blue); font-weight:600; font-size:.9rem; list-style:none; }
.svc summary::-webkit-details-marker { display:none; }
.svc summary::before { content:"→ "; }
.svc details[open] summary::before { content:"↓ "; }
.svc details p { margin-top:8px; font-size:.9rem; }
.badge-soft { display:inline-block; font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); background:color-mix(in srgb,var(--gold-bright) 15%, transparent); border:1px solid color-mix(in srgb,var(--gold-bright) 30%, transparent); padding:3px 9px; border-radius:999px; margin-bottom:10px; }

/* Formulario de contacto (maqueta) */
.form-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:48px; align-items:start; }
@media(max-width:820px){ .form-grid{ grid-template-columns:1fr; gap:36px; } }
.field { display:grid; gap:6px; margin-bottom:16px; }
.field label { font-size:.85rem; font-weight:600; color:var(--ink); }
.field input, .field select, .field textarea {
  font-family:var(--sans); font-size:1rem; color:var(--ink); background:var(--paper-2);
  border:1px solid var(--line); border-radius:10px; padding:12px 14px; width:100%;
}
.field textarea { min-height:130px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:2px solid var(--focus); outline-offset:1px; }
.check { display:flex; gap:10px; align-items:flex-start; font-size:.9rem; color:var(--ink-soft); }
.check input { margin-top:3px; flex:none; }
.form-note { font-size:.82rem; color:var(--ink-soft); margin-top:14px; }
.contact-aside { background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); }
.contact-aside h3 { font-family:var(--serif); font-size:1.25rem; margin-bottom:10px; }
.contact-aside p { color:var(--ink-soft); font-size:.95rem; }
.contact-aside a { color:var(--blue); text-decoration:none; }
.contact-aside a:hover { text-decoration:underline; }

/* ---- Scroll reveal (gated by .motion so content stays visible without JS) ---- */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); will-change: opacity, transform; }
.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover, .tag:hover, .plan:hover { transform: none; }
  .hero .seal-escudo { animation: none !important; }
}
