/* ==========================================================================
   Colegio Bioquímico de Catamarca - Hoja de estilos principal
   ========================================================================== */

:root {
    --navy: #0b2a4a;
    --navy-2: #123b66;
    --blue: #1d6fd8;
    --blue-soft: #e8f1fd;
    --green: #22a45d;
    --green-soft: #e6f6ed;
    --teal: #0ea5a4;
    --amber: #f59e0b;
    --red: #dc2626;
    --red-soft: #fdecec;

    --bg: #f5f8fc;
    --surface: #ffffff;
    --text: #1b2a3d;
    --muted: #5d6b7e;
    --line: #e2e8f0;

    --grad: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--blue) 100%);
    --grad-accent: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 8px rgba(11, 42, 74, .06);
    --shadow: 0 10px 30px rgba(11, 42, 74, .10);
    --shadow-lg: 0 24px 60px rgba(11, 42, 74, .18);

    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html { overflow-x: hidden; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
button { font-family: inherit; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }
.hide-sm { }
:focus-visible { outline: 3px solid rgba(29, 111, 216, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; cursor: pointer; line-height: 1.2;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(29, 111, 216, .3); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(29, 111, 216, .4); }
.btn--accent { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 20px rgba(34, 164, 93, .3); }
.btn--accent:hover { color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: .6em 1.1em; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar a, .topbar span { color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 14px; align-items: center; }
.topbar__login { background: rgba(255, 255, 255, .1); padding: 4px 12px; border-radius: 999px; }
.topbar__login:hover { background: var(--green); }

/* ---------- Cabecera y menú ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 42, 74, .08); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand img { height: 48px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.menu__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px; border-radius: 10px;
    font-weight: 600; font-size: .92rem; color: var(--text);
    background: none; border: 0; cursor: pointer; position: relative;
}
.menu__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: var(--grad-accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.menu__item:hover > .menu__link, .menu__item.is-active > .menu__link { color: var(--blue); }
.menu__item:hover > .menu__link::after, .menu__item.is-active > .menu__link::after { transform: scaleX(1); }
.menu__icon { display: none; }
.menu__caret { font-size: .7rem; transition: transform .3s var(--ease); }
.menu__item:hover .menu__caret, .menu__item.is-open .menu__caret { transform: rotate(180deg); }
.menu__head, .menu__foot { display: none; }

.submenu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    width: 310px; padding: 10px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.submenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.submenu--wide { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu__item:hover > .submenu, .menu__item.is-open > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu:not(.submenu--wide) { display: block; }
.submenu__link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--text); transition: background .2s; }
.submenu__link:hover, .submenu__link.is-active { background: var(--blue-soft); color: var(--text); }
.submenu__link strong { display: block; font-size: .9rem; color: var(--navy); }
.submenu__link small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.submenu__icon {
    flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
    background: var(--blue-soft); color: var(--blue); font-size: 1.05rem; transition: all .2s;
}
.submenu__link:hover .submenu__icon { background: var(--grad); color: #fff; }

.hamburger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue-soft); cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.menu-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 38, .5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .3s; z-index: 110; }

/* Menú móvil (off-canvas) */
@media (max-width: 1120px) {
    .hamburger { display: block; }
    /* El desenfoque de la barra convierte al menú lateral en hijo "atrapado" dentro de ella:
       en celular se quita para que el menú ocupe toda la pantalla, y la barra sube sobre el fondo oscuro */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    body.menu-open .site-header { z-index: 130; }
    .menu {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
        background: var(--surface); z-index: 120; overflow-y: auto;
        transform: translateX(105%); visibility: hidden;
        /* Oculto de verdad al cerrar (si no, en el celular se puede "deslizar" hasta el menú) */
        transition: transform .4s var(--ease), visibility 0s linear .4s;
        display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
    }
    body.menu-open .menu { transform: translateX(0); visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
    body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
    .menu__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
    .menu__head img { height: 40px; width: auto; }
    .menu__close { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--blue-soft); color: var(--navy); cursor: pointer; font-size: 1.1rem; }
    .menu__list { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
    .menu__link { width: 100%; padding: 13px 14px; font-size: 1rem; }
    .menu__link::after { display: none; }
    .menu__icon { display: inline-block; width: 26px; color: var(--blue); }
    .menu__caret { margin-left: auto; }
    .menu__item.is-active > .menu__link { background: var(--blue-soft); }
    .menu__item:hover .menu__caret { transform: none; }
    .menu__item.is-open .menu__caret { transform: rotate(180deg); }
    .submenu, .submenu--wide {
        position: static; width: auto; transform: none; box-shadow: none; border: 0;
        opacity: 1; visibility: inherit; display: block; padding: 0 0 0 12px;
        max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
    }
    .menu__item:hover > .submenu { transform: none; }
    .menu__item.is-open > .submenu { max-height: 800px; transform: none; }
    .submenu::before { display: none; }
    .menu__foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
    .menu__foot a { color: var(--muted); display: flex; gap: 8px; }
    body.menu-open .hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
    body.menu-open .hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
}
@media (max-width: 760px) {
    .hide-md, .hide-sm { display: none !important; }
    .topbar__info a:nth-child(2) { display: none; }
    .topbar__login { display: none !important; }
}

/* ---------- Carrusel principal ---------- */
.hero { position: relative; height: clamp(520px, 86vh, 780px); background: var(--navy); overflow: hidden; }
.hero .swiper { height: 100%; }
.hero-slide { position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-slide__bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.18); transition: transform 8s linear;
}
.swiper-slide-active .hero-slide__bg { transform: scale(1); }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 26, 48, .92) 0%, rgba(11, 42, 74, .78) 38%, rgba(11, 42, 74, .25) 75%, rgba(11, 42, 74, .1) 100%),
        linear-gradient(0deg, rgba(8, 26, 48, .55), transparent 40%);
}
.hero-slide__content { position: relative; z-index: 2; max-width: 660px; color: #fff; padding-bottom: 40px; }
.hero-slide__content > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.swiper-slide-active .hero-slide__content > * { opacity: 1; transform: none; }
.swiper-slide-active .hero-slide__content > *:nth-child(2) { transition-delay: .15s; }
.swiper-slide-active .hero-slide__content > *:nth-child(3) { transition-delay: .3s; }
.swiper-slide-active .hero-slide__content > *:nth-child(4) { transition-delay: .45s; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.hero-slide h1, .hero-slide h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); margin: 18px 0 14px; letter-spacing: -.02em; }
.hero-slide h1 span, .hero-slide h2 span { background: linear-gradient(90deg, #6ee7b7, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slide p { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero-slide__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero__controls {
    position: absolute; z-index: 5; left: 0; right: 0; bottom: 96px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none;
}
.hero__controls > * { pointer-events: auto; }
.hero__pagination { display: flex; gap: 10px; flex: 1; max-width: 520px; }
.hero__bullet {
    flex: 1; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; text-align: left;
    color: rgba(255, 255, 255, .6); font-size: .74rem; font-weight: 600; font-family: inherit;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.hero__bullet em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__bullet i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.hero__bullet i::after { content: ""; position: absolute; inset: 0; background: #4ade80; transform: scaleX(0); transform-origin: left; }
.hero__bullet.is-active { color: #fff; }
.hero__bullet.is-active i::after { animation: progress var(--autoplay, 6s) linear forwards; }
.hero__bullet.is-done i::after { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
    width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px);
    transition: .3s;
}
.hero__arrow:hover { background: #fff; color: var(--navy); }
.hero__counter { color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .1em; }
.hero__counter b { font-size: 1.6rem; }
@media (max-width: 760px) {
    .hero__bullet em { display: none; }
    .hero__bullet { height: 10px; }
    .hero__controls { bottom: 80px; }
    .hero__arrow { width: 42px; height: 42px; }
    .hero__counter { display: none; }
    .hero-slide__content { padding-bottom: 90px; }
}

/* ---------- Accesos rápidos (sobre el carrusel) ---------- */
.quick { position: relative; z-index: 6; margin-top: -64px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick__card {
    display: flex; gap: 14px; align-items: center; padding: 20px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    color: var(--text); border: 1px solid var(--line); position: relative; overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quick__card::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; }
.quick__card > * { position: relative; }
.quick__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.quick__card:hover::before { opacity: 1; }
.quick__card:hover strong, .quick__card:hover small { color: #fff; }
.quick__icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--blue-soft); color: var(--blue); transition: .35s; }
.quick__card:hover .quick__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.quick__card strong { display: block; color: var(--navy); font-size: 1rem; }
.quick__card small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }
@media (max-width: 1000px) { .quick__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quick__grid { grid-template-columns: 1fr; } .quick { margin-top: -40px; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--grad); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head .kicker {
    display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.section-head .kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: rgba(255, 255, 255, .8); }

.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-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* ---------- Tarjetas ---------- */
.card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--contain img { object-fit: contain; background: #0b2a4a; }
.card__tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.15rem; margin-bottom: .5em; }
.card__body p { color: var(--muted); font-size: .94rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.card__meta i { color: var(--green); }
.card__footer { margin-top: auto; padding-top: 12px; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.feature {
    padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    position: relative; overflow: hidden; color: var(--text); display: block;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.feature__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; background: var(--grad); color: #fff; box-shadow: 0 10px 20px rgba(29, 111, 216, .25); }
.feature--green .feature__icon { background: var(--grad-accent); box-shadow: 0 10px 20px rgba(34, 164, 93, .25); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.stat__num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; background: linear-gradient(90deg, #6ee7b7, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 8px; color: rgba(255, 255, 255, .85); font-size: .92rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
    position: relative; color: #fff; padding: clamp(56px, 9vw, 110px) 0 clamp(80px, 10vw, 120px);
    /* La imagen se define en el HTML (includes/config.php → page_hero) junto con el degradado */
    background-color: var(--navy); background-position: center; background-size: cover;
    overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, .28), transparent 65%);
}
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 14px 0 10px; }
.page-hero__subtitle { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--bg); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; align-items: center; }
.breadcrumb a, .breadcrumb span { color: rgba(255, 255, 255, .8); display: inline-flex; gap: 6px; align-items: center; }
.breadcrumb > * + *::before { content: "\F285"; font-family: bootstrap-icons; font-size: .7rem; opacity: .6; margin-right: 8px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Contenido tipo artículo ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.3em; }
.prose p, .prose li { color: #334155; }
.prose li { margin-bottom: .4em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 24px; }
.layout-aside { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.layout-aside > aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .layout-aside > aside { position: static; } }

.side-nav { list-style: none; padding: 8px; margin: 0; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; }
.side-nav a:hover, .side-nav a.is-active { background: var(--blue-soft); color: var(--blue); }
.side-nav i { color: var(--blue); }
.aside-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.aside-card h3 { color: #fff; font-size: 1.15rem; }
.aside-card p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.aside-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -60px; border-radius: 50%; background: rgba(255, 255, 255, .08); }

/* ---------- Listas con iconos / pasos ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: "\F26E"; font-family: bootstrap-icons; color: var(--green); font-size: 1.15rem; line-height: 1.4; flex: 0 0 auto; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: paso; display: grid; gap: 14px; }
.steps li {
    counter-increment: paso; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.steps li:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.steps li::before {
    content: counter(paso, decimal-leading-zero); flex: 0 0 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad);
}

/* ---------- Autoridades ---------- */
.team { text-align: center; padding: 28px 20px; }
.team__avatar {
    width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
    font-size: 1.7rem; font-weight: 800; color: #fff; background: var(--grad); position: relative;
    box-shadow: 0 0 0 6px var(--blue-soft);
}
.team--green .team__avatar { background: var(--grad-accent); box-shadow: 0 0 0 6px var(--green-soft); }
.team__role { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.team__name { font-size: 1.05rem; color: var(--navy); margin: 0; }
.team--lead { grid-column: span 1; }
.subhead { display: flex; align-items: center; gap: 14px; margin: 48px 0 22px; }
.subhead:first-child { margin-top: 0; }
.subhead h2 { margin: 0; font-size: 1.5rem; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.subhead__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.2rem; }

/* ---------- Tablas de datos ---------- */
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.search {
    position: relative; flex: 1 1 280px; max-width: 460px;
}
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
    width: 100%; padding: 13px 16px 13px 44px; border-radius: 999px; border: 1px solid var(--line);
    font: inherit; background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 111, 216, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--text); transition: .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th {
    background: var(--navy); color: #fff; text-align: left; padding: 14px 16px; font-weight: 700; font-size: .8rem;
    letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; position: sticky; top: 0; cursor: pointer; user-select: none;
}
.data-table th[data-sort]::after { content: " \F127"; font-family: bootstrap-icons; opacity: .45; font-size: .7rem; }
.data-table th.asc::after { content: " \F148"; opacity: 1; }
.data-table th.desc::after { content: " \F128"; opacity: 1; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--blue-soft); }
.data-table tbody tr:nth-child(even) { background: #fafcff; }
.data-table tbody tr:nth-child(even):hover { background: var(--blue-soft); }
.data-table .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-weight: 600; color: var(--navy); }
.table-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--text); }
.pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pager button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.empty-row td { text-align: center; padding: 40px; color: var(--muted); }
@media (max-width: 700px) {
    .data-table.stack thead { display: none; }
    .data-table.stack tr { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); }
    .data-table.stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 12px; text-align: right; }
    .data-table.stack td::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: left; font-size: .8rem; text-transform: uppercase; }
}

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--green-soft); color: #15803d; }
.badge--off { background: var(--red-soft); color: var(--red); }
.badge--info { background: var(--blue-soft); color: var(--blue); }

