/* ============================================================
   style.css — Oryon Inversores | Portal Documental
   Paleta: #104fa3 · #86ccec · #ffffff
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:          #104fa3;
    --primary-dark:     #0a3872;
    --primary-darker:   #062050;
    --primary-light:    #86ccec;
    --primary-lighter:  #c8e8f7;
    --primary-bg:       #f0f7fd;
    --white:            #ffffff;
    --text-dark:        #0d1b36;
    --text-body:        #2c3e5a;
    --text-muted:       #8094b4;
    --border-light:     rgba(16, 79, 163, 0.12);
    --shadow-sm:        0 2px 12px rgba(16, 79, 163, 0.08);
    --shadow-md:        0 8px 32px rgba(16, 79, 163, 0.15);
    --shadow-lg:        0 20px 60px rgba(16, 79, 163, 0.2);
    --shadow-xl:        0 30px 80px rgba(16, 79, 163, 0.28);
    --radius-sm:        8px;
    --radius-md:        16px;
    --radius-lg:        24px;
    --radius-xl:        36px;
    --ease:             cubic-bezier(0.4, 0, 0.2, 1);
    --transition:       all 0.35s var(--ease);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Cursor: nunca el cursor de texto en elementos no editables */
* { cursor: default; }
a, button, select, label,
.hero-btn, .btn-login, .btn-logout,
.doc-card, .doc-card-btn,
.entity-card, .feature-card, .pillar-card, .timeline-card,
/*.admin-stat-card,*/
.sidebar-link,
.sidebar-link,
.sidebar-logout,
.btn-action, .btn-primary-admin, .btn-secondary-admin,
.btn-copy, .btn-generate, .btn-filter,
[data-copy], [data-toggle-pass], [data-confirm-delete] { cursor: pointer; }
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="search"],
input[type="number"],
textarea,
.admin-form-control { cursor: text; }

/* overflow-x solo en body — evita doble barra de scroll en full HD
   (ponerlo también en html hace que el elemento html cree su propio
   scrollbar independiente del viewport en algunos navegadores) */
html { scroll-behavior: smooth; background: #010913; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start; /* safe-center cross-browser: margin:auto en .login-card centra cuando hay espacio */
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(134,204,236,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(16,79,163,0.25) 0%, transparent 60%),
        linear-gradient(150deg, #062050 0%, #0a3872 40%, #104fa3 100%);
    position: relative;
    padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
}

/* Decorative blobs */
.login-page::before,
.login-page::after {
    content: '';
    position: fixed; /* decoración: fixed no amplía el área de scroll (sustituye al overflow:hidden de antes) */
    border-radius: 50%;
    pointer-events: none;
}
.login-page::before {
    width: 500px; height: 500px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(134,204,236,0.12) 0%, transparent 70%);
}
.login-page::after {
    width: 400px; height: 400px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(134,204,236,0.08) 0%, transparent 70%);
}

.login-card {
    background: #fff;
    border-radius: 28px;
    box-shadow:
        0 40px 100px rgba(6, 32, 80, 0.35),
        0 8px 32px rgba(16, 79, 163, 0.15),
        0 0 0 1px rgba(255,255,255,0.06);
    width: 100%;
    max-width: 460px;
    padding: 52px 48px;
    position: relative;
    z-index: 1;
    margin: auto; /* centra verticalmente cuando hay espacio libre (safe-center cross-browser) */
    animation: loginCardIn 0.7s var(--ease) both;
}

@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo login */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    min-height: 0;
}
.login-logo:empty { margin-bottom: 0; }
.login-logo img { height: auto; width: auto; display: block; }
.login-logo img[src$=".svg"] { width: 100%; max-width: 250px; height: auto; }

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,79,163,0.07);
    border: 1px solid rgba(16,79,163,0.14);
    border-radius: 50px;
    padding: 5px 14px 5px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.login-badge i { font-size: 10px; color: var(--primary-light); }

/* Centrar logo y badge en el login */
.login-logo { justify-content: center; }
.login-page .login-badge {
    display: flex;
    width: fit-content;
    margin: 0 auto 14px;
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.5;
    text-align: center;
}

/* ── Input groups ── */
.login-form .form-group {
    margin-bottom: 14px;
}

.login-form .form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

/* Wrapper flexbox: icono + input en la misma línea */
.login-form .input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f4f8ff;
    border: 1.5px solid #dce8f8;
    border-radius: 16px;
    padding: 0 18px;
    transition: var(--transition);
    width: 100%;
}
.login-form .input-wrapper:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16,79,163,0.09);
}

.login-form .form-icon {
    color: #b0c8e8;
    font-size: 15px;
    flex-shrink: 0;
    margin-right: 13px;
    transition: color 0.25s ease;
    pointer-events: none;
}
.login-form .input-wrapper:focus-within .form-icon {
    color: var(--primary);
}

.login-form .form-control {
    flex: 1;
    height: 54px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    outline: none;
    box-shadow: none;
    width: 100%;
}
.login-form .form-control::placeholder {
    color: #b8cce0;
    font-weight: 400;
}

/* Botón acceder */
.btn-login {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a6bb8 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(16,79,163,0.3);
}
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a6bb8 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.btn-login:hover::before { opacity: 1; }
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(16,79,163,0.4);
}
.btn-login:active { transform: translateY(0); }
.btn-login span, .btn-login i { position: relative; z-index: 1; }

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}
.login-footer i { color: var(--primary-light); margin-right: 4px; }

.alert-login {
    border-radius: 12px;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-login.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

/* ============================================================
   NAVBAR (Presentación inversores)
   ============================================================ */

.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.site-nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(16,79,163,0.1);
}

.site-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo navbar — blanco en hero, color al hacer scroll */
.nav-logo-img {
    height: 80px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);   /* Totalmente blanco sobre fondo oscuro */
    transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
    opacity: 0.92;
}

.site-nav.scrolled .nav-logo-img {
    filter: none;                       /* Colores originales al hacer scroll */
    opacity: 1;
}

/* Marca Oryon: icono cuadrado → altura menor que el logotipo horizontal */
.nav-logo-mark { height: 44px; }
.sidebar-logo-mark { height: 52px; }
@media (max-width: 375px) {
    .site-nav .nav-logo-mark { height: 38px !important; }
}

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.55), 0 6px 28px rgba(0,0,0,0.30);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.nav-brand small {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    opacity: 0.72;
}
.site-nav.scrolled .nav-brand { color: var(--text-dark); text-shadow: none; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-confidential {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.site-nav.scrolled .nav-confidential {
    background: rgba(16,79,163,0.08);
    border-color: rgba(16,79,163,0.15);
    color: var(--primary);
}

a.nav-confidential-link {
    text-decoration: none;
}
a.nav-confidential-link:hover {
    background: rgba(134,204,236,0.22);
    border-color: rgba(134,204,236,0.5);
    color: #fff;
}
.site-nav.scrolled a.nav-confidential-link:hover {
    background: rgba(16,79,163,0.15);
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition);
}
.site-nav.scrolled .nav-user { color: var(--text-muted); }

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-logout:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-1px);
}
.site-nav.scrolled .btn-logout {
    background: rgba(16,79,163,0.08);
    border-color: rgba(16,79,163,0.2);
    color: var(--primary);
}
.site-nav.scrolled .btn-logout:hover {
    background: var(--primary);
    color: #fff;
}
/* ============================================================
   HERO – VERSIÓN IMPACTANTE
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #06080c; /* fallback */
}

/* Vídeo con parallax */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    z-index: 0;
}

/* Overlay dinámico */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg,
            rgba(1,6,20,0.7) 0%,
            rgba(1,6,20,0.2) 30%,
            rgba(1,6,20,0.2) 70%,
            rgba(1,6,20,0.8) 100%),
            radial-gradient(circle at 20% 30%, rgba(16,79,163,0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(134,204,236,0.2) 0%, transparent 50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Partículas */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Contenido */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    /* Offset superior para separar el contenido del navbar fijo (~100px alto) */
    padding: 40px 20px 40px;
    animation: heroContentIn 1.2s cubic-bezier(0.2,0.9,0.3,1) forwards;
}

@keyframes heroContentIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,79,163,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(134,204,236,0.4);
    border-radius: 40px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #86ccec;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Título */
.hero-title {
    font-size: clamp(48px, 12vw, 120px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: wordPop 0.8s cubic-bezier(0.2,0.9,0.3,1) forwards;
}

.hero-word--proyecto { color: #ffffff; }
.hero-word--new {
    color: #86ccec;
    filter: drop-shadow(0 0 15px rgba(134,204,236,0.7));
    animation: wordPop 0.8s cubic-bezier(0.2,0.9,0.3,1) forwards, glowPulse 3s infinite;
}
.hero-word--co {
    color: #104fa3;
    filter: drop-shadow(0 0 15px rgba(16,79,163,0.7));
}

/* Antetítulo del hero */
.hero-kicker {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.4vw, 30px);
    font-weight: 600;
    letter-spacing: 0.42em;
    text-indent: 0.42em;          /* compensa el tracking del último carácter */
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.55), 0 6px 28px rgba(0,0,0,0.30);
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(40px);
    animation: wordPop 0.8s cubic-bezier(0.2,0.9,0.3,1) forwards;
}

/* Lockup Oryon en el hero — SVG en línea, coloreado por capas (sin filtros) */
.hero-lockup {
    display: block;
    width: min(860px, 88vw);
    height: auto;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55)) drop-shadow(0 2px 12px rgba(0,0,0,0.55)) drop-shadow(0 6px 28px rgba(0,0,0,0.30));
    animation: wordPop 0.9s cubic-bezier(0.2,0.9,0.3,1) forwards;
}

@keyframes wordPop {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(134,204,236,0.7)); }
    50% { filter: drop-shadow(0 0 30px rgba(134,204,236,1)); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* Subtítulo */
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    line-height: 1.6;
}

/* Meta items */
.hero-meta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-meta-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-meta-item:hover {
    transform: translateY(-2px);
    border-color: #86ccec;
}

.hero-meta-item i {
    color: #86ccec;
    font-size: 18px;
}

/* Botones CTA */
.hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.hero-btn--primary {
    background: linear-gradient(135deg, #104fa3, #1a6fd4);
    color: #fff;
    box-shadow: 0 8px 25px rgba(16,79,163,0.5);
}

.hero-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.hero-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16,79,163,0.7);
}

.hero-btn--primary:hover::before {
    left: 100%;
}

.hero-btn span {
    position: relative;
    z-index: 2;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

/* Scroll indicator con progreso */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    /*left: 50%;*/
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 3;
    cursor: pointer;
}

.scroll-progress {
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 1px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #86ccec, #104fa3);
    transition: height 0.1s linear;
}

