/* =============================================================
   [NOMBRE_ESTUDIO] — Arquetipo 09 · Editorial de autoridad
   Azul marino · marfil · bronce. Filetes finos, cifras romanas,
   capitular en el respaldo legal. Sin librerías externas.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:      #0E1B33;
  --navy-2:    #13244A;
  --navy-3:    #1B2F5A;
  --ivory:     #F7F3EA;
  --ivory-2:   #EFE8DA;
  --paper:     #FFFDF8;
  --ink:       #14213D;
  --ink-soft:  #3B4660;
  --ink-mute:  #545E74;
  --gold:      #C9A86A;   /* sobre marino: 7,5:1 */
  --gold-2:    #DCC28E;
  --bronze:    #7B5B2C;   /* texto sobre marfil: 5,5:1 */
  --line:      rgba(20, 33, 61, 0.16);
  --line-light: rgba(247, 243, 234, 0.18);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --nav-h: 68px;
  --radius: 4px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-1: 0 1px 2px rgba(14, 27, 51, .06), 0 8px 24px -12px rgba(14, 27, 51, .18);
  --shadow-2: 0 2px 4px rgba(14, 27, 51, .06), 0 24px 48px -20px rgba(14, 27, 51, .32);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--bronze); }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-navy :focus-visible, .hero :focus-visible, .footer :focus-visible, .nav :focus-visible { outline-color: var(--gold); }
section[id], article[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 1000;
  padding: .6rem 1rem; background: var(--gold); color: var(--navy);
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Tipografía editorial
   ============================================================= */
.kicker {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
}
.kicker-light { color: var(--gold); }
.kicker-num {
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: 0;
  padding-right: .75rem; border-right: 1px solid currentColor;
}
.kicker-rule { width: 2rem; height: 1px; background: currentColor; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
.section-lede { margin-top: 1rem; font-size: 1.0625rem; color: var(--ink-soft); max-width: 38rem; }
.section-head-light h2 { color: var(--ivory); }
.section-head-light h2 em { color: var(--gold); }
.section-head-light .section-lede { color: rgba(247, 243, 234, .82); }

.section-cta { margin-top: 2.5rem; font-size: 1rem; color: var(--ink-soft); }
.section-cta a, .legal-note a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color .3s var(--ease-out), color .3s var(--ease-out);
}
.section-cta a:hover { color: var(--bronze); text-decoration-color: var(--bronze); }
.section-cta-light { color: rgba(247, 243, 234, .82); }
.section-cta-light a { color: var(--ivory); }
.section-cta-light a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.section-cta-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Botones --- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn::after {               /* brillo que cruza al pasar el cursor */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-arrow { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-lg { min-height: 54px; padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 12px 28px -12px rgba(201, 168, 106, .7); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-3); box-shadow: var(--shadow-2); }
.btn-outline-light { border-color: rgba(247, 243, 234, .55); color: var(--ivory); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid var(--gold);
  transition: gap .35s var(--ease-out), color .35s var(--ease-out);
}
.link-arrow::after { content: "→"; color: var(--bronze); }
.link-arrow:hover { gap: .85rem; color: var(--bronze); }

/* --- Tarjetas base --- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
.card::before {             /* filete dorado que se dibuja arriba */
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(20, 33, 61, .24); }
.card:hover::before { transform: scaleX(1); }

.checklist { display: grid; gap: .55rem; margin-block: 1.25rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: .9375rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .4rem;
  border-left: 1.5px solid var(--bronze); border-bottom: 1.5px solid var(--bronze);
  transform: rotate(-45deg);
}

/* --- Marcadores de imagen --- */
.ph {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: 1rem; text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 33, 61, .045) 14px 15px),
    linear-gradient(160deg, var(--ivory-2), #E4DAC6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-mute);
}
.ph::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(123, 91, 44, .35); border-radius: 2px; pointer-events: none;
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(201, 168, 106, .06) 14px 15px),
    linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border-color: var(--line-light);
  color: rgba(247, 243, 234, .78);
}
.ph-dark::before { border-color: rgba(201, 168, 106, .4); }
.photo {
  display: block; width: 100%; height: auto; object-fit: cover;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  background: var(--navy-2); box-shadow: var(--shadow-2);
}
.photo-hero { aspect-ratio: 4 / 5; }
.photo-contact { aspect-ratio: 3 / 2; }
.credits-list { display: grid; gap: 1.25rem; padding: 0; list-style: none; }
.credits-list li { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; }
.credits-list img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); }
.ph-ratio { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ph:not(.ph-dark) .ph-ratio { color: var(--bronze); }
.ph-note { font-family: var(--serif); font-style: italic; font-size: 1.125rem; }

/* =============================================================
   6. Secciones
   ============================================================= */

/* --- Navegación fija --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 27, 51, .97);
  color: var(--ivory);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow .4s var(--ease-out), background-color .4s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .nav { background: rgba(14, 27, 51, .9); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
}
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; color: var(--gold); display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-mr { display: inline-block; width: 7px; height: 7px; margin-left: 2px; vertical-align: top; margin-top: 3px; }
@media (max-width: 479px) { .brand { gap: .55rem; } .brand-name { letter-spacing: .02em; } .brand-mark { width: 36px; height: 36px; } }
.brand-name { font-family: var(--serif); font-size: clamp(1.05rem, 4.4vw, 1.6rem); font-weight: 600; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.brand-sub { font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 243, 234, .72); white-space: nowrap; margin-top: .1rem; }

.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: var(--ivory);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-links a {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: rgba(247, 243, 234, .88);
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.is-active::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Desplegable "Servicios" */
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 0;
  font-size: .9375rem; font-weight: 500; color: rgba(247, 243, 234, .88);
  transition: color .3s var(--ease-out);
}
.nav-sub-toggle:hover, .has-sub.is-current > .nav-sub-toggle { color: var(--gold); }
.nav-chevron { width: .8em; height: .8em; transition: transform .35s var(--ease-out); }
.has-sub.is-open .nav-chevron { transform: rotate(180deg); }
.nav-sub { display: none; }
.nav-sub a { display: block; }
.nav-links .nav-sub a::after { display: none; }
.has-sub.is-open > .nav-sub { display: grid; }
.no-js .has-sub { position: relative; }
.no-js .has-sub:hover > .nav-sub, .no-js .has-sub:focus-within > .nav-sub {
  display: grid; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 16rem;
  padding: .5rem 1rem; background: var(--navy); border: 1px solid var(--line-light);
}

