/* ============================================================
   style.css — NewCo 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-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; }

html { scroll-behavior: smooth; overflow-x: hidden; }

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;
}

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;
    display: flex;
    align-items: center;
    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;
    overflow: hidden;
    padding: 24px;
}

/* Decorative blobs */
.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    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;
    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-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;
}

.nav-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.site-nav.scrolled .nav-brand { color: var(--text-dark); }

.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 SECTION
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 80% 10%, rgba(134,204,236,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 10% 90%, rgba(134,204,236,0.08) 0%, transparent 60%),
        linear-gradient(150deg, #062050 0%, #0a3872 45%, #104fa3 100%);
}

/* Dot grid overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(134,204,236,0.2) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

/* Glow orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.hero-orb-1 {
    width: 500px; height: 500px;
    top: -100px; right: -100px;
    background: radial-gradient(circle, rgba(134,204,236,0.15) 0%, transparent 70%);
}
.hero-orb-2 {
    width: 400px; height: 400px;
    bottom: -80px; left: -80px;
    background: radial-gradient(circle, rgba(16,79,163,0.3) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 12px 24px 80px;
    max-width: 900px;
    animation: heroIn 1s var(--ease) both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero logo — siempre blanco sobre fondo oscuro */
.hero-logo {
    height: 180px;
    width: auto;
    margin: 0 auto 32px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(134,204,236,0.12);
    border: 1px solid rgba(134,204,236,0.25);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.05;
}

.hero-title .highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--primary-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255,255,255,0.65);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Hero CTA — dos botones sobre el fold */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroIn 1.1s var(--ease) both;
    animation-delay: 0.15s;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.35s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Botón primario: blanco sólido */
.hero-btn-primary {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
}
.hero-btn-primary i { transition: transform 0.3s var(--ease); }
.hero-btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-darker);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(134,204,236,0.3);
}
.hero-btn-primary:hover i { transform: translateY(3px); }

/* Botón secundario: glass */
.hero-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(12px);
}
.hero-btn-secondary i { transition: transform 0.3s var(--ease); }
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.hero-btn-secondary:hover i { transform: translateX(4px); }

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.hero-meta-item i { color: var(--primary-light); }
.hero-meta-separator { color: rgba(255,255,255,0.2); font-size: 18px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 2;
}
.scroll-indicator i { font-size: 18px; animation: arrowBounce 1.5s ease-in-out infinite; }
@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-group { margin-bottom: 44px; }
.phase-group:last-child { margin-bottom: 0; }

.phase-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    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: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}
.phase-label i { color: #86ccec; font-size: 11px; }

/* 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 { 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, #0d1828 0%, #102040 55%, #0a1a38 100%);
    position: relative;
    overflow: hidden;
}
section.bg-heritage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(134,204,236,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
/* Bola de luz ambiental */
section.bg-heritage::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(134,204,236,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* 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), 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);
}
.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(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.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;
    display: block;
}

.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: 36px;
    position: relative;
    z-index: 1;
}

.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;
}
.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); }

/* ============================================================
   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-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: 28px 24px;
    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-bottom: 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;
}
.sidebar-brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    margin-top: 3px;
}

.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; }
.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-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; }
}

@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; }
}

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

/* ── Hero: fondo más dramático y orbs animados ───────────── */
.hero {
    /* Fondo neutro oscuro — el vídeo aporta todo el color */
    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;
}
.wave-divider 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: más dramático ────────────────────── */
.bg-heritage {
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16,79,163,0.15) 0%, transparent 60%),
        linear-gradient(160deg, #040c18 0%, #060d1e 60%, #0a1828 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: 0.5;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.38) 50%,
        rgba(0,0,0,0.50) 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 */

/* ── Visibilidad del texto con fondo de vídeo ─────────────── */
.hero-title {
    text-shadow:
        0 2px 24px rgba(0,0,0,0.90),
        0 0  80px rgba(0,0,0,0.45);
}
/* "Proyecto" (highlight con gradiente) necesita drop-shadow, no text-shadow */
.hero-title .highlight {
    filter: drop-shadow(0 2px 16px rgba(0,0,0,0.85));
}
.hero-subtitle {
    color: rgba(255,255,255,0.88);  /* subido de 0.65 */
    text-shadow: 0 1px 18px rgba(0,0,0,0.85);
}
.hero-eyebrow {
    text-shadow: 0 1px 10px rgba(0,0,0,0.70);
    /* Fondo más opaco del chip */
    background: rgba(134,204,236,0.18);
    border-color: rgba(134,204,236,0.35);
}
.hero-meta-item {
    text-shadow: 0 1px 10px rgba(0,0,0,0.75);
    color: rgba(255,255,255,0.80);
}
.hero-meta-separator {
    text-shadow: 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 — Variante sobre fondo oscuro (.timeline-dark)
   ============================================================ */

.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(3, 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;
}
.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 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.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;
}

/* 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;*/
/*}*/
