
/* ==========================================================
   ÁREA PERSONAL + TICKET / QR (vistas compartidas)
   ========================================================== */

/* Nota:
   - Este archivo idealmente no redefine :root, body ni @font-face.
   - Aun así, algunas vistas parciales cargan solo areaPersonal.css; por eso
     incluimos un bloque mínimo de variables con fallback para que el diseño
     no dependa estrictamente de styles.css. */

/* --------------------------
   Variables (desde styles.css - Noel Delizias)
   -------------------------- */
:root {
    --tph-blanco: #ffffff;
    --tph-negro: #000000;
    --tph-gris-fuerte: #606060;
    --tph-gris: #dddedd;
    --tph-marron: #602919;
    --tph-rojo: #ce102c;
    --tph-blanco-roto: #f7f7f7;
    --tph-dorado: #a9a46e;

    /* Variables comunes del sistema (se usan en utilidades compartidas) */
    --tph-rojo-rgb: 206 16 44;
    --tph-gris-claro: #c9c9c9;
    --tph-crema: #f7f7f7;
    --tph-cuenta-atras: var(--tph-blanco);

    --tph-font-Larosa-Regular: 'Larosa Regular';
    --tph-font-Larosa-Black: 'Larosa Black';
    --tph-font-Caros-Soft-Light: 'Caros Soft Light';
    --tph-font-Montserrat-Medium: 'Montserrat Medium';

    /* Área personal: colores + tipografía desde el tema Noel Delizias */
    --tph-area-personal-color: var(--tph-rojo);
    --tph-area-personal-color-rgb: var(--tph-rojo-rgb);
    --tph-area-personal-font: var(--tph-font-Larosa-Regular);

    /* Variables genéricas consumidas por areaPersonal.css */
    --primary-color: var(--tph-area-personal-color);
    --primary-color-rgb: var(--tph-area-personal-color-rgb);
    --primary-font: var(--tph-area-personal-font);
    --primary-color-dark: var(--tph-marron);

    --tph-form-placeholder: #868686;
}

/* --------------------------
   Menú + modal acceso (fallback)
   -------------------------- */
#mainMenu {
    background-color: var(--tph-blanco);
}

/* Botón de espera "Procesando..." (modal acceso área personal) */
#btnWaitAcceso {
    background-color: var(--tph-rojo);
    border-color: var(--tph-rojo);
    color: var(--tph-blanco);
    font-family: var(--tph-font-Larosa-Regular, var(--primary-font));
}

#btnWaitAcceso:disabled {
    background-color: var(--tph-rojo);
    border-color: var(--tph-rojo);
    color: var(--tph-blanco);
    opacity: 0.85;
}

/* Botón "Área personal" del menú: heredar tipografía de .nav-link */
#mainMenu .btn-menu {
    font-family: inherit;
    font-size: var(--bs-nav-link-font-size, inherit);
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;

    --bs-btn-font-weight: inherit;
    --bs-btn-font-size: var(--bs-nav-link-font-size, inherit);
}

/* Modal login "Mi cuenta" (template) */
#accesoMicuenta .modal-dialog {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

#accesoMicuenta .modal-content.modal-area-personal {
    border-radius: 1.25rem;
    border: none;
    background: linear-gradient(135deg, var(--tph-rojo) 0%, var(--tph-blanco) 100%);
    color: var(--tph-blanco);
    box-shadow: 0 10px 40px rgba(206, 16, 44, 0.3);
}

#accesoMicuenta .modal-header {
    padding: 0.85rem 0.85rem 0;
}

#accesoMicuenta .btn-close.btn-close-custom {
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

#accesoMicuenta .btn-close.btn-close-custom:hover {
    opacity: 1;
}

#accesoMicuenta .modal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tph-dorado);
    color: var(--tph-marron);
    border: 2px solid var(--tph-dorado);
    box-shadow: 0 4px 12px rgba(169, 164, 110, 0.3);
}

#accesoMicuenta .modal-title-custom {
    font-family: var(--tph-font-Larosa-Black);
    font-weight: 900;
    color: var(--tph-blanco);
    font-size: 1.6rem;
    line-height: 1.15;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#accesoMicuenta .modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

