/* =====================================================================
   Lex Intelligent Group — hoja de estilos
   Arquetipo: Glassmorphism Modern, adaptado al azul de marca.
   Concepto: capas de cristal sobre una malla azul en movimiento,
   como una pantalla de seguridad tranquila. Mobile-first.
   ===================================================================== */
:root {
  --navy: #0B2545;        /* color de marca */
  --navy-2: #13315C;
  --sky: #8DA9C4;
  --mist: #DCE6F1;
  --bg: #EEF2F7;          /* fondo general, gris azulado frío */
  --ink: #0F1B2D;
  --ink-soft: #4A5A70;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.7);
  --line: rgba(11, 37, 69, 0.12);
  --accent: #3E7CB1;      /* azul acero para detalles */
  --ok: #1F6F54;
  --no: #A23B3B;
  --warn-bg: #FFF7E6;
  --warn-line: #E2B04A;
  --warn-text: #5E4108;
  --font-display: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --wrap: 1140px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0; }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .45rem; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 4rem; }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: .7rem; margin-bottom: 2.25rem; max-width: 64ch; }
.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent); font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.ph {
  background: #FFF1B8; color: #5A4500; border: 1px dashed #C9A227;
  padding: 0 .3em; border-radius: 4px; font-family: var(--font-mono); font-size: .88em;
}

