/* =====================================================
   CONSULTOR TAE 2026 - ESTILOS CID
   Centro de Educación a Distancia (CED)
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333333;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e5a99;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: #1e5a99;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f7fa;
    border: 1px solid #1e5a99;
    border-radius: 25px;
    color: #1e5a99;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #1e5a99;
    color: #ffffff;
}

/* =====================================================
   CONTENIDO PRINCIPAL
   ===================================================== */
.main-content {
    padding: 100px 20px 60px;
    min-height: 100vh;
}

.consultor-container {
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   HEADER DEL CONSULTOR
   ===================================================== */
.consultor-header {
    text-align: center;
    margin-bottom: 30px;
}

.consultor-title {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-main {
    color: #1e5a99;
}

.title-sub {
    font-size: 1.5rem;
    color: #f5a623;
}

.consultor-subtitle {
    color: #666666;
    font-size: 1rem;
}

/* =====================================================
   SECCIÓN DE BÚSQUEDA
   ===================================================== */
.search-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

@media (max-width: 500px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-box .btn {
        width: 100%;
    }
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e5a99;
    box-shadow: 0 0 0 3px rgba(30, 90, 153, 0.15);
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: 24px;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-primary {
    background: #f5a623;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
    background: #e09000;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =====================================================
   RESULTADO
   ===================================================== */
.resultado-section {
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

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

.resultado-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.resultado-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.resultado-header.encontrado {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
}

.resultado-header.no-encontrado {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: #ffffff;
}

.resultado-icon {
    font-size: 2rem;
}

.resultado-titulo {
    font-size: 1.2rem;
    font-weight: 600;
}

.resultado-body {
    padding: 25px;
}

.dato-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dato-row:last-child {
    border-bottom: none;
}

.dato-label {
    flex: 0 0 140px;
    font-weight: 600;
    color: #1e5a99;
}

.dato-valor {
    flex: 1;
    color: #333333;
}

.estado-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.estado-badge.activo {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.estado-badge.cancelado {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.mensaje-no-encontrado {
    text-align: center;
    padding: 20px;
    color: #666666;
}

.mensaje-no-encontrado p {
    margin-bottom: 15px;
}

.mensaje-no-encontrado a {
    color: #1e5a99;
    text-decoration: none;
    font-weight: 500;
}

.mensaje-no-encontrado a:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 500px) {
    .dato-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .dato-label {
        flex: none;
    }
}
