@font-face {
    font-family: 'Capsulex';
    src: url('../fonts/Capsulexpromediumuc-DA20.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'KaturCoffee';
    src: url('../fonts/KaturCoffeeDemoRegular-e97yp.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --on-blue: #0061ff;
    --on-navy: #0a192f;
    --on-border: #e2e8f0;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* =========================================
   1. BARRA DE NAVEGACIÓN Y LOGO
   ========================================= */
.navbar {
    background-color: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 1000;
}
/* Marca ORION SOFTWARE en negro, grande y con sombra */
.brand-text-black {
    font-family: 'KaturCoffee', sans-serif !important;
    color: #141414 !important;
    font-size: 3.25rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em;
    line-height: 1;
    /* Sombra suave con un toque 3D */
    text-shadow: 1px 1px 0 rgba(10, 25, 47, 0.25), 2px 2px 0 rgba(10, 25, 47, 0.15), 4px 6px 12px rgba(0, 0, 0, 0.25) !important;
}
/* Enlaces del menú al centro en negro */
.nav-link-black {
    color: #000000 !important;
    font-size: 1.4rem;
    transition: opacity 0.3s ease;
}

    .nav-link-black:hover {
        opacity: 0.7;
    }

/* =========================================
   2. MEGA MENÚ DE CATÁLOGO
   ========================================= */
.mega-menu-light {
    width: 100%;
    min-width: 0; /* controlado por el contenedor padre */
    background: #ffffff !important;
    border-radius: 24px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    padding: 1.5rem !important; /* Espacio para no cortar las sombras internas */
}

/* Opciones individuales dentro del menú */
.mega-item-light {
    white-space: normal !important; /* Permite que el texto baje de línea */
    display: flex !important;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid transparent;
    text-decoration: none;
}

    .mega-item-light:hover {
        background-color: #f8fafc !important;
        border-color: #e2e8f0;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08); /* Sombra flotante */
        transform: translateY(-3px); /* Efecto 3D al pasar el mouse */
    }

    .mega-item-light h5 {
        margin: 0;
        line-height: 1.2;
    }

/* Tarjeta destacada a la derecha del Mega Menú */
.featured-card-light {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
}

/* =========================================
   3. HERO SECTION (IMAGEN DE FONDO)
   ========================================= */
.hero-background-wrapper {
    background-color: var(--on-navy);
    /* Degradado oscuro sobre tu imagen para que resalte el texto blanco */
    background-image: linear-gradient(rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.7)), url('../images/fondomainframe.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-gradient {
    width: 100%;
    padding: 180px 0 100px 0; /* Espacio superior para que no choque con el menú */
}
.hero-full-width {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Hamburger button */
.navbar-toggler {
    padding: 4px 8px;
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    /* Hero */
    .hero-gradient {
        padding: 120px 0 60px 0;
    }
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3.5rem) !important;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .hero-subtitle-white {
        font-size: 1rem !important;
    }

    /* Mega menu mobile fix */
    .mega-menu-light {
        min-width: 0 !important;
        width: 100% !important;
        border-radius: 12px !important;
        padding: 0.75rem !important;
        position: static !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }
    .mega-menu-light .col-md-4,
    .mega-menu-light [class*="col-"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .mega-item-light {
        padding: 0.75rem !important;
        transform: none !important;
    }
    .mega-item-light:hover {
        transform: none !important;
    }
    .mega-item-light .bg-primary,
    .mega-item-light .bg-info {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0;
    }
    .mega-item-light h5 {
        font-size: 0.95rem !important;
    }
    .mega-item-light p {
        font-size: 0.8rem !important;
        display: none; /* oculta descripción en mobile para ahorrar espacio */
    }
    .nav-item.dropdown.position-static {
        position: relative !important;
    }
}

@media (min-width: 992px) {
    .hero-title {
        white-space: normal;
        font-size: clamp(2.5rem, 5vw, 5.5rem);
    }
}

.hero-subtitle-white {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Etiqueta superior del Hero */
.badge-soft {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   4. TARJETAS DE CATÁLOGO (EFECTO 3D)
   ========================================= */
.ondol-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Sombras multicapa y brillo interior */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 20px 25px -5px rgba(0, 0, 0, 0.02), inset 0 2px 4px rgba(255, 255, 255, 1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

    .ondol-card:hover {
        transform: translateY(-12px) scale(1.01);
        border-color: rgba(0, 97, 255, 0.2);
        /* Sombra profunda azulada */
        box-shadow: 0 15px 25px -5px rgba(0, 97, 255, 0.08), 0 40px 60px -15px rgba(10, 25, 47, 0.15), 0 10px 15px -5px rgba(10, 25, 47, 0.05), inset 0 2px 4px rgba(255, 255, 255, 1);
        z-index: 2;
    }

/* =========================================
   5. BOTONES GLOBALES
   ========================================= */
.btn-ondol {
    background-color: var(--on-blue);
    color: white;
    border-radius: 100px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

    .btn-ondol:hover {
        background-color: #0052d6;
        box-shadow: 0 10px 20px rgba(0, 97, 255, 0.2);
        color: white;
        transform: scale(1.02);
    }

/* Accesibilidad Focus */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(0, 97, 255, 0.25);
    outline: none;
}
