/* ============================================ */
/* ESTILOS PARA MODAL DE BÚSQUEDA */
/* ============================================ */
    .search-container {
        display: inline-block;
        margin-left: 15px;
    }
    
    .menu-icon, .search-icon {
        background: none;
        border: none;
        color: orange;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s;
        padding: 10px;
    }
    
    .menu-icon:hover, .search-icon:hover {
        color: darkorange;
        transform: scale(1.1);
    }
    
    /* Modal grande */
    .search-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
    
    .search-modal { 
      display: flex;
      flex-direction: column;  
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 70%;
      max-width: 900px;
      height: 70vh;
      max-height: 600px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.2);
      z-index: 10000; 
      opacity: 0.90; 
    }
    
    .search-header {
        padding: 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .search-input-container {
        flex-grow: 1;
        position: relative;
    }
    
    .search-input {
        width: 100%;
        padding: 12px 20px;
        border: 2px solid #ddd;
        border-radius: 30px;
        font-size: 16px;
        outline: none;
        transition: border 0.3s;
    }
    
    .search-input:focus {
        border-color: orange;
    }
    
    .close-search {
        color: #777;
        font-size: 28px;
        cursor: pointer;
        margin-left: 15px;
    }
    
    .search-content {
        padding: 20px;
        flex-grow: 1;
        overflow-y: auto;
    }
    
    .search-placeholder {
        text-align: center;
        color: #777;
        padding: 40px 20px;
        font-style: italic;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .search-modal {
            width: 100%;
            height: 100%;
            max-height: none;
            max-width: none;
            top: 0;
            left: 0;
            transform: none;
            border-radius: 0;
        }
    }

    @media (max-width: 480px) {
        .search-modal {
            width: 100%;
            height: 100%;
            max-height: none;
            max-width: none;
            top: 0;
            left: 0;
            transform: none;
            border-radius: 0;
        }
    }



    /* Resultados de bÃºsqueda */
.resultados-container {
    padding: 10px;
}

.resultado-item {
    padding: 15px;
    transition: background 0.2s;
}

.resultado-item:hover {
    background: #f9f9f9;
}

.resultado-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.resultado-item p {
    margin: 5px 0;
    color: #666;
}

.resultado-item a {
    color: orange;
    text-decoration: none;
}

.resultado-item a:hover {
    text-decoration: underline;
}

/* Estilo coincidencias */
.resultados-header {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    font-size: 14px;
}
.total-resultados {
    margin: 0;
    color: #666;
    font-weight: bold;
}

/* Estilos para el enlace PDF */
.pdf-link {
    color: #e74c3c !important; /* Rojo caracterÃ­stico de PDF */
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pdf-link:hover {
    text-decoration: underline;
}
.pdf-link i {
    font-size: 18px;
}




/* ============================================ */
/* ESTILOS PARA MODAL DE VALIDACIÓN DE CORREO */
/* ============================================ */

.email-verification-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.email-verification-modal-overlay.show {
    display: block;
}

.email-verification-modal {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0.90;
    animation: slideIn 0.3s ease-out;
}

.email-verification-modal.show {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 0.95;
        transform: translate(-50%, -50%);
    }
}

.email-verification-header {
    padding: 25px 20px;
    border-bottom: 3px solid #FF8C00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-verification-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.close-email-modal {
    color: #777;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.close-email-modal:hover {
    color: #FF8C00;
}

.email-verification-content {
    padding: 30px 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.email-verification-content p {
    margin: 10px 0;
    color: #555;
    font-size: 14px;
}

.email-display {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    color: #333;
    font-weight: 500;
}

.codigo-input-container {
    margin: 25px 0;
}

.codigo-input-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.codigo-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
    font-weight: bold;
    max-width: 100%;
}

.codigo-input:focus {
    border-color: #FF8C00;
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.3);
}

.codigo-input::placeholder {
    letter-spacing: normal;
}

.expiration-info {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 10px 0;
}

.expiration-timer {
    color: #e74c3c;
    font-weight: bold;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
    display: none;
}

.success-message {
    background: #efe;
    color: #3c3;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 13px;
    display: none;
}

.email-verification-actions {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-verify {
    background: #FF8C00;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

.btn-verify:hover:not(:disabled) {
    background: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-verify:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-resend {
    background: #f5f5f5;
    color: #FF8C00;
    padding: 12px 30px;
    border: 2px solid #FF8C00;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    max-width: 200px;
}

.btn-resend:hover:not(:disabled) {
    background: #FF8C00;
    color: white;
    transform: translateY(-2px);
}

.btn-resend:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 10px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF8C00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive para modal de verificación */
@media (max-width: 768px) {
    .email-verification-modal {
        width: 90%;
        max-width: 400px;
    }
    
    .email-verification-header h2 {
        font-size: 20px;
    }
    
    .email-verification-content {
        padding: 20px 15px;
    }
    
    .codigo-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}

@media (max-width: 480px) {
    .email-verification-modal {
        width: 95%;
        max-width: 320px;
    }
    
    .email-verification-header {
        padding: 15px 15px;
    }
    
    .email-verification-header h2 {
        font-size: 18px;
    }
    
    .email-verification-content {
        padding: 15px 12px;
    }
    
    .email-verification-actions {
        flex-direction: column;
        padding: 15px 12px;
    }
    
    .btn-verify,
    .btn-resend {
        max-width: 100%;
    }
    
    .codigo-input {
        font-size: 18px;
        letter-spacing: 4px;
        padding: 10px 12px;
    }
}

/* ============================================ */
/* ESTILOS PARA SPINNER GLOBAL DE PROCESAMIENTO */
/* ============================================ */

.global-processing-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: none;
    justify-content: center;
    align-items: center;
}

.global-processing-spinner.show {
    display: flex;
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10999;
}

.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11001;
    text-align: center;
}

.spinner-container .spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff9800;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-container p {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .spinner-container .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }

    .spinner-container p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .spinner-container .spinner {
        width: 45px;
        height: 45px;
        border-width: 3px;
    }

    .spinner-container p {
        font-size: 12px;
    }
}
