/* =========================================================
   Dr. Julio Heraldo Ruiz · Abogado penalista
   ========================================================= */

:root {
  --bg: #0B0E14;
  --bg-2: #10141C;
  --bg-3: #161B25;
  --gold: #C9A227;
  --gold-2: #CD954A;
  --gold-soft: #E7CD84;
  --gold-pale: #F4E6BE;
  --bronze: #7C5B27;
  --ink: #EFE9DC;
  --ink-2: #C9C3B6;
  --muted: #8F8A80;
  --line: rgba(201, 162, 39, .22);

  --f-brand: "Cinzel", "Times New Roman", serif;
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --topbar-h: 38px;
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; } /* que el header fijo no tape el destino de un ancla */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1 { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Cursor propio: flecha azul tinta con filete dorado; sobre links y botones, rellena de dorado */
html { cursor: url("../img/cursor.svg") 4 3, auto; }
a, button, label, select, summary, [role="button"] { cursor: url("../img/cursor-link.svg") 4 3, pointer; }
input, textarea { cursor: text; }

/* Barra de scroll a medida: riel oscuro y manija dorada */
/* Firefox (Chrome moderno ignora los ::-webkit-scrollbar si ve scrollbar-color, por eso va aislado) */
@supports (-moz-appearance: none) { html { scrollbar-width: thin; scrollbar-color: #A9842A #090B10; } }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #090B10; border-left: 1px solid rgba(201, 162, 39, .12); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E7CD84 0%, #C9A227 45%, #8E6B1A 100%);
  border: 3px solid #090B10; border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #F4E6BE 0%, #E7CD84 45%, #C9A227 100%); }
::-webkit-scrollbar-thumb:active { background: #E7CD84; }
::-webkit-scrollbar-corner { background: #090B10; }
/* scroll interno (menú mobile, campos de texto): más fino */
.mobile-menu::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 6px; }
.mobile-menu::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb { border-width: 1px; }
::selection { background: var(--gold); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--gold-soft); outline-offset: 4px; }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px;
  font-family: var(--f-body); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .4s, border-color .4s, background-color .4s;
  white-space: nowrap;
}
.btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.btn svg .fill { fill: currentColor; stroke: none; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 11.5px; gap: 10px; }
.btn-lg { --h: 58px; padding: 0 32px; }

/* Principal: fondo oscuro, filete dorado y texto marfil (alto contraste) */
.btn-gold {
  color: #FBF4E2;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, .2) 0%, rgba(201, 162, 39, .07) 100%),
    #0E1118;
  border: 1px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(244, 230, 190, .18), 0 14px 34px -18px rgba(201, 162, 39, .7);
}
.btn-gold svg { color: var(--gold-soft); }
.btn-gold::before { /* destello */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(231, 205, 132, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-gold:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, .32) 0%, rgba(201, 162, 39, .12) 100%),
    #0E1118;
  box-shadow: inset 0 1px 0 rgba(244, 230, 190, .25), 0 0 0 4px rgba(201, 162, 39, .1), 0 18px 40px -16px rgba(201, 162, 39, .8);
}
.btn-gold:hover::before { transform: translateX(120%); }

/* WhatsApp: ícono verde y relleno circular que nace desde el ícono */
.btn-wa {
  --wa: #25D366; --wa-deep: #128C7E;
  padding-left: 22px;
  color: #FBF4E2;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, .2) 0%, rgba(201, 162, 39, .07) 100%),
    #0E1118;
  border: 1px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(244, 230, 190, .18), 0 14px 34px -18px rgba(201, 162, 39, .7);
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .6s var(--ease-out), color .4s .08s;
}
.btn-wa::before {
  content: ""; position: absolute; z-index: -1;
  left: 35px; top: 50%; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle, var(--wa) 0%, #1DA851 22%, #15946A 45%, var(--wa-deep) 75%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .75s cubic-bezier(.65, 0, .35, 1);
}
.btn-wa .wa-ic {
  position: relative; width: 26px; height: 26px; display: grid; place-items: center; flex: none;
  border-radius: 50%; background: rgba(37, 211, 102, .14);
  transition: background-color .4s;
}
.btn-wa .wa-ic svg { width: 17px; height: 17px; color: var(--wa); stroke-width: 1.7; transition: color .4s .1s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.btn-wa:hover {
  transform: translateY(-2px); color: #fff; border-color: #1DA851; text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  box-shadow: 0 18px 40px -16px rgba(37, 211, 102, .55);
}
.btn-wa:hover::before { transform: translate(-50%, -50%) scale(36); }
.btn-wa:hover .wa-ic { background: rgba(255, 255, 255, .16); }
.btn-wa:hover .wa-ic svg { color: #fff; transform: rotate(-12deg) scale(1.1); }

/* Secundario: más sobrio, sin dorado hasta el hover */
.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(239, 233, 220, .22);
  background: rgba(11, 14, 20, .35);
  backdrop-filter: blur(6px);
}
.btn-ghost svg { color: var(--gold-soft); }
.btn-ghost:hover { color: #FBF4E2; border-color: rgba(201, 162, 39, .7); background: rgba(201, 162, 39, .08); transform: translateY(-2px); }

/* Urgencia penal: rojo contenido + latido */
.btn-urgent {
  color: #FBF4E2;
  background:
    linear-gradient(180deg, rgba(229, 72, 77, .16) 0%, rgba(229, 72, 77, .05) 100%),
    #120E11;
  border: 1px solid rgba(229, 72, 77, .6);
  animation: urgent-beat 2.4s ease-out infinite;
}
.btn-urgent svg { color: #FF9195; }
.btn-urgent:hover {
  transform: translateY(-2px);
  border-color: #E5484D;
  background:
    linear-gradient(180deg, rgba(229, 72, 77, .3) 0%, rgba(229, 72, 77, .12) 100%),
    #120E11;
}
.urgent-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #E5484D; box-shadow: 0 0 10px rgba(229, 72, 77, .8); }
.urgent-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #E5484D; animation: pulse 1.6s ease-out infinite; }
@keyframes urgent-beat {
  0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, .42); }
  70%  { box-shadow: 0 0 0 12px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

/* Íconos en hover: giro con resorte */
/* Flechas: en el hover "atraviesan" su lugar (salen por la derecha y vuelven a entrar por la izquierda) */
@keyframes arrow-pass {
  0%   { transform: translateX(0); opacity: 1; }
  42%  { transform: translateX(130%); opacity: 0; }
  43%  { transform: translateX(-130%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.btn:hover .ic-arrow, .dd-foot a:hover svg, .text-link:hover svg, .otras-list a:hover svg { animation: arrow-pass .75s cubic-bezier(.65, 0, .35, 1); }
.btn:hover .ic-wa { transform: rotate(-14deg) scale(1.18); }
.btn:hover .ic-phone { animation: phone-ring .9s ease-in-out; }
@keyframes phone-ring {
  0%, 100% { transform: rotate(0) scale(1.12); }
  15% { transform: rotate(-16deg) scale(1.12); }
  30% { transform: rotate(13deg) scale(1.12); }
  45% { transform: rotate(-10deg) scale(1.12); }
  60% { transform: rotate(7deg) scale(1.12); }
  75% { transform: rotate(-3deg) scale(1.12); }
}

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  --spd: 1;
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  pointer-events: all;
}
.preloader.is-done { display: none; }
.pl-panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--bg);
  transition: transform 1.1s var(--ease-io);
}
.pl-panel--top { top: 0; background: linear-gradient(180deg, #080A0F, var(--bg)); }
.pl-panel--bottom { bottom: 0; background: linear-gradient(0deg, #080A0F, var(--bg)); }
.pl-panel::after { /* filo dorado en la línea de corte */
  content: ""; position: absolute; left: 50%; width: min(70vw, 900px); height: 1px;
  transform: translateX(-50%) scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: transform .7s var(--ease-out), opacity .4s;
}
.pl-panel--top::after { bottom: 0; }
.pl-panel--bottom::after { top: 0; }

.pl-stage {
  position: relative; z-index: 2;
  width: min(78vw, 560px);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-io), opacity .7s var(--ease-io);
}
.pl-crest { position: relative; z-index: 2; width: 100%; height: auto; overflow: visible; }

.pl-glow {
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(closest-side, rgba(201, 162, 39, .16), rgba(201, 162, 39, .05) 55%, transparent 75%);
  opacity: 0;
  animation: pl-fade 1.6s calc(var(--spd) * .2s) var(--ease-out) forwards, pl-breathe 3.2s 1.6s ease-in-out infinite alternate;
}
.pl-rings {
  position: absolute; z-index: 1;
  width: 118%; aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%, -52%) rotate(90deg);
  overflow: visible;
}
.pl-ring { fill: none; stroke: var(--gold); stroke-dasharray: 0 100; vector-effect: non-scaling-stroke; }
.pl-ring--1 { stroke-width: 1; opacity: .35; animation: pl-ring 1.8s calc(var(--spd) * .1s) var(--ease-io) forwards; }
.pl-ring--2 { stroke-width: 1; opacity: .14; stroke-dasharray: .4 1.6; animation: pl-ring-dots 2.2s calc(var(--spd) * .35s) var(--ease-out) forwards; }

/* Ramas: barrido circular desde abajo */
.pl-sweep-arc { stroke-dasharray: 0 100; animation: pl-sweep calc(var(--spd) * 1.8s) calc(var(--spd) * .2s) cubic-bezier(.65, 0, .35, 1) forwards; }

/* Hojas: brotan suave siguiendo el barrido, sin rebote */
.pl-leaf {
  opacity: 0;
  transform-box: fill-box; transform-origin: center;
  transform: scale(.55);
  animation: pl-leaf calc(var(--spd) * 1.1s) calc(var(--spd) * (.3s + var(--t) * 1.3s)) var(--ease-soft) forwards;
}

/* Balanza: baja y se asienta con un vaivén mínimo */
.pl-scale {
  opacity: 0;
  transform-box: view-box; transform-origin: 513px 322px;
  animation: pl-scale calc(var(--spd) * 1.7s) calc(var(--spd) * .7s) linear forwards;
}

/* Tipografía: aparece desde el centro hacia los extremos */
.pl-glyph {
  opacity: 0;
  transform-box: fill-box;
  transform: translateY(14px);
  animation: pl-glyph calc(var(--spd) * 1.2s) calc(var(--spd) * (1.45s + var(--t) * .5s)) var(--ease-soft) forwards;
}
.pl-sub .pl-glyph { transform: translateY(6px); animation-delay: calc(var(--spd) * (2s + var(--t) * .4s)); }
.pl-shine { transform: translateX(0); animation: pl-shine calc(var(--spd) * 1.7s) calc(var(--spd) * 2.3s) cubic-bezier(.45, 0, .25, 1) forwards; }

/* Medidor */
.pl-meter {
  position: absolute; left: 50%; bottom: -26%; z-index: 3;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-brand); font-size: 11px; letter-spacing: .3em; color: var(--gold-2);
  opacity: 0; animation: pl-fade .8s calc(var(--spd) * .4s) forwards;
}
.pl-meter-bar { position: relative; width: 140px; height: 1px; background: rgba(201, 162, 39, .18); overflow: hidden; }
.pl-meter-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bronze), var(--gold-soft)); transform: scaleX(0); transform-origin: left; }
.pl-meter-num { min-width: 2.4em; font-variant-numeric: tabular-nums; }

/* Salida */
.preloader.is-leaving { pointer-events: none; }
.preloader.is-leaving .pl-stage { transform: translateY(-2vh) scale(.94); opacity: 0; }
.preloader.is-leaving .pl-panel::after { transform: translateX(-50%) scaleX(1); opacity: 1; }
.preloader.is-opening .pl-panel--top { transform: translateY(-101%); }
.preloader.is-opening .pl-panel--bottom { transform: translateY(101%); }
.preloader.is-opening .pl-panel::after { opacity: 0; transition-delay: .3s; }

@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-breathe { from { transform: scale(.96); } to { transform: scale(1.05); } }
@keyframes pl-ring { to { stroke-dasharray: 100 0; } }
@keyframes pl-ring-dots { from { opacity: 0; transform: rotate(-30deg); } to { opacity: .4; transform: rotate(0); } }
@keyframes pl-sweep { to { stroke-dasharray: 50.5 100; } }
@keyframes pl-leaf { to { opacity: 1; transform: scale(1); } }
@keyframes pl-scale {
  0%   { opacity: 0; transform: translateY(-18px) rotate(-3deg); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  38%  { opacity: 1; transform: translateY(0) rotate(1.8deg); animation-timing-function: ease-in-out; }
  62%  { transform: rotate(-.9deg); animation-timing-function: ease-in-out; }
  82%  { transform: rotate(.35deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes pl-glyph { to { opacity: 1; transform: translateY(0); } }
@keyframes pl-shine { to { transform: translateX(1100px); } }

/* Visita repetida en la sesión: versión exprés */
.preloader.is-fast { --spd: .4; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: transform .6s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }

.topbar {
  height: var(--topbar-h); overflow: hidden;
  border-bottom: 1px solid rgba(201, 162, 39, .12);
  background: rgba(8, 10, 15, .55);
  font-size: 12px; letter-spacing: .04em; color: var(--ink-2);
  transition: height .5s var(--ease-out), opacity .4s, border-color .4s;
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-alert { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar-mobile { display: none; }
@media (max-width: 640px) { .topbar-mobile { display: inline; } }
.topbar-alert strong { color: var(--gold-soft); font-weight: 600; }
.topbar-meta { display: flex; gap: 28px; }
.topbar-meta li, .topbar-meta a { display: flex; align-items: center; gap: 8px; }
.topbar-meta a { transition: color .3s; }
.topbar-meta a:hover { color: var(--gold-soft); }
.topbar svg { width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.6; }

.pulse-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #3BD16F; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3BD16F; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.nav-bar {
  position: relative;
  transition: background-color .5s, backdrop-filter .5s;
}
.nav-bar::after { /* hairline dorada */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .5) 25%, rgba(201, 162, 39, .5) 75%, transparent);
  opacity: 0; transition: opacity .5s;
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: height .5s var(--ease-out); }

.site-header.is-scrolled .topbar { height: 0; opacity: 0; border-color: transparent; }
.site-header.is-scrolled .nav-bar { background: rgba(11, 14, 20, .94); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.site-header.is-scrolled .nav-bar::after { opacity: 1; }
.site-header.is-scrolled { --nav-h: 70px; }

/* Marca */
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-mark { width: 50px; height: auto; transition: transform .8s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-name {
  font-family: var(--f-brand); font-weight: 500; font-size: 16.5px; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-role { font-family: var(--f-brand); font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }

/* Nav */
.main-nav > ul { display: flex; align-items: center; gap: clamp(20px, 2vw, 34px); }
.main-nav > ul > li > a, .dd-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap; transition: color .4s;
}
.main-nav > ul > li > a::after, .dd-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .6s var(--ease-out);
}
.main-nav > ul > li > a::before, .dd-toggle::before { /* rombo */
  content: ""; position: absolute; left: 50%; top: -6px; width: 4px; height: 4px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform .5s var(--ease-out);
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active, .dd-toggle:hover, .dd-toggle.is-active, .has-dd.is-open .dd-toggle { color: var(--ink); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.is-active::after, .dd-toggle:hover::after, .dd-toggle.is-active::after, .has-dd.is-open .dd-toggle::after { transform: scaleX(1); }
.main-nav > ul > li > a.is-active::before, .dd-toggle.is-active::before { transform: translateX(-50%) rotate(45deg) scale(1); }
.dd-toggle::after { right: 17px; }

/* Dropdown de áreas */
.dd-chev { width: 10px; height: 10px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.has-dd { position: relative; }
.dd {
  position: absolute; top: 100%; left: 50%; z-index: 10;
  width: 690px; padding-top: 22px; /* puente para el hover */
  transform: translateX(-50%) translateY(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .55s var(--ease-out), visibility 0s .35s;
}
.has-dd.is-open .dd {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .35s var(--ease-out), transform .55s var(--ease-out), visibility 0s;
}
.has-dd.is-open .dd-chev { transform: rotate(180deg); }
.dd-panel {
  position: relative;
  padding: 26px 26px 0;
  background: linear-gradient(180deg, rgba(22, 27, 37, .97), rgba(11, 14, 20, .98));
  border: 1px solid rgba(201, 162, 39, .18);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.dd-panel::before { /* filo dorado superior */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.dd-head { font-family: var(--f-brand); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; padding-left: 14px; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.dd-item:hover, .dd-item[aria-current] { background: rgba(201, 162, 39, .06); border-color: rgba(201, 162, 39, .16); }
.dd-ic {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(201, 162, 39, .35); border-radius: 50%;
  transition: background-color .4s, border-color .4s, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.dd-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--gold-soft); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dd-item:hover .dd-ic { background: rgba(201, 162, 39, .12); border-color: var(--gold); transform: rotate(-10deg) scale(1.08); }
.dd-txt { display: flex; flex-direction: column; gap: 3px; }
.dd-txt strong { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.dd-txt small { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.dd-badge {
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 7px; color: #FF9195; border: 1px solid rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .08);
}
.dd-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 18px -26px 0; padding: 16px 40px;
  border-top: 1px solid rgba(201, 162, 39, .12); background: rgba(8, 10, 15, .6);
  font-size: 12.5px; color: var(--muted);
}
.dd-foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-soft); transition: color .3s; }
.dd-foot a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.dd-foot a:hover { color: var(--gold-pale); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Burger */
.burger { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; z-index: 120; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--gold-soft); transition: transform .6s var(--ease-out), width .4s, top .4s; }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; right: 19px; }
.burger:hover span:nth-child(2) { right: 13px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22.5px; right: 13px; transform: rotate(-45deg); }

/* Menú mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; justify-content: safe center; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--topbar-h) + var(--nav-h) + 28px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 100% 0%, #18140C 0%, var(--bg) 55%);
  clip-path: circle(0% at calc(100% - 46px) 42px);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.mobile-menu-crest { position: absolute; right: -25%; bottom: -10%; width: 90%; opacity: .05; pointer-events: none; }
.mobile-menu nav > ol { display: grid; gap: 4px; }
.mobile-menu nav > ol > li { overflow: hidden; }
.mm-link {
  display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 0; text-align: left;
  font-family: var(--f-display); font-size: clamp(34px, 9vw, 52px); font-weight: 500; line-height: 1.15; color: var(--ink);
  transform: translateY(110%); transition: transform .8s var(--ease-out), color .3s;
}
.mm-link small { font-family: var(--f-brand); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.mm-link .dd-chev { width: 14px; height: 14px; align-self: center; margin-left: 4px; }
.mm-link:hover { color: var(--gold-soft); }
.menu-open .mm-link { transform: none; }
.menu-open .mobile-menu nav > ol > li:nth-child(1) .mm-link { transition-delay: .25s; }
.menu-open .mobile-menu nav > ol > li:nth-child(2) .mm-link { transition-delay: .3s; }
.menu-open .mobile-menu nav > ol > li:nth-child(3) .mm-link { transition-delay: .35s; }
.menu-open .mobile-menu nav > ol > li:nth-child(4) .mm-link { transition-delay: .4s; }
.menu-open .mobile-menu nav > ol > li:nth-child(5) .mm-link { transition-delay: .45s; }
.menu-open .mobile-menu nav > ol > li:nth-child(6) .mm-link { transition-delay: .5s; }
/* acordeón de áreas */
.mm-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.mm-sub > ul { overflow: hidden; display: grid; gap: 2px; padding-left: 34px; }
.mm-has-sub.is-open .mm-sub { grid-template-rows: 1fr; }
.mm-has-sub.is-open .dd-chev { transform: rotate(180deg); }
.mm-sub li:first-child { padding-top: 8px; }
.mm-sub li:last-child { padding-bottom: 12px; }
.mm-sub a { display: block; padding: 7px 0 7px 16px; border-left: 1px solid var(--line); font-size: 15px; color: var(--ink-2); transition: color .3s, border-color .3s; }
.mm-sub a:hover, .mm-sub a[aria-current] { color: var(--gold-soft); border-color: var(--gold); }
.mobile-menu-foot { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; justify-items: start; opacity: 0; transform: translateY(16px); transition: opacity .6s .55s, transform .8s .55s var(--ease-out); }
.menu-open .mobile-menu-foot { opacity: 1; transform: none; }
.eyebrow-sm { font-family: var(--f-brand); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.mobile-menu-phone { font-size: 18px; letter-spacing: .06em; color: var(--ink-2); }
body.menu-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  background: var(--bg);
}

.hero-media {
  position: absolute; z-index: -3;
  top: 0; right: 0; bottom: 0; width: 58%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img {
  object-fit: cover; object-position: 62% 22%;
  filter: contrast(1.06) saturate(.92) brightness(.92);
}

/* Degradado oscuro: sólido a la izquierda, se desvanece hacia la derecha */
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      var(--bg) 34%,
      rgba(11, 14, 20, .9) 44%,
      rgba(11, 14, 20, .62) 56%,
      rgba(11, 14, 20, .3) 70%,
      rgba(11, 14, 20, .08) 86%,
      rgba(11, 14, 20, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 14, 20, 0) 26%),
    linear-gradient(180deg, rgba(11, 14, 20, .75) 0%, rgba(11, 14, 20, 0) 24%),
    radial-gradient(60% 50% at 50% 42%, rgba(205, 149, 74, .1), transparent 70%);
}
.hero-grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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-inner { padding-top: calc(var(--topbar-h) + var(--nav-h) + clamp(16px, 4vh, 40px)); padding-bottom: clamp(64px, 11vh, 120px); }
.hero-content { max-width: 780px; }
.hero-trust { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-brand); font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow-line { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

.hero-title {
  margin: clamp(14px, 2.6vh, 26px) 0 clamp(16px, 2.8vh, 28px);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(44px, min(5.7vw, 10vh), 92px); line-height: 1; letter-spacing: -.01em;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .hl {
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold-soft) 40%, var(--gold) 70%, var(--gold-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero-lead { max-width: 580px; text-wrap: pretty; font-size: clamp(16px, 1.25vw, 18px); font-weight: 300; line-height: 1.75; color: var(--ink-2); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 4.2vh, 40px); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px 36px;
  margin-top: clamp(26px, 5.4vh, 54px); padding-top: clamp(18px, 3vh, 30px);
  border-top: 1px solid rgba(239, 233, 220, .1);
}
.hero-trust li { display: flex; align-items: center; gap: 14px; }
.hero-trust svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-trust span { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.hero-trust strong { font-size: 14px; font-weight: 600; color: var(--ink); }

.hero-vertical {
  position: absolute; right: calc(var(--gutter) * .6); top: 50%;
  writing-mode: vertical-rl; white-space: nowrap; transform: translateY(-50%) rotate(180deg);
  font-family: var(--f-brand); font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: rgba(239, 233, 220, .55);
}
.hero-vertical i { font-style: normal; color: var(--gold); margin-block: .4em; }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-brand); font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue-line { position: relative; width: 1px; height: 54px; background: rgba(201, 162, 39, .2); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-soft); animation: scroll-line 2.2s var(--ease-io) infinite; }
@keyframes scroll-line { to { top: 100%; } }
@media (max-height: 860px) { .scroll-cue { display: none; } }
@media (min-width: 1200px) { .scroll-cue { left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); } }

/* ---------- Entrada del hero (tras el preloader) ---------- */
.js .site-header { opacity: 0; transform: translateY(-20px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .is-loaded .site-header { opacity: 1; transform: none; transition-delay: .5s; }
.js .is-loaded .site-header.is-hidden { transform: translateY(calc(-100% - 2px)); transition-delay: 0s; }

.js .hero-media { clip-path: inset(0 0 0 100%); }
.js .hero-media img { transform: scale(1.14); }
.js .is-loaded .hero-media { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease-io) .1s; }
.js .is-loaded .hero-media img { transform: scale(1); transition: transform 2.8s var(--ease-out) .1s; }

.js [data-hero] { opacity: 0; transform: translateY(26px); }
.js .hero-title [data-hero] { opacity: 1; transform: translateY(110%); }
.js .is-loaded [data-hero] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.js .is-loaded [data-hero="1"] { transition-delay: .55s; }
.js .is-loaded [data-hero="2"] { transition-delay: .65s; }
.js .is-loaded [data-hero="3"] { transition-delay: .78s; }
.js .is-loaded [data-hero="4"] { transition-delay: .95s; }
.js .is-loaded [data-hero="5"] { transition-delay: 1.08s; }
.js .is-loaded [data-hero="6"] { transition-delay: 1.2s; }
.js .is-loaded .hero-title .hl { animation: gold-sweep 2.4s 1.2s var(--ease-io) both; }
@keyframes gold-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

.js .hero-vertical, .js .scroll-cue { opacity: 0; transition: opacity 1.2s 1.5s; }
.js .is-loaded .hero-vertical, .js .is-loaded .scroll-cue { opacity: 1; }

/* =========================================================
   SECCIONES (base compartida)
   ========================================================= */
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-title {
  margin: 22px 0 20px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.01em; color: var(--ink);
  text-wrap: balance;
}
.hl {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold-soft) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-lead { max-width: 640px; font-size: clamp(16px, 1.2vw, 17.5px); font-weight: 300; line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }

/* Aparición al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   ÁREAS DE PRÁCTICA (sección clara marfil)
   ========================================================= */
/* Tema claro reutilizable (marfil) */
.paper {
  --ivory: #F3EEE4;
  --paper-ink: #16181E;
  --paper-muted: #6E6A62;
  --paper-line: rgba(22, 24, 30, .14);
  --gold-deep: #8E6B1A;
  position: relative; isolation: isolate;
  padding: clamp(100px, 11vw, 160px) 0;
  background: var(--ivory);
  color: var(--paper-ink);
}
.paper::before { /* textura de papel muy sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-bottom: clamp(34px, 4vw, 52px); margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--paper-ink);
}
.paper-title {
  margin: 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(46px, 6.4vw, 104px); line-height: .94; letter-spacing: -.025em; color: var(--paper-ink);
  text-wrap: balance;
}
.paper-note { max-width: 340px; padding-bottom: 8px; font-size: 15px; line-height: 1.7; color: var(--paper-muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .paper-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .paper-note { max-width: none; padding-bottom: 0; }
}

/* Tarjetas de áreas (oscuras): el escudo se dibuja en el hover */
.sr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-grid > li { display: flex; }
.svc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; width: 100%; min-height: 470px;
  padding: 38px 36px 0;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(201, 162, 39, .07), transparent 60%),
    linear-gradient(180deg, #131823 0%, #0C0F16 100%);
  border: 1px solid rgba(201, 162, 39, .12);
  box-shadow: 0 30px 60px -40px rgba(14, 17, 24, .7);
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out), border-color .6s;
}
.svc::before { /* resplandor que se enciende en el hover */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(90% 60% at 80% 10%, rgba(201, 162, 39, .14), transparent 65%);
  transition: opacity .9s var(--ease-out);
}
.svc::after { /* filo dorado superior */
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-soft) 60%, transparent);
  transform: scaleX(0); transition: transform 1.1s var(--ease-out);
}
.svc:hover { transform: translateY(-8px); border-color: rgba(201, 162, 39, .4); box-shadow: 0 50px 90px -40px rgba(14, 17, 24, .9); }
.svc:hover::before { opacity: 1; }
.svc:hover::after { transform: scaleX(1); }

/* escudo en líneas doradas: oculto y se dibuja al pasar el mouse */
.svc-crest {
  position: absolute; z-index: -1; right: 6%; bottom: 96px; width: 62%; height: auto;
  fill: none; stroke: var(--gold-soft); stroke-width: 1.5; stroke-opacity: .17;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.svc:hover .svc-crest, .svc:focus-visible .svc-crest { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s cubic-bezier(.33, 0, .2, 1); }

.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.svc-num {
  font-family: var(--f-display); font-weight: 500; font-size: 84px; line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 39, .55);
  background: linear-gradient(100deg, var(--gold-2), var(--gold-soft) 50%, var(--gold));
  -webkit-background-clip: text; background-clip: text;
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 1s var(--ease-out), -webkit-text-stroke-color .6s;
}
.svc:hover .svc-num { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.svc-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px; padding: 6px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #FFB3B5; border: 1px solid rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .1);
}
.svc-title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 2.4vw, 38px); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); }
.svc-desc { font-size: 14.5px; font-weight: 300; line-height: 1.75; color: var(--ink-2); }
.svc-items { display: grid; gap: 8px; margin: 22px 0 30px; }
.svc-items li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); transition: color .5s; }
.svc-items li::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; transition: width .6s var(--ease-out); }
.svc:hover .svc-items li { color: var(--ink-2); }
.svc:hover .svc-items li::before { width: 22px; }

.svc-foot {
  display: flex; align-items: center; justify-content: space-between; margin: auto -36px 0; padding: 20px 36px;
  border-top: 1px solid rgba(239, 233, 220, .08);
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft);
  transition: background-color .6s;
}
.svc:hover .svc-foot { background: rgba(201, 162, 39, .06); }
.svc-arrow {
  position: relative; overflow: hidden; isolation: isolate;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, .35); color: var(--gold-soft);
  transition: border-color .5s, color .45s .1s;
}
.svc-arrow::before { /* relleno dorado desde el centro */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), var(--gold) 70%);
  transform: scale(0); transition: transform .6s cubic-bezier(.65, 0, .35, 1);
}
.svc-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc-arrow { border-color: var(--gold); color: #0E1118; }
.svc:hover .svc-arrow::before { transform: scale(1); }
.svc:hover .svc-arrow svg { animation: arrow-pass .8s cubic-bezier(.65, 0, .35, 1) .05s; }

/* segundo nivel: al tocar el círculo, una sola reacción y vuelve a su eje */
.svc .svc-arrow:hover { animation: svc-bump .7s cubic-bezier(.34, 1.4, .64, 1); }
.svc .svc-arrow:hover svg { animation: arrow-pass-once .7s cubic-bezier(.65, 0, .35, 1); }
@keyframes svc-bump {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(231, 205, 132, .5); }
  40%  { transform: scale(1.09); }
  100% { transform: scale(1);    box-shadow: 0 0 0 14px rgba(231, 205, 132, 0); }
}
/* misma animación con otro nombre para que se vuelva a disparar sobre el círculo */
@keyframes arrow-pass-once {
  0%   { transform: translateX(0); opacity: 1; }
  42%  { transform: translateX(130%); opacity: 0; }
  43%  { transform: translateX(-130%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* texto que rueda: la palabra sube y entra una copia desde abajo */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll > span { display: block; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--gold-pale); }
.svc:hover .roll > span { transform: translateY(-100%); }

/* en pantallas táctiles no hay hover: el escudo se dibuja al aparecer la tarjeta */
@media (hover: none) {
  .svc-grid > li.is-in .svc-crest { stroke-dashoffset: 0; stroke-opacity: .14; transition: stroke-dashoffset 2.8s cubic-bezier(.33, 0, .2, 1) .5s; }
}
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc { min-height: 0; padding: 30px 24px 0; }
  .svc-foot { margin: auto -24px 0; padding: 18px 24px; }
  .svc-num { font-size: 68px; }
}

/* =========================================================
   PIEZAS COMUNES
   ========================================================= */
.kicker { font-family: var(--f-brand); font-size: 11px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 162, 39, .5);
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft);
  transition: color .3s, border-color .3s;
}
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.text-link:hover { color: var(--gold-pale); border-color: var(--gold-soft); }

