﻿/* Modal Estructura */
.participant-modal-dialog {
    border: none;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 620px;
    background: #ffffff;
    overflow: hidden;
    position: fixed;
    inset: 0;
    margin: auto;
}

    .participant-modal-dialog::backdrop {
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(3px);
    }

.instruction-text {
    display: block !important;
    text-align: center;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 16px !important;
}

/* Tarjeta Individual de Tipo de Participante */
.participant-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

    .participant-card:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

/* Columna Imagen */
.participant-media {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.participant-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Columna Info */
.participant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.participant-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.3 !important;
}

.participant-tutor {
    font-size: 0.825rem !important;
    color: #64748b !important;
}

/* Badges */
.badges-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.badge-pill {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.badge-new {
    background-color: #e0f2fe;
    color: #0369a1 !important;
}

.badge-discount {
    background-color: #fee2e2;
    color: #dc2626 !important;
}

/* Columna Precio y Botón */
.participant-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-primary {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.price-strikethrough {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
}

/* Botón Seleccionar */
.btn-select-participant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #254286;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

    .btn-select-participant:hover {
        background-color: #1d3369;
    }

    .btn-select-participant img {
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(1);
    }

/* Adaptación Móvil */
@media (max-width: 500px) {
    .participant-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .participant-action {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed #e2e8f0;
        padding-top: 10px;
    }
}
