/* Variables CSS - Paleta Azul, Negro y Dorado */
:root {
    /* Paleta principal */
    --primary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --gold: #fbbf24;
    --dark-gold: #f59e0b;
    --black: #111827;
    --dark-gray: #374151;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    
    /* Compatibilidad con CSS existente */
    --azul-claro: #3b82f6;
    --beige: #f3f4f6;
    --verde: #fbbf24;
    --blanco: #ffffff;
    --negro: #111827;
    --gris-claro: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    padding-top: 100px; /* Para compensar el navbar fijo moderno */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ===========================================
   NAVBAR MODERNO
   =========================================== */

.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(30, 64, 175, 0.1);
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(30, 64, 175, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Montserrat', sans-serif;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Logo Container */
.logo-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid rgba(30, 64, 175, 0.1);
}

.navbar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 5px;
}

.navbar-brand:hover .logo-container {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--gold);
    transform: rotate(2deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
}

.modern-navbar.scrolled .logo-container {
    width: 50px;
    height: 50px;
}

.modern-navbar.scrolled .navbar-logo {
    padding: 3px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    margin: 0;
    line-height: 1;
}

/* Navigation Links */
.navbar-nav {
    gap: 10px;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Montserrat', sans-serif;
    margin: 0 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--black) !important;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.nav-link.active::before {
    display: none;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: var(--primary-blue);
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* ===========================================
   HERO SECTION MODERNO
   =========================================== */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item::before,
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===========================================
   BOTONES MODERNOS
   =========================================== */

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    border: none;
    color: var(--black);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    color: var(--black);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background: transparent;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ===========================================
   SECTIONS MODERNAS
   =========================================== */

.features-section,
.section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #e6f3ff 100%);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--dark-gold) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 60px;
    text-align: center;
}

/* Feature Boxes */
.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--dark-gold) 100%);
    transition: all 0.3s ease;
}

.feature-box:hover::before {
    left: 0;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
    font-size: 2rem;
    color: white;
}

.feature-box:hover .feature-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    transform: scale(1.1);
}

.feature-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* ===========================================
   NEWS SECTION
   =========================================== */

.news-section {
    padding: 100px 0;
    background: var(--black);
    color: white;
    position: relative;
}

.news-section .section-title {
    color: white;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-date {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

/* ===========================================
   FOOTER MODERNO
   =========================================== */

.modern-footer {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.footer-section {
    padding: 80px 0 40px;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: transparent; /* 👈 ¡Eliminamos el fondo amarillo! */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra sutil, más neutra */
    margin-bottom: 15px;
    padding: 2px; /* Espacio pequeño para evitar que la imagen toque los bordes */
}

.footer-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1); /* Ligeramente más brillante si el logo es claro */
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin: 0 5px;
}

.social-icons a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

/* ===========================================
   PAGE HEADERS
   =========================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: -100px;
    padding-top: 160px;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--gold);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================================
   FORMS
   =========================================== */

.form-control {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

/* ===========================================
   ANIMACIONES
   =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .brand-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }
    
    .navbar-nav {
        gap: 5px;
        margin-top: 15px;
    }
    
    .nav-link {
        text-align: center;
        margin: 5px 0;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
    }
}

/* ===========================================
   CAROUSEL CONTROLS
   =========================================== */

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    margin: 0 5px;
}

.carousel-indicators .active {
    background: var(--gold);
}

/* ===========================================
   UTILIDADES ADICIONALES
   =========================================== */

.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}
/* Logo Container - SIN FONDO AZUL */
.logo-container {
    width: 80px;
    height: 80px;
    background: transparent !important; /* Forzar transparencia */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

.navbar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .logo-container {
    transform: rotate(2deg) scale(1.05);
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.3));
}
/* Estilos para el footer */
.text-gold {
    color: var(--gold) !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.contact-item {
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.footer-title {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 10px;
}

.footer-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* Responsive: ajuste para móviles */
@media (max-width: 768px) {
    .footer-section {
        padding: 60px 0 40px;
    }
    
    .footer-title {
        margin-bottom: 15px;
    }
    
    .footer-links,
    .social-icons {
        gap: 10px;
    }
}