/* ════════════════════════════════════════════════════════════════
   Documasters — paleta "editorial premium" (crema + dorado + tinta),
   migrada desde la maqueta documasters-propuesta-v7.html. Tipografía:
   Libre Baskerville (títulos) + DM Sans (cuerpo), cargadas vía Google
   Fonts en _Layout.cshtml.
   ════════════════════════════════════════════════════════════════ */
:root {
  --ink: #23272a; --ink-2: #34393d; --deep: #16191b;
  --muted: #5f6468; --line: #e7e5e0; --line-2: #d7d4cd;
  --gold: #c29a55; --gold-2: #d9b878; --gold-ink: #8a6428;
  --cream: #faf7f1; --mist: #f2f1ee; --white: #fff;
  --shadow-sm: 0 1px 2px rgba(22,24,26,.06), 0 2px 8px rgba(22,24,26,.05);
  --shadow-md: 0 2px 4px rgba(22,24,26,.05), 0 12px 32px rgba(22,24,26,.10);
  --shadow-lg: 0 24px 60px rgba(16,18,20,.22);
  --r: 14px;

  /* Tokens oscuros: fondo general del sitio (todas las páginas salvo
     la sección clara de servicios en Inicio) y los componentes que ya
     existían (tarjetas, tablas, modales, footer) construidos sobre
     estos nombres --dm-*. */
  --dm-bg: #141618;
  --dm-bg-gradient:
    radial-gradient(900px 500px at 85% -10%, rgba(194,154,85,.20), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(160deg, #2a2e31 0%, #1c1f22 55%, #141618 100%);
  --dm-card: #2a2e31;
  --dm-surface: #34393d;
  --dm-border: rgba(217,184,120,.22);
  --dm-text: #f1efe9;
  --dm-muted: #a4a7a9;
  --dm-navbar: #ffffff;
  --dm-primary: #c29a55;
  --dm-primary-text: #16191b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin-bottom: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--dm-bg-gradient), var(--dm-bg);
  background-attachment: fixed;
  color: var(--dm-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  color: var(--dm-text);
}
h4, h6 { color: var(--dm-text); }
/* h3/h5 se usan como título de sección o de tarjeta en las páginas de
   servicio (Notarizaciones, Divorcios, Matrimonios, Impuestos,
   Nosotros) — en dorado, igual que el resto de acentos del sitio. h1/h2
   (títulos de página/hero) y h4/h6 se quedan en el tono claro normal. */
h3, h5 { color: var(--gold-2); }

.text-muted { color: var(--dm-muted) !important; }

a { color: var(--gold-2); }
a:hover { color: var(--gold); }

.hl {
  background: linear-gradient(100deg, #c29a55 0%, #f3e2bb 25%, #d9b878 45%, #a87d38 65%, #f0d9a6 85%, #c29a55 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--gold-2); margin-bottom: 18px;
}
.eyebrow:before { content: ''; width: 22px; height: 1.5px; background: var(--gold); }

/* ── El link "sms:" solo sirve en celular ── */
@media (hover: hover) and (pointer: fine) {
  .sms-link { display: none !important; }
}

/* ════════ Header / navegación — igual al modelo ════════ */
header.sticky-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(22,24,26,.08);
  transition: box-shadow .35s, background .35s;
}
header.scrolled { box-shadow: 0 10px 30px rgba(20,22,24,.08); background: rgba(255,255,255,.78); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 84px; max-width: 1180px; margin: auto; padding: 0 32px; transition: min-height .35s; }
header.scrolled .nav { min-height: 68px; }

.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 44px; width: auto; display: block; transition: height .35s; }
header.scrolled .brand-logo img { height: 36px; }

header nav { display: flex; gap: 2px; align-items: center; font-size: 14px; font-weight: 500; position: relative; }
header nav a:not(.btn) {
  position: relative; z-index: 1; padding: 9px 13px; border-radius: 999px;
  color: #4a4f53 !important; white-space: nowrap; transition: color .35s, transform .25s ease-out;
}
header nav a:not(.btn):hover { color: var(--ink) !important; }
header nav a:not(.btn)[aria-current="page"] { color: var(--ink) !important; font-weight: 600; }
header nav a.lit:not(.btn) { color: #fff !important; }

.nav-ind {
  position: absolute; left: 0; top: 0; height: 40px; width: 0; border-radius: 999px; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(135deg, #3a4044, #1a1d20);
  box-shadow: 0 10px 24px -6px rgba(22,24,26,.45), inset 0 0 0 1px rgba(217,184,120,.45), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .55s cubic-bezier(.3,1.35,.4,1), width .55s cubic-bezier(.3,1.35,.4,1), height .3s, opacity .3s;
}
header.scrolled .nav-ind { height: 38px; }
@media (max-width: 1150px) { .nav-ind { display: none; } }

.nav-contact-btn {
  margin-left: 10px; padding: 9px 16px !important; font-size: 14px !important; line-height: 1 !important;
  box-shadow: 0 4px 14px rgba(194,154,85,.3) !important;
}

/* ── Legal y Políticas: desplegable ── */
.nav-item-dropdown { position: relative; }
/* Puente invisible entre el link y el panel: sin esto, al bajar el mouse
   el cursor pasa por una franja que no pertenece a ningún elemento del
   <nav>, dispara mouseleave antes de tiempo, y el indicador deslizante
   (.nav-ind) se resetea antes de llegar al panel. */
.nav-item-dropdown:after {
  content: ''; position: absolute; left: -20px; right: -20px; top: 100%; height: 14px;
}
.legal-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 260px; background: #fff; color: var(--ink);
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), visibility .25s;
  z-index: 30;
}
.nav-item-dropdown:hover .legal-dropdown,
.nav-item-dropdown:focus-within .legal-dropdown { opacity: 1; visibility: visible; transform: none; }
.legal-dropdown a {
  display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px;
  color: var(--ink) !important; text-decoration: none;
}
.legal-dropdown a:hover { background: var(--mist); color: var(--gold-ink) !important; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #fff; place-items: center; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background .25s; }
.menu-toggle span:before, .menu-toggle span:after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.menu-toggle span:before { top: -6px; } .menu-toggle span:after { top: 6px; }
header.open .menu-toggle span { background: transparent; }
header.open .menu-toggle span:before { transform: translateY(6px) rotate(45deg); }
header.open .menu-toggle span:after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1150px) {
  .nav { flex-wrap: nowrap; padding: 12px 20px; min-height: 0; }
  .menu-toggle { display: grid; }
  header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(255,255,255,.98); padding: 12px 20px 22px; box-shadow: 0 24px 40px rgba(22,24,26,.14); border-top: 1px solid var(--line);
  }
  header.open nav { display: flex; }
  header nav a:not(.btn) { padding: 10px 14px; background: var(--mist); color: var(--ink) !important; }
  .nav-contact-btn { margin-left: 0; margin-top: 6px; }
  .legal-dropdown { position: static; width: auto; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 0 12px; }
  .nav-item-dropdown:hover .legal-dropdown, .nav-item-dropdown.open .legal-dropdown { display: block; }
}

/* ── Progreso de lectura ── */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p,0));
  background: linear-gradient(90deg, #a87d38, var(--gold-2), #f3dfb4); z-index: 100; box-shadow: 0 0 12px rgba(217,184,120,.7);
}

