body {
    background-color: rgb(233, 233, 233);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

p.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    padding: 0 15px;
}

/* =========================
   CALENDARIO
========================= */

#calendar {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
    overflow-x: auto;
}

/* Toolbar */
.fc-header-toolbar {
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    gap: 10px;
    flex-wrap: wrap;
}

/* Botones */
.fc-button {
    background-color: #dd1f83 !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.fc-button:hover,
.fc-button:focus {
    background-color: #f15e6e !important;
}

/* Eventos */
.fc-event {
    background-color: #f15e6e !important;
    border-color: #f15e6e !important;
    color: white !important;
    font-size: 12px;
    padding: 2px;
}

.fc-daygrid-event-dot,
.fc-event-time {
    display: none;
}

/* =========================
   POPOVER
========================= */

.popover {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: sans-serif;
    max-width: 300px;
    width: 100%;
}

.popover-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
    padding: 0;
}

.popover-body {
    color: #666;
    font-size: 0.9rem;
}

.bs-popover-end>.arrow::after {
    border-right-color: #f8f9fa;
}

/* Imagen popover */
.img_hov {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

/* =========================
   EVENTOS
========================= */

.evento-item {
    background: #f5f6f7;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.evento-item:hover {
    background: #eef1f3;
}

.evento-header {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
}

.evento-bar {
    width: 6px;
    min-width: 6px;
    height: 40px;
    background: #2c3e50;
    border-radius: 4px;
}

.evento-info {
    flex: 1;
    min-width: 0;
}

.evento-titulo {
    font-weight: bold;
    color: #2c3e50;
    word-break: break-word;
}

.evento-fecha {
    font-size: 12px;
    color: #888;
}

.evento-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-icons i {
    color: #aaa;
    transition: color 0.2s ease;
    font-size: 18px;
}

.evento-icons i:hover {
    color: #ffc107;
}

/* CONTENIDO OCULTO */
.evento-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    transition: all 0.3s ease;
}

/* CUANDO SE ABRE */
.evento-body.activo {
    max-height: 1000px;
    padding: 12px;
}

/* Imagen evento */
.evento-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 35vh;
    object-fit: cover;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    #calendar {
        padding: 10px;
        border-radius: 6px;
    }

    .fc-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
    }

    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .fc-button {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    .fc-col-header-cell-cushion,
    .fc-daygrid-day-number {
        font-size: 12px;
    }

    .fc-event {
        font-size: 10px;
    }

    .evento-header {
        align-items: flex-start;
    }

    .evento-icons {
        flex-direction: column;
        gap: 5px;
    }

    .popover {
        max-width: 95vw;
    }
}

@media (max-width: 480px) {

    p.lead {
        font-size: 1rem;
    }

    .evento-header {
        padding: 10px;
    }

    .evento-titulo {
        font-size: 14px;
    }

    .evento-fecha {
        font-size: 11px;
    }

    .fc-toolbar-title {
        font-size: 18px !important;
        text-align: center;
    }

    .fc-button {
        width: 100%;
    }

    .fc-toolbar-chunk {
        width: 100%;
    }
}