.scroll-indicator i {
    animation: arrowBounce 2s infinite;
    font-size: 16px;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(134,204,236,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 8px 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-icon {
    font-size: 22px;
    color: var(--primary-light);
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Pillars bar — palabra grande (Tradición / Innovación / Liderazgo) */
.stat-pillar-word {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

/* NDA doc card — acento especial */
.doc-card-nda {
    border-color: rgba(134,204,236,0.4);
    background: linear-gradient(135deg, rgba(134,204,236,0.06) 0%, rgba(16,79,163,0.04) 100%);
}
.doc-card-nda .doc-card-icon { color: #86ccec; }
.doc-card-nda .doc-card-num  { color: rgba(134,204,236,0.6); }

/* Phase docs section — fondo oscuro como la sección de docs */
.phase-docs-section {
    background:
        radial-gradient(ellipse 70% 50% at 90% 10%, rgba(134,204,236,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 10% 90%, rgba(16,79,163,0.15) 0%, transparent 55%),
        linear-gradient(155deg, #010913 0%, #041640 40%, #0a3872 100%) !important;
}
.phase-docs-section .section-title {
    color: #ffffff !important;
}
.phase-docs-section .section-subtitle {
    color: rgba(255,255,255,0.55) !important;
}
.phase-docs-section .section-eyebrow {
    background: rgba(134,204,236,0.10);
    border-color: rgba(134,204,236,0.25);
    color: #86ccec;
}
.phase-docs-section .docs-header {
    text-align: center;
}
/* Tarjetas de docs dentro de phase-docs: fondo semitransparente oscuro */
.phase-docs-section .doc-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(134,204,236,0.15);
    color: #fff;
}
.phase-docs-section .doc-card:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(134,204,236,0.35);
}
.phase-docs-section .doc-card-title { color: #fff; }
.phase-docs-section .doc-card-desc  { color: rgba(255,255,255,0.60); }
.phase-docs-section .doc-card-btn   { color: #86ccec; }
.phase-docs-section .doc-card-num   { color: rgba(134,204,236,0.35); }
.phase-docs-section .doc-card-icon  { color: #86ccec; }
.phase-docs-section .doc-card-btn i { color: #86ccec; }
.phase-docs-section .doc-card::before {
    background: linear-gradient(90deg, #86ccec 0%, #104fa3 100%);
}

/* Phase docs: unified 3-column grid */
.phase-docs-section .doc-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.phase-all-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
    .phase-all-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .phase-all-grid { grid-template-columns: 1fr !important; }
}

/* Fase bloqueada: blur + no interacción */
.phase-locked-card {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    cursor: default;
    opacity: 0.65;
}
.phase-locked-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(134,204,236,0.15) !important;
}

/* Doc card bloqueada permanente (aviso DGSFP) — visible, no clicable */
.doc-card-locked-permanent {
    cursor: default !important;
    pointer-events: none;
    border-color: rgba(217,119,6,0.35) !important;
    background: rgba(217,119,6,0.06) !important;
}
.doc-card-locked-permanent::before {
    background: linear-gradient(90deg, #d97706, #fbbf24) !important;
}
/*.doc-card-locked-permanent .doc-card-icon {*/
/*    background: rgba(217,119,6,0.15) !important;*/
/*    border-color: rgba(217,119,6,0.4) !important;*/
/*}*/

.doc-card-locked-permanent .doc-card-title {
    color: #fbbf24 !important;
}
.doc-card-locked-permanent:hover {
    transform: none !important;
    box-shadow: none !important;
}
.doc-card-locked-permanent:hover::after { opacity: 0 !important; }
.doc-card-btn-locked {
    color: rgba(251,191,36,0.85) !important;
    border-color: rgba(217,119,6,0.4) !important;
}
/* Icono advertencia inline en título: hereda font-size del h3 */
.doc-card-warn-inline {
    font-size: 1em !important;
    color: #fbbf24 !important;
    margin-right: 6px;
    vertical-align: -2px;
}

/* Phase badge inside each doc card */
.doc-card-phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(134,204,236,0.12);
    border: 1px solid rgba(134,204,236,0.28);
    color: #86ccec;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.doc-card-phase-badge i { color: #86ccec; font-size: 9px; }

/* Badge collaborator */
.badge-role.collaborator {
    background: rgba(16,163,102,0.12);
    color: #0d8a53;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,79,163,0.07);
    border: 1px solid rgba(16,79,163,0.15);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-eyebrow i { color: var(--primary-light); font-size: 10px; }

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    /*max-width: 600px;*/
}

.section-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--primary);
    margin: -6px 0 18px;
    letter-spacing: 0.3px;
}

section { padding: 100px 0; }
section.bg-light-blue  { background: var(--primary-bg); }
section.bg-white       { background: #fff; }

/* ════════════════════════════════════════════════════════
   SECCIONES DINÁMICAS — más variedad visual
   ════════════════════════════════════════════════════════ */

/* Pillars bar — versión blanca (rompe el azul del hero) */
.stats-pillars-light {
    background: #ffffff;
    border-bottom: 2px solid rgba(16,79,163,0.05);
}
.stats-pillars-light::before { display: none; }
.stats-pillars-light .stat-icon {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 14px;
    opacity: 1;
}
.stats-pillars-light .stat-pillar-word {
    color: var(--primary-dark);
}
.stats-pillars-light .stat-label {
    color: var(--text-muted);
}
.stats-pillars-light .stat-item {
    border-right-color: var(--border-light);
    padding: 36px 40px;
}

/* Archivo Histórico — sección oscura dramática */
section.bg-heritage {
    background: linear-gradient(160deg, #0a3872 0%, #104fa3 55%, #1259b5 100%);
    position: relative;
    overflow: hidden;
}
/* Orb de luz corporativo sutil */
section.bg-heritage::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134,204,236,0.12) 0%, transparent 65%);
    pointer-events: none;
}
/* Textos sobre fondo corporativo azul */
section.bg-heritage .section-eyebrow {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
}
section.bg-heritage .section-title {
    color: #ffffff;
}
section.bg-heritage .section-brand {
    color: #86ccec;
}
section.bg-heritage .section-subtitle,
section.bg-heritage p {
    /*color: rgba(255,255,255,0.72);*/
}
section.bg-heritage .quienes-separator {
    background: rgba(255,255,255,0.15);
}

/* Grid de fotos históricas — columnas iguales */
.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}

.heritage-item {
    text-align: center;
    position: relative;
}

.heritage-photo {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(134,204,236,0.08);
    background: #1a2d4a;
    aspect-ratio: 4/3;
}
/* Todas las fotos usan el mismo ratio, sea landscape o portrait */
.heritage-photo.landscape { aspect-ratio: 4/3; }
.heritage-photo.portrait  { aspect-ratio: 4/3; }

.heritage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1) sepia(0.15) contrast(1.12) brightness(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
    display: block;
}
.heritage-photo:hover img {
    filter: grayscale(0.5) sepia(0.1) brightness(1.08);
    transform: scale(1.04);
}

.heritage-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(16,79,163,0.88);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid rgba(134,204,236,0.3);
}

.heritage-caption {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
    padding: 0 8px;
}
.heritage-caption strong {
    color: rgba(255,255,255,0.85);
    font-style: normal;
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

/* Fondo degradado suave — variante de bg-light-blue */
section.bg-gradient-soft {
    background: linear-gradient(155deg, #f0f7fd 0%, #e5f0fa 50%, #dcedf8 100%);
}

/* Cards más vibrantes con hover dinámico */
.feature-card:hover  { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(16,79,163,0.18); }
.pillar-card:hover   { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,79,163,0.15); border-color: rgba(16,79,163,0.25); }
.entity-card:hover   { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(16,79,163,0.15); }
.doc-card:hover      { transform: translateY(-8px); }

/* Responsive heritage */
@media (max-width: 768px) {
    .heritage-grid { grid-template-columns: 1fr; max-width: 380px; }
}

.container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Scroll reveal animation class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */

.quienes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.quienes-text p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}

.quienes-entities {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.entity-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.entity-card:hover {
    border-color: var(--primary-light);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}
.entity-card-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.entity-card-icon i { color: #fff; font-size: 18px; }
.entity-card-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}
.entity-card-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.founding-badge {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.founding-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}
.founding-badge-year {
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.12);
    font-family: 'Montserrat', sans-serif;
    position: relative;
}
.founding-badge-main {
    position: relative;
    z-index: 1;
    margin-top: -30px;
}
.founding-badge-main .big-year {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}
.founding-badge-main .year-label {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}
.founding-badge-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-top: 20px;
    position: relative;
}

/* ============================================================
   TIMELINE (Trayectoria)
   ============================================================ */

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-light), var(--primary-lighter), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: calc(50% + 48px);
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 48px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(16,79,163,0.2), var(--shadow-sm);
    z-index: 2;
}

.timeline-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow-wrap: break-word;
}
.timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.timeline-year::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.timeline-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.timeline-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}
.timeline-card .timeline-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
    margin-right: 6px;
}

/* ============================================================
   PROYECTO — Feature grid
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: var(--primary-lighter);
}

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.feature-icon i { font-size: 22px; color: var(--primary); }
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.feature-card:hover .feature-icon i { color: #fff; }

.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   MODELO DE NEGOCIO — Pillars
   ============================================================ */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.pillar-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: var(--transition);
    display: flex;
    gap: 16px;
}
.pillar-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.pillar-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-lighter);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.pillar-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.pillar-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   CTA — DOCUMENTOS (3 big buttons)
   ============================================================ */

.docs-section {
    background:
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(134,204,236,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(134,204,236,0.06) 0%, transparent 60%),
        linear-gradient(150deg, #062050 0%, #0a3872 60%, #104fa3 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.docs-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(134,204,236,0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.docs-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.docs-header .section-eyebrow {
    background: rgba(134,204,236,0.1);
    border-color: rgba(134,204,236,0.2);
    color: var(--primary-light);
}
.docs-header .section-eyebrow i { color: var(--primary-light); }

.docs-header .section-title { color: #fff; }
.docs-header .section-subtitle { color: rgba(255,255,255,0.55); margin: 0 auto; }

.doc-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.doc-cards-grid-sp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* .phase-docs-wrapper — removed; all docs render in a single flat .doc-cards-grid */

.doc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(134,204,236,0.15);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    text-decoration: none;
    /* Flex column — ensures uniform card heights and pinned CTA button */
    display: flex;
    flex-direction: column;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.doc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,79,163,0.15) 0%, rgba(134,204,236,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.doc-card:hover {
    transform: translateY(-12px);
    border-color: rgba(134,204,236,0.4);
    box-shadow:
        0 0 40px rgba(134,204,236,0.12),
        0 40px 100px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.07);
}
.doc-card:hover::after { opacity: 1; }

.doc-card-num {
    position: absolute;
    top: 24px; right: 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 900;
    color: rgba(134,204,236,0.08);
    line-height: 1;
    user-select: none;
}

.doc-card-icon {
    width: 68px; height: 68px;
    border-radius: 18px;
    background: rgba(134,204,236,0.08);
    border: 1px solid rgba(134,204,236,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.doc-card-icon i {
    font-size: 26px;
    color: var(--primary-light);
}
.doc-card:hover .doc-card-icon {
    background: linear-gradient(135deg, rgba(16,79,163,0.4), rgba(134,204,236,0.2));
    border-color: rgba(134,204,236,0.4);
}

.doc-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.doc-card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    flex: 1; /* pushes .doc-card-btn to card bottom */
}

.doc-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a6bb8 100%);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(134,204,236,0.15);
    position: relative;
    z-index: 1;
    align-self: flex-start; /* don't stretch full width */
    margin-top: auto;       /* safety anchor when no desc */
}
.doc-card-btn i { font-size: 12px; transition: transform 0.25s ease; }
.doc-card:hover .doc-card-btn {
    background: linear-gradient(135deg, #1a6bb8 0%, var(--primary-light) 100%);
    color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(134,204,236,0.25);
}
.doc-card:hover .doc-card-btn i { transform: translateX(4px); }

/* ============================================================
   AVANCE DEL CAPITAL COMPROMETIDO (progress card)
   ============================================================ */

.progress-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 44px;
}

.progress-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.progress-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.35;
}

.progress-card-stat {
    flex-shrink: 0;
    text-align: right;
}

.progress-card-stat-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.progress-card-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-top: 4px;
}

.progress-card-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.progress-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.progress-card-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.progress-card-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.progress-bar-wrap {
    position: relative;
    padding-top: 6px; /* espacio para que el badge no se corte al pisar el borde superior */
}

.progress-bar-track {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e4ecf7 0%, var(--primary-bg) 100%);
    border: 1px solid var(--border-light);
    box-shadow: inset 0 2px 5px rgba(13,27,54,0.10);
    overflow: hidden;
}

/* Relleno: ancho anima 0→objetivo al entrar en viewport (JS),
   gradiente diagonal profundo + textura de franjas diagonales deslizante en bucle lento */
.progress-bar-fill {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow: 0 1px 3px rgba(10,56,114,0.35);
    transition: width 2.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0.08) 35%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* Textura diagonal sutil — background-position en bucle (sin salto al reiniciar,
   a diferencia de un transform:translateX que corta al volver a 0%) */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg,
            rgba(255,255,255,0.16) 0, rgba(255,255,255,0.16) 2px,
            transparent 2px, transparent 18px);
    background-size: 200% 100%;
    animation: diagonalTexture 5s linear infinite;
    z-index: 2;
}

@keyframes diagonalTexture {
    0%   { background-position: 0 0; }
    100% { background-position: -36px 0; }
}

/* Badge flotante en el punto de avance — su `left` lo fija main.js
   junto con el ancho del fill (mismo dato, misma transición) */
.progress-bar-badge {
    position: absolute;
    top: 3px;
    left: 0%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(155deg, var(--primary-light) 0%, var(--primary) 60%, var(--primary-dark) 100%);
    box-shadow: 0 4px 14px rgba(10,56,114,0.35), inset 0 1px 1px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    transition: left 2.8s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}