/* ---------- Malla de fondo animada ---------- */
.mesh { position: absolute; inset: -20% -10% auto; height: 140%; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.mesh .m1 { width: 46vw; height: 46vw; min-width: 320px; min-height: 320px; left: -8%; top: 0; background: #8DA9C4; animation: drift1 26s ease-in-out infinite; }
.mesh .m2 { width: 40vw; height: 40vw; min-width: 280px; min-height: 280px; right: -6%; top: 10%; background: #B9D3EE; animation: drift2 32s ease-in-out infinite; }
.mesh .m3 { width: 34vw; height: 34vw; min-width: 240px; min-height: 240px; left: 35%; top: 45%; background: #3E7CB1; opacity: .28; animation: drift1 38s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%, 10%) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10%, 8%) scale(1.1); } }

/* ---------- Cabecera flotante de cristal ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 50; margin-top: 10px; }
.nav-glass {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255,255,255,.82); border: 1px solid var(--glass-line);
  border-radius: 18px; padding: .55rem .6rem .55rem .9rem;
  box-shadow: 0 10px 30px -18px rgba(11,37,69,.45);
}
@supports (backdrop-filter: blur(10px)) {
  .nav-glass { background: rgba(255,255,255,.6); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--navy); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 6px 10px rgba(11,37,69,.25)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.nav-toggle {
  background: var(--navy); color: #fff; border: 0; border-radius: 12px;
  padding: .55rem .9rem; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.site-nav { display: none; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; }
.mobile-panel {
  margin-top: .5rem; background: rgba(255,255,255,.92); border: 1px solid var(--glass-line);
  border-radius: 18px; padding: .75rem 1rem 1rem; box-shadow: 0 20px 40px -24px rgba(11,37,69,.5);
}
.mobile-panel ul { display: grid; }
.mobile-panel a { display: block; padding: .7rem .2rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-panel li:last-child a { border: 0; }
.mobile-panel .btn { margin-top: .6rem; width: 100%; color: #fff; }
.desktop-nav { display: none; }
@media (min-width: 980px) {
  .nav-toggle, .site-nav.mobile { display: none !important; }
  .desktop-nav { display: flex; align-items: center; gap: 1.6rem; }
  .desktop-nav ul { display: flex; gap: 1.6rem; position: relative; }
  .desktop-nav ul a { position: relative; font-size: .95rem; font-weight: 500; padding: .35rem 0; color: var(--ink-soft); transition: color .2s; }
  .desktop-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--navy); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
  .desktop-nav ul a:hover, .desktop-nav ul a[aria-current="page"] { color: var(--navy); }
  .desktop-nav ul a:hover::after, .desktop-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 14px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff;
  box-shadow: 0 14px 30px -16px rgba(11,37,69,.7);
  transition: background .2s, box-shadow .2s, color .2s;
  will-change: transform;
}
.btn:hover { background: var(--navy-2); color: #fff; box-shadow: 0 18px 36px -16px rgba(11,37,69,.8); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: rgba(255,255,255,.5); color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; border-radius: 12px; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Cristal ---------- */
.glass {
  position: relative;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 48px -32px rgba(11,37,69,.45);
}
@supports (backdrop-filter: blur(10px)) {
  .glass { background: var(--glass); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 3rem 4rem; margin-top: -78px; padding-top: calc(78px + 2.5rem); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.3rem; align-content: start; min-width: 0; }
.hero-badge {
  justify-self: start; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--navy);
  background: rgba(255,255,255,.65); border: 1px solid var(--glass-line); border-radius: 999px; padding: .35rem .8rem;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31,111,84,.18); }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hero-points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; font-size: .97rem; color: var(--ink-soft); }
.hero-points li::before { content: ""; width: 1.05rem; height: 1.05rem; margin-top: .25rem; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.hero-art { position: relative; min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 50px 60px rgba(11,37,69,.28)); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero { padding-block: calc(78px + 4rem) 5rem; }
}

/* ---------- Cabecera de página interior ---------- */
.page-head { position: relative; overflow: hidden; margin-top: -78px; padding-top: calc(78px + 3rem); padding-bottom: 3rem; }
.page-head > .wrap { position: relative; z-index: 1; display: grid; gap: .9rem; }
.page-head h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
.crumbs { font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { padding: 1.5rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.card p { color: var(--ink-soft); }
.tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Tarjetas de tipo de estafa: solo título */
.type-card {
  text-decoration: none; color: var(--navy); padding: 1.4rem 1.4rem 1.3rem;
  display: grid; grid-template-rows: auto 1fr auto; gap: 1.1rem; min-height: 190px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.type-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 34px 60px -30px rgba(11,37,69,.55); color: var(--navy); }
.type-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; }
.type-icon svg { width: 26px; height: 26px; }
.type-card h3 { font-size: 1.3rem; align-self: end; }
.type-card .go { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; font-weight: 600; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: .8rem; }
.type-card .go span:last-child { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,37,69,.08); color: var(--navy); transition: background .25s, color .25s, transform .25s; }
.type-card:hover .go span:last-child { background: var(--navy); color: #fff; transform: translateX(3px); }

/* Pasos (secuencia real) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: paso; }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: paso; padding: 1.5rem; display: grid; gap: .55rem; align-content: start; }
.steps li::before {
  content: counter(paso); width: 2.2rem; height: 2.2rem; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--navy); margin-bottom: .4rem;
}
.steps li .tag { margin-bottom: -.2rem; }
.steps li p { color: var(--ink-soft); font-size: .97rem; }

/* Sí / No */
.yesno { display: grid; gap: 1rem; }
@media (min-width: 760px) { .yesno { grid-template-columns: 1fr 1fr; } }
.ticks, .crosses, .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticks li, .crosses li, .checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; align-items: start; }
.ticks li::before, .checks li::before { content: ""; width: 1.15rem; height: 1.15rem; margin-top: .22rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.checks li::before { background-color: var(--navy); }
.crosses li::before { content: ""; width: 1.15rem; height: 1.15rem; margin-top: .22rem; border-radius: 50%; background: var(--no) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.empty-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.empty-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; }
.empty-list li::before { content: ""; width: 1.05rem; height: 1.05rem; margin-top: .25rem; border-radius: 5px; border: 1.5px solid var(--navy-2); }

/* Avisos */
.alert {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-md);
  padding: 1.25rem 1.35rem; display: grid; gap: .45rem; color: var(--warn-text);
}
.alert h3, .alert strong { color: #4A3205; }

/* Consulta inicial */
.offer { display: grid; gap: 1.5rem; padding: 2rem 1.5rem; }
@media (min-width: 800px) { .offer { grid-template-columns: .8fr 1.2fr; align-items: center; padding: 2.5rem; } }
.offer .price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--navy); letter-spacing: -.03em; line-height: 1; }

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 800px; }
.faq details { padding: 0 1.3rem; border-radius: var(--r-md); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 650; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,37,69,.08); font-weight: 600; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.1rem; color: var(--ink-soft); }