#accesoMicuenta .form-label-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--primary-font);
    font-weight: 700;
    color: var(--tph-blanco);
    margin-bottom: 0.35rem;
}

#accesoMicuenta .form-control.form-control-custom {
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 0.95rem;
    font-family: var(--primary-font);
    color: var(--tph-blanco);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

#accesoMicuenta .form-control.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#accesoMicuenta .form-control.form-control-custom:focus {
    border-color: var(--tph-dorado);
    box-shadow: 0 0 0 0.25rem rgba(169, 164, 110, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

#accesoMicuenta .password-wrapper {
    position: relative;
}

#accesoMicuenta .password-wrapper .password-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
}

#accesoMicuenta .password-wrapper .password-toggle:hover {
    color: var(--tph-dorado);
}

#accesoMicuenta .recuperar-pass-link {
    color: var(--tph-dorado);
    font-family: var(--primary-font);
    font-weight: 700;
    text-decoration: none;
}

#accesoMicuenta .recuperar-pass-link:hover {
    text-decoration: underline;
    color: var(--tph-dorado);
}

#accesoMicuenta .btn.btn-acceso-custom {
    background-color: var(--tph-dorado);
    color: var(--tph-marron);
    border: 1px solid var(--tph-dorado);
    border-radius: 14px;
    font-family: var(--primary-font);
    font-weight: 900;
    padding: 0.75rem 1rem;
    text-transform: uppercase;
}

#accesoMicuenta .btn.btn-acceso-custom:hover,
#accesoMicuenta .btn.btn-acceso-custom:focus {
    background-color: var(--tph-marron);
    border-color: var(--tph-marron);
    color: var(--tph-dorado);
}

#accesoMicuenta .btn.btn-cancelar-custom {
    background: transparent;
    color: var(--tph-blanco);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    font-family: var(--primary-font);
    font-weight: 800;
    padding: 0.7rem 1rem;
    text-transform: uppercase;
}

#accesoMicuenta .btn.btn-cancelar-custom:hover,
#accesoMicuenta .btn.btn-cancelar-custom:focus {
    border-color: var(--tph-blanco);
    color: var(--tph-blanco);
    background: rgba(255, 255, 255, 0.1);
}

#accesoMicuenta .alert.alert-custom {
    border-radius: 14px;
    border: 1px solid rgba(255, 100, 100, 0.3);
    background: rgba(220, 53, 69, 0.15);
    color: var(--tph-blanco);
}

@media (max-width: 576px) {
    #accesoMicuenta .modal-body {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }
    #accesoMicuenta .modal-footer {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }
}

/* --------------------------
   Header área personal
   -------------------------- */
.area-personal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark, var(--primary-color)) 100%);
    color: var(--tph-blanco);
    border-radius: 16px;
    padding: 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 24px rgb(var(--primary-color-rgb) / 0.18);
}

.area-personal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.area-personal-title {
    font-family: var(--primary-font);
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
}

.area-personal-subtitle {
    margin: 0.25rem 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

/* --------------------------
   Tarjetas del área personal
   -------------------------- */
.area-personal-card {
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 14px;
    background: var(--tph-blanco);
    overflow: hidden;
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.06);
}

.area-personal-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark, var(--primary-color)) 100%);
    color: var(--tph-blanco);
    padding: 0.85rem 1rem;
    font-family: var(--primary-font);
    font-weight: 700;
}

/* --------------------------
   Tarjeta ticket / QR
   -------------------------- */
.ticket-qr-card {
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 16px;
    background: var(--tph-blanco);
    overflow: hidden;
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.08);
}

.ticket-qr-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark, var(--primary-color)) 100%);
    color: var(--tph-blanco);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-qr-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ticket-qr-title {
    font-family: var(--primary-font);
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
}

.ticket-qr-subtitle {
    margin: 0.25rem 0 0;
    opacity: 0.95;
    font-size: 0.95rem;
}

