/* ==========================================================================
   RedSindical — sistema de diseño
   Colores, tipografía y componentes heredados del diseño original.
   ========================================================================== */

:root {
  --blue: #4166d9;
  --blue-600: #3a5dcc;
  --blue-700: #2f50bd;
  --blue-800: #26429e;
  --blue-50: #e9edf8;
  --blue-25: #f4f6fb;
  --night: #070b22;
  --navy: #111842;
  --navy-2: #182152;
  --slate: #252e62;
  --slate-2: #363f78;
  --steel: #a3abd0;
  --steel-2: #7880a8;
  --yel: #ffd23f;
  --yel-2: #f2bf1d;
  --ink: #0b1030;
  --text: #353c57;
  --muted: #636a85;
  --line: #e2e5ee;
  --line-2: #d2d7e6;
  --bg: #ffffff;
  --bg-soft: #f2f4f9;
  --ok: #0f8a4b;
  --ok-bg: #e7f7ee;
  --warn: #a45f00;
  --warn-bg: #fff4de;
  --bad: #c62828;
  --bad-bg: #fdecec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 16, 48, .05), 0 8px 24px rgba(11, 16, 48, .06);
  --shadow-lg: 0 24px 60px rgba(11, 16, 48, .18);
  --net: radial-gradient(rgba(163, 171, 208, .16) 1px, transparent 1.3px) 0 0 / 24px 24px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(21, 94, 239, .28); }