/* Banda CTA */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #DCE6F1; border-radius: 28px; padding: 2.25rem 1.5rem; display: grid; gap: 1.25rem; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.cta-band::before { width: 320px; height: 320px; right: -80px; top: -120px; background: #3E7CB1; opacity: .55; }
.cta-band::after { width: 260px; height: 260px; left: -60px; bottom: -140px; background: #8DA9C4; opacity: .35; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C3D3E4; max-width: 58ch; }
@media (min-width: 800px) { .cta-band { padding: 3rem; grid-template-columns: 1fr auto; align-items: center; } }

/* Recursos oficiales */
.resources { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.resources li { padding: 1rem 1.15rem; display: grid; gap: .2rem; border-radius: var(--r-md); }
.resources li span { color: var(--ink-soft); font-size: .95rem; }
.resources li strong { color: var(--navy); }

/* Ilustración decorativa */
.deco { display: grid; place-items: center; padding: 1.5rem; }
.deco svg { width: 100%; max-width: 420px; animation: bob 8s ease-in-out infinite; }

/* Formularios */
.form-shell { max-width: 740px; overflow: hidden; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: 1rem 1rem 0; }
.progress span { display: grid; gap: .45rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-align: left; }
.progress span::before { content: ""; height: 4px; border-radius: 4px; background: rgba(11,37,69,.12); transition: background .3s; }
.progress span.active { color: var(--navy); font-weight: 700; }
.progress span.active::before, .progress span.done::before { background: var(--navy); }
form .step { padding: 1.5rem; display: grid; gap: 1.1rem; }
@media (min-width: 700px) { form .step { padding: 2rem; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 650; color: var(--navy); font-size: .97rem; }
.field .hint { font-size: .87rem; color: var(--ink-soft); }
fieldset.field { border: 0; padding: 0; margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.9);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(62,124,177,.2); }
textarea { min-height: 150px; resize: vertical; }
.choices { display: grid; gap: .5rem; }
@media (min-width: 560px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; cursor: pointer; font-weight: 500; color: var(--ink); background: rgba(255,255,255,.7); transition: border-color .2s, background .2s; }
.choice:has(input:checked) { border-color: var(--navy); background: #fff; }
.choice input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; margin: 0; }
.check { display: grid; grid-template-columns: 1.2rem 1fr; gap: .6rem; align-items: start; font-size: .94rem; color: var(--ink); font-weight: 400; }
.check input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; margin-top: .25rem; }
.form-nav { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding-top: .5rem; }
.error-msg { color: var(--no); font-size: .9rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
a.hp:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; z-index: 80; background: #fff; color: var(--navy); padding: .6rem 1rem; border-radius: 10px; }
.form-result { padding: 2rem; display: grid; gap: .8rem; }

/* Páginas legales */
article.legal { padding: 1.5rem; max-width: 820px; }
@media (min-width: 700px) { article.legal { padding: 2.5rem; } }
.post-meta { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); }

/* Pie */
.site-footer { background: var(--navy); color: #AFC1D4; margin-top: 4rem; font-size: .93rem; }
.site-footer .wrap { padding-block: 3.5rem 2rem; display: grid; gap: 2rem; }
.footer-cols { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); font-weight: 500; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #DCE5EF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-brand { display: grid; gap: .8rem; align-content: start; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: var(--sky); }
.footer-tag { font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-weight: 600; }
.addr { font-style: normal; display: grid; gap: .2rem; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; font-size: .84rem; color: #8FA3BA; display: grid; gap: .5rem; }

/* ---------- Revelado al hacer scroll ----------
   El contenido es visible por defecto. Solo se oculta cuando JS ha cargado
   (clase .js en <html>), y una red de seguridad lo muestra a los 6 s. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Ajustes */
.desktop-nav ul { list-style: none; margin: 0; padding: 0; }
.desktop-nav ul a { text-decoration: none; }
.site-footer .brand-mark { width: 54px; height: 54px; filter: none; }
.site-footer .brand-mark > path:nth-of-type(1) { fill: #fff; }
.site-footer .brand-mark > path:nth-of-type(2) { stroke: #8DA9C4; }
.site-footer .brand-mark g { stroke: #0B2545; }
@media (max-width: 440px) { .nav-glass .brand-name small { display: none; } .nav-glass .brand-name { font-size: 1rem; } .nav-glass .brand-mark { width: 42px; height: 42px; } }
[hidden] { display: none !important; }
.prose ul.resources, .prose ul.checks, .prose ul.ticks, .prose ul.empty-list { padding-left: 0; }
.offer .price { margin-top: .4rem; }
.prose { align-content: start; }
#proceso, #tipos { scroll-margin-top: 100px; }

/* ---------- Área de cliente ---------- */
.form-narrow { max-width: 480px; }
.sublabel { font-weight: 500 !important; font-size: .9rem !important; color: var(--ink-soft) !important; }
input[type="password"], input[type="date"] {
  font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,.9);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .85rem; width: 100%;
}
.notice { border-radius: 12px; padding: .8rem 1rem; font-weight: 500; display: grid; gap: .3rem; }
.notice-ok { background: #E6F3EE; color: #164E3B; border: 1px solid #B5DCCB; }
.notice-bad { background: #FBECEC; color: #7A2424; border: 1px solid #EBC2C2; }
.account-head { grid-template-columns: 1fr auto; align-items: end; }
.account-grid { display: grid; gap: 1rem; }
.account-grid > .notice { grid-column: 1 / -1; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.h-sm { font-size: 1.35rem; }
.muted { color: var(--ink-soft); }
.fine { font-size: .85rem; color: var(--ink-soft); }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tracker { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .1rem; }
.tracker li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; align-items: center; padding: .45rem 0; color: var(--ink-soft); position: relative; }
.tracker li::before { content: ""; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid rgba(11,37,69,.2); background: #fff; z-index: 1; }
.tracker li:not(:last-child)::after { content: ""; position: absolute; left: calc(.625rem - 1px); top: 1.6rem; bottom: -.55rem; width: 2px; background: rgba(11,37,69,.12); }
.tracker li.done { color: var(--ink); }
.tracker li.done::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; border-color: var(--navy); }
.tracker li.done::after { background: var(--navy); }
.tracker li.current { color: var(--navy); font-weight: 700; }
.tracker li.current::before { border-color: var(--navy); box-shadow: 0 0 0 5px rgba(11,37,69,.12); background: radial-gradient(circle, var(--navy) 38%, #fff 42%); }
.totals { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.total { background: rgba(255,255,255,.7); border: 1px solid var(--glass-line); border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .1rem; }
.total-num { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; word-break: break-all; }
.total-asset { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; margin-inline: -.25rem; }
.tx-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 620px; }
.tx-table th { text-align: left; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.tx-table td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tx-table tr:last-child td { border-bottom: 0; }
.tx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hash { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); word-break: break-all; }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: #E6F3EE; color: #164E3B; }
.badge-wait { background: #FFF4DB; color: #6B4A0A; }
.badge-bad { background: #FBECEC; color: #7A2424; }
.wallet-form { display: grid; gap: 1rem; }
@media (min-width: 800px) { .wallet-form { grid-template-columns: 1fr 1fr; } .wallet-form .form-nav { grid-column: 1 / -1; } }
.search-row, .add-tx { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-row > input, .search-row > select, .add-tx > input { flex: 1 1 220px; }
.add-tx > select { flex: 0 1 240px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0; }
.kv dt { color: var(--ink-soft); font-size: .9rem; }
.kv dd { margin: 0; min-width: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--no); text-decoration: underline; cursor: pointer; }
.test-banner { position: relative; z-index: 40; margin: .6rem auto 0; max-width: 1140px; background: #A23B3B; color: #fff; text-align: center; font-weight: 700; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; padding: .5rem 1rem; border-radius: 10px; }
@media (max-width: 640px) { .account-head { grid-template-columns: 1fr; align-items: start; } }
/* WhatsApp */
.btn-wa { background: #1F7A4D; border-color: #1F7A4D; color: #fff; box-shadow: 0 14px 30px -16px rgba(31,122,77,.7); }
.btn-wa:hover { background: #18663F; border-color: #18663F; color: #fff; }
.wa-icon { width: 1.15em; height: 1.15em; flex: none; }
.wa-inline { justify-self: start; margin-top: .5rem; }
.wa-float {
  position: fixed; z-index: 70;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem;
  padding: .8rem 1.1rem; border-radius: 999px;
  box-shadow: 0 16px 34px -12px rgba(16,90,50,.6);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(16,90,50,.7); }
.wa-float .wa-icon { width: 1.5rem; height: 1.5rem; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }
/* Color por tipo de fraude */
.type-cripto    { --tc: #E08A12; }
.type-inversion { --tc: #1F8A5B; }
.type-trading   { --tc: #6A4BC9; }
.type-romantica { --tc: #D0436F; }
.type-card .type-icon { background: var(--tc, var(--navy)); box-shadow: 0 10px 20px -10px var(--tc, var(--navy)); }
.type-card:hover .go span:last-child { background: var(--tc, var(--navy)); }
.type-card::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--tc, var(--navy)); opacity: .85; }
/* Pasos en colores de semáforo: del rojo (inicio) al verde (resuelto) */
.steps li:nth-child(1)::before { background: #D64545; box-shadow: 0 8px 16px -8px #D64545; }
.steps li:nth-child(2)::before { background: #E8801A; box-shadow: 0 8px 16px -8px #E8801A; }
.steps li:nth-child(3)::before { background: #F2C230; color: #3D2E00; box-shadow: 0 8px 16px -8px #D9A800; }
.steps li:nth-child(4)::before { background: #2E9E5B; box-shadow: 0 8px 16px -8px #2E9E5B; }