.progress-bar-badge::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,79,163,0.28) 0%, transparent 70%);
    animation: badgeRipple 2.6s ease-out infinite;
    z-index: -1;
}

@keyframes badgeRipple {
    0%   { transform: scale(0.7); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

.progress-bar-badge-check {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    box-shadow: 0 1px 3px rgba(13,27,54,0.3);
}

.progress-bar-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.progress-bar-scale span {
    position: relative;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 8px;
}

.progress-bar-scale span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 6px;
    background: var(--border-light);
}

/* Variante compacta — usada dentro de #documentacion, debajo de las tarjetas de docs.
   Ancho auto (llena el contenedor, igual que .doc-cards-grid) + layout en línea
   (título, stat y filas en una misma fila) para mantener la altura mínima. */
.progress-card-compact {
    max-width: none;
    width: auto;
    margin: 40px 0 0;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 40px;
    row-gap: 10px;
    position: relative;
    z-index: 1;
}

/* display:contents — el header ya no genera caja propia: título y stat pasan a
   ser items directos de .progress-card-compact para poder anclar el stat a la
   esquina derecha (orden + margin-left:auto) independiente del título/filas. */
.progress-card-compact .progress-card-header {
    display: contents;
}

.progress-card-compact .progress-card-title {
    order: 1;
    font-size: 15px;
}

.progress-card-compact .progress-card-stat {
    order: 3;
    margin-left: auto;
}

.progress-card-compact .progress-card-stat-value { font-size: 24px; }

.progress-card-compact .progress-card-stat-label { font-size: 10px; }

.progress-card-compact .progress-card-rows {
    order: 2;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 28px;
    margin-bottom: 0;
}

.progress-card-compact .progress-card-row { flex-direction: column; align-items: flex-start; gap: 2px; }

.progress-card-compact .progress-card-label { font-size: 11px; }

.progress-card-compact .progress-card-value { font-size: 14px; }

.progress-card-compact .progress-bar-wrap { order: 4; flex: 1 1 100%; padding-top: 2px; }

.progress-card-compact .progress-bar-track { height: 10px; }

.progress-card-compact .progress-bar-badge {
    width: 20px;
    height: 20px;
    font-size: 9px;
}

.progress-card-compact .progress-bar-badge-check {
    width: 9px;
    height: 9px;
    font-size: 6px;
}

.progress-card-compact .progress-bar-scale {
    order: 5;
    flex: 1 1 100%;
    margin-top: 6px;
}

.progress-card-compact .progress-bar-scale span { font-size: 10px; }

@media (max-width: 640px) {
    .progress-card-compact { padding: 16px 20px; }
    .progress-card-compact .progress-card-title,
    .progress-card-compact .progress-card-rows,
    .progress-card-compact .progress-card-stat { flex: 1 1 100%; margin-left: 0; }
    .progress-card-compact .progress-card-stat { text-align: left; }
}

@media (max-width: 480px) {
    .progress-card-compact .progress-card-rows { flex-direction: column; gap: 10px; }
    .progress-card-compact .progress-card-stat-value { font-size: 22px; }
    .progress-card-compact .progress-card-value { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .progress-bar-fill::after { animation: none; }
    .progress-bar-badge::before { animation: none; opacity: 0.45; }
    .progress-bar-fill, .progress-bar-badge { transition-duration: 0.01ms; }
}

@media (max-width: 480px) {
    .progress-card { padding: 28px 24px; }
    .progress-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .progress-card-stat { text-align: left; }
    .progress-card-stat-value { font-size: 32px; }
    .progress-card-value { font-size: 17px; }
    .progress-bar-badge { width: 24px; height: 24px; font-size: 11px; }
    .progress-bar-badge-check { width: 12px; height: 12px; font-size: 7px; }
    .progress-bar-scale span { font-size: 10px; }
}
/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--primary-darker);
    padding: 48px 0;
    border-top: 1px solid rgba(134,204,236,0.1);
}

/*.footer-inner {*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    padding: 0 40px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    flex-wrap: wrap;*/
/*    gap: 24px;*/
/*}*/
.footer-inner {
    display: flex;
    padding: 0 40px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-contact {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer-contact-item i { color: var(--primary-light); }
.footer-contact-item a { color: rgba(255,255,255,0.5); }
.footer-contact-item a:hover { color: var(--primary-light); }

/* Avatar circular Lucía Rueda */
.footer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px dashed rgba(134,204,236,0.45);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(134,204,236,0.08);
    transition: border-style 0.3s ease;
    /* Cuando tengas la foto:
       reemplaza el div por <img src="assets/img/lucia-rueda.jpg" alt="Lucía Rueda">
       y el border cambia a solid automáticamente */
}
.footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.footer-avatar:has(img) { border-style: solid; }

/* Scroll offset para el navbar fijo */
#presentacion,
#documentacion {
    scroll-margin-top: 88px;
}

.footer-legal {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    text-align: right;
    line-height: 1.5;
}

/* ============================================================
   DOCUMENT VIEWER PAGE
   ============================================================ */

.viewer-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f7fb;
}

.viewer-topbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 18px 0;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(16,79,163,0.3);
}

.viewer-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.viewer-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.viewer-back:hover { color: #fff; }

.viewer-doc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.viewer-doc-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.viewer-frame {
    flex: 1;
    border: none;
    display: block;
    width: 100%;
    min-height: calc(100vh - 70px);
}

/* Placeholder when no URL */
.viewer-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.placeholder-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.placeholder-icon {
    width: 80px; height: 80px;
    border-radius: 20px;
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.placeholder-icon i { font-size: 32px; color: var(--primary-light); }

.placeholder-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.placeholder-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0d1b36 0%, #0a2a52 100%);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 0px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1.5px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sidebar-logo-img {
    height: 72px;
    width: auto;
    display: block;
    margin: 0 auto 14px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sidebar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-align: center;
}
.sidebar-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    margin-top: 3px;
    text-align: center;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    padding: 16px 24px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 0;
}
.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%; transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-light);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}
.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.sidebar-link:hover::before { height: 60%; }
.sidebar-link.active {
    color: #fff;
    background: rgba(16,79,163,0.3);
}
.sidebar-link.active::before { height: 70%; }

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s ease;
}
.sidebar-link:hover i,
.sidebar-link.active i { color: var(--primary-light); }

.sidebar-badge {
    margin-left: auto;
    background: rgba(134,204,236,0.15);
    color: var(--primary-light);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}
.sidebar-logout:hover { color: #ff6b6b; }
.sidebar-logout i { font-size: 13px; }

/* Main content area */
.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e8ecf4;
    padding: 18px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}
.admin-page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.admin-content {
    padding: 32px 36px;
    flex: 1;
}

/* Admin stat cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8ecf4;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
}
.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.admin-stat-icon.blue { background: rgba(16,79,163,0.08); }
.admin-stat-icon.blue i { color: var(--primary); font-size: 20px; }
.admin-stat-icon.cyan { background: rgba(134,204,236,0.15); }
.admin-stat-icon.cyan i { color: #0891b2; font-size: 20px; }
.admin-stat-icon.green { background: rgba(34,197,94,0.1); }
.admin-stat-icon.green i { color: #16a34a; font-size: 20px; }
.admin-stat-icon.amber { background: rgba(245,158,11,0.1); }
.admin-stat-icon.amber i { color: #d97706; font-size: 20px; }

.admin-stat-info {
    /*flex: 1;*/
    display: flex;
    flex-direction: column;
    align-items: flex-start; }
.admin-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}
.admin-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Admin cards */
.admin-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e8ecf4;
    overflow: hidden;
}

.admin-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8ecf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-card-body { padding: 24px; }

/* Dashboard 2-col grid */
.admin-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Card header link */
.admin-card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.admin-card-link:hover { text-decoration: underline; }

/* Role badge */
.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.role-admin    { background: rgba(16,79,163,0.10); color: var(--primary); }
.role-investor { background: rgba(134,204,236,0.20); color: #0369a1; }

/* Table helpers */
.table-user-name  { font-weight: 600; color: var(--text-dark); font-size: 13px; }
.table-user-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.table-date       { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.table-empty      { text-align: center; color: var(--text-muted); padding: 24px !important; font-size: 13px; }

@media (max-width: 900px) {
    .admin-grid-2col { grid-template-columns: 1fr; }
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e8ecf4;
    background: #f9fafb;
    text-align: left;
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f7;
    color: var(--text-body);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f9fbff; }

/* Badges */
.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.badge-role.admin {
    background: rgba(16,79,163,0.1);
    color: var(--primary);
}
.badge-role.investor {
    background: rgba(134,204,236,0.15);
    color: #0891b2;
}
.badge-role.collaborator {
    background: rgba(16,163,102,0.10);
    color: #0d8a53;
}

.badge-doc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--border-light);
}

/* Action buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid #e8ecf4;
    background: #fff;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}
.btn-action:hover.edit {
    background: rgba(16,79,163,0.08);
    border-color: rgba(16,79,163,0.2);
    color: var(--primary);
}
.btn-action:hover.delete {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-primary-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #1a6bb8);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.btn-primary-admin:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16,79,163,0.3);
}

.btn-secondary-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--text-body);
    border: 1.5px solid #e8ecf4;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.btn-secondary-admin:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* Admin form */
.admin-form-group {
    margin-bottom: 20px;
}
.admin-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.admin-form-label .required { color: #ef4444; margin-left: 3px; }
.admin-form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e8ecf4;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    background: #fff;
    transition: var(--transition);
}
.admin-form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16,79,163,0.08);
    outline: none;
}
.admin-form-select {
    height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238094b4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.admin-form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Password copy area */
.password-display {
    display: flex;
    gap: 8px;
    align-items: center;
}
.password-display input {
    flex: 1;
    font-family: 'Courier New', monospace;
    background: #f9fafb;
}
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-bg);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-copy:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-generate {
    background: rgba(134,204,236,0.1);
    border-color: rgba(134,204,236,0.3);
    color: #0891b2;
}
.btn-generate:hover {
    background: #0891b2;
    color: #fff;
    border-color: #0891b2;
}