/* ════════ Botones — el dorado es el acento principal del sitio ════════ */
.btn, .btn-primary, .btn-outline-primary, .btn-outline-secondary {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 999px !important; font-weight: 600; letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn.gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  background: linear-gradient(135deg, #e2c48b, var(--gold)); color: var(--deep);
  box-shadow: 0 8px 24px rgba(194,154,85,.35);
}
.btn.gold:hover { background: linear-gradient(135deg, #ead09d, #c9a35f); color: var(--deep); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #e2c48b, var(--gold)) !important;
  border-color: transparent !important;
  color: var(--deep) !important;
  box-shadow: 0 8px 24px rgba(194,154,85,.35);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #ead09d, #c9a35f) !important;
  color: var(--deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(194,154,85,.42);
}
/* "Ver detalle" (paquetes de Matrimonios): outline dorado. */
.btn-outline-primary {
  background: transparent !important;
  color: var(--gold-2) !important;
  border-color: var(--gold) !important;
}
.btn-outline-primary:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--deep) !important;
}
/* Botón de SMS en Contacto: se queda neutro, no dorado — distinto del
   verde de WhatsApp y del dorado de los botones principales. */
.btn-outline-secondary {
  background: rgba(255,255,255,.06) !important;
  color: var(--dm-text) !important;
  border-color: rgba(255,255,255,.25) !important;
}
.btn-outline-secondary:hover {
  background: rgba(255,255,255,.14) !important;
  border-color: var(--gold-2) !important;
  color: #fff !important;
}

/* ════════ Hero oscuro (Inicio) ════════ */
.hero {
  position: relative; overflow: hidden; padding: 84px 0 80px;
  background: var(--dm-bg-gradient);
  color: #fff;
}
.hero .wrap { position: relative; z-index: 1; max-width: 1180px; margin: auto; padding: 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.hero .eyebrow { color: var(--gold-2); }
.hero .eyebrow:before { background: var(--gold-2); }
.hero h1 { font-size: 54px; letter-spacing: -1.6px; margin: 0 0 24px; color: #fff; line-height: 1.2; }
.hero .lead { font-size: 18.5px; color: #bfc1c3; max-width: 600px; line-height: 1.7; margin: 0 0 20px; }
.hero .micro { font-size: 13px; color: #8e9295; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 22px; }
.hero .actions .btn:not(.light) {
  background: linear-gradient(135deg, #ecd3a0, var(--gold)); color: #16191b; border-color: transparent;
  box-shadow: 0 10px 30px rgba(194,154,85,.35);
}
.hero .btn.light { background: rgba(255,255,255,.05); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.hero .btn.light:hover { background: rgba(255,255,255,.12); border-color: var(--gold-2); }
.hero .btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px; gap: 9px; }

/* Ilustración: papel + sello */
.art {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(217,184,120,.28);
  backdrop-filter: blur(12px);
  min-height: 400px; padding: 40px; color: #fff; border-radius: 140px 18px 18px 18px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
}
.art:before { content: ''; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(217,184,120,.35); border-radius: 50%; right: -100px; top: -70px; }
.art:after { content: ''; position: absolute; width: 230px; height: 230px; border: 1px solid rgba(217,184,120,.22); border-radius: 50%; right: -55px; top: -25px; }
.paper {
  width: 165px; height: 200px; background: linear-gradient(180deg, #fff, #f6f1e6); transform: rotate(-7deg);
  position: absolute; top: 44px; left: 62px; box-shadow: 0 22px 40px rgba(0,0,0,.35); padding: 26px 24px; border-radius: 6px;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-12px); } }
.paper:before { content: ''; display: block; width: 55%; height: 6px; border-radius: 3px; background: var(--ink); opacity: .8; margin-bottom: 16px; }
.paper i { display: block; height: 3px; border-radius: 2px; background: #c9d2d0; margin: 11px 0; }
.paper i:nth-child(2) { width: 85%; } .paper i:nth-child(3) { width: 70%; }
.seal {
  position: relative; border: 2px solid var(--gold); border-radius: 50%; width: 58px; height: 58px; color: var(--gold-ink);
  display: grid; place-items: center; font: 700 26px 'Libre Baskerville', Georgia, serif; margin: 18px 0 0 62px;
  background: radial-gradient(circle, #fbf3e2, #f1e2c3); box-shadow: inset 0 0 0 4px #fbf6ea, inset 0 0 0 5px rgba(194,154,85,.5);
}
.seal:after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(194,154,85,.7); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art strong { font: 400 27px/1.35 'Libre Baskerville', Georgia, serif; max-width: 300px; z-index: 1; letter-spacing: -.3px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.art small { color: var(--gold-2); margin-top: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; z-index: 1; }
.art .shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--sx,30%) var(--sy,20%), rgba(255,255,255,.14), transparent 45%); mix-blend-mode: screen; z-index: 1; }

.hero .glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 0; top: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(217,184,120,.18), transparent 65%);
  transform: translate(var(--gx,-999px), var(--gy,-999px)) translate(-50%,-50%); transition: opacity .4s; opacity: 0;
}
.hero:hover .glow { opacity: 1; }

/* ════════ Barra de información (horario en vivo) ════════ */
.infobar { background: linear-gradient(180deg, #1e2124, #191c1e); border-top: 1px solid rgba(217,184,120,.18); position: relative; overflow: visible; }
.infobar .wrap { display: grid; grid-template-columns: 1.25fr 1.3fr 1fr 1fr; max-width: 1180px; margin: auto; padding: 0 32px; position: relative; }
.ib-item { display: flex; align-items: center; gap: 14px; padding: 22px 22px; color: #ecebe8; border-left: 1px solid rgba(255,255,255,.07); transition: background .3s; }
.ib-item:first-child { border-left: 0; padding-left: 0; }
a.ib-item:hover, button.ib-item:hover { background: rgba(255,255,255,.04); }
.ib-item small { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #9a9ea1; font-weight: 600; margin-bottom: 3px; }
.ib-item strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ib-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(217,184,120,.10); color: var(--gold-2); border: 1px solid rgba(217,184,120,.25); }
.ib-ico svg { width: 19px; height: 19px; }
.live-dot { flex: none; position: relative; width: 12px; height: 12px; border-radius: 50%; background: #8a8f93; }
.live-dot.open { background: #3ecf7a; box-shadow: 0 0 12px rgba(62,207,122,.7); }
.live-dot.open:after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(62,207,122,.6); animation: livePing 1.8s ease-out infinite; }
.live-dot.closed { background: #e0805b; box-shadow: 0 0 10px rgba(224,128,91,.5); }
@keyframes livePing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.open-txt { color: #7fe0a6; } .closed-txt { color: #f0a283; }

button.ib-item { font: inherit; background: transparent; border: 0; border-left: 1px solid rgba(255,255,255,.07); text-align: left; cursor: pointer; width: 100%; }
.ib-caret { display: inline-block; margin-left: 6px; transition: transform .35s; }
.infobar.show-hours .ib-caret { transform: rotate(180deg); }
.ib-hours {
  position: absolute; right: 32px; top: calc(100% + 10px); z-index: 15; width: 380px; max-width: calc(100vw - 40px);
  background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 24px 14px; box-shadow: 0 30px 70px rgba(16,18,20,.35);
  border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1), visibility .3s;
}
.ib-hours:before { content: ''; position: absolute; top: -7px; right: 60px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.infobar.show-hours .ib-hours { opacity: 1; visibility: visible; transform: none; }
.ib-hours .eyebrow { margin-bottom: 10px; color: var(--gold-ink); }
.ib-hours .eyebrow:before { background: var(--gold); }
.live-badge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--mist); margin: 4px 0 8px; }
.live-badge strong { font-size: 15px; color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 9px 2px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr:last-child td { border-bottom: 0; }
.hours tr.today td { font-weight: 700; color: var(--ink); }
.hours tr.today td:first-child:before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: middle; }

@media (max-width: 1000px) {
  .infobar .wrap { grid-template-columns: 1fr 1fr; }
  .ib-item { border-left: 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.06); }
  .ib-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 600px) {
  .infobar .wrap { grid-template-columns: 1fr; }
  .ib-item:nth-child(2) { border-top: 1px solid rgba(255,255,255,.06); }
  .ib-hours { left: 20px; right: 20px; width: auto; max-width: none; }
  .ib-hours:before { right: auto; left: 40%; }
}

/* ════════ Servicios (cards) ════════ */
.content { padding: 92px 0; }
/* Mismo tono claro que la sección de Servicios (2ª parte), para la
   sección del CTA final (4ª parte) — la tarjeta .cta en sí se queda
   oscura, solo cambia el fondo de la sección que la rodea. */
.light-bg { background: linear-gradient(180deg, #fbfaf7, #f3f1ec); }
.wrap { max-width: 1180px; margin: auto; padding: 0 32px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-top h2 { margin-bottom: 0; }
.section-top p { max-width: 420px; color: var(--muted); margin: 0; }

.services {
  position: relative; overflow: hidden; padding: 96px 0 100px;
  background:
    radial-gradient(800px 460px at 100% 0%, rgba(194,154,85,.16), transparent 60%),
    radial-gradient(700px 460px at 0% 100%, rgba(35,39,42,.07), transparent 60%),
    linear-gradient(180deg, #fbfaf7, #f3f1ec);
}
.services .wrap { position: relative; z-index: 1; }
.services .eyebrow { color: var(--gold-ink); }
.services .eyebrow:before { background: var(--gold); }
.services h2, .services p { color: var(--ink); }
.services .section-top p { color: var(--muted); font-size: 16.5px; border-left: 2px solid var(--gold); padding-left: 20px; }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services .card {
  position: relative; min-height: 420px; display: flex; flex-direction: column; padding: 40px 28px 32px;
  border-radius: 26px; border: 1px solid rgba(35,39,42,.08); --mx: 50%; --my: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 24px 60px -24px rgba(22,24,26,.22);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; overflow: hidden;
}
.services .card:hover { transform: translateY(-10px); box-shadow: 0 50px 90px -30px rgba(22,24,26,.5); border-color: transparent; }
.services .card > * { position: relative; z-index: 1; }

/* Círculo oscuro que se expande desde el cursor */
.services .card > .fill {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), #41474c, transparent 60%), linear-gradient(160deg, #2c3135, #181b1d);
  clip-path: circle(0% at var(--mx) var(--my)); transition: clip-path .75s cubic-bezier(.2,.7,.2,1);
}
.services .card:hover > .fill { clip-path: circle(160% at var(--mx) var(--my)); }

/* Borde dorado giratorio */
.services .card:before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 50%, rgba(217,184,120,.95) 72%, rgba(255,240,205,1) 76%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .5s; animation: ang 4.5s linear infinite;
}
.services .card:hover:before { opacity: 1; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ang { to { --ang: 360deg; } }

.services .card > .bignum {
  position: absolute; top: 18px; right: 18px; z-index: 1; font: 400 96px/1 'Libre Baskerville', Georgia, serif; letter-spacing: -4px;
  color: transparent; -webkit-text-stroke: 1px rgba(194,154,85,.5); pointer-events: none; transition: transform .6s, color .6s, -webkit-text-stroke-color .6s;
}
.services .card:hover > .bignum { transform: translate(-6px,6px) scale(1.06); color: rgba(194,154,85,.10); -webkit-text-stroke-color: rgba(217,184,120,.55); }
.services .ico {
  position: relative; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px; color: var(--gold-ink);
  background: linear-gradient(145deg, #fdf6e7, #efdfbd); box-shadow: inset 0 0 0 1px rgba(194,154,85,.4), 0 14px 28px -10px rgba(194,154,85,.55);
  transition: transform .5s, background .4s, color .4s;
}
.services .ico svg { width: 28px; height: 28px; }
.services .card:hover .ico { background: linear-gradient(145deg, #eed6a6, #b88a44); color: #16191b; transform: rotate(-8deg) scale(1.06); }
.services .card .number { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--gold-ink); letter-spacing: .14em; background: #f7efdf; padding: 6px 11px; border-radius: 999px; transition: background .4s, color .4s; }
.services .card:hover .number { background: var(--ink); color: var(--gold-2); }
.services .card h3 { font-size: 23px; margin: 16px 0 12px; color: var(--ink); transition: color .4s; }
.services .card p { color: var(--muted); font-size: 15px; transition: color .4s; }
.services .card:hover h3 { color: #fff; }
.services .card:hover p { color: #c4c7c9; }
.services .card .text-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: 8px; color: var(--ink) !important;
  font-size: 14px; font-weight: 700; border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; transition: color .4s, border-color .4s;
}
.services .card:hover .text-link { color: var(--gold-2) !important; border-color: var(--gold-2); }

@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } }

/* ════════ Pasos ════════ */
.soft { background: linear-gradient(180deg, var(--mist), #f8f7f4); color: var(--ink); }
.soft h2, .soft p, .soft .eyebrow { color: var(--ink); }
.soft .eyebrow { color: var(--gold-ink); } .soft .eyebrow:before { background: var(--gold); }
.soft .lead { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.steps { counter-reset: steps; background: #fff; border-radius: var(--r); padding: 10px 30px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 24px 0; }
.step:last-child { border-bottom: 0; }
.step:before { counter-increment: steps; content: '0' counter(steps); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); font: 700 13px 'DM Sans', sans-serif; }
.step strong { display: block; margin-bottom: 5px; font-size: 16.5px; color: var(--ink); }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ── "Journey": la sección se oscurece al llegar con el scroll, y cada
   paso se enciende en dorado a medida que avanzas (igual al modelo). El
   JS detecta cualquier section.content con .steps adentro y le agrega
   la clase .journey + la barra vertical .track automáticamente. ── */
.journey { position: relative; overflow: hidden; transition: color .8s; }
.journey:before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.1s ease;
  background: radial-gradient(700px 420px at 85% 15%, rgba(194,154,85,.22), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(255,255,255,.05), transparent 60%), linear-gradient(160deg, #2a2e31, #17191b 70%);
}
.journey:after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.1s;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.journey.dark:before, .journey.dark:after { opacity: 1; }
.journey > .wrap { position: relative; z-index: 1; }
.journey h2, .journey .lead, .journey p, .journey .micro, .journey .eyebrow, .journey .step strong { transition: color .8s; }
.journey.dark h2 { color: #fff; }
.journey.dark .lead, .journey.dark p { color: #bfc2c4; }
.journey.dark .micro { color: #8e9295; }
.journey.dark .eyebrow { color: var(--gold-2); }
.journey.dark .eyebrow:before { background: var(--gold-2); }
.journey .steps { position: relative; transition: background .9s, border-color .9s, box-shadow .9s; }
.journey.dark .steps { background: rgba(255,255,255,.045); border-color: rgba(217,184,120,.22); box-shadow: 0 40px 90px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.journey.dark .step { border-bottom-color: rgba(255,255,255,.08); }
.journey.dark .step strong { color: #fff; }
.journey.dark .step p { color: #a9adb0; }
.journey .steps .track { position: absolute; left: 52px; top: 56px; bottom: 56px; width: 2px; background: rgba(127,127,127,.18); border-radius: 2px; overflow: hidden; z-index: 0; }
.journey .steps .track i { position: absolute; inset: 0; background: linear-gradient(180deg, #f3e2bb, var(--gold)); transform-origin: top; transform: scaleY(var(--sp,0)); box-shadow: 0 0 12px rgba(217,184,120,.8); }
.journey .step:before { position: relative; z-index: 1; transition: background .5s, color .5s, transform .5s, box-shadow .5s; }
.journey .step { transition: opacity .6s; }
.journey.dark .step:not(.on) { opacity: .5; }
.journey.dark .step:not(.on):before { background: #2c3135; color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(217,184,120,.35); }
.journey .step.on:before { background: linear-gradient(135deg, #eed6a6, #c29a55); color: #16191b; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(217,184,120,.15), 0 0 24px rgba(217,184,120,.55); }
.journey.dark .btn:not(.gold) { background: linear-gradient(135deg, #ecd3a0, var(--gold)); color: #16191b; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .journey .step { opacity: 1 !important; } }
@media (max-width: 900px) { .journey .steps .track { left: 44px; top: 50px; bottom: 50px; } }

/* ════════ CTA: constelación dorada interactiva ════════ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 50%, var(--deep) 100%); color: #fff;
  padding: 56px 60px; border-radius: 22px; display: flex; justify-content: space-between; align-items: center; gap: 35px; box-shadow: var(--shadow-lg);
}
.cta:before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(217,184,120,.25); right: -140px; top: -200px; }
.cta:after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(194,154,85,.22), transparent 70%); left: -80px; bottom: -160px; }
.cta > * { position: relative; z-index: 1; }
.cta > canvas { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0 !important; pointer-events: none; }
.cta .spot {
  position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none;
  background: radial-gradient(420px circle at var(--cx,70%) var(--cy,40%), rgba(217,184,120,.22), transparent 60%); transition: opacity .4s;
}
.cta .beam {
  position: absolute !important; z-index: 0 !important; top: -60%; left: -40%; width: 35%; height: 220%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,236,200,.13), transparent); transform: rotate(18deg);
  animation: beam 6.5s cubic-bezier(.5,0,.3,1) infinite;
}
@keyframes beam { 0% { left: -40%; } 55%, 100% { left: 130%; } }
.cta h2 { font-size: 31px; color: #fff; margin-bottom: 10px; }
.cta p { color: #c9cbcc; margin: 0; }
.cta .btn { flex: none; }
@media (max-width: 900px) {
  .cta { flex-direction: column; align-items: flex-start; padding: 38px 28px; }
  .cta h2 { font-size: 26px; }
}

/* ── Aviso (disclaimer del Florida Bar) ── */
.notice { border: 1px solid #eadcc0; border-left: 4px solid var(--gold); border-radius: 10px; padding: 22px 26px; background: #fcf8ef; font-size: 13px; margin-top: 34px; color: #4b5b61; }
.notice strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }

/* ════════ Tarjetas de servicio (resto de páginas) ════════ */
.service-card { background-color: var(--dm-card); border: 1px solid var(--dm-border); border-radius: 0.5rem; padding: 1.5rem; height: 100%; transition: box-shadow 0.15s ease-in-out; }
.service-card:hover { box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35); }
.service-card .text-muted { color: var(--dm-muted) !important; }

/* ── Tablas (paquetes de Matrimonios) ── */
.table { color: var(--dm-text); border-color: var(--dm-border); }
.table > :not(caption) > * > * { background-color: var(--dm-card); color: var(--dm-text); border-bottom-color: var(--dm-border); box-shadow: none; }
.table thead th { background-color: var(--dm-surface); border-bottom-color: var(--dm-border); }

/* ── Modales de detalle de paquete ── */
.modal-content { background-color: var(--dm-card); color: var(--dm-text); border: 1px solid var(--dm-border); }
.modal-header, .modal-footer { border-color: var(--dm-border); }
.modal .btn-close { filter: invert(1) grayscale(100%) brightness(2); }

/* ── FAQ / listas de definición ── */
.faq dt { margin-top: 1rem; font-weight: 600; color: var(--dm-text); }
.faq dd { color: var(--dm-muted); }

/* ── Citas (Política de SMS) ── */
blockquote { background-color: var(--dm-surface); border-left: 3px solid var(--gold) !important; padding: 1rem 1.25rem; border-radius: 0 .5rem .5rem 0; }

/* ════════ Footer ════════ */
.site-footer { background-color: var(--deep); color: #c3d0d4; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer strong { display: block; margin-bottom: 14px; color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.site-footer p { color: #a4a7a9; }
.site-footer a { color: #eeeeec; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; margin-top: 40px; font-size: 11.5px; color: #86898b; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr; gap: 28px; } }

.mobile-call {
  display: none;
}
@media (max-width: 900px) {
  .mobile-call {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); color: #fff; text-align: center;
    padding: 14px; z-index: 30; font-weight: 600; font-size: 14.5px; box-shadow: 0 -6px 20px rgba(16,18,20,.25); border-top: 2px solid var(--gold);
  }
  body { padding-bottom: 52px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero { padding: 48px 0 52px; }
  .art { min-height: 320px; border-radius: 90px 16px 16px 16px; }
  .services .section-top, .section-top { display: block; }
  .section-top p { margin-top: 14px; }
}

/* ════════ Revelado al hacer scroll ════════ */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(4px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  *, .hero:before { animation: none !important; transition: none !important; }
}

/* ════════ Caja de contexto dentro del hero (ej. Divorcios) ════════ */
.boundary { background: #fff; padding: 34px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative; color: var(--ink); }
.hero .boundary { box-shadow: var(--shadow-lg); }
.boundary:before { content: ''; position: absolute; left: 34px; top: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px; }
.boundary h3 { font-size: 22px; color: var(--ink); }
.boundary .btn { margin-top: 4px; }

.check { padding-left: 0; list-style: none; margin: 0; }
.check li { position: relative; padding: 13px 0 13px 36px; border-bottom: 1px solid var(--line); font-size: 15px; }
.check li:last-child { border-bottom: 0; }
.check li:before { content: '✓'; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f4ead6; color: var(--gold-ink); font-size: 12px; font-weight: 700; }

/* ════════ Enlace de texto subrayado en dorado (fuera de las tarjetas de servicio) ════════ */
.text-link { font-size: 14px; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; transition: color .2s; }
.text-link:hover { color: var(--gold-ink); }

/* ════════ Tarjetas de 3 columnas (ej. Divorcios) ════════ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* ════════ Lista de características con ícono (Divorcios: "Así te ayudamos") ════════ */
.feat-list { display: grid; gap: 16px; align-self: start; }
.feat { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px -24px rgba(22,24,26,.25); color: var(--ink); overflow: hidden; }
.feat:before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.feat-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(145deg, #fdf6e7, #efdfbd); box-shadow: inset 0 0 0 1px rgba(194,154,85,.4); }
.feat-ico svg { width: 24px; height: 24px; }
.feat strong { display: block; font-size: 16.5px; margin: 2px 0 4px; color: var(--ink); }
.feat p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ════════ FAQ en acordeón (ej. Divorcios) ════════ */
.faq { max-width: 860px; margin: auto; }
.faq h2 { margin-bottom: 28px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; margin-bottom: 12px; background: #fff; color: var(--ink); }
details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 20px 0; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary:after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink); font-size: 18px; font-weight: 500; transition: background .2s, transform .25s; }
details[open] summary:after { content: '−'; background: var(--ink); color: var(--gold-2); }
details p { margin: 0 35px 18px 0; color: var(--muted); }
details p:first-of-type { margin-top: -4px; }
@media (max-width: 900px) { details { padding: 0 18px; } details p { margin-right: 0; } }
