:root {
    --primary-blue: #0047AB; /* Azul Cobalto */
    --primary-dark: #003380;
    --primary-light: #3373C4;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #6C757D;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 1rem;
    font-weight: 600;
    transition: color var(--transition-speed);
}

nav a:hover {
    color: var(--primary-blue);
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    width: 250px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 10px;
}

.nav-btn {
    color: white;
    margin-left: 0.5rem;
    padding: 0.6rem 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 71, 171, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 71, 171, 0.3);
}

/* Hero Carousel */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    margin-bottom: 3rem;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    width: 100%;
    padding: 6rem 5% 4rem 5%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
}

.carousel-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.6s 0.3s forwards;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.6s 0.5s forwards;
}

/* Events Grid */
.container {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-left: 5px solid var(--primary-blue);
    padding-left: 15px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all var(--transition-speed);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img-hover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.event-card:hover .card-img-hover {
    opacity: 1;
}

.card-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.event-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.event-price {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Animations */
@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Checkbox/Radio */
.custom-control {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 3rem 5%;
    margin-top: 5rem;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: var(--text-muted);
}

/* ==========================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================== */

/* Mobile Menu Toggle Button (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
    padding: 5px;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    /* Layout & Spacing */
    .container {
        padding: 1.5rem 5%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Header & Navigation */
    header {
        padding: 1rem 5%;
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    nav a {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }

    .search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }

    .nav-btn {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    /* Hero Carousel */
    .hero {
        height: 50vh;
        min-height: 400px;
        border-radius: 0 0 20px 20px;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-overlay {
        padding: 4rem 5% 2rem 5%;
    }

    /* Event Grid */
    .events-grid {
        grid-template-columns: 1fr; /* Stack vertically */
    }

    .card-img {
        height: 200px;
    }

    /* Utilities */
    .mobile-stack {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .mobile-stack > div {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
}
