:root {
    --primary-color: #0c3d54;
    --secondary-color: #0D5EF4;
    --accent-color: #D63232;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f8fb;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }

/* Typography */
h1, h2, h3, h4 { color: var(--primary-color); font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.2rem; }
a { text-decoration: none; color: inherit; }
.sub-title { display: inline-block; color: var(--secondary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-size: 0.85rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.btn-primary { background: var(--secondary-color); color: var(--white); border: 2px solid var(--secondary-color); }
.btn-primary:hover { background: #0b4bcc; border-color: #0b4bcc; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-secondary:hover { background: var(--secondary-color); color: var(--white); transform: translateY(-2px); }

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 70px;
    width: 87.5px; /* Proporción 1402x1122 = 1.25 */
    object-fit: contain;
    display: block;
}

/* Navigation */
.main-nav { height: 100%; display: flex; align-items: center; }
.main-nav .menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}
.main-nav .menu > li {
    position: relative;
    margin-left: 25px;
    height: 100%;
    display: flex;
    align-items: center;
}
.main-nav .menu > li > a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-nav .menu > li > a:hover { color: var(--secondary-color); }

/* Fix Top Facebook Icon */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-link a {
    color: var(--white) !important;
    background: #3b5998;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.social-link a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Dropdown */
.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    list-style: none;
    border-radius: 0 0 6px 6px;
    border-top: 3px solid var(--secondary-color);
    overflow: hidden;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 14px 22px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-color);
    transition: var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--bg-light); color: var(--secondary-color); padding-left: 28px; }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 550px;
    overflow: hidden;
    background: #000;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 61, 84, 0.4); /* Capa oscura más suave por los gradientes */
}
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    transform: translateY(20px);
    transition: transform 0.8s ease, opacity 0.8s ease;
}
.carousel-slide.active .hero-content {
    transform: translateY(0);
}
.hero-content h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.15rem; margin-bottom: 35px; font-weight: 400; line-height: 1.8; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.indicator.active {
    background: var(--white);
    border-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Info Section (Nueva) */
.info-section { padding: 90px 0; }
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.info-text p { color: var(--text-light); font-size: 1.05rem; }
.info-visual {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.info-visual i { font-size: 6rem; color: var(--primary-color); opacity: 0.3; }

/* Features Section (Nueva) */
.features-section { padding: 90px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: transparent;
}
.feature-icon {
    width: 70px; height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: var(--secondary-color);
    color: var(--white);
}

/* Events Section */
.events-section { padding: 90px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px;}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.event-image {
    height: 220px;
    position: relative;
    padding: 20px;
}
.placeholder-bg-1 { background: linear-gradient(135deg, #1e3c72, #2a5298); }
.placeholder-bg-2 { background: linear-gradient(135deg, #232526, #414345); }
.placeholder-bg-3 { background: linear-gradient(135deg, #5c258d, #4389a2); }

.event-badges { display: flex; justify-content: space-between; }
.badge { padding: 6px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: var(--white); letter-spacing: 0.5px; text-transform: uppercase;}
.badge-time { background: var(--accent-color); }
.badge-action { background: #b8860b; }
.event-content { padding: 30px 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.event-content h3 { font-size: 1.2rem; min-height: 55px; margin-bottom: 20px;}
.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}
.event-price { font-weight: 700; color: var(--accent-color); font-size: 1.1rem;}
.event-price.free { color: var(--secondary-color); }

/* Links Section */
.links-section { padding: 80px 0; text-align: center; }
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.link-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.link-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; transition: var(--transition); }
.link-card h4 { font-size: 1.1rem; color: var(--text-color); margin: 0; }
.link-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); box-shadow: var(--shadow-md); }
.link-card:hover i { transform: scale(1.1); }

/* Footer */
.main-footer { background: var(--primary-color); color: var(--white); padding: 70px 0 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { height: 60px; filter: brightness(0) invert(1); opacity: 0.9; } /* Vuelve el logo blanco */
.footer-info p { color: #a9bccc; font-size: 0.95rem; }
.footer-links-col h4, .footer-social h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.footer-links-col ul { list-style: none; }
.footer-links-col ul li { margin-bottom: 12px; }
.footer-links-col ul li a { color: #a9bccc; transition: var(--transition); font-size: 0.95rem;}
.footer-links-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }
.social-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #3b5998; color: var(--white);
    padding: 10px 20px; border-radius: 4px;
    transition: var(--transition); font-weight: 600;
}
.social-btn:hover { background: #2d4373; transform: translateY(-2px); }
.footer-bottom { background: #082a3a; text-align: center; padding: 25px 0; font-size: 0.9rem; color: #7a9cb5; }

/* Responsive */
@media (max-width: 992px) {
    .header-container { height: 70px; }
    .logo img { height: 50px; width: 62.5px; }
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .main-nav.active { display: block; }
    .main-nav .menu { flex-direction: column; width: 100%; padding: 10px 0; height: auto;}
    .main-nav .menu > li { margin: 0; width: 100%; height: auto; border-bottom: 1px solid var(--border-color); }
    .main-nav .menu > li > a { padding: 18px 25px; width: 100%; justify-content: space-between;}
    .has-dropdown .dropdown { position: static; box-shadow: none; display: none; transform: none; border-top: none; background: #f9f9f9; width: 100%; border-radius: 0;}
    .has-dropdown.active .dropdown { display: block; opacity: 1; visibility: visible; }
    .social-link { padding: 20px; justify-content: flex-start; }
    
    .hero-carousel { height: 600px; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-visual { height: 250px; }
    
    .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-links-col ul li a:hover { padding-left: 0; }
    .social-btn { justify-content: center; width: 200px; margin: 0 auto;}
}
