/* Estilos para componentes de certificados PAA */

/* ============================================
   ESTILOS GENERALES DE CARDS
   ============================================ */

.certificate-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    min-width: 220px;
    max-width: 300px;
}

.certificate-card:hover {
    box-shadow: 0 8px 25px rgba(0, 107, 255, 0.2) !important;
    transform: translateY(-3px);
}

/* ============================================
   HEADERS DE CARDS
   ============================================ */

.certificate-header {
    text-align: center;
    border: none;
    padding: 20px 15px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.certificate-header i {
    color: #ffc107;
}

/* Gradientes específicos por tipo de certificado */

.certificate-header.cursando {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.certificate-header.coniss {
    background: linear-gradient(135deg, #fd7e14 0%, #dc5b0d 100%);
}

.certificate-header.regular {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.certificate-header.simple {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.certificate-header.investigacion {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
    color: white;
}

/* ============================================
   CUERPO DE CARDS
   ============================================ */

.certificate-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    min-height: 160px;
}

.certificate-body.cursando {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f5 100%);
}

.certificate-body.coniss {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
}

.certificate-body.regular {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f9 100%);
}

.certificate-body.simple {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.certificate-body.investigacion {
    background: linear-gradient(180deg, #ffffff 0%, #f4f0ff 100%);
}

.certificate-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.certificate-icon.cursando {
    color: #28a745;
}

.certificate-icon.coniss {
    color: #fd7e14;
}

.certificate-icon.regular {
    color: #17a2b8;
}

.certificate-icon.simple {
    color: #007bff;
}

.certificate-icon.investigacion {
    color: #6f42c1;
}

.certificate-description {
    font-size: 12px;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
    color: #6c757d;
}

/* ============================================
   BOTONES DE DESCARGA
   ============================================ */

.certificate-button {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    font-size: 14px;
}

/* Botones activos */

.certificate-button.cursando {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.certificate-button.cursando:not(:disabled):hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transform: scale(1.05);
}

.certificate-button.coniss {
    background: #fd7e14;
    color: white;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.certificate-button.coniss:not(:disabled):hover {
    background: linear-gradient(135deg, #dc5b0d 0%, #bd4707 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4) !important;
    transform: scale(1.05);
}

.certificate-button.regular {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.certificate-button.regular:not(:disabled):hover {
    background: linear-gradient(135deg, #117a8b 0%, #0e5960 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
    transform: scale(1.05);
}

.certificate-button.simple {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 107, 255, 0.3);
}

.certificate-button.simple:not(:disabled):hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 4px 12px rgba(0, 107, 255, 0.4) !important;
    transform: scale(1.05);
}

.certificate-button.investigacion {
    background: #6f42c1;
    color: white;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.certificate-button.investigacion:not(:disabled):hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4a278b 100%);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4) !important;
    transform: scale(1.05);
}

/* Efecto click en botones */

.certificate-button:not(:disabled):active {
    transform: scale(0.98);
}

/* Botones deshabilitados */

.certificate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   ESTILOS PARA CARDS DE ACCIONES (HOME)
   ============================================ */

.action-card {
    display: flex;
    align-items: stretch;
    text-align: center;
    margin: 8px;
}

.action-button {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.action-button:hover:not(:disabled)::before {
    left: 100%;
}

.action-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-button:active:not(:disabled) {
    transform: translateY(-1px);
}

/* Botón Formulario Ingreso */

.action-button.ingreso {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.action-button.ingreso:not(:disabled):hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.action-button.ingreso:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    opacity: 0.6;
}

/* Botón Informe Final */

.action-button.informe {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.action-button.informe:not(:disabled):hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.action-button.informe:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    opacity: 0.6;
}

/* Botón Ver Informe Tutor */

.action-button.tutor {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
}

.action-button.tutor:not(:disabled):hover {
    background: linear-gradient(135deg, #117a8b 0%, #0e5960 100%);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.action-button.tutor:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    opacity: 0.6;
}

/* Estilos para span wrapper (tooltip) */

.action-card span.d-inline-block {
    width: 100%;
    height: 100%;
}

.action-card span.d-inline-block .action-button {
    pointer-events: none;
    opacity: 0.7;
}

/* ============================================
   CARDS HERMOSOS DE ACCIONES
   ============================================ */

.action-card-beautiful {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.action-card-beautiful:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
}

.action-card-header {
    text-align: center;
    border: none;
    padding: 20px 15px;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-card-header i {
    color: #ffc107;
}

/* Gradientes específicos por acción */

.action-card-header.gestion-siad {
    background: linear-gradient(135deg, #6610f2 0%, #520dc2 100%);
}

.action-card-header.gestion-formulario {
    background: linear-gradient(135deg, #fd7e14 0%, #dc5b0d 100%);
}

.action-card-header.gestion-ayudantias {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.action-card-header.gestion-apadrinamiento {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.action-card-header.gestion-constancias {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.action-card-header.gestion-encuestas {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.action-card-header.ingreso {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.action-card-header.informe {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.action-card-header.tutor {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.action-card-header.certificado {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.action-card-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    flex-grow: 1;
    min-height: 140px;
}

.action-card-body.gestion-siad {
    background: linear-gradient(180deg, #ffffff 0%, #f3f0ff 100%);
}

.action-card-body.gestion-formulario {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
}

.action-card-body.gestion-ayudantias {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f5 100%);
}

.action-card-body.gestion-apadrinamiento {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f9 100%);
}

.action-card-body.gestion-constancias {
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.action-card-body.gestion-encuestas {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.action-card-body.ingreso {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.action-card-body.informe {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f5 100%);
}

.action-card-body.tutor {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f9 100%);
}

.action-card-body.certificado {
    background: linear-gradient(180deg, #ffffff 0%, #f4f0ff 100%);
}

.action-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.action-card-icon.gestion-siad {
    color: #6610f2;
}

.action-card-icon.gestion-formulario {
    color: #fd7e14;
}

.action-card-icon.gestion-ayudantias {
    color: #28a745;
}

.action-card-icon.gestion-apadrinamiento {
    color: #17a2b8;
}

.action-card-icon.gestion-constancias {
    color: #dc3545;
}

.action-card-icon.gestion-encuestas {
    color: #007bff;
}

.action-card-icon.ingreso {
    color: #007bff;
}

.action-card-icon.informe {
    color: #28a745;
}

.action-card-icon.tutor {
    color: #17a2b8;
}

.action-card-icon.certificado {
    color: #6f42c1;
}

.action-card-description {
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.4;
}

.action-card-button {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

/* Botones activos */

.action-card-button.gestion-siad {
    background: #6610f2;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 16, 242, 0.3);
}

.action-card-button.gestion-siad:not(:disabled):hover {
    background: linear-gradient(135deg, #520dc2 0%, #3d0a91 100%);
    box-shadow: 0 4px 12px rgba(102, 16, 242, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.gestion-formulario {
    background: #fd7e14;
    color: white;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.action-card-button.gestion-formulario:not(:disabled):hover {
    background: linear-gradient(135deg, #dc5b0d 0%, #bd4707 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.gestion-ayudantias {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.action-card-button.gestion-ayudantias:not(:disabled):hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.gestion-apadrinamiento {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.action-card-button.gestion-apadrinamiento:not(:disabled):hover {
    background: linear-gradient(135deg, #117a8b 0%, #0e5960 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.gestion-constancias {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.action-card-button.gestion-constancias:not(:disabled):hover {
    background: linear-gradient(135deg, #b02a37 0%, #8b1f2b 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.gestion-encuestas {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-card-button.gestion-encuestas:not(:disabled):hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.ingreso {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-card-button.ingreso:not(:disabled):hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.informe {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.action-card-button.informe:not(:disabled):hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.tutor {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.action-card-button.tutor:not(:disabled):hover {
    background: linear-gradient(135deg, #117a8b 0%, #0e5960 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
    transform: scale(1.05);
}

.action-card-button.certificado {
    background: #6f42c1;
    color: white;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.action-card-button.certificado:not(:disabled):hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4a278b 100%);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4) !important;
    transform: scale(1.05);
}

/* Card Datos Faltantes */

.action-card-header.datos-faltantes {
    background: linear-gradient(135deg, #fd7e14 0%, #dc5b0d 100%);
}

.action-card-body.datos-faltantes {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
}

.action-card-icon.datos-faltantes {
    color: #fd7e14;
}

.action-card-button.datos-faltantes {
    background: #fd7e14;
    color: white;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.action-card-button.datos-faltantes:not(:disabled):hover {
    background: linear-gradient(135deg, #dc5b0d 0%, #bd4707 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4) !important;
    transform: scale(1.05);
}

.datos-faltantes-card:hover {
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.2) !important;
}

/* Card Gestión de Resoluciones */

.action-card-header.gestion-resoluciones {
    background: linear-gradient(135deg, #6610f2 0%, #520dc2 100%);
}

.action-card-body.gestion-resoluciones {
    background: linear-gradient(180deg, #ffffff 0%, #f3f0ff 100%);
}

.action-card-icon.gestion-resoluciones {
    color: #6610f2;
}

.action-card-button.gestion-resoluciones {
    background: #6610f2;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 16, 242, 0.3);
}

.action-card-button.gestion-resoluciones:not(:disabled):hover {
    background: linear-gradient(135deg, #520dc2 0%, #3d0a91 100%);
    box-shadow: 0 4px 12px rgba(102, 16, 242, 0.4) !important;
    transform: scale(1.05);
}

.gestion-resoluciones-card:hover {
    box-shadow: 0 8px 25px rgba(102, 16, 242, 0.2) !important;
}

/* Card Descargar Documentos */

.action-card-header.descargar-documentos {
    background: linear-gradient(135deg, #20c997 0%, #17a589 100%);
}

.action-card-body.descargar-documentos {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf9 100%);
}

.action-card-icon.descargar-documentos {
    color: #20c997;
}

.action-card-button.descargar-documentos {
    background: #20c997;
    color: white;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.action-card-button.descargar-documentos:not(:disabled):hover {
    background: linear-gradient(135deg, #17a589 0%, #138f72 100%);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4) !important;
    transform: scale(1.05);
}

.descargar-documentos-card:hover {
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.2) !important;
}

/* Card Gestión de Acceso Especial */

.action-card-header.acceso-especial {
    background: linear-gradient(135deg, #4169e1 0%, #1e3a8a 100%);
}

.action-card-body.acceso-especial {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
}

.action-card-icon.acceso-especial {
    color: #4169e1;
}

.action-card-button.acceso-especial {
    background: #4169e1;
    color: white;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

.action-card-button.acceso-especial:not(:disabled):hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4) !important;
    transform: scale(1.05);
}

.acceso-especial-card:hover {
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.2) !important;
}

/* Card Gestión de Tutores */

.action-card-header.gestion-tutores {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.action-card-body.gestion-tutores {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f9 100%);
}

.action-card-icon.gestion-tutores {
    color: #17a2b8;
}

.action-card-button.gestion-tutores {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.action-card-button.gestion-tutores:not(:disabled):hover {
    background: linear-gradient(135deg, #117a8b 0%, #0e5960 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
    transform: scale(1.05);
}

.gestion-tutores-card:hover {
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2) !important;
}

/* Card Gestión de Estudiantes */

.action-card-header.gestion-estudiantes {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.action-card-body.gestion-estudiantes {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.action-card-icon.gestion-estudiantes {
    color: #007bff;
}

.action-card-button.gestion-estudiantes {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-card-button.gestion-estudiantes:not(:disabled):hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    transform: scale(1.05);
}

.gestion-estudiantes-card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2) !important;
}

/* Card Gestión Comisión Central */

.action-card-header.gestion-comision {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.action-card-body.gestion-comision {
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.action-card-icon.gestion-comision {
    color: #dc3545;
}

.action-card-button.gestion-comision {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.action-card-button.gestion-comision:not(:disabled):hover {
    background: linear-gradient(135deg, #b02a37 0%, #8b1f2b 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
    transform: scale(1.05);
}

.gestion-comision-card:hover {
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2) !important;
}

/* Card Gestión de Fechas de Procesos */

.action-card-header.gestion-fechas {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.action-card-body.gestion-fechas {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f5 100%);
}

.action-card-icon.gestion-fechas {
    color: #28a745;
}

.action-card-button.gestion-fechas {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.action-card-button.gestion-fechas:not(:disabled):hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transform: scale(1.05);
}

.gestion-fechas-card:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2) !important;
}

/* Card Selección de Becados */

.action-card-header.seleccion-becados {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.action-card-body.seleccion-becados {
    background: linear-gradient(180deg, #ffffff 0%, #fffbf0 100%);
}

.action-card-icon.seleccion-becados {
    color: #ffc107;
}

.action-card-button.seleccion-becados {
    background: #ffc107;
    color: #212529;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.action-card-button.seleccion-becados:not(:disabled):hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4) !important;
    transform: scale(1.05);
}

.seleccion-becados-card:hover {
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2) !important;
}

/* Card Asignar Becas */

.action-card-header.asignar-becas {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.action-card-body.asignar-becas {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.action-card-icon.asignar-becas {
    color: #10b981;
}

.action-card-button.asignar-becas {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.action-card-button.asignar-becas:not(:disabled):hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
    transform: scale(1.05);
}

.asignar-becas-card:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2) !important;
}

/* Efecto click */

.action-card-button:not(:disabled):active {
    transform: scale(0.98);
}

/* Botones deshabilitados */

.action-card-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

/* Contenedor span para tooltip */

.action-card-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.action-card-wrapper .action-card-beautiful {
    width: 100%;
    margin: 0;
}

.action-card-wrapper .action-card-beautiful:hover {
    opacity: 0.85;
}

/* Card Gestión de Certificados */

.action-card-header.gestion-certificados {
    background: linear-gradient(135deg, #20c997 0%, #17a589 100%);
}

.action-card-body.gestion-certificados {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf9 100%);
}

.action-card-icon.gestion-certificados {
    color: #20c997;
}

.action-card-button.gestion-certificados {
    background: #20c997;
    color: white;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.action-card-button.gestion-certificados:not(:disabled):hover {
    background: linear-gradient(135deg, #17a589 0%, #138f72 100%);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4) !important;
    transform: scale(1.05);
}

.gestion-certificados-card:hover {
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.2) !important;
}

/* ============================================
   CARDS PARA SECCIÓN ESTUDIANTE
   ============================================ */

/* Card Formulario Estudiante */
.action-card-header.est-formulario {
    background: linear-gradient(135deg, #fd7e14 0%, #dc5b0d 100%);
}

.action-card-body.est-formulario {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
}

.action-card-icon.est-formulario {
    color: #fd7e14;
}

.action-card-button.est-formulario {
    background: #fd7e14;
    color: white;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.action-card-button.est-formulario:not(:disabled):hover {
    background: linear-gradient(135deg, #dc5b0d 0%, #bd4707 100%);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4) !important;
    transform: scale(1.05);
}

.est-formulario-card:hover {
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.2) !important;
}

/* Card Apadrinamiento Estudiante */
.action-card-header.est-apadrinamiento {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.action-card-body.est-apadrinamiento {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f9 100%);
}

.action-card-icon.est-apadrinamiento {
    color: #17a2b8;
}

.action-card-button.est-apadrinamiento {
    background: #17a2b8;
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.action-card-button.est-apadrinamiento:not(:disabled):hover {
    background: linear-gradient(135deg, #117a8b 0%, #0e5960 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4) !important;
    transform: scale(1.05);
}

.est-apadrinamiento-card:hover {
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.2) !important;
}

/* Card Programa Estudiante */
.action-card-header.est-programa {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.action-card-body.est-programa {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8f5 100%);
}

.action-card-icon.est-programa {
    color: #28a745;
}

.action-card-button.est-programa {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.action-card-button.est-programa:not(:disabled):hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transform: scale(1.05);
}

.est-programa-card:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2) !important;
}

/* Card Constancias Estudiante */
.action-card-header.est-constancias {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.action-card-body.est-constancias {
    background: linear-gradient(180deg, #ffffff 0%, #f4f0ff 100%);
}

.action-card-icon.est-constancias {
    color: #6f42c1;
}

.action-card-button.est-constancias {
    background: #6f42c1;
    color: white;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.action-card-button.est-constancias:not(:disabled):hover {
    background: linear-gradient(135deg, #5a32a3 0%, #4a278b 100%);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4) !important;
    transform: scale(1.05);
}

.est-constancias-card:hover {
    box-shadow: 0 8px 25px rgba(111, 66, 193, 0.2) !important;
}

/* Card Encuesta Estudiante */
.action-card-header.est-encuesta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.action-card-body.est-encuesta {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.action-card-icon.est-encuesta {
    color: #007bff;
}

.action-card-button.est-encuesta {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-card-button.est-encuesta:not(:disabled):hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
    transform: scale(1.05);
}

.est-encuesta-card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2) !important;
}

/* ============================================
   RESPONSIVE LAYOUT PARA CARDS
   ============================================ */

.action-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .action-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .action-card-beautiful {
        min-width: unset;
        max-width: unset;
    }

    .action-card-header {
        padding: 16px 12px;
        font-size: 12px;
    }

    .action-card-body {
        padding: 24px 12px;
        min-height: 120px;
    }

    .action-card-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .action-card-description {
        font-size: 12px;
    }

    .action-card-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .action-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-card-header {
        padding: 14px 10px;
        font-size: 11px;
    }

    .action-card-body {
        padding: 20px 10px;
        min-height: 100px;
    }

    .action-card-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .action-card-description {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .action-card-button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ============================================
   ESTILOS MEJORADOS PARA MODAL DE CERTIFICADOS
   ============================================ */

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.modal-header .modal-title {
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f3f7 100%);
    padding: 30px;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.form-text {
    font-size: 12px;
    color: #718096;
}

#btnBuscarAyudantias {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#btnBuscarAyudantias:hover {
    background: linear-gradient(135deg, #764ba2 0%, #5a3a7f 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

#btnBuscarAyudantias:active {
    transform: translateY(0);
}

/* Alertas mejoradas */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
    padding: 15px 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-warning {
    background-color: #fff9e6;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-success {
    background-color: #e6f9f0;
    border-left-color: #28a745;
    color: #155724;
}

.alert-info {
    background-color: #e6f3ff;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert-danger {
    background-color: #ffe6e6;
    border-left-color: #dc3545;
    color: #721c24;
}

/* Contenedor de botones de certificados */
#contenedorBotonesCertificados {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#contenedorBotonesCertificados .card {
    border: none;
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

#contenedorBotonesCertificados .card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    transform: translateY(-4px);
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}

/* Botones de certificados */
#descargarCertificadoSimplePAD {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#descargarCertificadoSimplePAD:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #5a3a7f 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

#descargarCertificadoSimplePAD:active:not(:disabled) {
    transform: translateY(0);
}

#descargarCertificadoSimplePAD:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-primary {
    border: 2px solid #667eea !important;
    color: #667eea !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: #667eea !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Spinner */
.spinner-border {
    border-width: 3px;
}

/* Mejoras en el contenedor de búsqueda */
.row.g-3 {
    gap: 20px;
}

.col-md-9, .col-md-3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