/* Delete confirm */
.delete-confirm-box {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.delete-confirm-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.delete-confirm-icon i { font-size: 24px; color: #dc2626; }

/* Activity log pill */
.log-time {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 40px;
    color: var(--primary-lighter);
    margin-bottom: 16px;
    display: block;
}
.empty-state p { font-size: 14px; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bar select,
.filter-bar input {
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid #e8ecf4;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-body);
    background: #fff;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--primary);
    outline: none;
}
.btn-filter {
    height: 38px;
    padding: 0 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-filter:hover { background: var(--primary-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid .stat-item:nth-child(2) { border-right: none; }
    .stats-grid .stat-item:nth-child(3) { border-right: none; border-top: 1px solid rgba(255,255,255,0.1); grid-column: span 2; }
    .doc-cards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .quienes-grid { grid-template-columns: 1fr; gap: 40px; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-right: 0; padding-left: 60px; justify-content: flex-start; }
    .timeline-item:nth-child(even) { padding-left: 60px; }
    .timeline-dot { left: 20px; }
    .timeline-card { max-width: 100%; }
    .admin-sidebar { width: 220px; }
    .admin-main { margin-left: 220px; }
    .site-nav .nav-inner { padding: 0 20px; }
    .container-inner { padding: 0 20px; }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-item:last-child { border-bottom: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; position: relative; height: auto; }
    .admin-main { margin-left: 0; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-content { padding: 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    /*.footer-legal { text-align: left; }*/
    .nav-confidential { display: none; }
    .nav-user { display: none; }
    .login-card { padding: 36px 28px; }
    .hero-logo {height: 150px; margin: 32px auto 32px;}
}

@media (max-width: 480px) {
    .admin-stats-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .doc-card { padding: 32px 24px; }
    .hero-content { padding: 100px 20px 60px; }
    .hero-logo {height: auto; margin: 0px auto 32px;}
    .nav-brand { gap: 0px; }
}
@media (max-width: 320px) {
    .users-responsive-table tbody {padding: 0px !important;}
    .admin-stats-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .doc-card { padding: 32px 24px; }
    .hero-content { padding: 100px 20px 60px; }
    .hero-logo {height: auto; margin: 0px auto 32px;}
    .nav-brand { gap: 0px; }
}

/* ============================================================
   DYNAMIC REBRAND v3 — MÁS DINAMISMO
   Appended below base styles — estas reglas tienen prioridad.
   ============================================================ */

/* ── Hero: fondo neutro oscuro — el vídeo aporta todo el color */
.hero {
    background: #06080c;
}
/* Dot grid: muy sutil, casi invisible para no añadir azul */
.hero::before {
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    opacity: 0.6;
}

/* Orbs apagados — el vídeo tiene su propio movimiento */
.hero-orb-1,
.hero-orb-2,
.hero-orb-3 { opacity: 0; pointer-events: none; }

@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(50px,-35px) scale(1.07); }
    66%      { transform: translate(-25px, 55px) scale(0.94); }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(-45px, 28px) scale(1.1); }
    66%      { transform: translate(35px,-48px) scale(0.93); }
}
@keyframes orbFloat3 {
    0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.7; }
    50%      { transform: translate(-50%,-50%) scale(1.18); opacity: 1; }
}

/* Hero title: más grande y highlight más vívido */
.hero-title {
    font-size: clamp(56px, 10vw, 120px);
    letter-spacing: -2px;
}
.hero-title .highlight {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    animation: none;
}

/* Hero CTA primario: gradiente + glow fuerte */
.hero-btn-primary {
    /*background: linear-gradient(135deg, #104fa3 0%, #1a6fd4 100%);*/
    box-shadow: 0 8px 32px rgba(16,79,163,0.5), 0 2px 0 rgba(255,255,255,0.12) inset;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, background 0.3s ease;
}
.hero-btn-primary:hover {
    background: linear-gradient(135deg, #1560c8 0%, #2a8fe4 100%);
    box-shadow: 0 16px 48px rgba(16,79,163,0.6), 0 2px 0 rgba(255,255,255,0.15) inset;
    transform: translateY(-4px) scale(1.03);
}
.hero-btn-secondary {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}
.hero-btn-secondary:hover {
    transform: translateY(-3px);
}

/* Scroll indicator: pulso continuo */
.scroll-indicator {
    animation: scrollBounce 2.5s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%,100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 1;    transform: translateX(-50%) translateY(10px); }
}

/* ── Wave dividers entre secciones ──────────────────────── */
.wave-divider {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0; padding: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.wave-divider svg {
    display: block;
    width: 100%;
}

/* Wave integrada dentro del hero para que el vídeo se vea a través */
.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    z-index: 3;
}
.hero-wave-bottom svg {
    display: block;
    width: 100%;
}

/* ── Pillars bar: gradient icon boxes ───────────────────── */
.stats-pillars-light .stat-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(135deg, #104fa3 0%, #1a6fd4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 8px 28px rgba(16,79,163,0.32), 0 2px 0 rgba(255,255,255,0.15) inset;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.stats-pillars-light .stat-icon i {
    font-size: 28px;
    color: #fff !important;
}
.stats-pillars-light .stat-item {
    padding: 44px 32px;
    transition: transform 0.3s ease;
}
.stats-pillars-light .stat-item:hover {
    transform: translateY(-3px);
}
.stats-pillars-light .stat-item:hover .stat-icon {
    transform: translateY(-5px) scale(1.1) rotate(-5deg);
    box-shadow: 0 16px 40px rgba(16,79,163,0.5);
}
.stats-pillars-light .stat-pillar-word {
    font-size: 26px;
    font-weight: 900;
    color: #0d1b36;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.stats-pillars-light .stat-label {
    font-size: 13px;
    color: #5a7099;
    font-weight: 500;
}

/* ── Feature cards: icono gradiente siempre (no solo en hover) */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #104fa3 0%, #1a6fd4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: none;
    box-shadow: 0 6px 22px rgba(16,79,163,0.30);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.feature-icon i {
    font-size: 24px;
    color: #fff;
}
.feature-card {
    border: 1px solid rgba(16,79,163,0.08);
    box-shadow: 0 4px 20px rgba(16,79,163,0.05);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 72px rgba(16,79,163,0.18);
    border-color: rgba(16,79,163,0.22);
}
.feature-card:hover .feature-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 12px 36px rgba(16,79,163,0.50);
    background: linear-gradient(135deg, #0a3872 0%, #1a6fd4 100%);
}
/* Icono siempre blanco (override del hover anterior) */
.feature-card .feature-icon i { color: #fff; }
.feature-card:hover .feature-icon i { color: #fff; }

/* ── Entity cards: icono gradiente ──────────────────────── */
.entity-card {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.entity-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(16,79,163,0.12);
}
.entity-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #104fa3 0%, #1a6fd4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    box-shadow: 0 4px 16px rgba(16,79,163,0.28);
    transition: transform 0.3s ease;
}
.entity-card-icon i {
    font-size: 18px;
    color: #fff;
}
.entity-card:hover .entity-card-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* ── Pillar cards: número gradiente + hover fuerte ───────── */
.pillar-number {
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #104fa3 0%, #86ccec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    min-width: 60px;
}
.pillar-card {
    background: #ffffff;
    border: 1px solid rgba(16,79,163,0.10);
    box-shadow: 0 4px 20px rgba(16,79,163,0.05);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pillar-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #104fa3 0%, #86ccec 100%);
    border-radius: 0 0 0 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}
.pillar-card:hover::after {
    transform: scaleY(1);
}
.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(16,79,163,0.16);
    border-color: rgba(16,79,163,0.20);
    background: #fff;
}

/* ── Timeline: año como badge gradiente + dot glow ──────── */
.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #104fa3 0%, #1a6fd4 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(16,79,163,0.35);
}
.timeline-dot {
    box-shadow: 0 0 0 6px rgba(16,79,163,0.12), 0 0 0 12px rgba(16,79,163,0.06), 0 0 28px rgba(16,79,163,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(16,79,163,0.18), 0 0 40px rgba(16,79,163,0.40);
}
.timeline-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: 0 16px 48px rgba(16,79,163,0.12);
}
.timeline-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,79,163,0.07);
    border: 1px solid rgba(16,79,163,0.14);
    color: #104fa3;
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    margin-right: 6px;
    transition: background 0.3s ease;
}
.timeline-stat:hover {
    background: rgba(16,79,163,0.14);
}

/* ── Doc cards: línea superior gradiente siempre visible ─── */
.doc-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.doc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #104fa3 0%, #86ccec 100%);
    opacity: 1;
    transform: none;
}
.doc-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 36px 88px rgba(0,0,0,0.28);
}

/* ── Docs section: aún más dramático ────────────────────── */
.docs-section {
    background:
        radial-gradient(ellipse 70% 50% at 10% 20%, rgba(134,204,236,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 80%, rgba(16,79,163,0.18) 0%, transparent 55%),
        linear-gradient(155deg, #010913 0%, #041640 40%, #0a3872 100%);
    position: relative;
    overflow: hidden;
}

/* ── bg-light-blue: gradiente más rico ───────────────────── */
.bg-light-blue {
    background: linear-gradient(175deg, #f4f9fe 0%, #eaf3fd 45%, #deeaf9 100%);
    position: relative;
}
.bg-light-blue::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,79,163,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── bg-gradient-soft: más contraste ────────────────────── */
.bg-gradient-soft {
    background: linear-gradient(145deg, #eef6fd 0%, #dceef9 40%, #cce4f7 70%, #daf2fb 100%);
    position: relative;
    overflow: hidden;
}
.bg-gradient-soft::before {
    content: '';
    position: absolute;
    bottom: -120px; left: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134,204,236,0.22) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Founding badge: más vibrante ────────────────────────── */
.founding-badge {
    background: linear-gradient(145deg, #041640 0%, #104fa3 100%);
    box-shadow:
        0 32px 96px rgba(16,79,163,0.55),
        0 0 0 1px rgba(134,204,236,0.15),
        inset 0 1px 0 rgba(255,255,255,0.12);
}
.founding-badge-year {
    background: linear-gradient(135deg, rgba(134,204,236,0.25), rgba(134,204,236,0.08));
    border: 1px solid rgba(134,204,236,0.3);
}

/* ── Section eyebrow: más vibrante ──────────────────────── */
.section-eyebrow {
    background: rgba(16,79,163,0.08);
    border-color: rgba(16,79,163,0.20);
    font-weight: 700;
    letter-spacing: 1.8px;
}

/* ── bg-white: orb sutil en esquina ─────────────────────── */
.bg-white {
    position: relative;
    overflow: hidden;
}
.bg-white::after {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 550px; height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,79,163,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.bg-white > * { position: relative; z-index: 1; }

/* ── Login page: fondo más dramático ────────────────────── */
.login-page {
    background:
        radial-gradient(ellipse 70% 55% at 20% 35%, rgba(16,79,163,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 80% 65%, rgba(10,56,114,0.5) 0%, transparent 60%),
        linear-gradient(160deg, #010810 0%, #030f2e 45%, #062050 80%, #083070 100%);
}
.login-card {
    box-shadow:
        0 40px 120px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.07),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Footer: negro más profundo ─────────────────────────── */
.site-footer {
    background: #010913;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Heritage section: override corporativo ─────────────── */
.bg-heritage {
    background: linear-gradient(160deg, #0a3872 0%, #104fa3 55%, #1259b5 100%);
}

/* ── Responsive ajustes dinámicos ────────────────────────── */
@media (max-width: 900px) {
    .hero-title { font-size: clamp(50px, 12vw, 90px); }
    .pillar-number { font-size: 44px; }
    .stats-pillars-light .stat-icon { width: 64px; height: 64px; border-radius: 20px; }
    .stats-pillars-light .stat-icon i { font-size: 24px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: clamp(46px, 13vw, 80px); }
    .pillar-number { font-size: 40px; }
}

/* ============================================================
   HERO — Vídeo de fondo
   ============================================================ */

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 1;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    /* Bottom-heavy vignette: deja ver el vídeo en el centro, oscurece arriba y abajo */
    background:
        linear-gradient(180deg,
            rgba(1,6,20,0.55) 0%,
            rgba(1,6,20,0.10) 30%,
            rgba(1,6,20,0.15) 65%,
            rgba(1,6,20,0.72) 100%),
        radial-gradient(ellipse 75% 65% at 50% 50%,
            transparent 25%,
            rgba(1,6,20,0.22) 100%);
    z-index: 1;
}

/* Subir dot-grid, orbs y contenido por encima del overlay */
.hero::before { z-index: 2; }
.hero-orb     { z-index: 2; }
/* .hero-content ya tiene z-index: 2 — queda sobre los orbs por orden DOM */

/* ── Animación neon-wave: cicla entre azul corporativo y azul claro ── */
@keyframes neon-wave {
    0%, 100% {
        text-shadow:
            /* Sombra dura para legibilidad */
            0 2px 8px  rgba(0,0,0,0.95),
            0 4px 28px rgba(0,0,0,0.80),
            /* Glow azul primario */
            0 0  18px rgba(16, 79,163,0.90),
            0 0  40px rgba(16, 79,163,0.55),
            0 0  80px rgba(16, 79,163,0.25);
    }
    50% {
        text-shadow:
            0 2px 8px  rgba(0,0,0,0.95),
            0 4px 28px rgba(0,0,0,0.80),
            /* Glow azul claro */
            0 0  18px rgba(134,204,236,0.95),
            0 0  40px rgba(134,204,236,0.60),
            0 0  80px rgba(134,204,236,0.30);
    }
}

@keyframes neon-wave-sub {
    0%, 100% {
        text-shadow:
            0 1px 6px  rgba(0,0,0,0.95),
            0 3px 18px rgba(0,0,0,0.80),
            0 0  12px rgba(16, 79,163,0.70),
            0 0  30px rgba(16, 79,163,0.35);
    }
    50% {
        text-shadow:
            0 1px 6px  rgba(0,0,0,0.95),
            0 3px 18px rgba(0,0,0,0.80),
            0 0  12px rgba(134,204,236,0.80),
            0 0  30px rgba(134,204,236,0.40);
    }
}

/* ── Hero rebranding: premium clean — sin neón ───────────── */

/* Título base: sombra de legibilidad, sin animación */
.hero-title {
    animation: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.55), 0 6px 28px rgba(0,0,0,0.30);
}

/* Neutralizar .highlight (ya no se usa en el HTML) */
.hero-title .highlight {
    -webkit-text-fill-color: #ffffff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: none;
    animation: none;
    color: #ffffff;
}
@keyframes highlight-neon {
    0%, 100% { filter: none; }
    50%       { filter: none; }
}

/* ── 3 palabras con colores distintos ────────────────────── */
.hero-word-proyecto {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}
.hero-word-new {
    color: rgb(45, 161, 238);
    -webkit-text-fill-color: rgb(45, 161, 238);
    filter: drop-shadow(0 0 10px rgba(134,204,236,0.40));
}
.hero-word-co {
    color: #104fa3;
    -webkit-text-fill-color: #104fa3;
    filter: drop-shadow(0 0 10px rgba(16,79,163,0.55));
}

/* ── Subtítulo: líneas acento + texto más brillante ───────── */
.hero-subtitle {
    color: rgba(255,255,255,0.92);
    animation: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 12px rgba(0,0,0,0.55), 0 6px 28px rgba(0,0,0,0.30);
    padding: 18px 0;
    position: relative;
}
.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    margin: 0 auto 14px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}
.hero-subtitle::after {
    margin: 14px auto 0;
}

/* ── Eyebrow: más prominente con glow y borde más fuerte ─── */
.hero-eyebrow {
    background: rgba(134,204,236,0.14);
    border: 1px solid rgba(134,204,236,0.50);
    color: #86ccec;
    text-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 2.5px;
    padding: 10px 24px;
    font-size: 12px;
    margin-bottom: 28px;
    box-shadow:
        0 0 28px rgba(134,204,236,0.16),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-eyebrow i {
    font-size: 13px;
    color: #86ccec;
    filter: drop-shadow(0 0 5px rgba(134,204,236,0.60));
}

/* ── Meta items: pills más grandes, iconos en primary-light ─ */
.hero-meta { gap: 12px; margin-bottom: 52px; }

.hero-meta-item {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 100px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    text-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.22);
}
.hero-meta-item i {
    font-size: 20px;
    /*color: #86ccec;*/
    color: var(--primary-dark);
    filter: drop-shadow(0 0 4px rgba(134,204,236,0.45));
}

.hero-meta-separator { display: none; }

/* ============================================================
   QUIÉNES SOMOS — Separador interno (fotos ↔ timeline)
   ============================================================ */

.quienes-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(134,204,236,0.20) 20%,
        rgba(134,204,236,0.35) 50%,
        rgba(134,204,236,0.20) 80%,
        transparent 100%
    );
    margin: 72px 0 64px;
    position: relative;
}
.quienes-separator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #86ccec;
    box-shadow: 0 0 14px rgba(134,204,236,0.55);
}

/* ============================================================
   TIMELINE — Variantes (.timeline-light / .timeline-dark)
   ============================================================ */

/* Variante fondo claro */
.timeline-light::before {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(16,79,163,0.2),
        rgba(16,79,163,0.2),
        /*transparent*/
    );
}

.timeline-dark::before {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(134,204,236,0.35),
        rgba(134,204,236,0.20),
        transparent
    );
}

.timeline-dark .timeline-dot {
    border-radius: 50% !important;   /* forzar círculo sin excepción */
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #86ccec 50%, #104fa3 50%);
    border: 0px solid rgba(255,255,255,0.20);
    box-shadow:
        0 0 0 4px rgba(134,204,236,0.15),
        0 0 18px rgba(134,204,236,0.35);
    animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(134,204,236,0.15),
            0 0 18px rgba(134,204,236,0.30);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(134,204,236,0.07),
            0 0 28px rgba(134,204,236,0.50);
    }
}

.timeline-dark .timeline-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(134,204,236,0.15);
    box-shadow: 0 4px 28px rgba(0,0,0,0.4);
}
.timeline-dark .timeline-card:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(134,204,236,0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    transform: translateY(-4px);
}