.ticket-qr-steps {
    padding: 1.25rem 1.25rem 0.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.ticket-qr-divider {
    height: 1px;
    background: rgb(0 0 0 / 0.08);
    margin: 1.1rem 1.25rem;
}

.ticket-qr-code-section,
.ticket-qr-upload-section {
    padding: 0 1.25rem 1.25rem;
}

.ticket-qr-footer {
    padding: 1rem 1.25rem 1.25rem;
    background: color-mix(in srgb, var(--primary-color) 6%, var(--tph-blanco) 94%);
    border-top: 1px solid rgb(0 0 0 / 0.06);
}

.ticket-qr-alert {
    margin: 0;
}

/* --------------------------
   Pasos (dentro de ticket-qr-steps)
   -------------------------- */
.step-card {
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 14px;
    background: var(--tph-blanco);
    padding: 1rem;
    display: grid;
    gap: 0.45rem;
    min-height: 140px;
}

.step-card .step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgb(var(--primary-color-rgb) / 0.12);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--primary-font);
    font-weight: 800;
}

.step-card .step-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary-color) 10%, var(--tph-blanco) 90%);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step-card .step-title {
    font-family: var(--primary-font);
    font-weight: 800;
    margin: 0;
    color: var(--tph-negro);
    font-size: 1rem;
}

.step-card .step-description {
    margin: 0;
    color: var(--tph-gris-fuerte);
    font-size: 0.92rem;
    line-height: 1.35;
}

/* --------------------------
   QR
   -------------------------- */
.qr-code-wrapper {
    border: 2px dashed rgb(var(--primary-color-rgb) / 0.5);
    border-radius: 16px;
    padding: 1rem;
    background: color-mix(in srgb, var(--primary-color) 5%, var(--tph-blanco) 95%);
    display: grid;
    place-items: center;
    gap: 0.6rem;
}

.qr-code-image {
    max-width: 220px;
    width: 100%;
    height: auto;
    background: var(--tph-blanco);
    border-radius: 12px;
    padding: 0.25rem;
}

.qr-code-label {
    font-family: var(--primary-font);
    color: var(--tph-gris-fuerte);
    font-size: 0.92rem;
    margin: 0;
    text-align: center;
}

/* --------------------------
   Botones (área personal)
   -------------------------- */
.btn-outline-promo {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
}

.btn-outline-promo:hover,
.btn-outline-promo:focus {
    background: var(--primary-color);
    color: var(--tph-blanco);
}

.btn-logout {
    background: #dc3545;
    border-color: #dc3545;
    color: var(--tph-blanco);
    font-weight: 700;
    border-radius: 10px;
}

.btn-logout:hover,
.btn-logout:focus {
    background: #b02a37;
    border-color: #b02a37;
    color: var(--tph-blanco);
}

/* --------------------------
   Estados de archivo
   -------------------------- */
.estado-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-family: var(--primary-font);
    font-size: 0.78rem;
    line-height: 1;
    color: var(--tph-negro);
    background: rgb(0 0 0 / 0.06);
}

.estado-pendiente {
    background: color-mix(in srgb, var(--tph-dorado) 88%, var(--tph-blanco) 12%);
    color: var(--tph-negro);
}

.estado-aceptado {
    background: var(--tph-rojo);
    color: var(--tph-blanco);
}

.estado-rechazado {
    background: #dc3545;
    color: var(--tph-blanco);
}

.estado-revisar {
    background: color-mix(in srgb, var(--primary-color) 86%, var(--tph-blanco) 14%);
    color: var(--tph-blanco);
}

/* --------------------------
   Alertas personalizadas (ap-alert)
   -------------------------- */
.ap-alert {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgb(0 0 0 / 0.08);
    background: var(--tph-blanco);
}

.ap-alert .alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--tph-blanco);
}

.ap-alert .alert-content {
    flex: 1;
    color: var(--tph-negro);
}

.ap-alert.alert-info {
    border-left: 4px solid var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 6%, var(--tph-blanco) 94%);
}

.ap-alert.alert-info .alert-icon {
    background: var(--primary-color);
}

.ap-alert.alert-success {
    border-left: 4px solid var(--tph-rojo);
    background: color-mix(in srgb, var(--tph-rojo) 6%, var(--tph-blanco) 94%);
}

.ap-alert.alert-success .alert-icon {
    background: var(--tph-rojo);
}

