/* ===============================
   CALENDARIO VIP – MamitasVIP
=============================== */

body {
    background-color: #050505;
    min-height: 100vh;
}

/* ===============================
   SECCIÓN GENERAL
=============================== */

.calendar-section {
    padding-top: 140px;
    padding-bottom: 80px;
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===============================
   HERO
=============================== */

.calendar-hero {
    text-align: center;
    margin-bottom: 50px;
}

.calendar-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.calendar-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    color: #888;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ===============================
   CONTENEDOR CALENDARIO
=============================== */

.calendar-container {
    width: 100%;
    max-width: 900px;
    background-color: #0a0a0a;
    border: 1px solid #222;
    padding: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* ===============================
   CABECERA MES
=============================== */

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.month-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gold-accent);
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin: 0;
}

.month-btn {
    background: transparent;
    border: 1px solid #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.month-btn:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* ===============================
   DÍAS SEMANA
=============================== */

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 15px;
}

.weekdays div {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 1px;
}

/* ===============================
   GRID DÍAS
=============================== */

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #222;
    border: 1px solid #222;
}

.day {
    position: relative;
    background-color: #0a0a0a;
    height: 150px;
    padding: 8px;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 0.85rem;
    cursor: default;
    transition: background 0.3s;
    overflow: hidden;
}

.day:hover {
    background-color: #111;
}

.prev-month,
.next-month {
    color: #333;
    background-color: #050505;
}

.active-day {
    color: var(--gold-accent);
    font-weight: bold;
    border: 1px solid var(--gold-accent);
}

.has-event {
    cursor: pointer;
}

/* ===============================
   LISTA DE EVENTOS EN CELDA
=============================== */

.events-list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 100px;
    overflow-y: auto;
    padding-right: 4px;
}

.events-list::-webkit-scrollbar {
    width: 4px;
}

.events-list::-webkit-scrollbar-thumb {
    background: rgba(197,160,89,0.6);
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-track {
    background: transparent;
}

.event-inline {
    font-size: 0.55rem;
    line-height: 1.2;
    letter-spacing: 0.8px;
    padding: 3px 4px;
    border-left: 1px solid var(--gold-accent);
    background: rgba(197,160,89,0.06);
}

.event-name {
    color: #c5a059;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.event-name:hover {
    text-decoration: underline;
}

.event-city {
    color: #888;
    font-size: 0.55rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.event-more {
    font-size: 0.6rem;
    color: #aaa;
    margin-top: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ===============================
   MODAL EVENTO
=============================== */

.event-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.event-modal-box {
    background: #0b0b0b;
    border: 1px solid var(--gold-accent);
    padding: 30px 40px;
    min-width: 280px;
    text-align: center;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
    color: #aaa;
}

#close-modal:hover {
    color: var(--gold-accent);
}

.modal-event-item {
    margin-bottom: 14px;
}

.modal-city {
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ===============================
   AGENDA MÓVIL
=============================== */

.mobile-agenda {
    display: none;
}

.agenda-day {
    border-bottom: 1px solid #222;
    padding: 14px 0;
}

.agenda-date {
    color: var(--gold-accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.agenda-event {
    padding: 6px 0;
    font-size: 0.75rem;
}

.agenda-event a {
    color: var(--gold-accent);
    font-weight: 600;
    text-decoration: none;
}

.agenda-city {
    display: block;
    color: #888;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {

    .days-grid,
    .weekdays {
        display: none;
    }

    .mobile-agenda {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .calendar-container {
        padding: 20px;
    }

    .calendar-hero h1 {
        font-size: 2.2rem;
    }

    .agenda-day.today {
        border-left: 3px solid var(--gold-accent);
        padding-left: 12px;
        background: linear-gradient(90deg, rgba(197,160,89,0.12), transparent 70%);
        position: relative;
    }

    .agenda-day.today::before {
        content: "HOY";
        position: absolute;
        top: 6px;
        right: 0;
        background: var(--gold-accent);
        color: #000;
        font-size: 0.55rem;
        letter-spacing: 2px;
        padding: 3px 8px;
        border-radius: 10px;
        font-weight: 700;
    }
}