.timeline-dark .timeline-year {
    color: #86ccec;
}
.timeline-dark .timeline-year::after {
    background: rgba(134,204,236,0.15);
}

.timeline-dark .timeline-card h4 {
    color: #ffffff;
}
.timeline-dark .timeline-card p {
    color: rgba(255,255,255,0.58);
}

.timeline-dark .timeline-card .timeline-stat {
    background: rgba(134,204,236,0.10);
    border-color: rgba(134,204,236,0.22);
    color: #86ccec;
}
.timeline-dark .timeline-card .timeline-stat i {
    color: #86ccec;
}

/* ============================================================
   NUESTRA TRAYECTORIA — Stats bar (+29% / +64%)
   ============================================================ */

.tray-stats-bar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-top: 72px;
    background: linear-gradient(140deg, #041640 0%, #0a3872 50%, #104fa3 100%);
    border-radius: 24px;
    padding: 56px 72px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(16,79,163,0.30),
        0 0 0 1px rgba(134,204,236,0.12),
        inset 0 1px 0 rgba(255,255,255,0.08);
}
.tray-stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(134,204,236,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.tray-stats-bar::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134,204,236,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.tray-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

.tray-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(134,204,236,0.12);
    border: 1px solid rgba(134,204,236,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: var(--transition);
}
.tray-stat-icon i {
    font-size: 24px;
    color: #86ccec;
}
.tray-stats-bar:hover .tray-stat-icon {
    background: rgba(134,204,236,0.18);
    border-color: rgba(134,204,236,0.40);
}

.tray-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(54px, 8vw, 82px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -3px;
    text-shadow: 0 4px 24px rgba(255,255,255,0.12);
}
.tray-stat-accent {
    color: #86ccec;
    text-shadow: 0 4px 32px rgba(134,204,236,0.35);
}

.tray-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}
.tray-stat-label span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.42);
    margin-top: 6px;
    letter-spacing: 0.2px;
}

.tray-stat-divider {
    width: 1px;
    flex-shrink: 0;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(134,204,236,0.30),
        rgba(134,204,236,0.30),
        transparent
    );
    position: relative;
    z-index: 1;
}

/* ============================================================
   RESPONSIVE — Nuevos componentes
   ============================================================ */

@media (max-width: 1024px) {
    .tray-stat { padding: 0 28px; }
    .tray-stats-bar { padding: 48px 48px; }
}

@media (max-width: 768px) {
    /* Stats bar vertical en móvil */
    .tray-stats-bar {
        flex-direction: column;
        padding: 40px 32px;
        gap: 36px;
        border-radius: 20px;
    }
    .tray-stat { padding: 0 16px; }
    .tray-stat-divider {
        width: 60%;
        height: 1px;
        align-self: center;
        background: linear-gradient(to right, transparent, rgba(134,204,236,0.30), transparent);
    }
    /* Quiénes Somos grid: 1 columna en móvil */
    .quienes-grid { grid-template-columns: 1fr; gap: 40px; }
    /* Grids de feature y pillars: 1 columna */
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .pillars-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    /* Doc cards: 1 columna */
    .doc-cards-grid { grid-template-columns: 1fr; }
    /* Separador quiénes somos */
    .quienes-separator { margin: 48px 0 44px; }
    /* Entity invest cards: 1 columna en móvil */
    .entity-cards-grid { grid-template-columns: 1fr; }
    .eic-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ENTITY INVESTMENT CARDS — Trayectoria
   ============================================================ */

.entity-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 64px;
}

.entity-invest-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.entity-invest-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Acento lateral: franja de color en el borde izquierdo */
.entity-invest-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 20px 0 0 20px;
}
.eic-benjumea::before {
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}
.eic-omnia::before {
    background: linear-gradient(to bottom, #86ccec, #0a3872);
}

/* Header: logo + growth badge */
.eic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.eic-logo {
    height: 56px;
    max-width: 160px;
    display: flex;
    align-items: center;
}
.eic-logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.eic-growth {
    text-align: right;
    background: rgba(16,79,163,0.06);
    border: 1px solid rgba(16,79,163,0.12);
    border-radius: 12px;
    padding: 10px 16px;
    flex-shrink: 0;
}
.eic-growth-accent {
    background: rgba(134,204,236,0.10);
    border-color: rgba(134,204,236,0.25);
}

.eic-growth-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 3px;
}
.eic-growth-accent .eic-growth-num {
    color: #0a3872;
}

.eic-growth-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Bullets descriptivos */
.eic-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    min-height: 145px;
}
.eic-bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.5;
}
.eic-bullet i {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 13px;
}
.eic-omnia .eic-bullet i {
    color: #86ccec;
}

/* Divisor */
.eic-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0 0 24px;
}

/* KPIs row */
/* ── eic-kpis: layout pirámide (VENTAS arriba, Honorarios+EBITDA abajo) ── */
.eic-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
/* VENTAS (primer hijo con clase --top) → fila superior, centrado */
.eic-kpi.eic-kpi--top {
    grid-column: 1 / -1;
    max-width: 62%;
    justify-self: center;
    width: 100%;
}
.eic-kpi {
    background: var(--primary-bg);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid var(--border-light);
}
.eic-omnia .eic-kpi {
    background: rgba(134,204,236,0.06);
    border-color: rgba(134,204,236,0.18);
}
.eic-kpi-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}
.eic-kpi-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
/*Grafico estilo E-informa*/
.eic-chart-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    /*height: clamp(260px, 40vw, 520px); !* Responsive: 260px mín → 520px máx *!*/
    height: clamp(200px, 40vw, 400px);
    background: #fff;
    padding: 10px 20px 20px;
    box-sizing: border-box;
    position: relative;
}
@media (max-width: 768px) {
    .eic-chart-card {
        height: 260px;
        padding: 8px 10px 12px;
    }
}
@media (max-width: 480px) {
    .eic-chart-card {
        height: 330px;
        padding: 6px 6px 10px;
    }
}
/* Mini bar chart — Evolución Ventas */
.eic-trend {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 16px 18px 12px;
    border: 1px solid var(--border-light);
}
.eic-omnia .eic-trend {
    background: rgba(134,204,236,0.06);
    border-color: rgba(134,204,236,0.18);
}
.eic-trend-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.eic-trend-label i { color: var(--primary-light); font-size: 11px; }
.eic-omnia .eic-trend-label i { color: #86ccec; }

.eic-trend-bars {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 64px;
}

.eic-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: 100%;
}
.eic-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: rgba(16,79,163,0.05);
    border-radius: 5px;
    overflow: hidden;
}
.eic-omnia .eic-bar-wrap {
    background: rgba(134,204,236,0.08);
}

