/* ============================================
   SHORTCODE: Ficha del Aspirante
   ============================================ */

/* Contenedor principal */
.revisor-ficha {
    width: 100%;
    padding: 20px;
}

/* Loading */
.ficha-loading {
    text-align: center;
    padding: 60px 20px;
    color: #757575;
}

.ficha-loading i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #bdbdbd;
}

.ficha-loading p {
    font-size: 14px;
    margin: 0;
}

/* Contenido */
.ficha-contenido {
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   MENSAJE PERSONALIZADO
   ============================================ */

.ficha-mensaje-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.ficha-mensaje-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ficha-mensaje-header i {
    font-size: 20px;
}

.ficha-mensaje-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.ficha-header-botones {
    display: flex;
    gap: 8px;
}

.ficha-btn-refrescar,
.ficha-btn-copiar {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ficha-btn-refrescar:hover,
.ficha-btn-copiar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.ficha-btn-refrescar:active {
    transform: translateY(0);
}

.ficha-btn-refrescar.refrescando i {
    animation: spin 1s linear infinite;
}

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

.ficha-btn-copiar.copiado {
    background: #4caf50;
    border-color: #4caf50;
}

.ficha-mensaje {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #424242;
    white-space: pre-wrap;
}

.ficha-mensaje-error {
    color: #d32f2f;
    font-weight: 600;
}

.ficha-mensaje-comentarios {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
}

.ficha-mensaje-comentarios strong {
    color: #e65100;
    display: block;
    margin-bottom: 8px;
}

.ficha-mensaje-comentarios ul {
    margin: 0;
    padding-left: 20px;
}

.ficha-mensaje-comentarios li {
    color: #e65100;
    margin-bottom: 4px;
}

/* ============================================
   GRID DE PANELES
   ============================================ */

.ficha-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Panel individual */
.ficha-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.ficha-panel-titulo {
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    color: #424242;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ficha-panel-titulo i {
    color: #1e88e5;
    font-size: 18px;
}

/* ============================================
   CONTACTOS WHATSAPP
   ============================================ */

.ficha-lista-contactos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ficha-contacto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ficha-contacto-label {
    font-weight: 600;
    color: #616161;
    font-size: 13px;
    min-width: 90px;
}

.ficha-contacto-numero {
    flex: 1;
    color: #212121;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.ficha-contacto-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.ficha-contacto-whatsapp:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.ficha-contacto-sin-whatsapp {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdbdbd;
    font-size: 12px;
}

/* ============================================
   ESTADOS DE VALIDACIÓN
   ============================================ */

.ficha-grid-estados {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ficha-estado-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ficha-estado-icono {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.ficha-estado-icono.completo {
    background: #e8f5e9;
    color: #4caf50;
}

.ficha-estado-icono.incompleto {
    background: #ffebee;
    color: #f44336;
}

.ficha-estado-label {
    font-size: 13px;
    color: #424242;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .ficha-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .revisor-ficha {
        padding: 15px;
    }
    
    .ficha-mensaje-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ficha-header-botones {
        width: 100%;
        flex-direction: column;
    }
    
    .ficha-btn-refrescar,
    .ficha-btn-copiar {
        width: 100%;
        justify-content: center;
    }
    
    .ficha-grid-estados {
        grid-template-columns: 1fr;
    }
    
    .ficha-contacto-label {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .ficha-contacto-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ficha-contacto-whatsapp {
        align-self: flex-end;
    }
}
