/* ============================================================
   Mis Cursos — Vista usuario
   ============================================================ */

.hh-mis-cursos h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hh-empty {
    color: #6c757d;
    font-style: italic;
}

/* Grid de tarjetas */
.hh-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Tarjeta de curso */
.hh-curso-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.hh-curso-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.hh-curso-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.hh-curso-body {
    padding: 16px;
}

.hh-curso-titulo {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #212529;
    line-height: 1.4;
}

/* Badge de horas */
.hh-badge {
    display: inline-block;
    background: #d1e7dd;
    color: #0a3622;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* Cita agendada */
.hh-cita-agendada {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f7ff;
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.hh-cita-icon {
    font-size: 20px;
    line-height: 1;
}

.hh-cita-agendada div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hh-cita-agendada strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0d6efd;
}

.hh-cita-agendada span {
    color: #212529;
    font-weight: 500;
}

.hh-sin-horas {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* Acciones */
.hh-curso-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Botones */
.hh-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s;
    text-align: center;
}

.hh-btn-primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    width: 100%;
}

.hh-btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.hh-btn-secondary {
    background: #fff;
    color: #495057;
    border-color: #ced4da;
}

.hh-btn-secondary:hover {
    background: #f8f9fa;
}

.hh-btn-danger {
    background: #fff;
    color: #c0392b;
    border-color: #c0392b;
}

.hh-btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

/* ============================================================
   Modal
   ============================================================ */

#hh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#hh-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

#hh-modal-cerrar {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 0;
}

#hh-modal-cerrar:hover {
    color: #c0392b;
}

#hh-modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #212529;
}

/* Boton volver */
.hh-btn-back {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hh-btn-back:hover {
    text-decoration: underline;
}

/* FullCalendar dentro del modal */
#hh-fullcalendar .fc-daygrid-day {
    cursor: pointer;
    transition: filter 0.1s;
}

#hh-fullcalendar .fc-daygrid-day:hover {
    filter: brightness(0.92);
}

#hh-fullcalendar .fc .fc-toolbar-title {
    font-size: 16px;
}

/* Grid de slots */
#hh-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.hh-slot-btn {
    padding: 10px 0;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    background: #fff;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.hh-slot-btn:hover {
    background: #0d6efd;
    color: #fff;
}

/* Tabla resumen */
.hh-resumen-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.hh-resumen-table th,
.hh-resumen-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 14px;
    text-align: left;
}

.hh-resumen-table th {
    width: 100px;
    color: #6c757d;
    font-weight: 600;
}

/* Resultado exito/error */
.hh-resultado {
    text-align: center;
    padding: 32px 16px;
}

.hh-resultado-icon {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hh-resultado-ok   .hh-resultado-icon { color: #0a3622; }
.hh-resultado-error .hh-resultado-icon { color: #842029; }

.hh-resultado h3 {
    font-size: 18px;
    margin-bottom: 20px;
    justify-content: center;
}

.hh-resultado .hh-btn {
    min-width: 140px;
}

.hh-loading, .hh-error {
    color: #6c757d;
    font-style: italic;
    padding: 20px 0;
}
