:root {
    --bpass-red: #DC2626;
    --bpass-red-dark: #991B1B;
    --bpass-red-light: #FCA5A5;
    --bpass-white: #FFFFFF;
    --bpass-gray-lightest: #F9FAFB;
    --bpass-gray-light: #F3F4F6;
    --bpass-gray-medium: #E5E7EB;
    --bpass-gray: #9CA3AF;
    --bpass-gray-dark: #4B5563;
    --bpass-black: #1F2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bpass-gray-lightest);
    color: var(--bpass-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: #1A202C;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--bpass-black);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    width: auto;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--bpass-white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--bpass-red);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Botones compactos del header */
.header-actions .btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--bpass-red);
    color: var(--bpass-white);
}

.btn-primary:hover {
    background-color: var(--bpass-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--bpass-white);
    border: 2px solid var(--bpass-white);
}

.btn-outline:hover {
    background-color: var(--bpass-white);
    color: var(--bpass-black);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: var(--bpass-gray-light);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem 1rem;
}

.slide-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--bpass-white);
}

.slide-description {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.slider-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(220, 38, 38, 0.8);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--bpass-red);
    transform: scale(1.1);
}

/* Events Section */
.events-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bpass-black);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.55), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid #d9dde4;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: #cfd5de;
    box-shadow: 0 18px 35px -22px rgba(15, 23, 42, 0.65), 0 0 0 1px rgba(220, 38, 38, 0.08);
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background-color: var(--bpass-gray-light);
    transition: transform 0.35s ease;
}

.event-card:hover .event-image {
    transform: scale(1.03);
}

.event-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--bpass-red);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-badge-modalidad {
    background: linear-gradient(180deg, #273142 0%, #1f2937 100%);
    color: white;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.event-info {
    padding: 0.75rem 0.8rem 0.8rem;
}

.event-header {
    margin-bottom: 0.5rem;
}

.event-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(220, 38, 38, 0.08);
    color: #DC2626;
    padding: 0.12rem 0.3rem;
    border-radius: 3px;
    font-size: 0.52rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem;
    border: 1px solid rgba(220, 38, 38, 0.12);
}

.event-category-badge svg {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
}

.event-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bpass-black);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin: 0;
}

.event-datetime-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}

.event-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.3rem 0.4rem;
    text-align: center;
    min-width: 44px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.event-date-month-top {
    font-size: 0.55rem;
    font-weight: 700;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.event-date-day {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.event-time-container {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-time-container svg {
    color: #64748b;
    flex-shrink: 0;
}

.event-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.event-location svg {
    color: #64748b;
    flex-shrink: 0;
}

.event-location-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.event-footer-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.event-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bpass-red);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: #1A202C;
    padding: 1.5rem 1rem 0.75rem;
    margin-top: 3rem;
    border-top: 1px solid var(--bpass-black);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h3 {
    color: var(--bpass-red);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p + h3 {
    margin-top: 1.15rem;
}

.footer-section p {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #D1D5DB;
}

.footer-whatsapp-link {
    color: inherit;
    text-decoration: none;
}

.footer-whatsapp-link:hover {
    color: #25D366;
    text-decoration: underline;
}

.footer-link {
    display: block;
    color: #D1D5DB;
    text-decoration: none;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--bpass-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    .header-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .search-bar {
        order: unset;
        flex: 1;
        max-width: none;
        margin: 0;
        min-width: 80px;
    }

    .search-input {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .header-actions {
        order: unset;
        gap: 0.4rem;
    }

    .header-actions .btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        color: transparent;
        position: relative;
    }

    .header-actions .btn::before {
        content: "";
        width: 18px;
        height: 18px;
        background-color: currentColor;
    }

    .header-actions .btn-outline::before {
        background-color: var(--bpass-white, #FFFFFF);
    }
    .header-actions .btn-primary::before {
        background-color: #FFFFFF;
    }

    .header-actions .btn[href="/login.php"]::before,
    .header-actions .btn[href="/mi-cuenta.php"]::before {
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
    }

    .header-actions .btn[href="/registro.php"] {
        display: none !important;
    }

    .header-actions .btn[href="/logout.php"]::before {
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E") no-repeat center / contain;
    }

    .logo {
        order: unset;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--bpass-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
