/* =========================================
   1. ESTILOS GLOBALES Y BOOTSTRAP OVERRIDES
   ========================================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    --color-institucional: #003366;
    --color-institucional-dark: #002244;
}

.btn:focus, .btn-link.nav-link:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 51, 102, 0.25);
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
.top-bar {
    background-color: var(--color-institucional);
    font-size: 0.9rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: var(--color-institucional) !important;
    }

.navbar-nav .btn-primary {
    background-color: var(--color-institucional);
    border-color: var(--color-institucional);
}

    .navbar-nav .btn-primary:hover {
        background-color: var(--color-institucional-dark);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,51,102,0.3);
    }

.text-primary {
    color: var(--color-institucional) !important;
}

/* =========================================
   3. HERO CARRUSEL Y SEPARADOR MODERNO
   ========================================= */
.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

@media (max-width: 576px) {
    .carousel-caption {
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-buttons-container {
        flex-direction: column !important;
        width: 100%;
        gap: 10px;
    }

        .hero-buttons-container .btn {
            width: 100%;
            margin-right: 0 !important;
            padding: 12px;
        }

    .carousel-item h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
}

.modern-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #f8f9fa;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 5;
}

/* =========================================
   4. TARJETAS Y EFECTOS (ACCESOS RÁPIDOS)
   ========================================= */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,0.15) !important;
    }


.card-icon-box {
    width: 65px;
    height: 65px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hover-lift:hover .card-icon-box {
    transform: scale(1.1);
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

.object-fit-cover {
    object-fit: cover;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* =========================================
   5. FOOTER
   ========================================= */
.footer-section {
    background-color: #001a33;
    font-size: 0.9rem;
}

.hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.social-icons .btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

    .social-icons .btn:hover {
        background-color: #fff;
        color: #001a33;
        transform: translateY(-3px);
    }