/* Migas de pan en el hero de cada área */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; font-family: var(--f-brand); font-size: 11.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.crumbs a { color: var(--ink-2); transition: color .3s; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs > span[aria-hidden] { margin: 0 .9em; color: var(--muted); }
.hero--portrait .hero-media img { object-position: 50% 14%; }

/* =========================================================
   EL ABOGADO
   ========================================================= */
.about {
  position: relative; overflow: hidden;
  padding: clamp(110px, 12vw, 180px) 0;
  background: radial-gradient(55% 60% at 12% 45%, rgba(201, 162, 39, .07), transparent 70%), var(--bg);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 130px); align-items: center; }
.about-photo { margin: 0; }
.about-frame { position: relative; aspect-ratio: 4 / 5; isolation: isolate; }
.about-frame::before { /* marco dorado desplazado */
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid rgba(201, 162, 39, .45);
  transform: translate(22px, 22px); transition: transform 1.2s var(--ease-out);
}
.about-photo:hover .about-frame::before { transform: translate(14px, 14px); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: saturate(.88) contrast(1.04); }
.about-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 14, 20, .55), transparent 40%); pointer-events: none; }
.about-photo figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 44px; }
.about-cap-name { font-family: var(--f-brand); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.about-cap-role { font-size: 13px; color: var(--muted); }

.about-title { margin: 20px 0 32px; font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 5.4vw, 86px); line-height: .96; letter-spacing: -.02em; color: var(--ink); }
.about-text p { max-width: 560px; font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--ink-2); }
.about-text p + p { margin-top: 18px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border-top: 1px solid rgba(239, 233, 220, .12); }
.values li { padding: 30px 24px 0 0; }
.values li + li { padding-left: 24px; border-left: 1px solid rgba(239, 233, 220, .08); }
.val-num { font-family: var(--f-brand); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.val-title { margin: 14px 0 10px; font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1; color: var(--ink); }
.values p { font-size: 14px; line-height: 1.7; color: var(--muted); }

.about-sign { display: flex; align-items: center; gap: 18px; margin-top: 54px; }
.about-sign img { width: 44px; height: auto; }
.about-sign span { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-brand); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.about-sign small { font-size: 10px; letter-spacing: .42em; color: var(--muted); }

/* =========================================================
   ZONAS
   ========================================================= */
.zonas-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.zonas-anchors { margin: 0; }
.zonas-anchors > div { padding: 26px 0; border-top: 1px solid var(--paper-line); }
.zonas-anchors > div:last-child { border-bottom: 1px solid var(--paper-line); }
.zonas-anchors dt { font-family: var(--f-brand); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.zonas-anchors dd { margin: 12px 0 0; font-size: 14px; color: var(--paper-muted); }
.zonas-anchors strong { display: block; margin-bottom: 6px; font-family: var(--f-display); font-weight: 500; font-size: 38px; line-height: 1; color: var(--paper-ink); }
.zonas-list-head { margin: 34px 0 14px; font-family: var(--f-brand); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.zonas-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.zonas-list li {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 14.5px; color: var(--paper-muted); cursor: default; transition: color .3s;
}
.zonas-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); opacity: .55; flex: none; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .3s; }
.zonas-list li.is-key { color: var(--paper-ink); font-weight: 600; }
.zonas-list li.is-hot { color: var(--paper-ink); }
.zonas-list li.is-hot::before { opacity: 1; transform: scale(1.6); }

/* ---- Mapa ---- */
.zonas-map { position: relative; margin: 0; }
.mz { display: block; width: 100%; height: auto; overflow: visible; }
.mz-shape {
  fill: rgba(22, 24, 30, .035); stroke: var(--paper-ink); stroke-width: 1.6; stroke-opacity: .55; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
}
.mz-line { stroke: var(--gold-deep); stroke-width: 1; stroke-opacity: .28; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-opacity .35s, stroke-width .35s; }
.mz-pt { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); }
.mz-dot { fill: var(--gold-deep); stroke: var(--ivory); stroke-width: 3; transition: fill .3s; }
.mz-label { font-family: var(--f-body); font-size: 26px; font-weight: 600; fill: var(--paper-ink); paint-order: stroke; stroke: var(--ivory); stroke-width: 6px; stroke-linejoin: round; opacity: 0; transition: opacity .3s; pointer-events: none; }
.mz-sub { font-family: var(--f-brand); font-size: 16px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; fill: var(--gold-deep); }
.mz-pt { cursor: default; }
.mz-pt:hover .mz-label, .mz-pt.is-hot .mz-label { opacity: 1; }
.mz-pt:hover .mz-dot, .mz-pt.is-hot .mz-dot { fill: var(--paper-ink); }
.mz-line.is-hot { stroke-opacity: .9; stroke-width: 1.6; }