/* ---------- Acordeón ---------- */
.accordion { display: grid; gap: 12px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc[open] { box-shadow: var(--shadow); border-color: transparent; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; gap: 14px; align-items: center; font-weight: 700; color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\F4FE"; font-family: bootstrap-icons; margin-left: auto; font-size: 1.1rem; color: var(--blue); transition: transform .3s var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__code { flex: 0 0 auto; min-width: 48px; height: 32px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: .82rem; font-weight: 800; }
.acc__body { padding: 0 22px 22px 22px; color: #334155; }
.acc__body p { margin: 0 0 .7em; }
.acc__body table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .88rem; }
.acc__body th, .acc__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.acc__body th { background: var(--blue-soft); color: var(--navy); }

/* ---------- Alertas ---------- */
.alert { display: flex; gap: 14px; padding: 16px 20px; border-radius: var(--radius-sm); border-left: 4px solid var(--blue); background: var(--blue-soft); color: var(--navy); margin-bottom: 20px; }
.alert i { font-size: 1.3rem; color: var(--blue); }
.alert p { margin: 0; }
.alert--ok { border-color: var(--green); background: var(--green-soft); }
.alert--ok i { color: var(--green); }
.alert--warn { border-color: var(--amber); background: #fff7e6; }
.alert--warn i { color: var(--amber); }
.alert--error { border-color: var(--red); background: var(--red-soft); }
.alert--error i { color: var(--red); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fbfdff;
    font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29, 111, 216, .12); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: var(--muted); font-size: .8rem; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 44px; }
.hp { position: absolute; left: -9999px; }
.segmented { display: inline-flex; background: var(--blue-soft); padding: 4px; border-radius: 12px; gap: 4px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px 18px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--navy); transition: .2s; }
.segmented input:checked + span { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--blue); }