.ap-alert.alert-warning {
    border-left: 4px solid var(--tph-dorado);
    background: color-mix(in srgb, var(--tph-dorado) 10%, var(--tph-blanco) 90%);
}

.ap-alert.alert-warning .alert-icon {
    background: var(--tph-dorado);
    color: var(--tph-negro);
}

.ap-alert.alert-danger {
    border-left: 4px solid #dc3545;
    background: color-mix(in srgb, #dc3545 6%, var(--tph-blanco) 94%);
}

.ap-alert.alert-danger .alert-icon {
    background: #dc3545;
}

/* --------------------------
   Timeline de estado
   -------------------------- */
.estado-timeline {
    position: relative;
    margin: 0;
    padding: 0.25rem 0 0.25rem 0.25rem;
}

.estado-timeline::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 12px;
    width: 2px;
    background: rgb(0 0 0 / 0.1);
}

.estado-timeline .timeline-item {
    position: relative;
    padding-left: 2.1rem;
    margin: 0.85rem 0;
}

.estado-timeline .timeline-dot {
    position: absolute;
    left: 4px;
    top: 0.2rem;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--tph-blanco);
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 14px rgb(var(--primary-color-rgb) / 0.18);
}

.estado-timeline .timeline-content {
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 12px;
    background: var(--tph-blanco);
    padding: 0.75rem 0.85rem;
}

/* --------------------------
   Seguimiento de envío
   -------------------------- */
.seguimiento-envio {
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 14px;
    background: var(--tph-blanco);
    padding: 1rem;
}

.timeline-seguimiento {
    position: relative;
    margin: 0;
    padding: 0.25rem 0 0.25rem 0.25rem;
}

.timeline-seguimiento::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 12px;
    width: 2px;
    background: rgb(0 0 0 / 0.1);
}

.timeline-seguimiento .timeline-marker {
    position: absolute;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--tph-blanco);
    border: 3px solid var(--primary-color);
}

.timeline-seguimiento .timeline-content {
    margin-left: 2.1rem;
    border: 1px solid rgb(0 0 0 / 0.08);
    border-radius: 12px;
    background: var(--tph-blanco);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
}

/* --------------------------
   Responsive
   -------------------------- */