/* estudio y tribunales: siempre rotulados */
.mz-pt.is-home .mz-label, .mz-pt.is-court .mz-label { opacity: 1; }
.mz-pt.is-home .mz-dot { fill: var(--paper-ink); stroke: var(--gold); stroke-width: 3; }
.mz-pt.is-court .mz-dot { fill: var(--ivory); stroke: var(--paper-ink); stroke-width: 2.4; }
.mz-pulse { fill: none; stroke: var(--gold-deep); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }

.mz-scale line { stroke: var(--paper-muted); stroke-width: 1.4; }
.mz-scale text, .mz-north text, .mz-caba { font-family: var(--f-brand); font-size: 18px; letter-spacing: .2em; fill: var(--paper-muted); }
.mz-north path { fill: var(--paper-muted); }
.zonas-map figcaption { margin-top: 6px; text-align: right; font-size: 11px; color: var(--paper-muted); opacity: .7; }

/* entrada: el contorno se dibuja, las líneas salen del estudio y los puntos aparecen del más cercano al más lejano */
.zonas-map.is-in .mz-shape { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.65, 0, .35, 1) .2s; }
.zonas-map.is-in .mz-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.22, 1, .36, 1) calc(1.4s + var(--d) * .9s), stroke-opacity .35s, stroke-width .35s; }
.zonas-map.is-in .mz-pt { opacity: 1; transform: none; transition: opacity .5s calc(1.2s + var(--d) * .9s), transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(1.2s + var(--d) * .9s); }
.zonas-map.is-in .mz-pulse { animation: mz-pulse 2.8s ease-out 2.6s infinite; }
@keyframes mz-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.no-js .mz-shape, .no-js .mz-line { stroke-dashoffset: 0; }