/* ---------- Contacto ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.contact-card__icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.3rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: .94rem; display: block; }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); display: block; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--blue-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a::after {
    content: "\F52A"; font-family: bootstrap-icons; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 1.8rem; color: #fff; background: rgba(11, 42, 74, .45); opacity: 0; transition: opacity .3s;
}
.gallery a:hover img { transform: scale(1.08); }
.gallery a:hover::after { opacity: 1; }
.gallery--feature a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery--feature a:first-child { grid-column: span 2; grid-row: span 1; } }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5, 14, 28, .94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s; padding: 60px 16px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; text-align: center; }
.lightbox__figure img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .8); margin-top: 12px; font-size: .9rem; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.2rem; cursor: pointer; transition: .2s; }
.lightbox__btn:hover { background: #fff; color: var(--navy); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Logos (cinta infinita) ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; width: 170px; height: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 12px; transition: .3s; }
.marquee__item img { max-height: 62px; width: auto; filter: grayscale(1); opacity: .75; transition: .3s; }
.marquee__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.marquee__item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

/* ---------- Validadores de obras sociales ---------- */
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.os-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
    padding: 22px 16px; min-height: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative;
}
.os-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue); color: var(--text); }
.os-card__logo { height: 48px; display: grid; place-items: center; }
.os-card__logo img { max-height: 44px; max-width: 150px; width: auto; }
.os-card__logo span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem; }
.os-card strong { color: var(--navy); font-size: .98rem; }
.os-card small { color: var(--blue); font-weight: 700; font-size: .78rem; display: inline-flex; gap: 4px; align-items: center; }
.os-card .bi-box-arrow-up-right { position: absolute; top: 12px; right: 14px; color: var(--muted); font-size: .8rem; }