@media (max-width: 992px) {
    .ticket-qr-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ticket-qr-header {
        padding: 0.9rem 1rem;
    }

    .ticket-qr-code-section,
    .ticket-qr-upload-section,
    .ticket-qr-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================
   CONTROL DE PAGOS - ESTADO DE REEMBOLSO
   ========================================================== */

/* Estilos principales del control de pagos */
.payment-timeline {
    margin: 2rem 0;
}

.payment-progress {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progress-step {
    position: relative;
    text-align: center;
    flex: 1;
}

.progress-step::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 3px;
    background-color: var(--tph-gris);
    z-index: 1;
}

.progress-step:last-child::before {
    display: none;
}

.progress-step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.progress-step.active::before {
    background-color: var(--primary-color);
}

.progress-step.current .step-icon {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 10px rgb(var(--primary-color-rgb) / 0.1);
}

.progress-step.rejected .step-icon,
.progress-step.rejected::before {
    background-color: #dc3545;
    border-color: #dc3545;
}

.step-icon {
    width: 40px;
    height: 40px;
    background-color: var(--tph-blanco);
    border: 2px solid var(--tph-gris);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-label {
    font-family: var(--primary-font);
    font-size: 0.85rem;
    color: var(--tph-gris-fuerte);
    max-width: 120px;
    margin: 0 auto;
}

.progress-step.active .step-label {
    color: var(--tph-negro);
    font-weight: 600;
}

.payment-card {
    transition: transform 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-3px);
}

.proceso-verificacion {
    background-color: rgb(var(--primary-color-rgb) / 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.proceso-verificacion p, 
.rechazo-mensaje p {
    margin-bottom: 10px;
}

.proceso-verificacion p:last-of-type, 
.rechazo-mensaje p:last-of-type {
    margin-bottom: 15px;
}

.payment-icon {
    width: 60px;
    height: 60px;
    background-color: var(--tph-blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.payment-amount .badge {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

/* Estilos para las estrellas de valoración */
.feedback-stars .btn-outline-warning:hover,
.feedback-stars .btn-outline-warning.active {
    background-color: var(--tph-dorado);
    color: var(--tph-marron);
}

.feedback-stars .btn-outline-warning.active i,
.feedback-stars .btn-outline-warning:hover i {
    font-weight: 900;
    content: "\f005";
    font-family: "Font Awesome 5 Free";
}

/* Lista con bullets personalizados */
.bullet-list {
    list-style: none;
    padding-left: 1.5rem;
}

.bullet-list li {
    position: relative;
    margin-bottom: 10px;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.fs-7 {
    font-size: 0.75rem;
}

/* Animaciones */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgb(var(--primary-color-rgb) / 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animated-fade {
    animation: fadeIn 0.5s ease-in-out;
}

/* Ajustes responsive para control de pagos */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-step {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .progress-step::before {
        top: auto;
        left: 20px;
        width: 3px;
        height: calc(100% + 1rem);
        bottom: -1rem;
    }
    
    .step-icon {
        margin: 0 1rem 0 0;
    }
    
    .step-label {
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .payment-icon {
        width: 50px;
        height: 50px;
    }
    
    .payment-amount .badge {
        font-size: 1rem;
    }
}

/* ==========================================================
   SELECCIÓN DE PARTICIPACIONES - MULTI PARTICIPACIÓN
   ========================================================== */

/* Estilos para las tarjetas de participación */
.participation-card {
    border: 2px solid var(--tph-gris);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--tph-blanco);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.participation-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgb(var(--primary-color-rgb) / 0.15);
    transform: translateY(-2px);
}

.participation-card.selected {
    border-color: var(--primary-color);
    background-color: rgb(var(--primary-color-rgb) / 0.06);
    box-shadow: 0 4px 16px rgb(var(--primary-color-rgb) / 0.25);
}

.participation-radio {
    display: none;
}

.participation-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark, var(--primary-color)) 100%);
    color: var(--tph-blanco);
    padding: 0.875rem 1rem;
    border-radius: 10px 10px 0 0;
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 50px;
}

.participation-body {
    padding: 1.25rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: var(--tph-gris-fuerte);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
}

.info-value {
    color: var(--tph-negro);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    padding-left: 1.75rem;
}

.info-icon {
    flex-shrink: 0;
    opacity: 0.7;
    font-size: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark, var(--primary-color)) 100%);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--primary-font);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgb(var(--primary-color-rgb) / 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(var(--primary-color-rgb) / 0.4);
    background: linear-gradient(135deg, var(--primary-color-dark, var(--primary-color)) 0%, var(--primary-color) 100%);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--tph-crema) 0%, color-mix(in srgb, var(--tph-crema) 45%, var(--tph-blanco) 55%) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.page-title h2 {
    color: var(--tph-negro);
    font-family: var(--primary-font);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    line-height: 1.3;
}

.page-title p {
    color: var(--tph-gris-fuerte);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.participation-number {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Responsive para selección de participaciones */
@media (max-width: 992px) {
    .participation-card {
        min-height: 260px;
    }

    .info-label {
        min-width: 90px;
        font-size: 0.85rem;
    }

    .info-row {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .participation-card {
        min-height: auto;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-label {
        min-width: auto;
        margin-bottom: 0.125rem;
        font-size: 0.85rem;
    }

    .info-value {
        font-size: 0.85rem;
        padding-left: 1.5rem;
    }

    .participation-header {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }

    .participation-body {
        padding: 1rem 0.875rem;
        gap: 0.75rem;
    }

    .btn-submit {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        padding: 1rem;
    }

    .page-title h2 {
        font-size: 1.25rem;
    }

    .page-title p {
        font-size: 0.9rem;
    }

    .info-row {
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 0.8rem;
        padding-left: 1.25rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .participation-header {
        font-size: 0.85rem;
        padding: 0.625rem 0.75rem;
        gap: 0.375rem;
    }

    .participation-number {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }

    .participation-body {
        padding: 0.875rem 0.75rem;
        gap: 0.625rem;
    }

    .info-icon {
        font-size: 0.9rem;
    }
}