.btn-primary:hover { background: var(--blue-800); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
.btn-ghost-white { color: #fff; border-color: rgba(255, 255, 255, .6); background: transparent; }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { color: var(--blue-700); border-color: var(--line-2); background: #fff; }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-25); }
.btn-soft { background: var(--blue-50); color: var(--blue-700); }
.btn-soft:hover { background: #dce8ff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-text { background: none; border: 0; color: var(--blue-700); padding: 0 8px; min-height: 36px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.arrow { transition: transform .15s; }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(3px); }

/* ---------- Encabezado público ---------- */
/* ---------- Barra de aviso ---------- */
.announce { background: var(--ink); color: #fff; font-size: .88rem; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-block: 6px; }
.announce a { color: #dfe7ff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.announce a b { color: #fff; }
.announce a:hover { color: #fff; }
.announce a .arrow { width: 15px; height: 15px; transition: transform .2s; }
.announce a:hover .arrow { transform: translateX(3px); }
.announce-new { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: #ffd23f; padding: 3px 9px; border-radius: 99px; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); transition: box-shadow .25s, background .25s; }
.site-header.scrolled { background: rgba(59, 114, 249, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 10px 30px rgba(16, 16, 68, .18); }
.nav { display: flex; align-items: center; gap: 20px; height: 80px; transition: height .25s; }
.site-header.scrolled .nav { height: 66px; }
.nav-logo { flex: none; }
.nav-logo img { width: 164px; transition: width .25s; }
.site-header.scrolled .nav-logo img { width: 146px; }
.nav nav { display: flex; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-drop { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #fff; text-decoration: none; font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; opacity: .94; transition: background .15s, opacity .15s; }
.nav-links > li > a:hover, .nav-drop:hover, .nav-drop[aria-expanded="true"] { opacity: 1; background: rgba(255, 255, 255, .14); }
.nav-links > li > a[aria-current="page"], .nav-drop.is-current { opacity: 1; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.nav-drop .chev { transition: transform .2s; }
.nav-drop[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-pill { font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #ffd23f; padding: 2px 7px; border-radius: 99px; }

.mm { position: absolute; top: calc(100% + 14px); left: -12px; width: 620px; padding: 14px; background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(16, 16, 68, .28); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.mm::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-mega.open .mm { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; text-decoration: none; color: var(--text); transition: background .15s; }
.mega-item:hover, .mega-item[aria-current="page"] { background: var(--blue-25, #f3f7ff); }
.mega-art { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-50); display: grid; place-items: center; overflow: hidden; }
.mega-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.mega-item:hover .mega-art img { transform: scale(1.1) rotate(-3deg); }
.mega-item strong { display: block; color: var(--ink); font-size: .98rem; }
.mega-item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, #3b72f9, #155eef); color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .88rem; }
.mega-foot b { display: block; color: #fff; font-size: .98rem; }
.mega-foot .arrow { flex: none; color: #fff; transition: transform .2s; }
.mega-foot:hover .arrow { transform: translateX(4px); }

.nav-search { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 230px; min-width: 0; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .15s, border-color .15s; }
.nav-search:focus-within { background: #fff; color: var(--blue-700); border-color: #fff; }
.nav-search svg { flex: none; }
.nav-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: inherit; font: inherit; font-size: .92rem; }
.nav-search input::placeholder { color: rgba(255, 255, 255, .78); }
.nav-search:focus-within input { color: var(--ink); }
.nav-search:focus-within input::placeholder { color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-search + .nav-actions { margin-left: 0; }

.nav-toggle { display: none; margin-left: auto; position: relative; width: 46px; height: 46px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .14); cursor: pointer; }
.nav-toggle span { position: absolute; left: 13px; width: 20px; height: 2.4px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (min-width: 1081px) { .nav-menu { display: contents; } }
@media (min-width: 1081px) and (max-width: 1380px) { .nav-search { display: none; } .nav-search + .nav-actions { margin-left: auto; } }
@media (max-width: 1080px) {
  .nav, .site-header.scrolled .nav { height: 68px; }
  .nav-logo img, .site-header.scrolled .nav-logo img { width: 138px; }
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; inset: var(--hdr-b, 108px) 0 0; overflow-y: auto; background: var(--blue); padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nav nav { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links > li > a, .nav-drop { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.12rem; border-radius: 16px; }
  .mm { position: static; width: auto; padding: 8px; margin: 6px 0 4px; border-radius: 20px; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .has-mega.open .mm { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-foot { display: none; }
  .nav-search { flex: none; max-width: none; height: 50px; order: -1; }
  .nav-actions { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; }
  .nav-actions .btn { min-height: 50px; }
  .nav-actions .btn:only-child { grid-column: 1 / -1; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .announce { font-size: .8rem; }
  .announce-in { justify-content: flex-start; }
  .announce a b, .announce a .arrow { display: none; }
  .announce a { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.hero h1, .hero h2 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .9); }
.hero .eyebrow { color: #cfe0ff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 32px; padding: 56px 0; position: relative; z-index: 1; }
.hero-copy { position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; }

/* Inicio: la ilustración ocupa todo el alto del hero, anclada a la derecha (su fondo es el mismo azul) */
.hero-home { min-height: clamp(560px, 50vw, 720px); display: flex; align-items: center; }
.hero-home .hero-inner { position: static; display: block; width: min(100% - 40px, var(--max)); padding: 64px 0; }
.hero-home .hero-copy { max-width: min(540px, 46%); }
.hero-home h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.hero-home .hero-art { position: absolute; right: 0; bottom: 0; height: 100%; margin: 0; }
.hero-home .hero-art img { height: 100%; width: auto; max-width: none; }

/* Nosotros / Membresía: fondo claro e ilustración grande, como el diseño original */
.hero-light { background: var(--blue-25); color: var(--text); }
.hero-light h1, .hero-light h2 { color: var(--ink); }
.hero-light .lead { color: var(--muted); }
.hero-light .eyebrow { color: var(--blue-700); }
.hero-light .hero-inner { padding: 48px 0 0; align-items: end; min-height: 520px; }
.hero-light .hero-copy { align-self: center; padding-bottom: 48px; }
.hero-light .hero-art img { width: 100%; }
.hero-art-phone img { max-height: 540px; width: auto !important; margin-left: auto; }

@media (max-width: 900px) {
  .hero-inner, .hero-light .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; gap: 8px; }
  .hero-light .hero-copy { padding-bottom: 8px; }
  .hero-home { display: block; min-height: 0; }
  .hero-home .hero-inner { padding: 40px 0 0; }
  .hero-home .hero-copy { max-width: none; }
  .hero-home .hero-art { position: static; height: auto; }
  /* en móvil mostramos solo la parte de la imagen con los personajes */
  .hero-home .hero-art img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 92% 100%; }
  .hero-art-phone img { max-height: 380px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-badges { gap: 10px 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 48px; }
.section-head.center { max-width: 720px; margin-inline: auto; margin-bottom: 56px; }
@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .section-head, .section-head.center { margin-bottom: 32px; }
  .card { padding: 22px; }
  .plan { padding: 26px 22px; }
  .site-footer { margin-top: 64px; padding-top: 48px; }
  .lead { font-size: 1.05rem; }
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card-media { aspect-ratio: 3 / 2; display: grid; place-items: center; margin: -8px -8px 16px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--blue-50); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon img { width: 52px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-top: 8px; }

/* Pasos */
.step { position: relative; }
.step-num { position: absolute; top: 18px; left: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 800; display: grid; place-items: center; z-index: 1; box-shadow: 0 4px 12px rgba(21, 94, 239, .3); }

/* Bloque dividido */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 2; } }

/* Valores */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--blue-50); color: var(--blue-700); font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 999px; }

/* Sectores */
.sector { text-align: center; }
.sector { padding: 20px; }
.sector .card-media { aspect-ratio: 1; margin: 0 0 12px; }
.sector h3 { font-size: 1.05rem; }
.sector p { font-size: .92rem; color: var(--muted); }

/* Planes */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; padding: 32px; }
.plan-tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-700); }
.plan h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.plan-price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin: 12px 0 4px; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-desc { color: var(--muted); min-height: 3.2em; max-width: 68%; }
.plan > .plan-tag, .plan > h3, .plan > .plan-price { max-width: 64%; }
.plan-art { position: absolute; top: 22px; right: 18px; width: 118px; height: 118px; display: flex; justify-content: center; align-items: center; }
.plan-art img { max-height: 100%; width: auto; object-fit: contain; }
.plan ul { border-top: 1px solid var(--line); padding-top: 22px !important; margin-top: 8px !important; }
.plan.featured ul { border-top-color: rgba(255, 255, 255, .14); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; margin-top: 1px; }
.check svg { width: 13px; height: 13px; }
.plan.featured { background: var(--navy); border-color: var(--navy); color: #cbd5e1; transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .plan-price { color: #fff; }
.plan.featured .plan-tag { color: #93b4ff; }
.plan.featured .plan-desc, .plan.featured .plan-price small { color: #a5b4cf; }
.plan.featured .check { background: rgba(255, 255, 255, .12); color: #fff; }
.plan-badge { position: absolute; top: -14px; left: 32px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
@media (max-width: 800px) { .plan.featured { transform: none; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); padding: 20px 32px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* CTA */
.cta { background: var(--blue); border-radius: 28px; padding: 64px 48px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .07); }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.1rem; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 44px 28px; } }

/* Pie de página */
/* ---------- Pie de página ---------- */
.site-footer { position: relative; margin-top: 96px; padding: 72px 0 28px; background: radial-gradient(70% 90% at 100% 0%, rgba(59, 114, 249, .35), transparent 60%), var(--ink); color: #b8c2dc; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.site-footer > .container { position: relative; }
.foot-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-mega { margin: 0; font-size: clamp(2.6rem, 6.2vw, 5.2rem); font-weight: 800; letter-spacing: -.055em; line-height: .95; color: #fff; }
.foot-sub { margin: 16px 0 0; max-width: 46ch; font-size: 1.05rem; }
.foot-search label { display: block; color: #fff; font-weight: 700; margin-bottom: 12px; }
.foot-search > div { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.foot-search > div:focus-within { border-color: #ffd23f; }
.foot-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: inherit; padding: 0 16px; }
.foot-search input::placeholder { color: #8f9bbd; }
.foot-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-tags span { color: #8f9bbd; font-size: .88rem; margin-right: 4px; }
.foot-tags a { color: #dfe7ff; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); transition: background .15s, color .15s, border-color .15s; }
.foot-tags a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; }
.footer-brand img { width: 160px; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; margin: 0 0 20px; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.site-footer h4.h4-gap { margin-top: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer ul a { color: #b8c2dc; text-decoration: none; transition: color .15s; }
.site-footer ul a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: grid; place-items: center; color: #fff; transition: background .15s; }
.social a:hover { background: #ff0033; border-color: #ff0033; }
.social svg { width: 22px; height: 22px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; color: #8f9bbd; font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #b8c2dc; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) {
  .foot-hero { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { gap: 32px 20px; }
  .foot-tags span { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Formularios
   ========================================================================== */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 114, 249, .15); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.password-toggle svg { width: 20px; height: 20px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-700); flex: none; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.strength { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }

/* ==========================================================================
   Páginas de acceso (login / registro)
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) 1.2fr; }
.auth-aside { background: var(--blue); color: #fff; padding: 40px 48px 0; display: flex; flex-direction: column; gap: 40px; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; left: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.auth-aside h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.auth-aside p { color: rgba(255, 255, 255, .86); }
.auth-aside .logo img { width: 150px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; }
.auth-points img { width: 48px; height: 48px; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.auth-points strong { display: block; color: #fff; }
.auth-points span { font-size: .9rem; color: rgba(255, 255, 255, .82); }
.auth-art { margin-top: auto; position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--bg-soft); }
.auth-box { width: min(100%, 520px); }
.auth-box .card { padding: 36px; }
.auth-box h1 { font-size: 1.9rem; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.auth-mobile-logo { display: none; margin-bottom: 24px; }
.auth-mobile-logo img { width: 150px; }
.stepper { display: flex; gap: 8px; margin-bottom: 24px; }
.stepper div { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.stepper div::before { content: attr(data-n); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 700; flex: none; }
.stepper div.active { color: var(--ink); }
.stepper div.active::before, .stepper div.done::before { background: var(--blue-700); color: #fff; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.plan-pick label { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; display: grid; gap: 2px; font-size: .85rem; transition: border-color .15s, background .15s; }
.plan-pick strong { color: var(--ink); font-size: .92rem; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border-color: var(--blue-700); background: var(--blue-25); box-shadow: 0 0 0 3px rgba(59, 114, 249, .12); }
.plan-pick label:has(input:focus-visible) { outline: 3px solid var(--blue); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: block; }
}
@media (max-width: 480px) { .plan-pick { grid-template-columns: 1fr; } .auth-box .card { padding: 24px; } }

/* ==========================================================================
   Área privada (miembros y back office)
   ========================================================================== */
.shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; background: var(--bg-soft); }
.sidebar { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 24px 16px; }
.sidebar-logo { padding: 4px 12px 24px; display: block; }
.sidebar-logo img { width: 150px; }
.sidebar-logo .tag { display: inline-block; margin-top: 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; background: var(--navy); color: #fff; padding: 3px 8px; border-radius: 6px; }
.side-nav { display: grid; gap: 2px; overflow-y: auto; flex: 1; align-content: start; }
.side-nav .group { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; padding: 18px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.side-nav a svg { width: 20px; height: 20px; color: #94a3b8; flex: none; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.active { background: var(--blue-50); color: var(--blue-700); font-weight: 700; }
.side-nav a.active svg { color: var(--blue-700); }
.side-nav .count { margin-left: auto; background: var(--blue-700); color: #fff; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.side-user { border-top: 1px solid var(--line); padding: 16px 8px 0; display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .9rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who strong { display: block; color: var(--ink); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: .8rem; color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.main { min-width: 0; padding: 32px 40px 64px; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.scrim { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 0 0 auto; width: 280px; z-index: 60; transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(16, 16, 68, .4); z-index: 55; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .topbar img { width: 120px; order: -1; }
  .topbar #nav-open { margin-left: auto; }
  .main { padding: 24px 16px 56px; }
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel h2 { font-size: 1.1rem; margin: 0; }
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (max-width: 1200px) { .span-3 { grid-column: span 6; } .span-8, .span-7, .span-5, .span-4 { grid-column: span 12; } }
@media (max-width: 700px) { .dash > * { grid-column: span 12 !important; } }
.dash > .panel + .panel { margin-top: 0; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: .85rem; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.stat .s { font-size: .82rem; color: var(--muted); }

/* Credencial digital */
.member-card { border-radius: 22px; padding: 26px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #5b8cff 0%, var(--blue-700) 45%, var(--navy) 100%); position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(21, 94, 239, .3); }
.member-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); }
.member-card img { width: 120px; filter: brightness(0) invert(1); }
.member-card .mc-plan { position: absolute; top: 24px; right: 24px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 99px; }
.member-card .mc-name { margin-top: auto; font-size: 1.35rem; font-weight: 700; }
.member-card .mc-meta { display: flex; gap: 28px; font-size: .8rem; opacity: .85; margin-top: 6px; }
.member-card .mc-meta b { display: block; font-size: 1rem; opacity: 1; letter-spacing: .06em; }

.progress { height: 10px; border-radius: 99px; background: var(--blue-50); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue-700); border-radius: 99px; transition: width .5s ease; }

.list { display: grid; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item strong { display: block; color: var(--ink); }
.list-item small { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
.empty img { width: 120px; margin: 0 auto 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.blue { background: var(--blue-50); color: var(--blue-700); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.navy { background: var(--navy); color: #fff; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.benefit { display: flex; flex-direction: column; gap: 8px; position: relative; }
.benefit .discount { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); }
.benefit.locked { background: var(--bg-soft); }
.benefit.locked > :not(.lock-note) { opacity: .55; }
.lock-note { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--navy); margin-top: auto; padding-top: 8px; }
.lock-note svg { width: 16px; height: 16px; }

.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .card-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; flex: none; }
.accordion summary .card-icon img { width: 30px; }
.accordion summary strong { color: var(--ink); display: block; }
.accordion summary small { color: var(--muted); }
.accordion .acc-body { padding: 0 20px 20px 78px; white-space: pre-line; }
@media (max-width: 600px) { .accordion .acc-body { padding-left: 20px; } }

.tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--blue-50); color: var(--blue-700); }

/* Tablas */
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .1s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--blue-25); }
.table .user-cell { display: flex; align-items: center; gap: 10px; }
.table .user-cell .avatar { width: 34px; height: 34px; font-size: .78rem; }
.table .user-cell strong { display: block; color: var(--ink); }
.table .user-cell small { color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { min-height: 42px; padding-block: 8px; width: auto; }
.toolbar .search { flex: 1; min-width: 220px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* Barras (una serie, un tono) */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 12px; font-size: .9rem; }
.bar-row .lbl { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.bar-track { height: 12px; background: var(--bg-soft); border-radius: 4px; position: relative; }
.bar-fill { height: 100%; min-width: 4px; background: var(--blue-700); border-radius: 0 4px 4px 0; transition: width .5s ease; }
.bar-row:hover .bar-fill { background: var(--blue-800); }

/* Permisos */
.perm-grid { display: grid; gap: 8px; }
.perm-grid label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .92rem; }
.perm-grid label:has(input:checked) { border-color: var(--blue); background: var(--blue-25); }
.perm-grid input { accent-color: var(--blue-700); width: 18px; height: 18px; }
.perm-grid code { font-size: .75rem; color: var(--muted); margin-left: auto; }

/* Modal y panel lateral */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(16, 16, 68, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; border-radius: 20px; width: min(100%, 640px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .2s; }
.modal.open .modal-box { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.2rem; margin: 0; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }

/* Avisos flotantes */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease; }
.toast.error { background: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, #eef2f9 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }

.welcome { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.welcome-hero { background: var(--blue); color: #fff; border-radius: 22px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
.welcome-hero h1 { color: #fff; font-size: 1.8rem; }
.welcome-hero p { color: rgba(255, 255, 255, .88); max-width: 40ch; }
.welcome-hero img { position: absolute; right: -10px; bottom: 0; width: 46%; max-width: 300px; }
.welcome-hero > :not(img) { position: relative; z-index: 1; max-width: 58%; }
@media (max-width: 1200px) { .welcome { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .welcome-hero img { display: none; } .welcome-hero > :not(img) { max-width: none; } }

.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }

/* ---------- Ajustes móviles ---------- */
@media (max-width: 900px) {
  .hero-home .hero-art { margin: 8px 0 0; }
  .hero-home .hero-art img { aspect-ratio: 5 / 4; }
}
@media (max-width: 560px) {
  /* Tarjetas de 4 columnas: horizontales y compactas */
  .grid-4 > .card:not(.sector) { display: grid; grid-template-columns: 92px 1fr; column-gap: 16px; align-items: start; padding: 18px; }
  .grid-4 > .card:not(.sector) > .card-media,
  .grid-4 > .card:not(.sector) > .card-icon { grid-row: 1 / span 3; margin: 0; }
  .grid-4 > .card:not(.sector) > .card-media { aspect-ratio: 1; width: 92px; }
  .grid-4 > .card:not(.sector) > .card-icon { width: 64px; height: 64px; }
  .grid-4 > .card:not(.sector) h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .grid-4 > .card:not(.sector) p { font-size: .93rem; margin-bottom: 6px; }
  .grid-4 > .card:not(.sector) .card-link { margin-top: 0; }
  /* Sectores en 2 columnas */
  .grid-4:has(.sector) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sector { padding: 12px; }
  .sector h3 { font-size: .95rem; }
  .sector p { font-size: .82rem; margin: 0; }
  /* Pasos menos altos */
  .step .card-media { aspect-ratio: 16 / 10; }
}
@media (min-width: 901px) { .hero-light .hero-inner { grid-template-columns: 1fr 1.3fr; } }
@media (max-width: 900px) {
  .hero-home .hero-art img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%); mask-image: linear-gradient(180deg, transparent 0, #000 18%); }
}
@media (max-width: 560px) {
  .grid-3 > .card > .card-icon { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 12px; }
  .grid-3 > .card > .card-icon img { width: 40px; }
}
.shell > div { min-width: 0; }
@media (max-width: 960px) {
  .sidebar { box-shadow: none; }
  .shell.nav-open .sidebar { box-shadow: var(--shadow-lg); }
}
@media (max-width: 700px) {
  .dash > .stat { grid-column: span 6 !important; padding: 16px; }
  .stat .v { font-size: 1.6rem; }
  .dash > .stat .v[style] { font-size: 1.05rem !important; }
  .dash { gap: 12px; }
  .toolbar .select { flex: 1 1 140px; }
  .page-head h1 { font-size: 1.6rem; }
  .panel { padding: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .welcome-hero h1 { font-size: 1.5rem; }
}

/* ==========================================================================
   v2 — Componentes especiales del sitio público
   ========================================================================== */

/* Motivo de "red conectada" (como el logo) */
.net-bg { position: relative; isolation: isolate; }
.net-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%233b72f9' stroke-opacity='.18' stroke-width='1.5'%3E%3Ccircle cx='20' cy='20' r='5'/%3E%3Ccircle cx='100' cy='40' r='5'/%3E%3Ccircle cx='60' cy='110' r='5'/%3E%3Ccircle cx='140' cy='130' r='5'/%3E%3Cpath d='M25 22l70 16M97 45l-34 60M66 112l70 16M24 25l33 81'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.net-bg.on-dark::before { filter: brightness(3); opacity: .35; }

/* Tarjetas flotantes del hero */
.hero-floats { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(16, 16, 68, .22); font-size: .88rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: .92rem; }
.float-card small { color: var(--muted); }
.float-card .fi { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); display: grid; place-items: center; flex: none; }
.float-card .fi img { width: 30px; }
.float-card .fi svg { width: 22px; height: 22px; color: var(--blue-700); }
.float-card.fc-1 { top: 16%; right: 4%; animation-delay: -1s; }
.float-card.fc-2 { top: 48%; left: 47%; animation-delay: -3s; }
.float-card.fc-3 { bottom: 9%; right: 30%; animation-delay: -5s; }
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1200px) { .float-card.fc-2 { display: none; } }
@media (max-width: 900px) { .hero-floats { display: none; } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* Franja de sectores en movimiento */
.marquee { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.marquee-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: var(--blue-25); }
.marquee-item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-left: 36px; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Pasos con línea conectora */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; top: 37px; left: 16%; right: 16%; border-top: 2px dashed var(--line-2); z-index: 0; }
.steps .step { z-index: 1; }
@media (max-width: 800px) { .steps::before { display: none; } }

/* Selector por sector */
.sector-tabs { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.st-list { display: grid; gap: 10px; align-content: start; }
.st-tab { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 16px 10px 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.st-tab:hover { border-color: var(--line-2); transform: translateX(3px); }
.st-tab[aria-selected="true"] { border-color: var(--blue); box-shadow: 0 8px 24px rgba(59, 114, 249, .18); }
.st-tab img { width: 56px; height: 56px; object-fit: contain; background: var(--blue-25); border-radius: 14px; flex: none; }
.st-tab strong { display: block; color: var(--ink); }
.st-tab small { color: var(--muted); }
.st-panel { background: linear-gradient(160deg, var(--blue-25), var(--blue-50)); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; min-height: 420px; }
.st-panel[hidden] { display: none; }
.st-panel h3 { font-size: 1.8rem; margin-bottom: 10px; }
.st-panel ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.st-panel li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--navy); }
.st-panel .st-art img { width: 100%; max-height: 340px; object-fit: contain; animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
@media (max-width: 960px) {
  .sector-tabs { grid-template-columns: 1fr; }
  .st-list { grid-template-columns: repeat(2, 1fr); }
  .st-tab:hover { transform: none; }
}
@media (max-width: 640px) {
  .st-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .st-tab { flex-direction: column; text-align: center; gap: 6px; padding: 10px 8px; }
  .st-tab small { display: none; }
  .st-tab strong { font-size: .85rem; }
  .st-panel { grid-template-columns: 1fr; padding: 24px; min-height: 0; }
  .st-panel .st-art { order: -1; }
  .st-panel .st-art img { max-height: 200px; }
  .st-panel h3 { font-size: 1.4rem; }
}

/* Banda oscura (calculadoras) */
.band-dark { background: var(--navy); color: #cbd5e1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: #a5b4cf; }
.band-dark .eyebrow { color: #93b4ff; }
.calc { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.calc-box { background: #fff; color: var(--text); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.calc-box .tabs { margin-bottom: 20px; background: var(--bg-soft); border: 0; }
.calc-box .tabs button.active { background: #fff; box-shadow: var(--shadow); }
.calc-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--blue-25); border-radius: 18px; padding: 18px 20px; margin-top: 4px; }
.calc-result .amount { font-size: 2.2rem; font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-result small { color: var(--muted); display: block; }
.calc-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.calc-art { display: flex; gap: 16px; align-items: center; margin-top: 28px; }
.calc-art img { width: 120px; }
.money-prefix { position: relative; }
.money-prefix::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money-prefix .input { padding-left: 28px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; gap: 32px; } .calc-result .amount { font-size: 1.8rem; } }

/* Teléfono con vista previa del panel */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: 420px; height: 420px; max-width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 114, 249, .25), transparent 70%); }
.phone { position: relative; width: 300px; border-radius: 44px; background: var(--navy); padding: 12px; box-shadow: 0 40px 80px rgba(23, 37, 84, .3); transform: rotate(-3deg); }
.phone-screen { background: var(--bg-soft); border-radius: 34px; overflow: hidden; padding: 16px 14px 20px; display: grid; gap: 10px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; }
.phone-top img { width: 96px; }
.phone .member-card { min-height: 150px; padding: 16px; border-radius: 18px; }
.phone .member-card img { width: 80px; }
.phone .member-card .mc-plan { top: 14px; right: 14px; font-size: .6rem; padding: 3px 8px; }
.phone .member-card .mc-name { font-size: 1rem; }
.phone .member-card .mc-meta { font-size: .62rem; gap: 16px; }
.phone .member-card .mc-meta b { font-size: .78rem; }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { background: #fff; border-radius: 14px; padding: 10px 12px; font-size: .7rem; color: var(--muted); border: 1px solid var(--line); }
.mini b { display: block; font-size: 1.1rem; color: var(--ink); }
.mini-item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid var(--line); font-size: .74rem; }
.mini-item img { width: 30px; }
.mini-item b { display: block; color: var(--ink); font-size: .8rem; }
.phone-badge { position: absolute; right: -40px; top: 90px; transform: rotate(3deg); }
.phone-badge2 { position: absolute; left: -60px; bottom: 70px; transform: rotate(3deg); }
.phone-wrap .float-card { position: absolute; }
@media (max-width: 560px) { .phone { width: 260px; } .phone-wrap .float-card { display: none; } }

.feature-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .card-icon { width: 52px; height: 52px; border-radius: 14px; margin: 0; flex: none; }
.feature-list .card-icon img { width: 36px; }
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* Tabla comparativa de planes */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--navy); font-weight: 500; }
.compare thead th { background: var(--bg-soft); color: var(--ink); font-size: 1rem; }
.compare thead th small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.compare thead th.hl { background: var(--navy); color: #fff; }
.compare thead th.hl small { color: #a5b4cf; }
.compare td.hl { background: var(--blue-25); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--blue-700); }
.compare .yes svg { width: 22px; height: 22px; }
.compare .no { color: #cbd5e1; font-weight: 700; }
.compare-wrap { overflow-x: auto; border-radius: 20px; }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px 10px; font-size: .85rem; } .compare { min-width: 560px; } }

/* Derechos */
.right-card { display: flex; flex-direction: column; gap: 6px; }
.right-card .law { font-size: .78rem; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 3px 10px; border-radius: 99px; align-self: flex-start; margin-bottom: 6px; }
.right-card h3 { margin: 0 0 4px; }
.right-card .big { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }

/* CTA con personajes */
.cta-people { display: grid; grid-template-columns: 1.1fr .9fr; padding-bottom: 0; align-items: end; }
.cta-people > div:first-child { padding-bottom: 64px; }
.cta-people .cta-img { align-self: end; margin-right: -24px; position: relative; z-index: 1; }
.cta-people .cta-img img { width: 100%; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 760px) {
  .cta-people { grid-template-columns: 1fr; padding-bottom: 0; }
  .cta-people > div:first-child { padding-bottom: 8px; }
  .cta-people .cta-img { margin: 0 -12px; }
}

/* Números y sellos */
.trust { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.trust svg { width: 18px; height: 18px; color: var(--blue-700); }

/* Pasos de membresía */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: tl; }
.timeline li { list-style: none; position: relative; padding-top: 56px; }
.timeline li::before { counter-increment: tl; content: counter(tl); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 800; display: grid; place-items: center; }
.timeline li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -12px; border-top: 2px dashed var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; padding: 0; } .timeline li { padding: 0 0 0 56px; } .timeline li::after { display: none; } }

/* Panel: acceso al directorio */
.find-union { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; text-decoration: none; color: #fff; background: linear-gradient(120deg, var(--blue-700), var(--blue)); border: 0; overflow: hidden; }
.find-union h2 { color: #fff; margin: 0 0 6px; }
.find-union p { margin: 0; color: rgba(255, 255, 255, .85); }
.find-union .eyebrow { color: #ffd23f; margin-bottom: 6px; }
.find-union img { width: 150px; margin: -10px 0 -24px; }
@media (max-width: 700px) { .find-union { grid-template-columns: 1fr; } .find-union img { display: none; } .find-union .btn { justify-self: start; } }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; }
.chk-grid label { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 5px 0; cursor: pointer; }
.chk-grid input { width: 17px; height: 17px; accent-color: var(--blue-700); flex: none; }

/* ==========================================================================
   Bolsa de trabajo (panel): perfil público, mensajes y acuerdos
   ========================================================================== */
.switch { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch > span { flex: none; position: relative; width: 52px; height: 30px; border-radius: 99px; background: var(--line-2, #cfd6e4); transition: background .2s; }
.switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 16, 68, .25); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch strong { display: block; color: var(--ink); }
.switch small { color: var(--muted); }
.pp-status.on { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.pp-req { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.pp-req li { display: flex; gap: 10px; align-items: center; }
.pp-req li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2, #cfd6e4); }
.pp-req li.done { color: var(--ink); }
.pp-req li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pp-rep { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-rep div { background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; }
.pp-rep b { display: block; font-size: 1.4rem; color: var(--ink); }
.pp-rep span { font-size: .8rem; color: var(--muted); }

.conv .grow strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conv .grow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.conv.unread strong, .conv.unread .grow small { color: var(--ink); font-weight: 700; }
.conv .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-700); }

.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 480px; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head .grow { flex: 1; min-width: 160px; }
.chat-head strong { display: block; color: var(--ink); }
.chat-head small { color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { max-width: min(78%, 560px); align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.msg.mine { align-self: flex-end; background: var(--blue-700); border-color: var(--blue-700); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg time { display: block; margin-top: 4px; font-size: .72rem; opacity: .65; }
.msg-ev { align-self: center; text-align: center; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; max-width: 92%; }
.deal { align-self: center; width: min(100%, 440px); background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 10px 30px rgba(16, 16, 68, .08); }
.deal-propuesto { border-color: #f5c46b; }
.deal-aceptado { border-color: var(--blue); }
.deal-terminado { border-color: var(--ok); }
.deal-rechazado, .deal-cancelado { opacity: .7; }
.deal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.deal-k { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); }
.deal-k svg { width: 16px; height: 16px; }
.deal h3 { font-size: 1.1rem; margin: 0 0 6px; }
.deal p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.deal dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0 0 10px; }
.deal dl div { background: var(--bg-soft); border-radius: 12px; padding: 8px 10px; }
.deal dt { font-size: .72rem; color: var(--muted); }
.deal dd { margin: 0; font-weight: 700; color: var(--ink); }
.deal > small { display: block; color: var(--muted); }
.deal-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-form .textarea { flex: 1; resize: none; min-height: 46px; max-height: 160px; }
.chat-form .btn { flex: none; width: 48px; height: 46px; padding: 0; }
.chat-form .btn svg { width: 20px; height: 20px; }
.chat-note { display: flex; gap: 6px; align-items: center; margin: 0; padding: 0 16px 12px; font-size: .76rem; color: var(--muted); }
.chat-note svg { flex: none; color: var(--ok); }

.rate { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 2.6rem; line-height: 1; color: #d6dbe6; cursor: pointer; transition: color .15s, transform .15s; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f5a524; }
.rate label:hover { transform: scale(1.12); }
.rate input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 760px) {
  .chat { height: calc(100vh - 110px); border-radius: 18px; margin: 0 -6px; }
  .chat-head { padding: 10px 12px; gap: 8px; }
  .chat-head .avatar { display: none; }
  .chat-head .grow small { display: block; font-size: .8rem; line-height: 1.35; }
  .chat-head .btn { order: 5; min-height: 38px; }
  .chat-head .btn-primary { flex: 1; }
  .chat-body { padding: 14px 10px; }
  .chat-note { font-size: .72rem; padding: 0 12px 10px; }
  .msg { max-width: 88%; }
}
.rep-conv { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.rep-conv summary { cursor: pointer; font-weight: 700; color: var(--blue-700); }
.rep-msgs { max-height: 300px; overflow: auto; display: grid; gap: 6px; margin-top: 10px; font-size: .9rem; }
.rep-msgs p { margin: 0; }
.rep-msgs p.ev { color: var(--muted); font-style: italic; }
.rep-msgs small, .muted { color: var(--muted); }
.badge.bad { background: var(--bad-bg, #fdecec); color: var(--bad, #c62828); }

/* ==========================================================================
   Perfil maestro del sindicato (fase 2)
   Campo azul con tarjetas blancas; el amarillo solo marca lo que espera respuesta.
   ========================================================================== */
:root { --yel: #ffd23f; }
.ctx { margin: -8px 4px 14px; padding: 12px 14px; border-radius: 14px; background: var(--blue-25); border: 1px solid var(--line-2); }
.ctx-k { display: block; font-size: .75rem; font-weight: 700; color: var(--blue-700); }
.ctx strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.avatar.navy { background: var(--navy); }
.head-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-text.danger { color: var(--bad); margin-right: auto; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }

.s-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 30px 32px; border-radius: 24px; color: #fff; margin-bottom: 20px;
  background: radial-gradient(120% 160% at 100% 0%, #5b8cff 0%, var(--blue) 40%, var(--blue-700) 100%); }
.s-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 6px; color: #fff; text-wrap: balance; }
.s-hero p { margin: 0; color: #e3ebff; }
.s-hero-txt { flex: 1 1 420px; min-width: 0; }
.s-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.s-hero-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.s-hero-tags .s-ver { background: #fff; color: var(--blue-700); }
.s-hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--blue); }
.kpi b { font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink); font-weight: 600; font-size: .92rem; }
.kpi small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.kpi.hot { border-color: var(--yel); box-shadow: inset 0 0 0 1px var(--yel); background: #fffbea; }

.meters { display: grid; gap: 18px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; color: var(--ink); font-weight: 600; }
.meter-top b { white-space: nowrap; }
.meter-top small { color: var(--muted); font-weight: 500; }
.meter-track { height: 10px; border-radius: 99px; background: var(--blue-50); margin: 8px 0 6px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--blue); min-width: 4px; }
.meter > small { color: var(--muted); font-size: .82rem; }

.ztree { list-style: none; margin: 0; padding: 0; }
.ztree li { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.5em; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.ztree li:first-child { border-top: 0; }
.ztree li.seccion span:first-child { font-weight: 700; color: var(--ink); }
.ztree li.child { padding-left: 22px; position: relative; }
.ztree li.child::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 50%; width: 10px; border-left: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); border-bottom-left-radius: 6px; }
.ztree small { color: var(--muted); }
.ztree .z-lid { font-size: .85rem; color: var(--muted); text-align: right; }
.ztree .z-lid em { font-style: normal; color: var(--warn); }
.ztree b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.pad-filters .select { flex: 0 1 auto; }
.table small.sub { display: block; color: var(--muted); }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.sol { display: flex; flex-direction: column; }
.panel.sol + .panel.sol { margin-top: 0; }
.sol-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.sol-top .grow { flex: 1; min-width: 0; }
.sol-top strong { display: block; color: var(--ink); }
.sol-top small { color: var(--muted); }
.sol-dl { display: grid; gap: 8px; margin: 0 0 12px; }
.sol-dl div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; font-size: .92rem; }
.sol-dl dt { color: var(--muted); }
.sol-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.sol blockquote { margin: 0 0 14px; padding: 10px 14px; background: var(--bg-soft); border-radius: 12px; font-size: .92rem; }
.sol-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.chips-people, .zc-lid { display: flex; gap: 8px; flex-wrap: wrap; }
.person { display: inline-flex; flex-direction: column; position: relative; padding: 8px 14px; border-radius: 14px; background: var(--blue-25); border: 1px solid var(--line-2); font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.person small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.person .x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.person .x svg { width: 12px; height: 12px; }
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.zcol { display: grid; gap: 10px; }
.zcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.zcard.seccion { background: var(--blue); color: #fff; border: 0; }
.zcard.seccion h3, .zcard.seccion b { color: #fff; }
.zcard.seccion .zc-head small, .zcard.seccion .zc-kind, .zcard.seccion .zc-lid > .hint { color: #dfe7ff; }
.zcard.seccion .btn-text { color: #fff; }
.zcard.sub { margin-left: 18px; position: relative; }
.zcard.sub::before { content: ""; position: absolute; left: -12px; top: -10px; height: 34px; width: 10px; border-left: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); border-bottom-left-radius: 6px; }
.zc-head { display: flex; justify-content: space-between; gap: 12px; }
.zc-head h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.zc-head small { color: var(--muted); }
.zc-head b { font-size: 1.6rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.zc-kind { font-size: .75rem; font-weight: 700; color: var(--blue-700); }
.zc-acts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.avisos { display: grid; gap: 14px; }
.aviso { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.aviso-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.aviso-top small { color: var(--muted); }
.aviso h3 { margin: 10px 0 4px; font-size: 1.05rem; color: var(--ink); }
.aviso p { margin: 0 0 12px; white-space: pre-line; }
.aviso-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.inv-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 18px; }
.inv-types div { background: var(--blue-25); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; font-size: .92rem; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.inv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.panel.inv + .panel.inv { margin-top: 0; }
.inv-qr { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); padding: 8px; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.inv-qr svg { width: 100%; height: 100%; }
.inv.off { opacity: .7; }
.inv-info { display: grid; gap: 6px; }
.inv-info strong { color: var(--ink); font-size: 1.05rem; }
.inv-info small { color: var(--muted); }
.inv-info code, .inv-box code { font-size: .82rem; background: var(--bg-soft); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; color: var(--navy); }
.inv-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 520px) { .inv { grid-template-columns: 1fr; } .inv-qr { max-width: 200px; } }
.inv-box { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: #fffbea; border: 1px solid #f5dc84; margin-bottom: 18px; }
.inv-box p { margin: 2px 0 8px; font-size: .92rem; }
.inv-box strong { color: var(--ink); }

.imp-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.imp-drop { display: flex; gap: 14px; align-items: center; justify-content: center; text-align: left; padding: 22px; border: 2px dashed var(--line-2); border-radius: 16px; cursor: pointer; color: var(--blue-700); margin-bottom: 14px; }
.imp-drop:hover, .imp-drop.over, .imp-drop:focus-within { border-color: var(--blue); background: var(--blue-25); }
.imp-drop small { display: block; color: var(--muted); }
.imp-res { display: flex; align-items: baseline; gap: 12px; }
.imp-res b { font-size: 2.6rem; color: var(--ink); line-height: 1; }

/* Credencial del agremiado */
.cred { border-radius: 22px; color: #fff; overflow: hidden; background: radial-gradient(130% 140% at 100% 0%, #5b8cff 0%, var(--blue-700) 50%, var(--navy) 100%); box-shadow: 0 18px 40px rgba(21, 94, 239, .25); }
.cred-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 18px 22px 0; }
.cred-org { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.cred-ver { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.cred-body { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; align-items: end; padding: 14px 22px 16px; }
.cred-name { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.cred-role { display: block; font-size: .85rem; color: #dfe7ff; }
.cred dl { display: flex; gap: 22px; margin: 14px 0 0; }
.cred dt { font-size: .72rem; color: #c9d6ff; }
.cred dd { margin: 0; font-weight: 700; letter-spacing: .04em; }
.cred-full { display: block; margin-top: 10px; font-size: .78rem; color: #c9d6ff; }
.cred-qr { background: #fff; border-radius: 12px; padding: 6px; display: block; aspect-ratio: 1; }
.cred-qr svg { width: 100%; height: 100%; display: block; }
.cred-foot { background: rgba(0, 0, 0, .18); font-size: .75rem; padding: 8px 22px; color: #dfe7ff; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.mem { display: grid; gap: 14px; align-content: start; }
.mem-opts { display: grid; gap: 10px; }
.mem-opts .switch { align-items: flex-start; }
.mem-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--ink); }
.timeline.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .timeline.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .timeline.t4 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 1.5rem; }
  .s-hero { padding: 22px; }
  .pad-filters .select, .pad-filters .input { flex: 1 1 100%; width: 100%; }
  .pad-table thead { display: none; }
  .pad-table, .pad-table tbody { display: block; }
  .pad-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .pad-table td { border: 0; padding: 0; }
  .pad-table td:nth-child(1) { grid-column: 1 / -1; }
  .pad-table td:nth-child(2) { color: var(--muted); font-size: .88rem; }
  .pad-table td:nth-child(3) { display: none; }
  .pad-table td:nth-child(4), .pad-table td:nth-child(5) { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
  .pad-table td:nth-child(6) { grid-row: 2; grid-column: 2; }
}

/* ==========================================================================
   Tema "La Red" — azul marino profundo, azul grisáceo y acentos amarillos.
   Va al final para imponerse a los estilos anteriores.
   ========================================================================== */

/* ---------- Tipografía y detalles ---------- */
h1, h2 { letter-spacing: -.035em; }
.eyebrow { color: var(--blue-700); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--yel); vertical-align: middle; margin: -3px 10px 0 0; }
.center .eyebrow::before, .section-head.center .eyebrow::before { display: none; }
.on-dark .eyebrow, .hero .eyebrow, .dark .eyebrow { color: var(--yel); }
::selection { background: var(--yel); color: var(--ink); }
:focus-visible { outline-color: var(--yel-2); }

/* ---------- Botones ---------- */
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(11, 16, 48, .22); }
.btn-primary:hover { background: var(--slate); }
.btn-white, .on-dark .btn-primary, .hero .btn-primary, .dark .btn-primary { background: var(--yel); color: var(--ink); box-shadow: 0 10px 26px rgba(255, 210, 63, .22); }
.btn-white:hover, .on-dark .btn-primary:hover, .hero .btn-primary:hover, .dark .btn-primary:hover { background: #ffdc66; box-shadow: 0 12px 30px rgba(255, 210, 63, .32); }
.btn-ghost-white, .hero .btn-outline, .dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost-white:hover, .hero .btn-outline:hover, .dark .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.btn-outline { color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.btn-soft { background: var(--blue-50); color: var(--navy); }
.btn-soft:hover { background: #dde3f3; }
.btn-text { color: var(--blue-700); }

/* ---------- Aviso y encabezado ---------- */
.announce { background: #04061a; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.announce a { color: var(--steel); }
.announce-new { background: var(--yel); }
.site-header { background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.site-header.scrolled { background: rgba(7, 11, 34, .86); box-shadow: 0 12px 32px rgba(4, 6, 26, .35); }
.nav-links > li > a, .nav-drop { color: #dfe3f5; }
.nav-links > li > a:hover, .nav-drop:hover, .nav-drop[aria-expanded="true"] { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-links > li > a[aria-current="page"], .nav-drop.is-current { background: rgba(255, 210, 63, .1); color: var(--yel); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .28); }
.nav-search { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.nav-search input::placeholder { color: var(--steel-2); }
.nav-search:focus-within { color: var(--navy); }
.nav-toggle { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.mm { border-color: var(--line); }
.mega-item:hover, .mega-item[aria-current="page"] { background: var(--bg-soft); }
.mega-art { background: none; width: 52px; height: 52px; }
.mega-art .art-tile { width: 100%; border-radius: 15px; }
.mega-foot { background: var(--navy); }
.mega-foot .arrow { color: var(--yel); }
@media (max-width: 1080px) { .nav-menu { background: var(--night); } }

/* ---------- Superficies oscuras con la trama de la red ---------- */
.hero, .hero-light, .cta, .site-footer, .auth-aside, .welcome-hero, .finale, .v4-hero, .dir-hero, .band-dark {
  background: radial-gradient(60% 70% at 85% 10%, rgba(65, 102, 217, .28), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(255, 210, 63, .06), transparent 70%), var(--net), var(--night);
  color: #c9cfe6;
}
.hero h1, .hero h2, .hero-light h1, .hero-light h2, .cta h2, .auth-aside h2, .welcome-hero h1, .welcome-hero h2 { color: #fff; }
.hero .lead, .hero-light .lead, .cta p { color: var(--steel); }
.hero-light .eyebrow { color: var(--yel); }
.hero h1 em, .hero-light h1 em, .hl { font-style: normal; color: var(--yel); }

/* Arte del hero: la constelación sustituye a las ilustraciones */
.hero-light .hero-inner { align-items: center; min-height: 0; padding: 72px 0; }
.hero-light .hero-copy { padding-bottom: 0; }
.hero-art .constel, .hero-art-phone .constel { display: block; width: min(100%, 480px); margin-inline: auto; }
.hero-badges { color: var(--steel); }
.hero-badges svg { color: var(--yel); }

/* CTA final */
.cta { border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(4, 6, 26, .25); }
.cta::after { display: none; }
.cta-img .constel { width: min(100%, 340px); margin-inline: auto; }

/* Pie */
.site-footer { background: radial-gradient(60% 80% at 100% 0%, rgba(65, 102, 217, .22), transparent 70%), var(--night); color: var(--steel); }
.site-footer::before { background-image: radial-gradient(rgba(163, 171, 208, .12) 1px, transparent 1px); }
.foot-mega { color: #fff; }
.foot-tags a:hover { background: var(--yel); border-color: var(--yel); color: var(--ink); }
.footer-bottom, .foot-tags span { color: var(--steel-2); }

/* ---------- Componentes en claro ---------- */
.section-soft { background: var(--bg-soft); }
.card { border-color: var(--line); }
.check { background: var(--navy); color: var(--yel); }
.chips li { background: var(--blue-50); color: var(--navy); }
.card-icon { background: none; width: 64px; height: 64px; }
.card-icon .art-tile { width: 64px; border-radius: 18px; }
.card-media { aspect-ratio: auto; margin: 0 0 16px; }
.card-media .art-tile { width: 96px; border-radius: 26px; }
.step-num, .stepper div.active::before, .stepper div.done::before { background: var(--navy); color: var(--yel); }
.plan-badge { background: var(--yel); color: var(--ink); }
.plan.featured { background: radial-gradient(80% 60% at 100% 0%, rgba(65, 102, 217, .35), transparent 70%), var(--net), var(--navy); }
.plan.featured .plan-tag { color: var(--yel); }
.plan.featured .check { background: rgba(255, 210, 63, .14); color: var(--yel); }
.plan-art { width: 76px; height: 76px; top: 28px; right: 26px; }
.plan-art .art-tile { width: 76px; border-radius: 22px; }
.plan.featured .plan-art .art-tile { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.faq summary::after { border-color: var(--ink); }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq details[open] summary::after { border-color: var(--yel-2); }

/* ---------- Arte: mosaicos y constelaciones ---------- */
.gl { display: block; }
.gl .a { stroke: var(--yel); }
.art-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 72px; flex: none; border-radius: 22px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 28% 18%, #2c3678, var(--navy) 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 18px rgba(11, 16, 48, .16); }
.art-tile::before { content: ""; position: absolute; inset: 0; background: var(--net); opacity: .9; }
.art-tile::after { content: ""; position: absolute; right: 14%; top: 14%; width: 6px; height: 6px; border-radius: 50%; background: var(--yel); box-shadow: 0 0 0 4px rgba(255, 210, 63, .15); }
.art-tile .gl { position: relative; width: 50%; height: 50%; }
.art-tile.light { background: var(--blue-50); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-2); }
.art-tile.light .gl .a { stroke: var(--blue-700); }
.art-tile.yel { background: var(--yel); color: var(--ink); }
.art-tile.yel .gl .a { stroke: var(--ink); }
.art-tile.yel::after { background: var(--ink); box-shadow: none; }

.constel { display: block; }
.constel > svg { width: 100%; height: auto; display: block; overflow: visible; }
.constel .ring { fill: none; stroke: rgba(163, 171, 208, .28); stroke-width: 1.2; stroke-dasharray: 2 7; transform-box: fill-box; transform-origin: center; }
.constel .r1 { animation: spin 90s linear infinite; }
.constel .r2 { animation: spin 140s linear infinite reverse; }
.constel .lk line { stroke: rgba(163, 171, 208, .32); stroke-width: 1.2; }
.constel .lk .k2 { stroke-dasharray: 3 6; stroke: rgba(163, 171, 208, .2); }
.constel .dt { fill: var(--steel-2); }
.constel .dt.y { fill: var(--yel); }
.constel .nd { color: #dfe3f5; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * -.8s); }
.constel .nd > circle { fill: var(--navy-2); stroke: var(--slate-2); stroke-width: 1.5; }
.constel .nd.hot { color: var(--ink); }
.constel .nd.hot > circle { fill: var(--yel); stroke: var(--yel); }
.constel .nd .a, .constel .core .a { stroke: var(--yel); }
.constel .nd.hot .a { stroke: var(--ink); }
.constel .core { color: #fff; }
.constel .core > circle { fill: #1c2560; stroke: var(--yel); stroke-width: 2; }
.constel .core > .halo { fill: none; stroke: rgba(255, 210, 63, .35); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: halo 3.6s ease-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes halo { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .constel .ring, .constel .nd, .constel .core > .halo { animation: none; } }

/* ---------- Acceso ---------- */
.auth-aside { gap: 32px; }
.auth-points li { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.auth-points .art-tile { width: 48px; border-radius: 14px; }
.auth-points .art-tile::after { display: none; }
.auth-points span { color: var(--steel); }
.auth-art .constel { width: min(100%, 380px); margin: 0 auto 32px; }

/* ---------- Paneles: barra lateral oscura ---------- */
.sidebar { background: var(--night); border-right: 0; background-image: radial-gradient(80% 40% at 0% 0%, rgba(65, 102, 217, .2), transparent 70%); }
.sidebar-logo .tag { background: var(--yel); color: var(--ink); }
.side-nav .group { color: #59618d; }
.side-nav a { color: #c3c9e3; }
.side-nav a svg { color: #6d76a3; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a.active { background: rgba(255, 210, 63, .1); color: #fff; box-shadow: inset 3px 0 0 var(--yel); }
.side-nav a.active svg { color: var(--yel); }
.side-nav .count { background: var(--yel); color: var(--ink); }
.side-user { border-top-color: rgba(255, 255, 255, .08); }
.side-user .who strong { color: #fff; }
.side-user .who span { color: var(--steel-2); }
.side-user .icon-btn { color: var(--steel-2); }
.side-user .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.avatar { background: var(--yel); color: var(--ink); }
.side-nav::-webkit-scrollbar { width: 6px; } .side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
@media (max-width: 960px) {
  .topbar { background: var(--night); border-bottom-color: rgba(255, 255, 255, .08); }
  .topbar .icon-btn { color: #fff; background: rgba(255, 255, 255, .08); }
  .shell.nav-open .scrim { background: rgba(4, 6, 26, .55); }
}
.panel { border-color: var(--line); }
.page-head h1 { letter-spacing: -.03em; }

/* Tarjetas destacadas de los paneles */
.welcome-hero { border: 1px solid rgba(255, 255, 255, .06); }
.welcome-hero p { color: var(--steel); }
.welcome-hero .eyebrow, .welcome-hero small { color: var(--yel); }
.member-card, .cred { background: radial-gradient(120% 140% at 100% 0%, #34419a 0%, var(--navy) 45%, var(--night) 100%); box-shadow: 0 24px 50px rgba(11, 16, 48, .3), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.zcard.seccion { background: var(--navy); }
.msg.mine { background: var(--navy); border-color: var(--navy); }
.conv .dot { background: var(--yel-2); }
.find-union { background: radial-gradient(70% 120% at 100% 0%, rgba(65, 102, 217, .35), transparent 70%), var(--net), var(--navy) !important; }
.timeline li::before { background: var(--navy); color: var(--yel); }
.st-panel { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.kpi.hot { box-shadow: inset 0 0 0 2px var(--yel); }
.marquee-item::after { background: var(--yel-2); opacity: 1; }
.welcome-hero > .wh-art { position: absolute; right: -30px; top: 50%; translate: 0 -50%; width: 46%; max-width: 280px; max-width: none; z-index: 0; }
.welcome-hero > :not(.wh-art) { position: relative; z-index: 1; max-width: 58%; }
@media (max-width: 560px) { .welcome-hero > .wh-art { display: none; } .welcome-hero > :not(.wh-art) { max-width: none; } }
.find-union { grid-template-columns: auto 1fr auto; }
.find-union .fu-art { width: 84px; border-radius: 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.find-union h2 { color: #fff; } .find-union p { color: var(--steel); } .find-union .eyebrow { color: var(--yel); }
@media (max-width: 700px) { .find-union .fu-art { display: none; } }
.empty > .art-tile, .dir-empty > .art-tile, .panel.empty > .art-tile { width: 84px; margin: 0 auto 16px; border-radius: 24px; }
.plan-art .art-tile { margin-left: auto; }
