/* Diversión Page Specific Styles */

/* Prevent horizontal scroll */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.section,
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Event Status Banner */
.event-status-container {
    margin: 2rem 0 3rem 0;
}

.event-status-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.event-status-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.event-status-banner.now {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse-glow 2s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.3);
}

.event-status-banner.next {
    background: linear-gradient(135deg, #4B6AC1 0%, #60A4F4 100%);
    border-color: rgba(255, 255, 255, 0.25);
}

.event-status-banner.finished {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(16, 185, 129, 0.6);
    }
}

.status-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.status-content {
    color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 1;
}

.status-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-event-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.status-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    opacity: 0.95;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.status-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    min-width: 90px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
}

.countdown-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 1);
    margin-top: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Events Carousel */
.events-carousel-container {
    position: relative;
    margin: 3rem 0;
    padding: 0 60px;
    overflow: hidden;
}

.events-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.event-card {
    min-width: 300px;
    max-width: 300px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.2);
}

.event-date-badge {
    /* Background is set inline via JavaScript with festive carnival colors */
    padding: 1.75rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.event-date-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.event-date-badge::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
}

.event-day {
    display: block;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.event-month {
    display: block;
    font-size: 1.05rem;
    margin-top: 0.4rem;
    letter-spacing: 2px;
    opacity: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.event-content {
    padding: 1.75rem;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

.event-title {
    font-size: 1.35rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.event-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
}

.event-details {
    margin-top: 1rem;
}

.event-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
}

.event-detail-item:last-child {
    margin-bottom: 0;
}

.event-detail-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #6366f1;
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.1));
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #6366f1;
    color: #6366f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
}

/* Entertainment Section */
.entertainment-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.entertainment-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.entertainment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.entertainment-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 2px solid #ffd700;
}

.entertainment-card.featured h3,
.entertainment-card.featured p {
    color: #ffffff;
}

.entertainment-card.featured .price-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.entertainment-card h3 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.entertainment-card.featured .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.entertainment-card p {
    color: #5a5a5a;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.nightlife-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.detail-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #667eea;
    filter: drop-shadow(0 1px 2px rgba(102, 126, 234, 0.2));
}

.detail-row span {
    color: #475569;
    line-height: 1.6;
}

.price-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 1rem 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Recommendation Box */
.recommendation-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.recommendation-box h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.recommendation-box h4 svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    color: #ffffff;
}

.recommendation-box p {
    line-height: 1.8;
    opacity: 0.95;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #D93600 0%, #FF4C3B 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(217, 54, 0, 0.3);
}

.warning-box h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.warning-box h4 svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    color: #ffffff;
}

.warning-box ul {
    list-style: none;
    padding: 0;
}

.warning-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.warning-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

/* Nightlife Section */
.nightlife-section {
    padding: 2rem 0;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .event-status-banner {
        padding: 1.5rem;
    }

    .status-title {
        font-size: 1.4rem;
    }

    .status-event-name {
        font-size: 1.1rem;
    }

    .countdown-box {
        padding: 0.75rem 1rem;
        min-width: 70px;
    }

    .countdown-num {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .events-carousel-container {
        padding: 0 40px;
    }

    .event-card {
        min-width: 260px;
        max-width: 260px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .entertainment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .entertainment-card {
        padding: 1.5rem;
    }

    .entertainment-card h3 {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .recommendation-box,
    .warning-box {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .status-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .status-countdown {
        gap: 0.5rem;
    }

    .countdown-box {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }

    .countdown-num {
        font-size: 1.2rem;
    }

    .events-carousel-container {
        padding: 0 30px;
    }

    .event-card {
        min-width: 240px;
        max-width: 240px;
    }

    .event-day {
        font-size: 2rem;
    }

    .event-month {
        font-size: 0.9rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .entertainment-section {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Print Styles */
@media print {
    .entertainment-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .recommendation-box,
    .warning-box {
        break-inside: avoid;
        color: #000;
        background: #f0f0f0 !important;
    }
}