/* Móvil con JS: menú desplegable */
.js .nav-toggle { display: inline-flex; }
.js .nav-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy);
  border-bottom: 1px solid var(--line-light);
  padding: .5rem var(--gutter) 1.5rem;
  display: grid; gap: 1rem;
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s var(--ease-out), visibility 0s linear .5s;
}
.js .nav-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease-out), visibility 0s; }
.js .nav-links { display: grid; }
.js .nav-links li { border-bottom: 1px solid var(--line-light); }
.js .nav-links a { display: block; padding: .85rem 0; font-size: 1.0625rem; }
.js .nav-links a::after { display: none; }
.js .nav-sub-toggle { width: 100%; justify-content: space-between; padding: .85rem 0; font-size: 1.0625rem; }
.js .nav-sub { padding: 0 0 .75rem 1rem; border-left: 1px solid var(--gold); margin-left: .25rem; }
.js .nav-links .nav-sub li { border: 0; }
.js .nav-links .nav-sub a { padding: .55rem 0; font-size: 1rem; }
.nav-cta { width: 100%; }
@media (max-width: 1279px) {
  .js .nav-menu { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
}

/* Móvil sin JS: enlaces visibles en fila desplazable */
.no-js .nav-inner { flex-wrap: wrap; padding-block: .5rem; }
.no-js .nav-menu { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.no-js .nav-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.no-js .nav-cta { width: auto; }

/* --- Hero --- */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(201, 168, 106, .14), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(27, 47, 90, .9), transparent 70%),
    var(--navy);
  color: var(--ivory);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(1.8rem, 5.2vw, 3.4rem); line-height: 1.08; max-width: 21ch; text-transform: uppercase; letter-spacing: .01em; }
.hero-title em { display: block; color: var(--gold); }
.hero-lede { margin-top: 1.5rem; font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); color: rgba(247, 243, 234, .86); max-width: 34rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
/* Mismo ancho que el párrafo de arriba, para que todo quede alineado a un solo bloque */
.hero-facts {
  margin-top: 2.5rem; padding-top: 1.5rem; max-width: 34rem;
  border-top: 1px solid var(--line-light);
  display: grid; gap: 1rem 1.5rem; align-items: start;
}
.hero-facts li { display: flex; flex-direction: column; gap: .3rem; font-size: .8125rem; line-height: 1.4; color: rgba(247, 243, 234, .74); }
.hero-facts strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; color: var(--ivory); white-space: nowrap; }

.hero-figure { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.hero-photo { position: relative; }
.hero-badge {
  position: absolute; left: -.5rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  max-width: 17rem; padding: .9rem 1.2rem;
  background: var(--ivory); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-2);
}
.hero-badge-num { font-family: var(--serif); font-size: 3.25rem; font-weight: 600; color: var(--bronze); line-height: .9; letter-spacing: -.01em; }
/* Pie de foto: letra pequeña y pareja, al ancho de la imagen */
.hero-note { margin-top: .75rem; font-size: .75rem; line-height: 1.55; color: rgba(247, 243, 234, .68); text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
.hero-note strong { font-weight: 600; color: var(--gold); }
.hero-badge-text { font-size: .8125rem; line-height: 1.35; }

/* --- Franja de confianza --- */
.trust { background: var(--navy-2); color: rgba(247, 243, 234, .82); border-top: 1px solid var(--line-light); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem;
  padding-block: 1rem; font-size: .8125rem; letter-spacing: .06em; text-align: center;
}
.trust-inner span[aria-hidden] { color: var(--gold); }

/* --- Secciones genéricas --- */
.section { padding-block: clamp(4rem, 10vw, 7.5rem); position: relative; }
.section-alt { background: var(--ivory-2); }
.section-navy { background: var(--navy); color: var(--ivory); }

/* --- Servicios --- */
.cards-4 { display: grid; gap: 1.25rem; }
.service { display: flex; flex-direction: column; }
.service-num {
  font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--bronze);
  letter-spacing: .1em; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.service h3 { font-size: 1.375rem; line-height: 1.15; }
/* Títulos de lo que se contrata (servicios, packs, planes y asesorías), en mayúsculas */
.service h3, .detail-card-title, .pack h3, .plan h3 { text-transform: uppercase; letter-spacing: .02em; }
.service-def { margin-top: .6rem; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--ink-soft); line-height: 1.4; }
.service-meta { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.service-meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.service-meta dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.service-meta dd { font-size: .9375rem; font-weight: 500; text-align: right; }
.service-meta .price { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--ink); }
.service .link-arrow { align-self: flex-start; }
.cards-3 { display: grid; gap: 1.25rem; }
.service .service-more { margin-top: .9rem; align-self: center; }
.section-note { margin-top: 1.5rem; font-size: .875rem; color: var(--ink-mute); }

