@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');



/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --on-blue:        #1E8FC0;
    --on-blue-mid:   #3BA8D4;
    --on-blue-light: #72C2E4;
    --on-blue-pale:  #DDF0FA;
    --on-blue-deep:  #0D5F82;
    --on-blue-muted:  #A8D8EE;
    --on-navy:        #0A2540;
    --on-border:      #C8E6F5;
    --on-text:        #0A1929;
    --on-text-muted:  #3A637A;
    --on-bg:          #ffffff;
    --on-bg-soft:     #F0F8FD;
    --on-bg-card:     #F6FAFE;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--on-bg);
    color: var(--on-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =========================================
   TIPOGRAFÍA GLOBAL
   ========================================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--on-text);
}

h1, .h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4, .h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
h5, .h5 { font-size: 1rem;    font-weight: 700; letter-spacing: -0.01em; }
h6, .h6 { font-size: 0.88rem; font-weight: 700; letter-spacing: 0; }

p {
    line-height: 1.7;
}

.display-4, .display-5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

/* Énfasis de color en títulos (etiqueta <em>) */
h1 em, h2 em, .display-4 em, .display-5 em {
    font-style: normal;
    color: var(--on-blue-muted);
}

/* =========================================
   1. NAVBAR
   ========================================= */
.navbar {
    background-color: #ffffff !important;
    position: relative;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--on-border);
    box-shadow: 0 1px 12px rgba(10, 37, 64, 0.06);
}

.navbar-brand img {
    /* Logo original sin invertir, sobre fondo blanco */
    height: 56px;
}

.nav-link-orion {
    color: var(--on-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link-orion:hover {
    color: var(--on-blue) !important;
}

.nav-link-orion.dropdown-toggle::after {
    border-color: var(--on-text-muted) transparent transparent;
}

/* Botón "Soporte" en la navbar */
.btn-nav-pill {
    background: var(--on-blue);
    color: #ffffff !important;
    border: none;
    border-radius: 100px;
    padding: 8px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-nav-pill:hover {
    background: var(--on-blue-deep);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15,110,86,0.22);
}

/* =========================================
   2. MEGA MENÚ
   ========================================= */
.mega-menu-orion {
    width: 100%;
    background: #ffffff !important;
    border-radius: 20px;
    border: 1px solid var(--on-border) !important;
    box-shadow: 0 20px 60px rgba(4, 52, 44, 0.12) !important;
    padding: 1.5rem !important;
}

.mega-item-orion {
    white-space: normal !important;
    display: flex !important;
    align-items: center;
    transition: all 0.25s ease !important;
    border: 1px solid transparent;
    border-radius: 12px !important;
    text-decoration: none;
    color: var(--on-text) !important;
}

.mega-item-orion:hover {
    background-color: var(--on-blue-pale) !important;
    border-color: var(--on-border);
    transform: translateY(-2px);
    color: var(--on-text) !important;
}

.mega-item-orion h5 {
    margin: 0;
    color: var(--on-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.mega-item-orion p {
    color: var(--on-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.mega-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--on-blue-pale);
    color: var(--on-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-background-wrapper {
    background-color: var(--on-blue-deep);
    background-image: linear-gradient(135deg, rgba(10,37,64,0.88) 0%, rgba(30,143,192,0.72) 100%),
                      url('../images/fondomainframe.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circle */
.hero-background-wrapper::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(29, 158, 117, 0.08);
    pointer-events: none;
}

.hero-gradient {
    width: 100%;
    padding: 80px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.hero-title em {
    font-style: normal;
    color: var(--on-blue-muted);
}

.hero-subtitle-white {
    color: rgba(255,255,255,0.82);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.65;
    max-width: 500px;
    margin-top: 16px;
    overflow-wrap: break-word;
}

.badge-soft {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: var(--on-blue-muted);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(93,202,165,0.35);
}

/* Mini dashboard preview en el Hero */
.hero-dashboard {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.hero-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-blue-muted);
    line-height: 1;
}

.hero-stat-lbl {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
    line-height: 1.3;
}

.hero-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hero-bar-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    width: 80px;
    flex-shrink: 0;
    text-align: right;
}

.hero-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
}

.hero-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--on-blue-light);
}

.hero-bar-pct {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    width: 28px;
}

/* =========================================
   4. FRANJA DE MÉTRICAS
   ========================================= */
.metrics-strip {
    border-top: 1px solid var(--on-border);
    border-bottom: 1px solid var(--on-border);
    background: var(--on-bg-soft);
}

.metric-item {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--on-border);
}

.metric-item:last-child {
    border-right: none;
}

.metric-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--on-blue);
    line-height: 1;
}

.metric-lbl {
    font-size: 0.78rem;
    color: var(--on-text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* =========================================
   5. SECCIÓN PILARES
   ========================================= */
.pillars-section {
    background: var(--on-bg-soft);
    border-bottom: 1px solid var(--on-border);
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--on-border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.pillar-card:hover {
    border-color: var(--on-blue-light);
    transform: translateY(-3px);
}

.pillar-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--on-blue-muted);
    line-height: 1;
    margin-bottom: 10px;
}

.pillar-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--on-text);
    margin-bottom: 6px;
}