/* ---------- Banda CTA ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 5vw, 56px);
    background: var(--grad); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 222, 128, .35), transparent 65%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- COCERBIN / destacado ---------- */
.highlight-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.float-img { position: relative; }
.float-img::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--radius); background: var(--grad-accent); opacity: .18; z-index: -1; }
.info-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--bg); border-radius: 12px; }
.info-list i { color: var(--blue); font-size: 1.2rem; }
.info-list strong { color: var(--navy); }

/* ---------- Timeline ---------- */
.timeline { position: relative; list-style: none; padding: 0 0 0 30px; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), var(--green)); }
.timeline li { position: relative; padding: 0 0 22px 10px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); }
.timeline time { font-size: .8rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.timeline h4 { margin: 2px 0 4px; font-size: 1rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Calculadora ---------- */
.result-box { text-align: center; padding: 28px; border-radius: var(--radius); background: var(--grad); color: #fff; }
.result-box .value { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; }
.result-box .unit { opacity: .85; font-size: .9rem; }
.result-box .stage { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: .88rem; }
.kdigo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 16px; }
.kdigo div { padding: 8px 4px; border-radius: 8px; font-size: .72rem; text-align: center; color: #fff; font-weight: 700; opacity: .45; transition: .3s; }
.kdigo div.on { opacity: 1; transform: scale(1.06); box-shadow: var(--shadow); }
.mini-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mini-results div { background: var(--bg); border-radius: 12px; padding: 14px; text-align: center; }
.mini-results strong { display: block; font-size: 1.4rem; color: var(--navy); }
.mini-results small { color: var(--muted); }

/* ---------- Pie de página ---------- */
.footer { background: #071d35; color: rgba(255, 255, 255, .75); padding-top: 72px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: 36px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--grad-accent); }
.footer__logo { height: 56px; width: auto; margin-bottom: 18px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer__about p { font-size: .9rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: .3s; }
.footer__social a:hover { background: var(--green); transform: translateY(-3px); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__links a { color: rgba(255, 255, 255, .75); font-size: .92rem; display: inline-flex; gap: 6px; transition: .2s; }
.footer__links a::before { content: "\F285"; font-family: bootstrap-icons; font-size: .7rem; line-height: 2; color: var(--green); }
.footer__links a:hover { color: #fff; transform: translateX(4px); }
.footer__contact { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; font-size: .92rem; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact i { color: var(--green); }
.footer__contact a { color: rgba(255, 255, 255, .75); }
.footer__contact a:hover { color: #fff; }
.footer__map iframe { width: 100%; height: 190px; border: 0; border-radius: var(--radius-sm); filter: grayscale(.3); }
.app-badge { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.app-badge i { font-size: 1.6rem; color: #4ade80; }
.app-badge span { line-height: 1.2; font-weight: 700; font-size: .92rem; }
.app-badge small { display: block; font-weight: 500; opacity: .7; font-size: .72rem; }
.app-badge:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .82rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0;
    background: var(--grad-accent); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.pill-list li i { color: var(--red); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Área de socios (panel y reportes)
   ========================================================================== */
.member-card {
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
    padding: 24px 28px; margin-top: -70px; position: relative; z-index: 5;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.member-card__profile { display: flex; gap: 18px; align-items: center; min-width: 0; }
.member-card__avatar {
    flex: 0 0 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
    background: var(--grad); color: #fff; font-size: 1.5rem; font-weight: 800; box-shadow: 0 10px 20px rgba(29, 111, 216, .25);
}
.member-card h2 { font-size: 1.35rem; margin: 0 0 6px; }
.member-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; color: var(--muted); align-items: center; }
.member-card__meta strong { color: var(--navy); }
.member-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--danger-soft { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn--danger-soft:hover { background: var(--red); color: #fff; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 28px 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; scrollbar-width: thin; }
.tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 11px;
    border: 0; background: none; font: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: .2s;
}
.tab:hover { color: var(--blue); background: var(--blue-soft); }
.tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(29, 111, 216, .25); }
.tab .count { background: rgba(255, 255, 255, .25); padding: 1px 8px; border-radius: 999px; font-size: .75rem; }
.tab:not(.is-active) .count { background: var(--blue-soft); color: var(--blue); }
.tab-panel { display: none; animation: fadeUp .4s var(--ease); }
.tab-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.query-card { display: grid; grid-template-columns: 280px 1fr; gap: 0; padding: 0; overflow: hidden; }
.query-card__intro { background: var(--grad); color: #fff; padding: 30px 26px; position: relative; overflow: hidden; }
.query-card__intro::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; bottom: -70px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.query-card__intro .feature__icon { background: rgba(255, 255, 255, .16); box-shadow: none; }
.query-card__intro h3 { color: #fff; font-size: 1.2rem; }
.query-card__intro p { color: rgba(255, 255, 255, .85); font-size: .92rem; margin: 0; }
.query-card__body { padding: 30px; }
@media (max-width: 800px) { .query-card { grid-template-columns: 1fr; } }

.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.filter-grid .field label { font-size: .8rem; }
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px 18px; margin-bottom: 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.filter-bar .field { flex: 1 1 130px; }
.filter-bar .field label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.filter-bar select, .filter-grid select { padding: 11px 14px; }

.report-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.report-head__title { font-size: 1.5rem; margin: 0 0 8px; }
.report-head__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; }
.report-head__meta i { color: var(--green); }
.report-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-head__brand { display: none; align-items: center; gap: 12px; width: 100%; padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 8px; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.summary__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; position: relative; overflow: hidden; }
.summary__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.summary__item--green::before { background: var(--grad-accent); }
.summary__item--red::before { background: linear-gradient(#dc2626, #f97316); }
.summary__item small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.summary__item strong { display: block; font-size: 1.45rem; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }

.data-table .num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tfoot td { background: var(--navy); color: #fff; font-weight: 800; padding: 13px 16px; border: 0; }
.data-table tfoot .num { font-size: 1rem; }
.data-table .hl { font-weight: 800; color: var(--green); }
.data-table--compact th, .data-table--compact td { padding: 10px 12px; font-size: .84rem; }
.table-wrap--wide { max-height: 70vh; }

.empty-state { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed #c8d3e1; border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: #b6c4d6; }
.empty-state p { font-weight: 700; color: var(--navy); margin: 10px 0 4px; }

.secret { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; transition: .2s; }
.icon-btn:hover { color: var(--blue); border-color: var(--blue); }
.icon-btn.is-ok { color: var(--green); border-color: var(--green); }

.login-card { max-width: 460px; margin: 0 auto; }

.print-only { display: none !important; }
@media print {
    @page { size: A4 landscape; margin: 12mm; }
    body { background: #fff; font-size: 11px; }
    .topbar, .site-header, .footer, .to-top, .page-hero, .no-print, .menu-backdrop, .lightbox { display: none !important; }
    .print-only { display: flex !important; }
    .section { padding: 0; }
    .container { width: 100%; }
    .table-wrap { box-shadow: none; border: 1px solid #999; overflow: visible; max-height: none; }
    .data-table th { background: #e5e7eb !important; color: #000; position: static; }
    .data-table tfoot td { background: #e5e7eb !important; color: #000; }
    .data-table td, .data-table th { padding: 5px 7px; font-size: 10px; }
    .data-table.stack thead { display: table-header-group; }
    .data-table.stack tr { display: table-row; }
    .data-table.stack td { display: table-cell; text-align: inherit; }
    .data-table.stack td::before { display: none; }
    .summary__item { border: 1px solid #999; }
    a { color: #000; text-decoration: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

.bars { display: grid; gap: 12px; margin-top: 8px; }
.bars__row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.bars__label { color: var(--muted); font-weight: 600; }
.bars__track { height: 12px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--grad-accent); border-radius: 999px; transform-origin: left; animation: grow 1s var(--ease); }
.bars__value { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Recibo de honorarios ---------- */
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 44px); position: relative; overflow: hidden; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--grad); }
.receipt__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed #c8d3e1; }
.receipt__brand { display: flex; gap: 14px; align-items: center; }
.receipt__brand img { height: 52px; width: auto; }
.receipt__brand strong { display: block; color: var(--navy); font-size: 1.1rem; }
.receipt__brand span { color: var(--muted); font-size: .85rem; }
.receipt__number { text-align: right; background: var(--blue-soft); padding: 10px 18px; border-radius: 12px; }
.receipt__number small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.receipt__number strong { font-size: 1.5rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.receipt__title { text-align: center; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 18px; }
.receipt__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 26px; }
.receipt__info div { background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.receipt__info div:first-child { grid-column: span 2; }
.receipt__info dt { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.receipt__info dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.receipt__section { font-size: 1rem; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--green); }
.receipt__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
@media (max-width: 800px) { .receipt__grid { grid-template-columns: 1fr; } .receipt__info div:first-child { grid-column: auto; } }
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; border-bottom: 1px dotted #d5deea; font-size: .92rem; }
.ledger li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); white-space: nowrap; }
.ledger li.is-zero { color: #9aa7b8; }
.ledger li.is-zero span:last-child { color: #9aa7b8; font-weight: 500; }
.ledger--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 32px; }
.ledger--total li { font-weight: 600; }
.receipt__net { margin-top: 16px; padding: 20px; border-radius: 14px; background: var(--grad); color: #fff; text-align: right; }
.receipt__net small { display: block; opacity: .85; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.receipt__net strong { font-size: clamp(1.6rem, 4vw, 2.2rem); font-variant-numeric: tabular-nums; }
.receipt__foot { margin-top: 30px; padding-top: 14px; border-top: 1px dashed #c8d3e1; text-align: center; color: var(--muted); font-size: .8rem; }
@page recibo { size: A4 portrait; margin: 12mm; }
@media print {
    .receipt { page: recibo; box-shadow: none; border: 0; padding: 0; }
    .receipt__net { background: #e5e7eb !important; color: #000; }
    .receipt__number, .receipt__info div { background: #f3f4f6 !important; }
}

/* ---------- Medidor de contraseña ---------- */
.strength { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.strength span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.pw-rules li::before { content: "\F28A"; font-family: bootstrap-icons; margin-right: 4px; }
.pw-rules li.ok { color: var(--green); }
.pw-rules li.ok::before { content: "\F26B"; }
.badge--muted { background: #eef1f5; color: #64748b; }

/* ---------- Contenido enriquecido de novedades (data/novedades_os.php) ---------- */
.rich h4 { font-size: 1.02rem; margin: 18px 0 8px; color: var(--navy); }
.rich h5 { font-size: .95rem; margin: 14px 0 6px; color: var(--navy-2); }
.rich > :first-child { margin-top: 0; }
.rich hr { border: 0; border-top: 1px dashed #d5deea; margin: 18px 0; }
.rich a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rich a.doc-link {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 14px; margin: 2px 0;
    border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: .88rem;
}
.rich a.doc-link::before { content: "\F63E"; font-family: bootstrap-icons; color: var(--red); }
.rich a.doc-link:hover { background: var(--blue); color: #fff; }
.rich a.doc-link:hover::before { color: #fff; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; display: inline-block; vertical-align: top; }
.rich video { width: 100%; max-height: 480px; border-radius: 12px; background: #000; margin: 8px 0; }
.rich ul { margin: 6px 0 12px; }
.rich table { display: block; overflow-x: auto; }
.rich td ul { margin: 0; }

/* Menú en pantallas medianas (1121-1300 px): evita que los títulos se partan en dos líneas */
.menu__link { white-space: nowrap; }
@media (min-width: 1121px) and (max-width: 1300px) {
    .menu__link { padding: 10px 8px; font-size: .87rem; }
    .nav__actions .btn { display: none; }
    .brand img { height: 42px; }
}