@media (max-width: 960px) {
  .zonas-map { order: -1; max-width: 560px; margin: 0 auto 10px; }
}

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faq { --fq-line: rgba(239, 233, 220, .1); --fq-ink: var(--ink); --fq-muted: var(--ink-2); --fq-accent: var(--gold); padding: clamp(100px, 11vw, 160px) 0; }
.faq--dark { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.faq.paper { --fq-line: var(--paper-line); --fq-ink: var(--paper-ink); --fq-muted: var(--paper-muted); --fq-accent: var(--gold-deep); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 5vw, 80px); line-height: .95; letter-spacing: -.02em; color: var(--fq-ink); text-wrap: balance; }
.faq-note { max-width: 320px; margin: 24px 0 30px; font-size: 15px; line-height: 1.7; color: var(--fq-muted); }
.faq.paper .text-link { color: var(--gold-deep); border-color: rgba(142, 107, 26, .45); }
.fq-list { border-top: 1px solid var(--fq-line); }
.fq-item { border-bottom: 1px solid var(--fq-line); }
.fq-q { margin: 0; font: inherit; }
.fq-q button { width: 100%; display: grid; grid-template-columns: 56px 1fr 42px; align-items: center; gap: 16px; padding: 28px 0; text-align: left; color: var(--fq-ink); }
.fq-num { font-family: var(--f-brand); font-size: 11px; letter-spacing: .2em; color: var(--fq-muted); transition: color .4s; }
.fq-text { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; transition: color .4s; }
.fq-plus { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--fq-line); transition: background-color .5s, border-color .5s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.fq-plus::before, .fq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1px; background: var(--fq-accent); transform: translate(-50%, -50%); transition: transform .6s var(--ease-out), background-color .4s; }
.fq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-q button:hover .fq-plus { border-color: var(--fq-accent); transform: rotate(90deg); }
.fq-item.is-open .fq-num { color: var(--fq-accent); }
.fq-item.is-open .fq-plus { background: var(--fq-accent); border-color: var(--fq-accent); transform: rotate(180deg); }
.fq-item.is-open .fq-plus::before, .fq-item.is-open .fq-plus::after { background: var(--bg); }
.fq-item.is-open .fq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.fq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.fq-a > div { overflow: hidden; min-height: 0; }
.fq-item.is-open .fq-a { grid-template-rows: 1fr; }
.fq-a p { max-width: 640px; padding: 0 58px 32px 72px; font-size: 15.5px; line-height: 1.8; color: var(--fq-muted); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .7s var(--ease-out); }
.fq-item.is-open .fq-a p { opacity: 1; transform: none; transition-delay: .12s; }