.pillar-card p {
    font-size: 0.82rem;
    color: var(--on-text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* =========================================
   6. TARJETAS DE PRODUCTOS
   ========================================= */
.product-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.product-tag.popular {
    background: #DDF0FA;
    color: #0D5F82;
}

.product-tag.new {
    background: var(--on-blue-pale);
    color: var(--on-blue);
}

.product-tag.free {
    background: #E8F4FF;
    color: #1A6FA8;
}

.ondol-card {
    background: var(--on-bg-card);
    border: 1px solid var(--on-border);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.ondol-card:hover {
    transform: translateY(-8px);
    border-color: var(--on-blue-light);
    box-shadow: 0 24px 48px rgba(15,110,86,0.10), 0 8px 16px rgba(15,110,86,0.06);
    z-index: 2;
    background: #ffffff;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--on-blue-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-blue);
    font-size: 1.4rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.product-icon.blue   { background: #E6F1FB; color: #185FA5; }
.product-icon.amber  { background: #DDF0FA; color: #0D5F82; }
.product-icon.coral  { background: #FAECE7; color: #993C1D; }
.product-icon.purple { background: #E8F4FF; color: #1A6FA8; }
.product-icon.teal   { background: var(--on-blue-pale); color: var(--on-blue); }

.ondol-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--on-text);
    margin-bottom: 8px;
}

.ondol-card .card-desc {
    font-size: 0.85rem;
    color: var(--on-text-muted);
    line-height: 1.55;
    flex: 1;
    min-height: 60px;
    margin-bottom: 0;
}

.card-footer-price {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--on-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-blue);
    line-height: 1;
}

.price-sub {
    font-size: 0.7rem;
    color: var(--on-text-muted);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* =========================================
   7. BOTONES
   ========================================= */
.btn-ondol {
    background-color: var(--on-blue);
    color: #ffffff !important;
    border-radius: 100px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border: none;
    display: inline-block;
    text-decoration: none !important;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-ondol:hover {
    background-color: var(--on-blue-deep);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15,110,86,0.25);
}

.btn-ondol-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-block;
    text-decoration: none !important;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-ondol-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.65);
    color: #ffffff !important;
}

.btn-card-explore {
    background: var(--on-blue-pale);
    color: var(--on-blue) !important;
    border: none;
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-card-explore:hover {
    background: var(--on-blue);
    color: #ffffff !important;
}

/* =========================================
   8. CTA FINAL
   ========================================= */
.cta-block {
    background: var(--on-blue-deep);
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
}

.cta-block h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.cta-block p {
    color: var(--on-blue-muted);
    font-size: 1rem;
    margin-bottom: 28px;
    font-weight: 300;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer-orion {
    background: var(--on-navy);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 28px;
}

.footer-orion .footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--on-blue-muted);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 8px;
}

.footer-orion p,
.footer-orion li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.7;
}

.footer-orion h6 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
}

.footer-orion ul li a {
    color: rgba(255,255,255,0.52);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-orion ul li a:hover {
    color: var(--on-blue-muted);
}

.footer-divider {
    border-color: rgba(255,255,255,0.08) !important;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* =========================================
   10. SECCIÓN TÍTULO GENÉRICA
   ========================================= */
.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-blue);
    display: block;
    margin-bottom: 8px;
}

.section-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--on-text);
}

/* =========================================
   11. BOTÓN HAMBURGUESA
   ========================================= */
.navbar-toggler-orion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--on-blue-pale);
    border: 1px solid var(--on-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.navbar-toggler-orion:hover {
    background: #C8E6F5;
}

.toggler-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.toggler-icon span {
    display: block;
    height: 2px;
    background: var(--on-blue);
    border-radius: 2px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animación hamburguesa → X */
.navbar-toggler-orion[aria-expanded="true"] .toggler-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler-orion[aria-expanded="true"] .toggler-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler-orion[aria-expanded="true"] .toggler-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 991.98px) {

    /* Panel de collapse */
    .navbar-collapse {
        background: #ffffff;
        border-top: 1px solid var(--on-border);
        padding: 0.5rem 0 1rem;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(10,37,64,0.08);
    }

    /* Links */
    .nav-link-orion {
        padding: 0.85rem 1.5rem !important;
        border-bottom: 1px solid var(--on-border);
        font-size: 1rem !important;
    }

    /* Botón Soporte mobile */
    .navbar-nav .ms-lg-3 {
        margin-left: 0 !important;
        padding: 0.75rem 1.5rem;
    }

    .navbar-nav .ms-lg-3 .btn-nav-pill {
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    /* Mega menú mobile inline */
    .nav-item.dropdown.position-static {
        position: relative !important;
    }

    .mega-menu-orion {
        min-width: 0 !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #f4f9fd !important;
        padding: 0.5rem 1rem !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .mega-menu-orion > .p-3 {
        padding: 0.5rem 0 !important;
    }

    .mega-item-orion {
        padding: 0.6rem 0.75rem !important;
        transform: none !important;
        border-radius: 8px !important;
    }

    .mega-item-orion:hover {
        transform: none !important;
    }

    .mega-item-orion h5 {
        font-size: 0.88rem !important;
        color: var(--on-text) !important;
    }

    .mega-item-orion p {
        display: none;
    }

    .mega-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Hero */
    .hero-gradient {
        padding: 56px 0 48px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.2rem) !important;
    }

    .hero-subtitle-white {
        font-size: 1rem !important;
    }

    .hero-dashboard {
        margin-top: 32px;
    }

    /* Métricas */
    .metric-item {
        border-right: none;
        border-bottom: 1px solid var(--on-border);
    }

    .metric-item:last-child {
        border-bottom: none;
    }

    /* CTA */
    .cta-block {
        padding: 40px 24px;
        border-radius: 16px;
    }
}

@media (min-width: 992px) {
    .nav-item.dropdown.position-static {
        position: static;
    }

    .mega-menu-orion {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* Accessibility */
.btn:focus, .btn:active:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(30,143,192,0.3);
    outline: none;
}