.eic-bar-fill {
    width: 100%;
    height: var(--bar-h, 0%);
    background: linear-gradient(to top, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 5px 5px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0s; /* sin transición hasta que sea visible */
}
.eic-bar-accent {
    background: linear-gradient(to top, #0a3872 0%, #86ccec 100%);
}

/* Activar animación de barras cuando la grid entra en viewport */
.entity-cards-grid.visible .eic-bar-fill {
    transform: scaleY(1);
    transition: transform 0.9s var(--ease);
}
.entity-cards-grid.visible .eic-bar-item:nth-child(1) .eic-bar-fill { transition-delay: 0.35s; }
.entity-cards-grid.visible .eic-bar-item:nth-child(2) .eic-bar-fill { transition-delay: 0.50s; }
.entity-cards-grid.visible .eic-bar-item:nth-child(3) .eic-bar-fill { transition-delay: 0.65s; }

.eic-bar-item span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.eic-bar-item small {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    display: none; /* mostrar si quieres el importe debajo */
}

/* ============================================================
   REBRANDING TEXTOS — body text siempre izquierda en cards
   ============================================================ */

/* Feature cards: asegurar texto izquierda */
.feature-card h4,
.feature-card p { text-align: left; }

/* Pillar cards: texto izquierda */
.pillar-content h4,
.pillar-content p { text-align: left; }

/* Timeline cards: texto izquierda (ya lo son, refuerzo) */
.timeline-card h4,
.timeline-card p { text-align: left; }

/* Section subtitle: centrado solo cuando está dentro de text-center */
/*.text-center .section-subtitle { text-align: center; }*/

/* Subtítulos de El Proyecto y Modelo de Negocio: left con max-width */
/*.bg-gradient-soft .section-subtitle,*/
/*.bg-white .section-subtitle {*/
/*    text-align: left;*/
/*}*/
/* Excepto cuando están explícitamente centrados en el header */
/*.text-center .section-subtitle {*/
/*    text-align: center !important;*/
/*}*/

/* ============================================================
   RESPONSIVE — Correcciones mobile v2
   ============================================================ */

/* ── S05 Business Plan: grid de ramos (reemplaza inline styles) */
.bp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}
.bp-ramos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Filas de ramos (nueva estructura 4+3) ─────────────────── */
.bp-ramos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
/*.bp-ramos-row-2 {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 20px;*/
/*    flex-wrap: wrap;*/
/*}*/
.bp-ramos-row-2 > .bp-ramo-card {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

/* ── 900px: tablet landscape ──────────────────────────────── */
@media (max-width: 900px) {
    /* S02 Entity cards: apiladas en tablet */
    .entity-cards-grid { grid-template-columns: 1fr !important; }
    /* S05 ramos: 2 columnas en tablet */
    .bp-ramos-grid { grid-template-columns: repeat(3, 1fr); }
    .bp-ramos-row  { grid-template-columns: repeat(3, 1fr); }
    .bp-ramos-row-2 > .bp-ramo-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
    /* S05 métricas: 2 columnas */
    .bp-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 640px: móvil grande ──────────────────────────────────── */
@media (max-width: 640px) {
    /* S01 Pillars: 1 columna (evita el layout 2+1) */
    .stats-grid.stats-grid-3 {
        grid-template-columns: 1fr !important;
    }
    .stats-grid.stats-grid-3 .stat-item:nth-child(3) {
        grid-column: auto !important;
        border-top: 1px solid rgba(16, 79, 163, 0.12);
    }
    /* S04 Modelo: 1 columna */
    .pillars-grid { grid-template-columns: 1fr !important; }
    .feature-grid { grid-template-columns: 1fr !important; }
    /* S05 métricas: 1 columna */
    .bp-metrics-grid { grid-template-columns: 1fr !important; }
}

/* ── 480px: móvil pequeño ─────────────────────────────────── */
@media (max-width: 480px) {
    /* S05 ramos: 1 columna */
    .bp-ramos-grid { grid-template-columns: 1fr !important; }
    .bp-ramos-row  { grid-template-columns: 1fr !important; }
    .bp-ramos-row-2 { flex-direction: column; }
    .bp-ramos-row-2 > .bp-ramo-card { flex: 0 0 100%; max-width: 100%; }
}

/* ============================================================
   S05 — TARJETAS DE RAMOS: HOVER DINÁMICO 3D
   CSS base + shimmer + foto zoom.
   El tilt con tracking de cursor lo gestiona main.js.
   ============================================================ */

.bp-ramo-card {
    position: relative;
    /* Transition solo para propiedades no-transform; el transform lo controla JS */
    transition:
        box-shadow  0.4s ease,
        border-color 0.35s ease;
    will-change: transform;
    transform-style: preserve-3d;
    transform-origin: center 85%; /* punto de "bisagra" — fold desde abajo */
}

/* ── Shimmer: barrido de luz al hacer hover ───────────────── */
.bp-ramo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent   0%,
        rgba(255,255,255,0.22) 50%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    border-radius: 18px;
    transition: left 0.65s ease, opacity 0.15s ease;
}
.bp-ramo-card:hover::after {
    left: 130%;
    opacity: 1;
}

/* ── Hover: glow azul + borde ─────────────────────────────── */
.bp-ramo-card:hover {
    box-shadow:
        0 28px 64px rgba(16, 79, 163, 0.22),
        0 8px  24px rgba(16, 79, 163, 0.14),
        0 0   0 1.5px rgba(16, 79, 163, 0.24);
    border-color: rgba(16, 79, 163, 0.30) !important;
}

/* ── Foto: zoom suave ─────────────────────────────────────── */
.bp-ramo-card > div:first-child img {
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.bp-ramo-card:hover > div:first-child img {
    transform: scale(1.10);
}

/* ── Badge (icono + nombre sobre foto): sube al hacer hover ─ */
.bp-ramo-card > div:first-child > div:last-child {
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bp-ramo-card:hover > div:first-child > div:last-child {
    transform: translateY(-5px);
}

/* ── Fallback CSS lift para touch (JS no disponible) ──────── */
@media (hover: hover) and (pointer: coarse) {
    .bp-ramo-card:hover {
        transform: translateY(-10px) scale(1.015);
    }
}

/* ── 375px: móvil estándar (iPhone SE, Galaxy A) ─────────── */
/* Ocultar el texto "Proyecto Oryon" para que no colisione
   con los elementos del lado derecho del navbar.            */
@media (max-width: 375px) {
    .nav-brand            { display: none !important; }
    .nav-logo-img         { height: 75px !important; }
    .site-nav .nav-inner  { padding: 0 16px; }
}

/* ── 320px: móvil muy pequeño ────────────────────────────── */
@media (max-width: 320px) {
    /* S02 KPIs: 1 columna en pantallas muy pequeñas */
    .eic-kpis { grid-template-columns: repeat(1, 1fr) !important; }

    /* Navbar: logo más pequeño (nav-brand ya oculto por la regla 375px) */
    .site-nav .nav-inner  { padding: 0 12px; gap: 8px; }
    .nav-logo             { gap: 4px; min-width: 0; flex-shrink: 1; }
    .nav-logo-img         { height: 60px !important; }
    .btn-logout           { padding: 6px 10px !important; font-size: 11px !important;
                            gap: 4px !important; flex-shrink: 0; }
    .btn-logout i         { font-size: 10px; }
}

/* ============================================================
   NDA MODAL — Acuerdo de Confidencialidad
   ============================================================ */

.nda-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 12, 24, 0.88);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nda-card {
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 40px 100px rgba(0,0,0,0.4),
        0 8px 32px rgba(16,79,163,0.15),
        0 0 0 1px rgba(255,255,255,0.06);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    /* Ocultar scrollbar manteniendo scroll funcional */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE / Edge */
    padding: 40px;
    animation: loginCardIn 0.5s var(--ease) both;
    position: relative;          /* Para el botón de cierre */
}
.nda-card::-webkit-scrollbar {
    display: none;               /* Chrome / Safari / Opera */
}

.nda-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.nda-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.nda-field {
    margin-bottom: 14px;
}

.nda-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    cursor: default;
}

.nda-field input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #dce8f8;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    background: #f8fbff;
    cursor: text;
}

.nda-field input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16,79,163,0.09);
}

.nda-signature-area {
    margin: 16px 0;
}

.nda-signature-area label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    cursor: default;
}

#nda-signature-canvas {
    width: 100%;
    height: 160px;
    border: 1.5px solid #dce8f8;
    border-radius: 12px;
    background: #f8fbff;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.nda-signature-clear {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nda-signature-clear:hover { color: var(--primary); }

.nda-legal {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 16px 0;
    padding: 14px 16px;
    background: #f5f8ff;
    border-radius: 10px;
    border-left: 3px solid var(--primary-light);
}

.nda-submit-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a6bb8 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(16,79,163,0.3);
}

.nda-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16,79,163,0.4);
}

.nda-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nda-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #dc2626;
    display: none;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .nda-card { padding: 28px 20px; }
    .nda-title { font-size: 19px; }
}

/* ── NDA: Botón cerrar (X) ── */
.nda-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(16,79,163,0.07);
    border: 1px solid rgba(16,79,163,0.10);
    color: #8094b4;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}
.nda-close-btn:hover {
    background: rgba(16,79,163,0.13);
    border-color: rgba(16,79,163,0.20);
    color: var(--primary);
}

/* ── NDA: Link "Ver Acuerdo de Confidencialidad" ── */
.nda-ver-acuerdo {
    text-align: center;
    margin: 4px 0 18px;
}
.nda-ver-acuerdo a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(16,79,163,0.06);
    border: 1px solid rgba(16,79,163,0.10);
    transition: background 0.2s, border-color 0.2s;
}
.nda-ver-acuerdo a:hover {
    background: rgba(16,79,163,0.11);
    border-color: rgba(16,79,163,0.22);
}

/* ── NDA: Blur en contenido gated (cuando body.nda-pending) ── */
body.nda-pending .nda-gated-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.5s ease;
}

/* ── NDA: Navbar "Firmar NDA" button ── */
button.nav-firmar-nda-btn {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    animation: ndaNavPulse 2.5s ease-in-out infinite;
}
@keyframes ndaNavPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(134,204,236,0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(134,204,236,0); }
}
button.nav-firmar-nda-btn:hover {
    background: rgba(134,204,236,0.22) !important;
    border-color: rgba(134,204,236,0.5) !important;
    color: #fff !important;
}
.site-nav.scrolled button.nav-firmar-nda-btn {
    animation: none;
}
.site-nav.scrolled button.nav-firmar-nda-btn:hover {
    background: rgba(16,79,163,0.15) !important;
    color: var(--primary) !important;
}

/* ══════════════════════════════════════════════════
   ACORDEÓN — DOCUMENTACIÓN COMPLETA
══════════════════════════════════════════════════ */
.completa-accordion {
    max-width: 760px;
    margin: 0 auto;
}

.completa-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 22px 28px;
    cursor: pointer;
    color: #fff;
    transition: background 0.25s, border-color 0.25s, border-radius 0.25s;
    text-align: left;
}
.completa-acc-trigger:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(134,204,236,0.4);
}
.completa-acc-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,0.10);
    border-color: rgba(134,204,236,0.4);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.completa-acc-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.completa-acc-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(134,204,236,0.15);
    border: 1px solid rgba(134,204,236,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #86ccec;
    flex-shrink: 0;
}
.completa-acc-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.completa-acc-sub {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}
.completa-acc-chevron {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}
.completa-acc-trigger[aria-expanded="true"] .completa-acc-chevron {
    transform: rotate(180deg);
    color: #86ccec;
}

/* Cuerpo del acordeón */
.completa-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1);
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(134,204,236,0.4);
    border-top: none;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.completa-acc-body.open {
    max-height: 2000px;
}

/* Lista de documentos */
.completa-doc-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.completa-doc-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.completa-doc-item:last-child { border-bottom: none; }

.completa-doc-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.completa-doc-link:hover {
    background: rgba(255,255,255,0.06);
}
.completa-doc-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.completa-doc-info {
    flex: 1;
    min-width: 0;
}
.completa-doc-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.completa-doc-desc {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.completa-doc-ext {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 2px 7px;
    flex-shrink: 0;
}
.completa-doc-arrow {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.completa-doc-link:hover .completa-doc-arrow {
    color: #86ccec;
    transform: translate(2px, -2px);
}

/* Estado vacío */
.completa-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 28px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}
.completa-empty i { font-size: 20px; }

@media (max-width: 600px) {
    .completa-acc-trigger { padding: 16px 18px; }
    .completa-acc-title   { font-size: 15px; }
    .completa-acc-icon-wrap { width: 42px; height: 42px; font-size: 18px; }
    .completa-doc-link    { padding: 12px 18px; }
}


/*Code ChatGPT*/

/* ============================================================
   NDA GATE: wrapper + mensaje superpuesto (no se blur con el contenido)
   ============================================================ */
.nda-gate-wrapper {
    position: relative;
}
.nda-gate-msg {
    display: none;
}
body.nda-pending .nda-gate-msg {
    display: flex;
    position: absolute;
    inset: 0;
    z-index: 20;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(2px);
    pointer-events: auto;
}
.nda-gate-msg i {
    font-size: 2.4rem;
    color: var(--primary);
    opacity: 0.9;
}
.nda-gate-msg p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    margin: 0;
}
.nda-gate-msg button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}
.nda-gate-msg button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ── Gate msg en secciones de fondo oscuro ───────────────────────
   .docs-section y .bg-heritage tienen fondos casi negros/navy
   donde el azul primario y el texto oscuro son invisibles.
   Override: icono azul claro + texto blanco + overlay semiopaco.