/* =========================================================
   CONTACTO (cierre)
   ========================================================= */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 140px);
  background: radial-gradient(80% 60% at 50% 0%, rgba(201, 162, 39, .09), transparent 60%), #080A0F;
  border-top: 1px solid rgba(201, 162, 39, .18);
}
.contact-crest { position: absolute; right: -6%; top: 46%; z-index: -1; width: 40%; opacity: .04; transform: translateY(-50%); pointer-events: none; }
.contact-title { margin: 0 0 clamp(56px, 7vw, 96px); font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 7.6vw, 128px); line-height: .94; letter-spacing: -.025em; color: var(--ink); }
.contact-title span { display: block; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(50px, 7vw, 110px); align-items: start; }

.wa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 32px; }
.wa-form-head { grid-column: 1 / -1; font-family: var(--f-display); font-size: 32px; line-height: 1.1; color: var(--ink); }
.wa-form-head span { display: block; margin-top: 8px; font-family: var(--f-body); font-size: 13.5px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-family: var(--f-brand); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(239, 233, 220, .2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 16px/1.5 var(--f-body);
  transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0E1118; color: var(--ink); }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(239, 233, 220, .3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.is-error input, .field.is-error textarea { border-color: #E5484D; }
.wa-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.wa-form .btn:disabled { opacity: .6; cursor: progress; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; margin-top: -8px; font-size: 14px; color: var(--ink-2); }
.form-status[data-kind="ok"] { color: #6FD39B; }
.form-status[data-kind="error"] { color: #FF9195; }
.hp { position: absolute !important; left: -9999px; }

/* Mapa del estudio (Google Maps) en tonos oscuros */
.contact-map { position: relative; height: clamp(320px, 34vw, 430px); margin-top: clamp(60px, 7vw, 90px); overflow: hidden; border: 1px solid rgba(201, 162, 39, .2); background: #0E1118; }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.9) brightness(.95) sepia(.18); transition: filter .8s var(--ease-out); }
.contact-map:hover iframe { filter: grayscale(.6) invert(.9) contrast(.95) brightness(1) sepia(.12); }
.contact-map-card {
  position: absolute; right: 24px; bottom: 24px; display: grid; gap: 12px; max-width: 320px; padding: 22px 24px;
  background: rgba(8, 10, 15, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 39, .3); pointer-events: auto;
}
.contact-map-card img { width: 40px; height: auto; }
.contact-map-card p { font-size: 13.5px; color: var(--muted); }
.contact-map-card strong { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 24px; font-weight: 500; color: var(--ink); }
.contact-map-card .text-link { justify-self: start; }

/* Páginas simples (404 / gracias) */
.simple { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--topbar-h) + var(--nav-h) + 60px) 0 90px; background: radial-gradient(60% 60% at 80% 40%, rgba(201, 162, 39, .08), transparent 70%), var(--bg); }
.simple-crest { position: absolute; right: -8%; top: 50%; z-index: -1; width: 46%; opacity: .05; transform: translateY(-50%); }
.simple-title { margin: 20px 0 22px; font-family: var(--f-display); font-weight: 500; font-size: clamp(46px, 6vw, 96px); line-height: .96; letter-spacing: -.02em; color: var(--ink); }
.simple-text { max-width: 560px; font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--ink-2); }

.contact-data { margin: 0; border-top: 1px solid rgba(239, 233, 220, .12); }
.contact-data > div { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(239, 233, 220, .12); }
.contact-data dt { font-family: var(--f-brand); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.contact-data dd { margin: 0; font-family: var(--f-display); font-size: 26px; line-height: 1.15; color: var(--ink); }
.contact-data a { transition: color .3s; }
.contact-data a:hover { color: var(--gold-soft); }
.contact-data .is-urgent dt { color: #FF9195; }
.contact-data .is-urgent a { display: inline-flex; align-items: center; gap: 12px; color: #FFC2C4; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(80px, 9vw, 110px) 0 36px; background: #06080C; border-top: 1px solid rgba(201, 162, 39, .14); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 60px; }
.footer-brand img { width: 230px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-h { margin-bottom: 22px; font-family: var(--f-brand); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.footer-cols li { margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--gold-soft); }
.footer-urgent { display: flex; align-items: center; gap: 12px; color: #FF9195 !important; }
.footer-word {
  margin: clamp(60px, 8vw, 100px) 0 36px; text-align: center; white-space: nowrap; overflow: hidden;
  font-family: var(--f-brand); font-weight: 500; font-size: clamp(16px, 3.6vw, 60px); letter-spacing: .06em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 39, .24);
}
.footer-credit a { position: relative; color: var(--gold-soft); transition: color .3s; }
.footer-credit a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.footer-credit a:hover { color: var(--gold-pale); }
.footer-credit a:hover::after { transform: scaleX(1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 26px; border-top: 1px solid rgba(239, 233, 220, .08); font-size: 12.5px; color: var(--muted); }

/* Botón flotante de WhatsApp (escritorio) */
.wa-float {
  position: fixed; right: 28px; bottom: 28px; z-index: 80;
  display: flex; align-items: center; height: 60px; padding: 0;
  border-radius: 30px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #25D366 0%, #1DA851 55%, #128C7E 100%);
  box-shadow: 0 16px 36px -12px rgba(18, 140, 126, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  color: #fff;
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .6s var(--ease-out), transform .7s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s;
}
.is-loaded .wa-float { opacity: 1; transform: none; transition-delay: 1.6s, 1.6s, 0s; }
.wa-float::before { /* anillo que late muy suave cada tanto */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
  animation: wa-float-ring 4s ease-out 3s infinite;
}
@keyframes wa-float-ring { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 30%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
.wa-float-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: max-width .6s cubic-bezier(.65, 0, .35, 1), opacity .4s, padding .6s cubic-bezier(.65, 0, .35, 1);
}
.wa-float-ic { width: 60px; height: 60px; flex: none; display: grid; place-items: center; }
.wa-float-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.wa-float-ic svg .fill { fill: currentColor; stroke: none; }
.wa-float:hover { box-shadow: 0 20px 44px -12px rgba(18, 140, 126, .8), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.wa-float:hover .wa-float-label { max-width: 260px; opacity: 1; padding-left: 26px; transition-delay: 0s, .15s, 0s; }
.wa-float:hover .wa-float-ic svg { transform: rotate(-10deg) scale(1.08); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* Barra fija en mobile */
.mobile-bar { display: none; }

/* =========================================================
   PÁGINAS DE ÁREA
   ========================================================= */
/* Casos que atiendo */
.casos-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 90px); }
.caso { display: grid; grid-template-columns: 60px 1fr; padding: 34px 0 40px; border-top: 1px solid var(--paper-line); }
.caso-num { grid-row: span 2; padding-top: .6em; font-family: var(--f-brand); font-size: 12px; letter-spacing: .2em; color: var(--gold-deep); }
.caso-title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.05; color: var(--paper-ink); transition: transform .7s var(--ease-out); }
.caso p { grid-column: 2; max-width: 460px; font-size: 15.5px; line-height: 1.75; color: var(--paper-muted); }
.caso:hover .caso-title { transform: translateX(8px); }

/* Ante una detención (penal) */
.detencion {
  padding: clamp(100px, 11vw, 150px) 0;
  background: radial-gradient(70% 70% at 0% 40%, rgba(229, 72, 77, .1), transparent 60%), #0C0B0F;
  border-top: 1px solid rgba(229, 72, 77, .22);
}
.det-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(50px, 8vw, 120px); align-items: start; }
.det-side { position: sticky; top: 120px; }
.det-alert { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-brand); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #FF9195; }
.det-title { margin: 22px 0 40px; font-family: var(--f-display); font-weight: 500; font-size: clamp(42px, 4.8vw, 78px); line-height: .98; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.det-steps { border-top: 1px solid rgba(239, 233, 220, .1); }
.det-steps li { display: grid; grid-template-columns: 90px 1fr; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(239, 233, 220, .1); }
.det-num { font-family: var(--f-display); font-weight: 500; font-size: 64px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(229, 72, 77, .65); font-variant-numeric: lining-nums; }
.det-steps strong { display: block; margin-bottom: 6px; font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.05; color: var(--ink); }
.det-steps p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Cómo trabajo */
.proceso { padding: clamp(100px, 11vw, 160px) 0; background: var(--bg); }
.proceso-title { margin: 0 0 clamp(56px, 7vw, 90px); font-family: var(--f-display); font-weight: 500; font-size: clamp(46px, 6.4vw, 104px); line-height: .94; letter-spacing: -.025em; color: var(--ink); }
.pr-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(239, 233, 220, .12); }
.pr-steps::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-soft) 60%, rgba(201, 162, 39, .2)); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease-out) .3s; }
.pr-steps.is-in::before { transform: scaleX(1); }
.pr-steps li { position: relative; padding: 44px 32px 0 0; }
.pr-steps li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--bg); transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(.5s + var(--i, 0) * .4s); }
.pr-steps.is-in li::before { transform: scale(1); }
.pr-num { font-family: var(--f-brand); font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.pr-title { margin: 18px 0 12px; font-family: var(--f-display); font-weight: 500; font-size: 34px; line-height: 1; color: var(--ink); }
.pr-steps p { max-width: 270px; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* Otras áreas */
.otras { padding: clamp(90px, 10vw, 140px) 0; background: var(--bg-2); border-top: 1px solid rgba(239, 233, 220, .06); }
.otras-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.otras-title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 4.4vw, 70px); line-height: .98; letter-spacing: -.02em; color: var(--ink); }
.otras-list { border-top: 1px solid rgba(239, 233, 220, .12); }
.otras-list li { border-bottom: 1px solid rgba(239, 233, 220, .12); }
.otras-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.otras-list span { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; color: var(--ink-2); transition: color .4s, transform .7s var(--ease-out); }
.otras-list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.otras-list a:hover span { color: var(--ink); transform: translateX(10px); }

/* =========================================================
   RESPONSIVE de secciones
   ========================================================= */
@media (max-width: 960px) {
  .about-grid, .zonas-grid, .faq-grid, .contact-grid, .det-grid, .otras-grid, .footer-top { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .faq-side, .det-side { position: static; }
  .casos-list { grid-template-columns: 1fr; }
  .pr-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; border-top: 0; }
  .pr-steps::before { display: none; }
  .pr-steps li { padding-top: 28px; border-top: 1px solid rgba(239, 233, 220, .12); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 10, 15, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(201, 162, 39, .25);
    transform: translateY(110%); transition: transform .6s var(--ease-out);
  }
  .mobile-bar.is-visible { transform: none; }
  body.menu-open .mobile-bar { transform: translateY(110%); }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px;
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  }
  .mobile-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .mobile-bar svg .fill { fill: currentColor; stroke: none; }
  .mobile-bar-wa { color: #fff; border: 0; background: linear-gradient(135deg, #25D366 0%, #1DA851 55%, #128C7E 100%); box-shadow: 0 8px 20px -10px rgba(18, 140, 126, .8); }
  .wa-float { display: none; }
  .mobile-bar-call { color: #FFC2C4; border: 1px solid rgba(229, 72, 77, .6); background: rgba(229, 72, 77, .12); }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; }
  .values li, .values li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgba(239, 233, 220, .08); }
  .zonas-anchors strong { font-size: 32px; }
  .fq-q button { grid-template-columns: 30px 1fr 38px; gap: 12px; padding: 22px 0; }
  .fq-plus { width: 38px; height: 38px; }
  .fq-a p { padding: 0 0 26px 42px; font-size: 15px; }
  .wa-form { grid-template-columns: 1fr; }
  .wa-form .btn { width: 100%; }
  .contact-map-card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .contact-map { height: 420px; }
  .contact-data > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-data dd { font-size: 23px; }
  .footer-cols { grid-template-columns: 1fr; gap: 10px; }
  .footer-bottom { flex-direction: column; }
  .caso { grid-template-columns: 40px 1fr; }
  .det-steps li { grid-template-columns: 60px 1fr; }
  .det-num { font-size: 48px; }
  .det-steps strong { font-size: 25px; }
  .pr-steps { grid-template-columns: 1fr; }
  .crumbs { font-size: 10px; letter-spacing: .2em; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .hero-vertical { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .topbar-alert { font-size: 11.5px; }
  .topbar-meta li:first-child { display: none; }

  .hero { align-items: flex-end; }
  .hero-media {
    left: 0; width: 100%; bottom: auto; height: 72%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-media img { object-position: 60% 18%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(11, 14, 20, .7) 0%, rgba(11, 14, 20, .05) 22%, rgba(11, 14, 20, .2) 40%, rgba(11, 14, 20, .88) 62%, var(--bg) 76%),
      linear-gradient(90deg, rgba(11, 14, 20, .55) 0%, transparent 60%);
  }
  .js .hero-media { clip-path: inset(100% 0 0 0); }
  .hero-inner { padding-top: 46vh; padding-bottom: 96px; }
  .hero-title { margin: 18px 0 20px; }
  .hero-trust { gap: 18px 26px; margin-top: 40px; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .topbar-meta, .topbar-extra { display: none; }
  .topbar-inner { justify-content: center; }
  .eyebrow { font-size: 10.5px; letter-spacing: .24em; gap: 12px; }
  .eyebrow-line { width: 28px; }
  .brand-mark { width: 40px; }
  .brand-text { padding-left: 12px; }
  .brand-name { font-size: 13.5px; letter-spacing: .05em; }
  .brand-role { font-size: 8.5px; letter-spacing: .36em; }
  .nav-cta { display: none; }
  .hero-ctas .btn { width: 100%; }
  .btn-wa { justify-content: center; }
  .btn-lg { --h: 56px; padding: 0 22px; font-size: 12px; }
  .hero-trust { flex-direction: column; }
  .hero-inner { padding-bottom: 56px; }
  .pl-stage { width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
