.stat-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
}

.stat-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 15px;
    background: rgba(24, 165, 88, .1);
    color: var(--verde);
    font-size: 22px
}

.stat-card span {
    color: var(--sec);
    font-size: 13px
}

.stat-card h2 {
    margin: 2px 0 0;
    color: var(--azul);
    font-size: 30px;
    font-weight: 700
}

.admin-panel {
    padding: 25px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

.admin-panel-header h2 {
    margin: 0 0 4px;
    color: var(--azul);
    font-size: 20px;
    font-weight: 700
}

.admin-panel-header p {
    margin: 0;
    color: var(--sec);
    font-size: 13px
}

.admin-table {
    margin-bottom: 0
}

.admin-table thead th {
    background: var(--fondo);
    color: #536273;
    border-bottom: 0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
}

.admin-table tbody td {
    color: #445468;
    font-size: 13px;
    vertical-align: middle
}

.admin-table tbody tr:hover {
    background: #fafbfd
}

.table-secondary-text {
    display: block;
    margin-top: 3px;
    color: #8a96a3;
    font-size: 11px
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap
}

.status-pendiente {
    background: #fff3cd;
    color: #856404
}

.status-contactado {
    background: #cfe2ff;
    color: #084298
}

.status-agendado,
.status-enviada {
    background: #e2d9f3;
    color: #59359a
}

.status-atendido,
.status-aceptada {
    background: #d1e7dd;
    color: #0f5132
}

.status-cancelado,
.status-cancelada,
.status-rechazada {
    background: #f8d7da;
    color: #842029
}

.status-en_revision {
    background: #cff4fc;
    color: #055160
}

.admin-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.admin-search {
    position: relative;
    min-width: 260px
}

.admin-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #8a96a3;
    transform: translateY(-50%)
}

.admin-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    outline: 0
}

.admin-search input:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(24, 165, 88, .1)
}

.admin-filters .form-select {
    width: auto;
    min-width: 185px
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--verde);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5
}

.detail-section-title>i {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(24, 165, 88, .1);
    color: var(--verde)
}

.detail-section-title h2 {
    margin: 0;
    color: var(--azul);
    font-size: 18px;
    font-weight: 700
}

.detail-section-title p {
    margin: 3px 0 0;
    color: #8a96a3;
    font-size: 12px
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.detail-item,
.detail-message {
    padding: 15px;
    border-radius: 12px;
    background: #f7f9fc
}

.detail-item span,
.detail-label,
.detail-message>span {
    display: block;
    margin-bottom: 5px;
    color: #8a96a3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase
}

.detail-item strong {
    color: #33485e;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word
}

.detail-message {
    margin-top: 20px;
    padding: 18px
}

.detail-message p {
    margin: 0;
    color: #536273;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word
}

.status-confirmada {
    background: #cfe2ff;
    color: #084298;
}

.status-realizada {
    background: #d1e7dd;
    color: #0f5132;
}

/* =========================================
   CALENDARIO DE CITAS
========================================= */

#calendar {
    width: 100%;
}

.calendar-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 14px 16px;

    background: #f7f9fc;

    border-radius: 12px;

    color: #536273;

    font-size: 13px;
}

.calendar-help i {
    margin-top: 2px;

    color: var(--verde);
}


/* FULLCALENDAR */

.fc .fc-toolbar-title {
    color: var(--azul);

    font-size: 22px;

    font-weight: 700;
}

.fc .fc-button {
    border-radius: 8px;
}

.fc .fc-event {
    cursor: pointer;

    border: none;

    padding: 2px 4px;
}


/* ESTADOS */

.calendar-status-pendiente {
    background: #d7a500 !important;
}

.calendar-status-confirmada {
    background: #0d6efd !important;
}

.calendar-status-realizada {
    background: #198754 !important;
}

.calendar-status-cancelada {
    background: #dc3545 !important;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .fc .fc-toolbar {
        display: flex;

        flex-direction: column;

        gap: 12px;
    }

    .fc .fc-toolbar-title {
        font-size: 19px;
    }

}

/* =========================================
   CALENDARIO - BOTONES Y CABECERA
========================================= */

.fc .fc-toolbar {
    gap: 15px;
    margin-bottom: 25px;
}

.fc .fc-toolbar-title {
    color: var(--azul);
    font-size: 24px;
    font-weight: 700;
    text-transform: capitalize;
}


/* BOTONES */

.fc .fc-button {
    border: none !important;

    border-radius: 10px !important;

    padding: 9px 14px !important;

    font-size: 13px !important;

    font-weight: 600 !important;

    transition: all .25s ease !important;
}


/* BOTONES NORMALES */

.fc .fc-button-primary {
    background: #0A4D8C !important;
    color: #ffffff !important;
}


/* HOVER */

.fc .fc-button-primary:hover {
    background: #083d70 !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(10, 77, 140, .20);
}


/* BOTÓN ACTIVO */

.fc .fc-button-primary:not(:disabled).fc-button-active {

    background: #18A558 !important;

    color: #ffffff !important;

}


/* BOTÓN HOY */

.fc .fc-today-button {

    background: #18A558 !important;

    color: #ffffff !important;

}


/* BOTONES ANTERIOR / SIGUIENTE */

.fc .fc-prev-button,
.fc .fc-next-button {

    width: 42px;
    height: 42px;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    padding: 0 !important;

    border-radius: 50% !important;

}


/* =========================================
   CABECERA DE DÍAS
========================================= */

.fc .fc-col-header-cell {

    background: #f5f8fc;

    padding: 10px 0;

}

.fc .fc-col-header-cell-cushion {

    color: #0A4D8C;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

}


/* =========================================
   DÍAS DEL MES
========================================= */

.fc .fc-daygrid-day-number {

    color: #33485e;

    font-weight: 500;

    text-decoration: none;

}


/* HOY */

.fc .fc-day-today {

    background:
        rgba(24, 165, 88, .08) !important;

}


/* =========================================
   EVENTOS
========================================= */

.fc .fc-event {

    border: none !important;

    border-radius: 7px !important;

    padding: 4px 6px !important;

    font-size: 12px !important;

    font-weight: 500 !important;

    cursor: pointer;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, .12);

}


/* =========================================
   HORA
========================================= */

.fc .fc-timegrid-slot-label {

    color: #7b8794;

    font-size: 12px;

}


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

@media (max-width: 768px) {

    .fc .fc-toolbar {

        flex-direction: column;

        align-items: stretch;

    }

    .fc .fc-toolbar-chunk {

        display: flex;

        justify-content: center;

        flex-wrap: wrap;

        gap: 5px;

    }

    .fc .fc-toolbar-title {

        font-size: 20px;

        text-align: center;

    }

}