─────────────────────────────────────────────────────────────── */
body.nda-pending .docs-section .nda-gate-msg,
body.nda-pending .bg-heritage .nda-gate-msg,
body.nda-pending .phase-docs-section .nda-gate-msg {
    background: rgba(4, 22, 64, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(134, 204, 236, 0.18);
    border-radius: 16px;
    inset: 8px; /* pequeño margen interior para que no toque bordes */
}
.docs-section .nda-gate-msg i,
.bg-heritage .nda-gate-msg i,
.phase-docs-section .nda-gate-msg i {
    color: #86ccec;
    opacity: 1;
}
.docs-section .nda-gate-msg p,
.bg-heritage .nda-gate-msg p,
.phase-docs-section .nda-gate-msg p {
    color: rgba(255, 255, 255, 0.92);
}
.docs-section .nda-gate-msg button,
.bg-heritage .nda-gate-msg button,
.phase-docs-section .nda-gate-msg button {
    background: #86ccec;
    color: #062050;
}
.docs-section .nda-gate-msg button:hover,
.bg-heritage .nda-gate-msg button:hover,
.phase-docs-section .nda-gate-msg button:hover {
    background: #a8d9f0;
    transform: translateY(-1px);
}

/* ============================================================
   MODELO DE NEGOCIO: mng-grid y mng-card (rebranding S04)
   ============================================================ */
.mng-grid {
    display: grid;
    /* 6 cols = LCM(3,2): cada card ocupa 2 → 3 por fila. Fila 2 con 2 centradas. */
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}
.mng-card             { grid-column: span 2; }
/* Fila 2: 2 tarjetas centradas. 6 cols - 4 usadas = 2 libres → 1 a cada lado */
.mng-card:nth-child(4) { grid-column: 2 / 4; }
.mng-card:nth-child(5) { grid-column: 4 / 6; }

.mng-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(16,79,163,0.10);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    box-shadow: 0 2px 12px rgba(16,79,163,0.06);
}
.mng-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), #86ccec);
    border-radius: 16px 16px 0 0;
}
.mng-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(16,79,163,0.14);
    border-color: rgba(16,79,163,0.22);
}
.mng-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16,79,163,0.10), rgba(134,204,236,0.18));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}
.mng-card-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    opacity: 0.5;
    text-transform: uppercase;
}
.mng-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    margin: 0;
}
.mng-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── NDA modal: fila de dos campos en la misma línea ── */
.nda-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    /* 4 cols: cards span 2 → 2 por fila, última centrada */
    .mng-grid { grid-template-columns: repeat(4, 1fr); }
    .mng-card             { grid-column: span 2; }
    .mng-card:nth-child(4) { grid-column: 1 / 3; }
    .mng-card:nth-child(5) { grid-column: 2 / 4; }
}
@media (max-width: 600px) {
    .mng-grid { grid-template-columns: 1fr; }
    .mng-card, .mng-card:nth-child(4), .mng-card:nth-child(5) { grid-column: 1 / -1; }
    .nda-fields-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   V4 — Nuevos componentes: avatares, estado, acordeón, fases
══════════════════════════════════════════════════════════ */

/* ── Avatar redondo con foto ─────────────────────────────── */
.user-avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dce8f8;
    flex-shrink: 0;
}

/* ── Avatar con inicial (sin foto) — mantenido por compatibilidad ── */
.user-avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #104fa3, #86ccec);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* ── Avatar icono fa-circle-user (sin foto) ──────────────── */
.user-avatar-circle-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(16,79,163,0.07);
    border: 1.5px solid rgba(134,204,236,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #104fa3;
}

/* ── Badge de estado activo / inactivo ──────────────────── */
.user-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.user-status-badge.active {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.user-status-badge.inactive {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.user-status-badge .fa-circle { font-size: 7px; }

/* ── Botones de acción: warn (desactivar) + success (activar) */
.btn-action.warn {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.btn-action.warn:hover {
    background: #ffedd5;
    border-color: #fdba74;
}
.btn-action.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.btn-action.success:hover {
    background: #dcfce7;
    border-color: #86efac;
}

/* ── Filas inactivas en tabla ────────────────────────────── */
.investor-inactive td { color: #a0aec0 !important; }

/* ── Acordeón: fila de detalle ───────────────────────────── */
.accordion-detail-row td {
    padding: 0 !important;
    border-bottom: 3px solid #86ccec;
}
.accordion-detail-body {
    background: #f4f8ff;
    border-top: 2px solid #e0ecfb;
    padding: 0;
}
.accordion-clicks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.accordion-clicks-table thead tr {
    background: #eef2fb;
}
.accordion-clicks-table thead th {
    padding: 9px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8094b4;
    border-bottom: 1px solid #dce8f8;
}
.accordion-clicks-table tbody tr:hover {
    background: #eaf2ff;
}
.accordion-clicks-table tbody td {
    padding: 9px 16px;
    border-bottom: 1px solid #f0f4fc;
    color: #2c3e5a;
}

/* ── Toggle label para checkboxes en admin ───────────────── */
.admin-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.admin-toggle-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #104fa3;
    cursor: pointer;
    flex-shrink: 0;
}
.admin-toggle-text {
    font-size: 14px;
    color: #2c3e5a;
}

/* ── Sección de fase bloqueada en presentation.php ──────── */
.phase-locked-section {
    padding: 40px 0;
}
.phase-locked-msg {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(134,204,236,0.25);
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 640px;
    margin: 0 auto;
    backdrop-filter: blur(4px);
}
.phase-locked-msg i {
    font-size: 28px;
    color: #86ccec;
    flex-shrink: 0;
    opacity: 0.8;
}
.phase-locked-msg strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}
.phase-locked-msg p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ── Fase bloqueada sobre fondo CLARO (bg-light-blue) ───────
   El box y los textos por defecto son blancos → invisibles.
   Aquí se sobreescriben para que sean legibles.             */
.bg-light-blue .phase-locked-msg {
    background: rgba(16, 79, 163, 0.07);
    border-color: rgba(16, 79, 163, 0.18);
    backdrop-filter: blur(4px);
}
.bg-light-blue .phase-locked-msg i {
    color: var(--primary);
    opacity: 0.85;
}
.bg-light-blue .phase-locked-msg strong {
    color: var(--text-dark);
}
.bg-light-blue .phase-locked-msg p {
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   V4 — Dashboard rebranding: tarjetas más visuales, tabla espaciosa
══════════════════════════════════════════════════════════ */

/* Stat cards: número más grande, icono con acento de color */
.admin-stat-card {
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    cursor: default !important;
}
.admin-stat-card::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16,79,163,0.04);
    pointer-events: none;
}
.admin-stat-number {
    font-size: 36px !important;
}
.admin-stat-label {
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
    text-transform: none !important;
    color: #6b7fa3 !important;
}
.admin-stat-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
}
.admin-stat-icon i { font-size: 22px !important; }

/* Tabla admin: filas más altas, separación visual */
.admin-table td {
    padding: 16px 18px !important;
}
.admin-table th {
    padding: 14px 18px !important;
    background: #f5f7fc !important;
}
.admin-table tbody tr {
    border-left: 3px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}
.admin-table tbody tr:hover {
    background: #f0f5ff !important;
    border-left-color: #86ccec;
}

/* Investor row: cursor pointer hint */
.investor-row:hover { background: #f0f5ff !important; }

/* Accordion: smoother row transition */
.accordion-detail-row { transition: none; }
.accordion-detail-body { padding: 4px 0; }
.accordion-clicks-table thead th { padding: 10px 18px !important; }
.accordion-clicks-table tbody td { padding: 11px 18px !important; }

/* Cards: más sombra + borde superior de acento */
.admin-card {
    border-top: 3px solid #104fa3 !important;
}

/* Card lateral fija: scroll propio cuando es más alta que la ventana,
   para que el final del formulario sea accesible sin recorrer la columna larga */
.admin-sticky-card {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Barra transparente en reposo. El hueco se reserva siempre para que
       el contenido no salte cuando asoma (clase la pone main.js) */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.admin-sticky-card.scrollbar-visible {
    scrollbar-color: #104fa3 transparent;
}

.admin-sticky-card::-webkit-scrollbar {
    width: 8px;
}

.admin-sticky-card::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sticky-card::-webkit-scrollbar-thumb {
    background-color: transparent;
    background-clip: content-box;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: background-color .35s ease;
}

.admin-sticky-card.scrollbar-visible::-webkit-scrollbar-thumb {
    background-color: #104fa3;
}

.admin-sticky-card.scrollbar-visible::-webkit-scrollbar-thumb:hover {
    background-color: #0a3872;
}

/* Stats grid: 3 columnas con brecha mayor */
.admin-stats-grid {
    gap: 24px;
    margin-bottom: 28px !important;
}

/* ── Avatar en la navbar de presentation.php ─────────────── */
.nav-user-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(134,204,236,0.5);
    vertical-align: middle;
    flex-shrink: 0;
}
.nav-user-avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(134,204,236,0.15);
    border: 1.5px solid rgba(134,204,236,0.4);
    flex-shrink: 0;
    font-size: 16px;
    color: #86ccec;
}
.nav-user {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   ADMIN RESPONSIVE v2 — hamburger + sidebar overlay + tabs
   ============================================================ */

/* ── Mobile top header (only visible on small screens) ── */
.admin-mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: linear-gradient(90deg, #0d1b36 0%, #0a2a52 100%);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sidebar-hamburger {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s;
    line-height: 1;
}
.sidebar-hamburger:hover { background: rgba(255,255,255,0.08); }
.mobile-header-logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ── Sidebar backdrop (overlay) ── */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 140;
    animation: fadeInBackdrop 0.2s ease;
}
@keyframes fadeInBackdrop { from { opacity: 0; } to { opacity: 1; } }

/* ── Scroll wrapper for tables ── */
/* Wrap any .admin-table in <div class="admin-table-scroll"> para scroll horizontal */
.admin-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Fix fondo negro en páginas admin ─────────────────────────
   html { background: #010913 } es para el portal público.
   En admin, sobreescribimos via :has() para evitar que el fondo
   negro se vea si algo desborda el viewport horizontalmente.    */
html:has(.admin-layout) {
    background: #f5f7fb;
}
/* Login: html y body bloqueados → .login-page es el único scroll container.
   Así el html nunca se ve más allá del contenido de la página. */
/* Login: el documento hace scroll con normalidad. Antes html y body iban en overflow:hidden y,
   como .login-page ES el body, la regla anulaba el scroll interno: en móviles con poca altura
   visible (barras de Safari/Firefox iOS, teclado, horizontal) el botón quedaba tapado e inalcanzable. */

/* ── User detail panel (inline in dashboard) ── */
.user-detail-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 24px;
    background: #f9fbff;
    border-top: 1px solid #e8ecf4;
}
.user-detail-section {
    flex: 1;
    min-width: 160px;
}
.user-detail-section h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8094b4;
    margin: 0 0 10px;
}
.user-detail-section .detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #4a5a7a;
    border-bottom: 1px solid #f0f2f7;
    gap: 10px;
}
.user-detail-section .detail-row:last-child { border-bottom: none; }
.user-detail-section .detail-label {
    font-weight: 500;
    color: #6b7fa3;
    font-size: 12px;
    flex-shrink: 0;
}
.user-detail-actions {
    display: flex;
    align-items: anchor-center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Responsive overrides ── */
@media (max-width: 768px) {
    .admin-mobile-header { display: flex; }
    .admin-layout { padding-top: 56px; }

    /* Sidebar: hidden off-screen by default, slides in */
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 260px !important;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        z-index: 150;
    }
    /* Hide sidebar-header on mobile (logo/brand is in mobile-header already) */
    .admin-sidebar .sidebar-header { display: none; }
    body.sidebar-open .admin-sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; }

    .admin-main { margin-left: 0 !important; }

    /* Topbar */
    .admin-topbar { padding: 14px 16px; gap: 10px; }
    .admin-topbar > div:first-child { min-width: 0; flex: 1; }
    .admin-page-title { font-size: 16px; }
    .admin-page-subtitle { font-size: 12px; }

    /* Content */
    .admin-content { padding: 16px; }

    /* Stat grid: 2 columnas */
    .admin-stats-grid { grid-template-columns: 1fr 1fr !important; }

    /* Phases / Completa: 2-col → 1-col */
    .phases-layout { grid-template-columns: 1fr !important; }
    /* Quitar sticky en la card lateral cuando apila */
    .admin-sticky-card {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Edit user two-column */
    .admin-edit-layout { grid-template-columns: 1fr !important; }
    .admin-edit-activity { order: 2; }
    .admin-edit-form { order: 1; }

    /* Investor table: hide NDA (col3) and Último acceso (col5) */
    #investors-table th:nth-child(3),
    #investors-table td:nth-child(3),
    #investors-table th:nth-child(5),
    #investors-table td:nth-child(5) { display: none; }

    /* Action buttons en la tabla: apilados */
    .investor-actions-cell { flex-direction: column !important; align-items: flex-end; gap: 4px !important; }

    /* User detail panel: columna única */
    .user-detail-panel { flex-direction: column; gap: 12px; padding: 14px 16px; }
}

