/* ============================================
   ESTILOS UNIFICADOS PARA FORMULARIOS
   Academia de Méritos - 2024
   ============================================ */

/* Variables */
:root {
    --form-primary: #7C3AED;
    --form-secondary: #EC4899;
    --form-success: #10B981;
    --form-bg-light: #f5f7fa;
    --form-text-dark: #1a1a1a;
    --form-text-secondary: #4a5568;
}

/* ============================================
   HEADER - FONDO CLARO
   ============================================ */
.header {
    background: #f5f7fa !important;
    color: #1a1a1a !important;
    padding: 20px !important;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.header h1 {
    color: #1a1a1a !important;
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
}

.header p,
.header .subtitle {
    color: #4a5568 !important;
    font-size: 0.95rem !important;
}

.header::before {
    display: none !important;
}

/* ============================================
   BOTONES PILL DE NAVEGACIÓN
   ============================================ */
.navigation-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
    padding: 0 15px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    color: white;
    text-decoration: none;
}

.pill-btn i {
    font-size: 0.9rem;
}

/* Colores de botones pill */
.pill-historial {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.pill-progreso {
    background: linear-gradient(45deg, #4caf50, #45a049);
}

.pill-nueva {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.pill-inicio {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* ============================================
   BOTÓN GUÍA DE ESTUDIO - ESQUINA INFERIOR IZQUIERDA
   ============================================ */
.btn-guide {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    padding: 12px 18px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-guide span,
.btn-guide i {
    color: #ffffff !important;
}

.btn-guide:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5) !important;
}

.btn-guide i {
    font-size: 1rem !important;
}

/* ============================================
   RESPONSIVE MÓVIL
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 15px 12px !important;
    }
    
    .header h1 {
        font-size: 1.2rem !important;
    }
    
    .header p,
    .header .subtitle {
        font-size: 0.85rem !important;
    }
    
    .navigation-pills {
        gap: 8px;
        padding: 10px;
    }
    
    .pill-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .pill-btn i {
        font-size: 0.8rem;
    }
    
    .btn-guide {
        bottom: 15px !important;
        left: 15px !important;
        padding: 10px 14px !important;
        font-size: 0.75rem !important;
    }
    
    .btn-guide i {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .navigation-pills {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .pill-btn {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .btn-guide {
        bottom: 12px !important;
        left: 10px !important;
        padding: 8px 12px !important;
        font-size: 0.7rem !important;
        gap: 5px !important;
    }
}

/* ============================================
   CONTAINER Y CONTENT
   ============================================ */
@media (max-width: 768px) {
    body {
        padding: 8px !important;
        padding-top: 65px !important;
    }
    
    .container {
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    .main-content,
    .questionnaire-container,
    .content {
        padding: 12px !important;
    }
}

/* ============================================
   CARDS Y SECCIONES
   ============================================ */
.card, .section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* ============================================
   FORMULARIOS
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.form-control,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.form-control:focus,
select:focus,
textarea:focus,
input:focus {
    border-color: #7C3AED;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ============================================
   BOTONES PRINCIPALES
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #7C3AED, #EC4899) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #ffffff !important;
}

.btn-info {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: #ffffff !important;
}