/* --- Recuadro "Resumen del trabajo a solicitar" en los formularios --- */
.field-summary { padding: .9rem 1rem 1rem; background: rgba(201, 168, 106, .12); border: 1px solid var(--gold); border-radius: var(--radius); }
.field-summary label { font-weight: 600; color: var(--ink); }
.field-summary textarea { width: 100%; background: #fff; }

/* --- Condiciones del servicio (cuadro general) --- */
.conditions {
  margin-top: 2rem; padding: 1.1rem 1.25rem; max-width: 960px;
  background: rgba(201, 168, 106, .12); border-left: 3px solid var(--bronze); border-radius: var(--radius);
}
.conditions-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.conditions ul { display: grid; gap: .45rem; margin-top: .7rem; padding-left: 1.1rem; list-style: disc; }
.conditions li { font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }

/* --- Packs --- */
.packs { display: grid; gap: 1.25rem; max-width: 960px; }
.pack { display: flex; flex-direction: column; }
.pack h3 { font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.15; }
.pack-tag {
  align-self: flex-start; margin-bottom: 1rem; padding: .3rem .7rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.pack-tag-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.pack-desc { margin-top: .5rem; color: var(--ink-soft); }
.pack-price { margin-top: auto; padding-block: 1.25rem; border-top: 1px solid var(--line); margin-bottom: 1.25rem; }
.pack-was { font-size: .9375rem; color: var(--ink-mute); }
/* Precio final con cifras parejas (la serif usa números de distinta altura) */
.pack-now { font-family: var(--sans); font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.pack-now span { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); vertical-align: middle; margin-right: .35rem; }
.pack-save {
  display: inline-block; margin-top: .5rem; padding: .25rem .6rem;
  font-size: .875rem; font-weight: 600; color: var(--bronze);
  background: rgba(201, 168, 106, .18); border-radius: var(--radius);
}
.pack-featured { border-color: var(--gold); box-shadow: var(--shadow-1); }
.pack-featured::before { transform: scaleX(1); }
.packs-3 { max-width: none; }
.pack-list li a { font-weight: 600; color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.pack-sum { display: block; margin-top: .2rem; font-size: .875rem; line-height: 1.45; color: var(--ink-mute); }

/* --- Asesoría jurídica --- */
.consult { background: var(--paper); border-block: 1px solid var(--line); }
.consult-grid { display: grid; gap: 2rem; align-items: center; }
.consult-copy h2 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
.consult-card { border-color: var(--gold); box-shadow: var(--shadow-2); }
.consult-card::before { transform: scaleX(1); }
.consult-card:hover { transform: none; }
.consult-options { display: grid; gap: 1.25rem; max-width: 960px; }
.consult-options .consult-card { display: flex; flex-direction: column; }
.consult-options .consult-card h3 { font-size: clamp(1.45rem, 3vw, 1.85rem); text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.consult-options .consult-card h3 span { display: block; color: var(--bronze); }
.consult-options .consult-was { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.consult-options + .consult-note { text-align: left; margin-top: 1.25rem; }
.consult .consult-credit { max-width: 960px; }
.consult-was { font-size: 1rem; color: var(--ink-mute); }
.consult-now { font-family: var(--serif); font-size: clamp(3rem, 9vw, 4rem); font-weight: 600; line-height: 1; margin-block: .25rem .75rem; }
.consult-until { font-size: .8125rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.consult-note { margin-top: .75rem; font-size: .8125rem; color: var(--ink-mute); text-align: center; }
.consult-credit {
  margin-top: 1rem; padding: .75rem .9rem; font-size: .875rem; line-height: 1.5; color: var(--ink-soft);
  background: rgba(201, 168, 106, .14); border-left: 3px solid var(--bronze); border-radius: var(--radius);
}

/* --- Selector Corredor ↔ Particular --- */
.audience { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 2.5rem; }
.audience-label { font-size: .875rem; color: rgba(247, 243, 234, .82); }
.audience-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border: 1px solid var(--line-light); border-radius: 999px;
  background: rgba(247, 243, 234, .06);
}
.audience-btn {
  position: relative; z-index: 1; min-height: 44px; padding: .5rem 1.4rem;
  font-size: .9375rem; font-weight: 600; border-radius: 999px; color: rgba(247, 243, 234, .82);
  transition: color .4s var(--ease-out);
}
.audience-btn[aria-pressed="true"] { color: var(--navy); }
.audience-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--gold); border-radius: 999px;
  transition: transform .5s var(--ease-out);
}
[data-audience="particular"] .audience-thumb { transform: translateX(100%); }
.no-js .audience { display: none; }
.audience-hint { font-size: .875rem; color: var(--gold); min-height: 1.4em; }

/* Lo que se resalta según el perfil elegido */
[data-audience-target] { transition: opacity .5s var(--ease-out); }
.faq-group.is-highlight { border-color: var(--gold); box-shadow: var(--shadow-1); }
.faq-group.is-highlight .faq-group-title::after { content: "Recomendado para usted"; }
#packs.is-highlight .pack-featured { box-shadow: 0 0 0 3px rgba(201, 168, 106, .45), var(--shadow-2); }
[data-audience="particular"] .plans .plan-featured { transform: none; }
[data-audience="particular"] .plan-badge { opacity: .35; }

/* --- Planes --- */
.plans { display: grid; gap: 1.25rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(247, 243, 234, .04);
  border: 1px solid var(--line-light); border-radius: var(--radius);
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), background-color .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .5s var(--ease-out);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(201, 168, 106, .6); }
.plan h3 { font-size: 1.75rem; color: var(--ivory); }
.plan-for { margin-top: .25rem; font-size: .9375rem; color: rgba(247, 243, 234, .74); }
.plan-price { margin-block: .35rem 0; font-family: var(--sans); font-size: 1.875rem; font-weight: 700; color: var(--gold); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.plan-was { margin-top: 1.25rem; font-size: .875rem; color: rgba(247, 243, 234, .74); }
.plan-save {
  justify-self: start; align-self: start; display: inline-block; margin-block: .6rem 1.25rem; padding: .3rem .7rem;
  font-size: .875rem; font-weight: 600; color: var(--gold); background: rgba(201, 168, 106, .16); border-radius: var(--radius);
}
.plan-featured .plan-was { color: var(--ink-mute); }
.plan-featured .plan-save { color: var(--bronze); background: rgba(201, 168, 106, .2); }
.plan-price span { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: rgba(247, 243, 234, .74); }
.plan-list { display: grid; margin-bottom: 1.75rem; border-top: 1px solid var(--line-light); }
.plan-list li {
  display: flex; flex-direction: column; gap: .1rem;
  padding-block: .8rem; border-bottom: 1px solid var(--line-light);
}
.plan-list span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247, 243, 234, .7); }
.plan-list strong { font-weight: 500; color: var(--ivory); }
.plan .btn { margin-top: auto; }
.plan-featured {
  background: var(--ivory); border-color: var(--gold);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.plan-featured h3, .plan-featured .plan-list strong { color: var(--ink); }
.plan-featured .plan-for, .plan-featured .plan-price span { color: var(--ink-soft); }
.plan-featured .plan-price { color: var(--bronze); }
.plan-featured .plan-list { border-color: var(--line); }
.plan-featured .plan-list li { border-color: var(--line); }
.plan-featured .plan-list span { color: var(--ink-mute); }
.plan-featured:hover { border-color: var(--gold); }
.plan-badge {
  position: absolute; top: 0; right: 1.5rem; transform: translateY(-50%);
  padding: .3rem .8rem; background: var(--gold); color: var(--navy);
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px;
  transition: opacity .4s var(--ease-out);
}
[data-audience="particular"] #planes-corredores .plan { opacity: .78; }

.plans-for-who { margin-top: 1rem; font-size: .9375rem; color: var(--gold-2); max-width: 40rem; }
.plans-for-who a { color: var(--ivory); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.plans-for-who a:hover { color: var(--gold); }
.audience-link { font-size: .875rem; font-weight: 600; color: var(--ivory); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.audience-link[hidden] { display: none; }
.plans-note {
  margin-top: 2rem; padding: 1rem 1.25rem; max-width: 52rem;
  border-left: 2px solid var(--gold); background: rgba(247, 243, 234, .06);
  font-size: .9375rem; color: rgba(247, 243, 234, .88);
}
.plans-note strong { color: var(--gold); }
.plans-note ul { display: grid; gap: .45rem; margin-top: .5rem; padding-left: 1.1rem; list-style: disc; }

/* --- Pasos --- */
.steps { display: grid; gap: 0; counter-reset: step; position: relative; }
.step {
  position: relative; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.25rem;
  padding-bottom: 2rem;
}
.step::before {             /* línea vertical que une los pasos */
  content: ""; position: absolute; left: 1.5rem; top: 3rem; bottom: 0; width: 1px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  grid-row: span 2;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.375rem; font-weight: 600;
  border: 1px solid var(--bronze); border-radius: 50%; color: var(--bronze); background: var(--ivory);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.step:hover .step-num { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.step h3 { font-size: 1.5rem; padding-top: .45rem; }
.step p { margin-top: .35rem; color: var(--ink-soft); font-size: .9375rem; }

/* --- Respaldo legal --- */
.legal-body { max-width: 62rem; }
.legal-lede { font-size: clamp(1.125rem, 2.4vw, 1.3125rem); line-height: 1.6; color: var(--ink-soft); max-width: 46rem; }
.dropcap {
  float: left; font-family: var(--serif); font-size: 4.4em; line-height: .8; font-weight: 600;
  color: var(--bronze); margin: .08em .12em 0 0;
}
.laws { margin-top: 2.5rem; display: grid; border-top: 1px solid var(--ink); }
.law { padding-block: 1.5rem; border-bottom: 1px solid var(--line); display: grid; gap: .4rem; }
.law-ref { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.law h3 { font-size: 1.5rem; }
.law p:last-child { color: var(--ink-soft); font-size: .9375rem; }
.legal-note {
  margin-top: 2rem; padding: 1rem 1.25rem;
  border-left: 2px solid var(--gold); background: var(--paper);
  font-size: .875rem; color: var(--ink-soft);
}

/* --- Preguntas frecuentes --- */
.faq-groups { display: grid; gap: 1.5rem; }
.faq-group {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.faq-group-title {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem;
  font-size: 1.625rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink);
}
.faq-group-title::after {
  font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze);
}
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600; font-size: 1rem; line-height: 1.45;
  transition: color .3s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 14px; height: 1.5px; background: var(--bronze);
  transition: transform .45s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--bronze); }
.faq-a { padding: 0 0 1.25rem; color: var(--ink-soft); font-size: .9375rem; }
.faq[open] .faq-a { animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- Testimonios --- */
.quotes { display: grid; gap: 1.25rem; }
.quote {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.quote-label {
  align-self: flex-start; padding: .25rem .6rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--ivory-2); border: 1px dashed rgba(20, 33, 61, .35); border-radius: var(--radius);
}
.quote blockquote p { font-family: var(--serif); font-size: 1.375rem; line-height: 1.35; font-style: italic; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: .875rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote figcaption span { color: var(--ink-mute); }

/* --- Contacto --- */
.contact { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.contact-copy h2 { font-size: clamp(2rem, 5.2vw, 3.25rem); color: var(--ivory); }
.contact-copy h2 em { color: var(--gold); }
.contact-copy .section-lede { color: rgba(247, 243, 234, .84); }
.contact-list { margin-block: 2rem; display: grid; border-top: 1px solid var(--line-light); }
.contact-list li {
  display: flex; flex-direction: column; padding-block: .9rem; border-bottom: 1px solid var(--line-light);
  font-size: 1rem; overflow-wrap: anywhere;
}
.contact-list span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 243, 234, .7); }
.contact-list a { color: var(--ivory); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--gold); }
.contact-ph { max-width: 520px; }

.form {
  background: var(--ivory); color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  display: grid; gap: 1.1rem; align-content: start;
}
.form-intro { font-size: .8125rem; color: var(--ink-mute); }
.field { display: grid; gap: .4rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; }
.field label, .field legend { font-size: .875rem; font-weight: 600; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(20, 33, 61, .35); border-radius: var(--radius);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(201, 168, 106, .35); }
.field [aria-invalid="true"] { border-color: #A3271F; }
.field-error { font-size: .8125rem; color: #A3271F; font-weight: 500; }
.radios { display: grid; gap: .5rem; margin-top: .4rem; }
.radio {
  display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .6rem .85rem;
  border: 1px solid rgba(20, 33, 61, .35); border-radius: var(--radius); background: var(--paper);
  font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.radio input { width: 18px; height: 18px; accent-color: var(--navy); }
/* Dentro de .field, el estilo general de label e input les quitaba el aire: el círculo tocaba el borde */
.field .radio { padding: .65rem 1rem; font-weight: 500; }
.field .radio input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; }
.radio:has(input:checked) { border-color: var(--navy); background: rgba(201, 168, 106, .14); }
.form-privacy { font-size: .8125rem; color: var(--ink-mute); }
.form-warning {
  padding: .9rem 1rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid rgba(123, 91, 44, .4); border-left: 3px solid var(--bronze);
  font-size: .875rem; line-height: 1.5; color: var(--ink-soft);
}
.form-warning-title { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin-bottom: .25rem; }
.form-status {
  padding: 1rem; border-radius: var(--radius); font-size: .9375rem;
  background: rgba(201, 168, 106, .18); border-left: 3px solid var(--bronze);
}
.form-status a { font-weight: 600; color: var(--ink); }

/* --- Footer --- */
.footer { background: #0A1428; color: rgba(247, 243, 234, .78); padding-block: 3.5rem 6rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-light); }
.footer-brand { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--ivory); }
.footer-brand img { display: block; width: 300px; max-width: 100%; height: auto; margin-left: -6px; }
.footer-tag { margin-top: .5rem; max-width: 28rem; }
.footer-title { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.footer-list { display: grid; gap: .4rem; overflow-wrap: anywhere; }
.footer-list a { text-decoration: none; transition: color .3s var(--ease-out); }
.footer-list a:hover { color: var(--gold); }
.footer-legal { padding-top: 1.5rem; display: grid; gap: .75rem; font-size: .8125rem; }
.footer-legal strong { color: var(--ivory); }

/* --- Botón flotante de WhatsApp --- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; min-width: 46px; padding: .55rem; justify-content: center;
  background: var(--navy); color: var(--ivory); border: 1px solid var(--gold); text-decoration: none;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .02em; text-transform: uppercase;
  border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(10, 20, 40, .55);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s var(--ease-out);
}
.wa-float svg { width: 22px; height: 22px; flex: none; color: #25D366; }
.wa-float-text { display: none; white-space: nowrap; }
.wa-float:hover { transform: translateY(-3px); background: var(--navy-2); box-shadow: 0 18px 36px -10px rgba(10, 20, 40, .6); }
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* --- Asistente virtual (chat) --- */
.chat-float {
  position: fixed; right: 1rem; bottom: calc(1rem + 46px + .75rem); z-index: 90;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 46px; min-width: 46px; padding: .55rem; justify-content: center;
  background: var(--navy); color: var(--ivory); border: 1px solid var(--gold);
  font: 600 .8125rem/1 var(--sans); letter-spacing: .02em; cursor: pointer;
  border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(10, 20, 40, .55);
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-out);
}
.chat-float svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.chat-float-text { display: none; white-space: nowrap; }
.chat-float:hover { transform: translateY(-3px); background: var(--navy-2); }
.chat-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.chat-float[aria-expanded="true"] { display: none; }

.chat-greet {
  position: fixed; right: 1rem; bottom: calc(1rem + 46px + .75rem + 46px + .7rem); z-index: 90;
  display: flex; align-items: center; gap: .1rem; max-width: calc(100vw - 2rem);
  min-height: 46px; padding: .1rem .35rem .1rem .3rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--gold); border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-2);
  animation: chatGreet .5s var(--ease-out);
}
.chat-greet[hidden] { display: none; }
.chat-greet-text {
  padding: .25rem .4rem .25rem .6rem; background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 .78rem/1.22 var(--sans); color: var(--ink); white-space: nowrap;
}
.chat-greet-text span { display: block; }
.chat-greet-close {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; padding: 0;
  background: none; border: 0; border-radius: 50%; color: var(--ink-mute); cursor: pointer;
}
.chat-greet-close svg { width: 14px; height: 14px; }
.chat-greet-close:hover { background: var(--ivory); color: var(--ink); }
.chat-greet-text:focus-visible, .chat-greet-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
@keyframes chatGreet { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.chat-panel {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  display: flex; flex-direction: column;
  height: 100dvh;
  background: var(--paper); color: var(--ink);
  border-top: 2px solid var(--gold); box-shadow: var(--shadow-2);
  animation: chatIn .4s var(--ease-out);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem; background: var(--navy); color: var(--ivory);
}
.chat-title { margin: 0; font: 600 1.375rem/1.1 var(--serif); }
.chat-sub { margin: .2rem 0 0; font-size: .8125rem; color: var(--gold-2); }
.chat-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--line-light); border-radius: 999px; color: var(--ivory); cursor: pointer;
}
.chat-close svg { width: 20px; height: 20px; }
.chat-close:hover { border-color: var(--gold); }
.chat-close:focus-visible, .chat-send:focus-visible, .chat-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chat-notice {
  margin: 0; padding: .6rem 1rem; font-size: .75rem; line-height: 1.45;
  color: var(--ink-soft); background: var(--ivory); border-bottom: 1px solid var(--line);
}
.chat-notice a { color: var(--bronze); }
.chat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .75rem; padding: 1rem;
}
.chat-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 12px; font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg p + p, .chat-msg p + ul, .chat-msg p + ol, .chat-msg ul + p, .chat-msg ol + p { margin-top: .55rem; }
.chat-msg ul, .chat-msg ol { margin: 0; padding-left: 1.2rem; }
.chat-msg li + li { margin-top: .25rem; }
.chat-msg-bot { align-self: flex-start; background: var(--ivory); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg-user { align-self: flex-end; background: var(--navy); color: var(--ivory); border-bottom-right-radius: 4px; }
.chat-msg.is-error { background: #FBEDEA; border-color: rgba(140, 40, 30, .25); color: #6B1E14; }
.chat-typing { display: flex; gap: .3rem; align-items: center; min-height: 2.4rem; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); animation: chatDot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem .75rem; }
.chat-chips[hidden] { display: none; }
.chat-chip {
  padding: .55rem 1.05rem; min-height: 40px; text-align: left;
  background: var(--paper); color: var(--ink); border: 1px solid var(--gold); border-radius: 999px;
  font: 500 .8125rem/1.3 var(--sans); cursor: pointer;
}
.chat-chip:hover { background: var(--ivory); }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.chat-input {
  flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.chat-input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.chat-send {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  background: var(--navy); color: var(--gold); border: 0; border-radius: 10px; cursor: pointer;
}
.chat-send svg { width: 22px; height: 22px; }
.chat-send:disabled { opacity: .5; cursor: wait; }
.chat-human { margin: 0; padding: 0 1rem .8rem; font-size: .8125rem; color: var(--ink-mute); }
.chat-human a { color: var(--bronze); font-weight: 600; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-open .wa-float { visibility: hidden; }

/* --- Encabezado de páginas interiores --- */
.page-hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(70% 80% at 90% 0%, rgba(201, 168, 106, .14), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(27, 47, 90, .9), transparent 70%),
    var(--navy);
  color: var(--ivory);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.75rem, 7vw, 4.5rem);
}
.page-hero-copy { max-width: 50rem; }
.page-hero h1 { font-size: clamp(2.25rem, 6.6vw, 3.9rem); line-height: 1.04; }
.page-hero h1 em { color: var(--gold); }
.page-hero-lede { margin-top: 1.25rem; font-size: clamp(1.0625rem, 2.2vw, 1.1875rem); color: rgba(247, 243, 234, .86); max-width: 40rem; }
.page-hero .hero-actions { margin-top: 1.75rem; }
.page-hero + .section-navy { border-top: 1px solid var(--line-light); }
.js .page-hero-copy > * { animation: heroIn .9s var(--ease-out) both; }
.js .page-hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .page-hero-copy > :nth-child(3) { animation-delay: .12s; }
.js .page-hero-copy > :nth-child(4) { animation-delay: .18s; }

.crumbs { margin-bottom: 1.5rem; font-size: .8125rem; color: rgba(247, 243, 234, .7); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--gold); }
.crumbs a { color: rgba(247, 243, 234, .88); text-decoration-color: rgba(201, 168, 106, .6); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold-2); }

/* --- Detalle de servicio --- */
.detail { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-main > * + h2 { margin-top: 2.5rem; }
.detail-main h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.detail-main h2 em { font-style: italic; font-weight: 500; color: var(--bronze); }
.detail-main p { margin-top: .85rem; color: var(--ink-soft); max-width: 42rem; }
.detail-main .checklist li { font-size: 1rem; }
.detail-card { display: flex; flex-direction: column; border-color: var(--gold); box-shadow: var(--shadow-1); }
.detail-card::before { transform: scaleX(1); }
.detail-card:hover { transform: none; }
.detail-card-title { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.15; }
.detail-card .service-meta { margin-top: 1.25rem; }
.detail-card .btn + .btn { margin-top: .6rem; }
.detail-note { margin-top: 1rem; font-size: .8125rem; color: var(--ink-mute); }
.detail-note a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.faq-solo { max-width: 52rem; }

/* --- Rutas (packs, planes, asesoría) y servicios relacionados --- */
.paths, .related { display: grid; gap: 1.25rem; }
.path { display: flex; flex-direction: column; text-decoration: none; }
.path h3 { font-size: 1.625rem; }
.path p { margin-top: .5rem; color: var(--ink-soft); font-size: .9375rem; }
/* La etiqueta es un <p>: se devuelve su tamaño y color, que ".path p" pisaba (la dorada no cabía en una línea) */
.path .pack-tag { margin: 0 0 .9rem; font-size: .6875rem; color: var(--ink-soft); white-space: nowrap; }
.path .pack-tag-gold { color: var(--navy); }
.path .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 1.25rem; border-bottom: 0; }
.path:hover .link-arrow { gap: .85rem; color: var(--bronze); }

/* --- Franja final de cotización --- */
.cta-band { background: var(--navy); color: var(--ivory); padding-block: clamp(3rem, 8vw, 5rem); }
.cta-band-inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.875rem, 4.6vw, 2.75rem); }
.cta-band h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
.cta-band p { margin-top: .75rem; color: rgba(247, 243, 234, .82); max-width: 36rem; }
.cta-band .section-cta-row { margin-top: 0; }