@media (max-width: 480px) {
    .admin-stats-grid { grid-template-columns: 1fr !important; }
    .admin-topbar { flex-wrap: wrap; }
    .admin-content { padding: 12px; }
    .admin-stat-card { padding: 18px 16px; gap: 12px; }
    .admin-stat-number { font-size: 28px !important; }
    .admin-card-header { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
    .admin-card-title { font-size: 14px; }
    .btn-primary-admin, .btn-secondary-admin { font-size: 12px; padding: 8px 14px; }

    /* Tabla inversores en 480px: ocultar clicks (col4) también */
    #investors-table th:nth-child(4),
    #investors-table td:nth-child(4) { display: none; }

    /* Botones de acción dashboard: solo icono */
    .btn-row-action .btn-row-label { display: none; }

    /* ── Tabs: envolver en 2 filas para que quepan todas ── */
    .admin-tabs-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 8px 12px 0;
        gap: 2px;
    }
    .admin-tab-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 9px 10px;
        font-size: 12px;
        min-width: 56px;
        border-radius: 8px 8px 0 0;
    }
    .admin-tab-btn i { font-size: 12px; }

    /* Edit user: quitar sticky en columna actividad al apilar */
    .admin-edit-activity .admin-card { position: static !important; top: auto !important; }

    /* Botones guardar/cancelar: columna completa */
    .admin-edit-form > form > div[style*="display:flex"] {
        flex-direction: column;
    }
    .admin-edit-form > form > div[style*="display:flex"] > * { width: 100%; justify-content: center; }
}

@media (max-width: 375px) {
    .admin-content { padding: 10px; }
    .admin-topbar { padding: 10px 12px; }
    .admin-page-title { font-size: 14px; }
    .admin-stat-card { padding: 14px 12px; gap: 10px; }
    .admin-stat-icon { width: 40px !important; height: 40px !important; }
    .admin-stat-icon i { font-size: 18px !important; }
    .admin-stat-number { font-size: 24px !important; }
    .filter-bar { flex-direction: column; gap: 8px; }
    .filter-bar select,
    .filter-bar input { width: 100%; }

    /* Tabs aún más compactos */
    .admin-tab-btn { padding: 8px 8px; font-size: 11px; gap: 4px; }
    .admin-tab-btn i { font-size: 11px; }

    /* Form controls */
    .admin-form-control { font-size: 13px; padding: 9px 12px; }
    .admin-form-label { font-size: 12px; }
    .admin-card-body { padding: 14px 12px; }
}

@media (max-width: 320px) {
    /* Base */
    .admin-content { padding: 8px; }
    .admin-mobile-header { padding: 0 10px; }
    .mobile-header-logo { height: 26px; }

    /* Topbar: apila título y botón */
    .admin-topbar {
        padding: 10px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .admin-page-title { font-size: 13px; }
    .admin-page-subtitle { font-size: 11px; }
    .admin-topbar .btn-primary-admin,
    .admin-topbar .btn-secondary-admin { width: 100%; justify-content: center; font-size: 12px; }

    /* Stat cards */
    .admin-stat-card { padding: 12px 10px; gap: 10px; }
    .admin-stat-icon { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
    .admin-stat-icon i { font-size: 16px !important; }
    .admin-stat-number { font-size: 20px !important; }
    .admin-stat-label { font-size: 11px !important; }
    .stat-card-btn { font-size: 11px; padding: 4px 12px; }

    /* Cards */
    .admin-card-header { padding: 10px 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
    .admin-card-title { font-size: 13px; }
    .admin-card-body { padding: 12px 10px; }

    /* Tabs: ocultar iconos para ganar espacio */
    .admin-tabs-nav { padding: 6px 8px 0; gap: 2px; }
    .admin-tab-btn { padding: 7px 7px; font-size: 11px; gap: 0; }
    .admin-tab-btn i { display: none; }

    /* Form controls */
    .admin-form-group { margin-bottom: 14px; }
    .admin-form-control { font-size: 13px; padding: 8px 10px; }
    .admin-form-label { font-size: 12px; }
    .admin-form-hint { font-size: 11px; }
    .admin-toggle-label { gap: 8px; font-size: 12px; }
    .admin-toggle-text { font-size: 12px; }

    /* Botones primario/secundario: full width */
    .btn-primary-admin, .btn-secondary-admin { font-size: 12px; padding: 10px 12px; }

    /* Filtros de actividad */
    .filter-bar { flex-direction: column; gap: 6px; }
    .filter-bar select,
    .filter-bar input,
    .filter-bar button { width: 100%; box-sizing: border-box; }

    /* Tabla de actividad dentro del panel */
    #activity-table-wrap .admin-table td,
    #activity-table-wrap .admin-table th { padding: 10px 10px !important; font-size: 11px; }

    /* Panel usuario inline en dashboard */
    .user-detail-panel { padding: 10px; gap: 8px; }
    .user-detail-section h4 { font-size: 10px; }
    .user-detail-section .detail-row { font-size: 11px; padding: 4px 0; }

    /* Users table cards */
    .users-responsive-table tbody td { padding: 8px 10px !important; font-size: 12px; }
    .users-responsive-table tbody td[data-label]:not([data-label=""])::before { font-size: 10px; }
    .users-action-group { gap: 6px; }
    .users-responsive-table .btn-action { width: 38px !important; height: 38px !important; font-size: 14px !important; }

    /* Edit user: actividad oculta hasta que el form se haya mostrado */
    .admin-edit-activity { margin-top: 16px; }
}

/* ── Stat card CTA button (same style as .btn-row-action.outline-blue) ── */
.stat-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    align-self: center;
    background: #f4f8ff;
    color: #104fa3;
    border: 1.5px solid #dce8f8;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1.5;
    white-space: nowrap;
}
.stat-card-btn:hover {
    background: #dce8f8;
    border-color: #104fa3;
    color: #104fa3;
    text-decoration: none;
}
.stat-card-btn * {
    cursor: pointer;
}
/* ── Small action buttons (investor row in dashboard) ── */
.btn-row-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.btn-row-action.outline-blue {
    color: #104fa3;
    border-color: #dce8f8;
    background: #f4f8ff;
}
.btn-row-action.outline-blue:hover {
    background: #dce8f8;
    border-color: #104fa3;
    color: #104fa3;
    text-decoration: none;
}
.btn-row-action.outline-green {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.btn-row-action.outline-green:hover {
    background: #bbf7d0;
    border-color: #15803d;
    text-decoration: none;
}

/* ── Admin tabs ── */
.admin-tabs-nav {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #e8ecf4;
    padding: 0 20px;
    background: #fafbff;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-tabs-nav::-webkit-scrollbar { display: none; }
.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #8094b4;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.admin-tab-btn:hover { color: #104fa3; }
.admin-tab-btn.active {
    color: #104fa3;
    border-bottom-color: #104fa3;
}
.admin-tab-btn i { font-size: 14px; }
.admin-tab-pane { display: none; }
.admin-tab-pane.active { display: block; }

/* ── Two-column edit layout ── */
.admin-edit-layout {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1100px) {
    .admin-edit-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 900px) {
    .admin-edit-layout { grid-template-columns: 1fr; }
    .admin-edit-activity { order: 2; }
    .admin-edit-form { order: 1; }
}

/* ════════════════════════════════════════════════════════════
   USERS TABLE — Transformación a tarjetas en móvil (≤480px)
   Cada fila <tr> se convierte en una tarjeta independiente.
   ════════════════════════════════════════════════════════════ */

/* Grupo de botones de acción en desktop: fila horizontal */
.users-action-group {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    /* Ocultar cabecera de tabla */
    .users-responsive-table thead { display: none; }

    /* Tbody: columna de tarjetas con separación */
    .users-responsive-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    /* Cada fila → tarjeta */
    .users-responsive-table tbody tr {
        display: block;
        border: 1px solid #e8ecf4;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        background: #fff;
    }

    /* Cada celda → fila flex con etiqueta + valor */
    .users-responsive-table tbody td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px !important;
        font-size: 13px;
        border-bottom: 1px solid #f0f2f7;
        text-align: left !important;
        min-height: 44px;
        gap: 8px;
    }
    .users-responsive-table tbody td:last-child { border-bottom: none; }

    /* Etiqueta de columna via data-label (excepto las vacías) */
    .users-responsive-table tbody td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: #8094b4;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Primera celda (avatar + nombre): cabecera visual de la tarjeta */
    .users-responsive-table tbody td:first-child {
        background: #f4f8ff;
        border-bottom: 2px solid #dce8f8;
        padding: 12px 14px !important;
        justify-content: flex-start;
    }

    /* Última celda (acciones): fila de botones grande y centrada */
    .users-responsive-table tbody td:last-child {
        background: #fafbff;
        justify-content: flex-end;
        padding: 12px 14px !important;
    }

    /* Botones de acción: más grandes para touch */
    .users-action-group {
        gap: 8px;
    }
    .users-responsive-table .btn-action {
        width: 42px !important;
        height: 42px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }
}

/* ════════════════════════════════════════════════════════════
   LOGS TABLE — Transformación a tarjetas en móvil (≤480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .logs-responsive-table thead { display: none; }

    .logs-responsive-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .logs-responsive-table tbody tr {
        display: block;
        border: 1px solid #e8ecf4;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    /* Celda #: ocultar en móvil */
    .logs-responsive-table tbody td:nth-child(1) { display: none !important; }

    /* Todas las celdas visibles → fila flex */
    .logs-responsive-table tbody td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px !important;
        font-size: 13px;
        border-bottom: 1px solid #f0f2f7;
        text-align: left !important;
        gap: 8px;
    }
    .logs-responsive-table tbody td:last-child { border-bottom: none; }

    /* Etiqueta de columna */
    .logs-responsive-table tbody td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        color: #8094b4;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Celda Usuario: cabecera de la tarjeta */
    .logs-responsive-table tbody td:nth-child(2) {
        background: #f4f8ff;
        border-bottom: 2px solid #dce8f8;
        padding: 12px 14px !important;
        justify-content: flex-start;
    }
}

/* ════════════════════════════════════════════════════════════
   EDIT USER — Fixes específicos 320px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* Botones guardar/cancelar: columna completa */
    .edit-user-actions {
        flex-direction: column;
    }
    .edit-user-actions > * { width: 100%; justify-content: center; }
}

@media (max-width: 375px) {
    /* password-display: apilar input y botones verticalmente */
    .password-display {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .password-display .btn-copy,
    .password-display .btn-generate {
        height: 40px;
        justify-content: center;
        width: 100%;
    }
    /* NDA tab inner header */
    #tab-nda .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 320px) {
    /* Logs card-table: fuentes más pequeñas */
    .logs-responsive-table tbody td { padding: 8px 10px !important; font-size: 12px; }
    .logs-responsive-table tbody td[data-label]:not([data-label=""])::before { font-size: 10px; }

    /* Edit user actividad: tabla interna compacta */
    .admin-edit-activity .admin-table td,
    .admin-edit-activity .admin-table th { padding: 8px 10px !important; font-size: 11px; }

    /* password-display en 320px */
    .password-display { flex-direction: column; align-items: stretch; gap: 6px; }
    .password-display .btn-copy,
    .password-display .btn-generate { height: 38px; justify-content: center; width: 100%; font-size: 12px; }
}

/* ============================================================
   NAV USER DROPDOWN — presentation.php
   ============================================================ */
.nav-user-menu {
    position: relative;
}
.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
}
.nav-user-chevron {
    font-size: 9px;
    opacity: .55;
    transition: transform .2s ease;
    margin-left: 2px;
}
.nav-user-menu.open .nav-user-chevron {
    transform: rotate(180deg);
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(6,32,80,.18);
    min-width: 200px;
    padding: 6px 0;
    z-index: 1000;
    border: 1px solid rgba(16,79,163,.08);
}
.nav-user-menu.open .nav-user-dropdown {
    display: block;
}
.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0d1b36;
    text-decoration: none;
    transition: background .15s;
    font-family: 'Inter', sans-serif;
}
.nav-user-dropdown-item:hover {
    background: rgba(16,79,163,.06);
    color: #104fa3;
}
.nav-user-dropdown-item i {
    color: #86ccec;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* ============================================================
   CHANGE PASSWORD PAGE — reutiliza .login-page
   ============================================================ */
.alert-login.success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid;
    font-size: 13px;
    margin-bottom: 20px;
}
