#calendario-eventos {
    max-width: 100%;
    margin: 40px auto;
}

/* FUENTE */
#calendario-eventos,
.fc {
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 13px;
}

/* HEADER */
.fc-toolbar {
    margin-bottom: 16px;
}

.fc-toolbar-title {
    font-size: 18px;
    font-weight: 500;
}

/* BOTONES */
.fc .fc-button {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 500;
}

.fc .fc-button:hover {
    background: #f1f3f4;
}

.fc .fc-button-primary.fc-button-active {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #d2e3fc;
}

/* GRILLA */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #e0e0e0;
}

.fc-daygrid-day-number {
    padding: 6px;
    font-size: 12px;
    color: #5f6368;
}

/* EVENTOS */
.fc-event {
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.fc-event:hover {
    filter: brightness(0.92);
}

.fc-daygrid-more-link {
    color: #1a73e8;
    font-weight: 500;
}

.fc-day-today {
    background: #f1f3f4 !important;
}

/* FILTRO */

.calendario-filtros select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #dadce0;
}

/* TOOLTIP */
.fc-tooltip {
    position: absolute;
    z-index: 9999;
    display: none;
    background: #fff;
    color: #3c4043;
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 220px;
    box-shadow: 0 1px 2px rgba(60,64,67,.3),
                0 2px 6px rgba(60,64,67,.15);
}

.fc-tooltip-title {
    font-weight: 500;
}

.fc-tooltip-date {
    font-size: 12px;
    color: #5f6368;
}

.fc-tooltip-excerpt {
    margin-top: 6px;
    font-size: 12px;
    color: #5f6368;
    line-height: 1.4;
}

/* MODAL */
.fc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.fc-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: calc(100% - 32px);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,.2),
                0 8px 24px rgba(0,0,0,.15);
}

.fc-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    float: right;
}

.fc-modal-title {
    font-size: 18px;
    font-weight: 500;
}

.fc-modal-date {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 12px;
}

.fc-modal-excerpt {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.5;
}

.fc-modal-actions {
    margin-top: 16px;
    text-align: right;
}

.fc-modal-btn {
    background: #1a73e8;
    color: #fff!important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.fc-modal-btn:hover {
    background: #1558c0;
}

.calendario-filtros {
    display: flex;
    gap: 8px;
    align-items: center;
}

#filtro-busqueda {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #dadce0;
    min-width: 200px;
}

#filtro-busqueda:focus {
    outline: none;
    border-color: #1a73e8;
}


table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: hsl(0, 0%, 100%)!important;
}

/* =========================
   MOBILE HEADER LAYOUT
========================= */
@media (max-width: 768px) {

    /* Contenedor principal del header */
    .fc .fc-header-toolbar {
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
    }

    /* FILA 1: TÍTULO */
    .fc .fc-toolbar-title {
        font-size: 1.3rem;
        text-align: center;
        margin: 0;
        order: 1;
    }

    /* FILA 2: BOTONES NAV */
    .fc .fc-toolbar-chunk:first-child {
        order: 2;
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    /* FILA 3: VISTAS */
    .fc .fc-toolbar-chunk:last-child {
        order: 3;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Botones más compactos */
    .fc .fc-button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
/* =========================
   EXPORT CALENDAR BUTTON
========================= */
/* =========================
   EXPORT CALENDAR (ANIMATED)
========================= */
.fc-export-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    margin-bottom: 40px;
}

.fc-add-calendar {
    position: relative;
    width: 230px;
}

/* BOTÓN */
.fc-add-calendar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    transition: background .2s ease;
}

.fc-add-calendar-btn:hover {
    background: #1558c0;
}

.fc-add-plus {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* MENÚ */
.fc-add-calendar-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 20;

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    transition: opacity .2s ease, transform .2s ease;
}

.fc-add-calendar:hover .fc-add-calendar-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* OPCIONES */
.fc-cal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    background: #fff;

    transition: background .15s ease;
}

.fc-cal-option:hover {
    background: #f5f5f5;
}

.fc-cal-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 768px) {
    .fc-export-wrapper {
        justify-content: center;
    }

    .fc-add-calendar {
        width: 100%;
        max-width: 300px;
    }
}