.contact-copy h1 { font-size: clamp(2.25rem, 6vw, 3.6rem); color: var(--ivory); }
.contact-copy h1 em { color: var(--gold); }
.contact-page .crumbs { margin-bottom: 1.25rem; }

/* --- Páginas legales --- */
.doc-nav { position: sticky; }
.doc-back { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }
.doc { max-width: 52rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.doc h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); }
.doc h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); margin-bottom: .75rem; }
.doc section { padding-block: 1.75rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: .85rem; }
.doc ul { display: grid; gap: .5rem; padding-left: 1.25rem; list-style: disc; }
.doc li::marker { color: var(--bronze); }
.doc a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc-meta { margin-top: .5rem; color: var(--ink-mute); font-size: .9375rem; }
.doc-draft {
  margin-bottom: 2rem; padding: .75rem 1rem; font-size: .875rem; font-weight: 500;
  background: rgba(201, 168, 106, .18); border-left: 3px solid var(--bronze); border-radius: var(--radius);
}
.doc-toc { margin-block: 2rem; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-toc ol { padding-left: 1.25rem; list-style: decimal; display: grid; gap: .3rem; font-size: .9375rem; }
.doc-links { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc-footer { padding-block: 2rem; }
.footer-legal a { color: inherit; }
@media (max-width: 539px) { .doc-nav .brand-sub { display: none; } }

/* =============================================================
   7. Efectos: aparición al hacer scroll
   ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js .card[data-reveal].is-revealed:hover { transform: translateY(-4px); }
.js .plan[data-reveal].is-revealed:hover { transform: translateY(-4px); }
.js .laws { border-top-color: transparent; position: relative; }
.js .laws::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out);
}
.js .laws.is-drawn::before { transform: scaleX(1); }

/* Entrada del hero */
.js .hero-copy > * { animation: heroIn .9s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-figure { animation: heroIn 1.1s .2s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes subIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Transición suave entre páginas (navegadores compatibles; el resto navega normal) */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
.wa-float { view-transition-name: wa-float; }
.chat-float { view-transition-name: chat-float; }
::view-transition-old(root) { animation: vtOut .28s var(--ease-soft) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .radios { grid-template-columns: 1fr 1fr; }
  /* WhatsApp, asistente y globo con el mismo ancho, en una columna pareja */
  /* íconos alineados en la misma columna y textos parejos */
  .wa-float, .chat-float { width: 13rem; padding: .55rem 1rem .55rem 1.15rem; justify-content: flex-start; gap: .65rem; }
  .chat-greet { width: 13rem; justify-content: space-between; }
  .wa-float-text { display: inline; }
  .chat-float-text { display: inline; }
  .chat-panel {
    inset: auto 1rem 1rem auto; width: 400px; height: min(620px, calc(100dvh - 2rem));
    border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 12px; overflow: hidden;
  }
  .audience { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (min-width: 720px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .packs { grid-template-columns: repeat(2, 1fr); }
  .consult-options { grid-template-columns: repeat(2, 1fr); }
  .consult-options:has(> .consult-card:only-child) { grid-template-columns: minmax(0, 560px); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .laws { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .paths, .related { grid-template-columns: repeat(3, 1fr); }
  .cta-band-inner { grid-template-columns: 1.4fr auto; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { left: 3rem; right: -1.25rem; top: 1.5rem; bottom: auto; width: auto; height: 1px; }
  .step-num { grid-row: auto; margin-bottom: 1rem; }
  .step h3 { padding-top: 0; font-size: 1.375rem; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.25fr .85fr; }
  .hero-figure { justify-self: end; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-featured { transform: translateY(-14px); }
  .js .plan-featured[data-reveal].is-revealed { transform: translateY(-14px); }
  .js .plan-featured[data-reveal].is-revealed:hover { transform: translateY(-18px); }
  html[data-audience="particular"] .plans .plan-featured,
  .js[data-audience="particular"] .plan-featured[data-reveal].is-revealed { transform: none; }
  .faq-groups { grid-template-columns: 1fr 1fr; align-items: start; }
  .contact { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .consult-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .cards-3, .packs-3 { grid-template-columns: repeat(3, 1fr); }
  .js .nav-menu { left: auto; width: 360px; border-left: 1px solid var(--line-light); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .detail { grid-template-columns: 1.35fr .9fr; }
  .detail-card { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

@media (min-width: 1280px) {
  :root { --nav-h: 76px; }
  .js .nav-toggle { display: none; }
  .js .nav-menu, .no-js .nav-menu {
    position: static; display: flex; align-items: center; gap: 1.75rem;
    padding: 0; background: none; border: 0; width: auto;
    clip-path: none; visibility: visible; transition: none;
  }
  .js .nav-links, .no-js .nav-links { display: flex; gap: 1.5rem; }
  .js .nav-links li { border: 0; }
  .js .nav-links a { padding: .5rem 0; font-size: .875rem; }
  .js .nav-links a::after { display: block; }
  .js .nav-sub-toggle { width: auto; padding: .5rem 0; font-size: .875rem; }
  .has-sub { position: relative; }
  .js .has-sub.is-open > .nav-sub {
    position: absolute; top: calc(100% + .6rem); left: -1.1rem; z-index: 5; min-width: 17rem;
    margin: 0; padding: .5rem 0; background: var(--navy);
    border: 1px solid var(--line-light); border-top: 2px solid var(--gold); border-radius: var(--radius);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
    animation: subIn .35s var(--ease-out);
  }
  .js .nav-links .nav-sub a { padding: .6rem 1.1rem; font-size: .9rem; white-space: nowrap; }
  .js .nav-links .nav-sub a:hover, .js .nav-links .nav-sub a[aria-current="page"] { background: rgba(247, 243, 234, .06); }
  .nav-cta { width: auto; min-height: 44px; padding: .6rem 1.2rem; }
  .no-js .nav-inner { flex-wrap: nowrap; }
  .js .nav-menu { width: auto; border-left: 0; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .laws { grid-template-columns: repeat(3, 1fr); }
  .js .nav-links, .no-js .nav-links { gap: 1.35rem; }
  .nav-links a { white-space: nowrap; }
  .brand { flex: none; }
}
/* Pantallas de notebook: menú completo y nombre "ESCRITURA SEGURA" sin cortarse */
@media (min-width: 1280px) and (max-width: 1439px) {
  /* menú más compacto: "Servicios" se aleja del nombre y el título destaca más */
  .js .nav-menu, .no-js .nav-menu { gap: 1rem; }
  .js .nav-links, .no-js .nav-links { gap: .8rem; }
  .js .nav-links a, .js .nav-sub-toggle { font-size: .8125rem; }
  .brand-name { font-size: 1.4rem; letter-spacing: .035em; }
}

/* =============================================================
   9. Movimiento reducido: solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition-duration: .4s; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .chat-panel, .chat-typing span, .chat-greet { animation: none; }
}
