/* ==========================================================================
   1. VARIABLES Y ESTILOS BASE (SERVICIO AL CLIENTE)
   ========================================================================== */
:root {
    --brand-cyan: #00E5FF;
    --brand-cyan-dark: #22a7d4;
    --bg-dark-blue: #0f2435;
    --transition: all 0.3s ease;
}

/* --- Utilidades Globales --- */
.text-cyan { color: var(--brand-cyan) !important; }
.text-light-muted { color: rgba(255, 255, 255, 0.6) !important; }
.ls-1 { letter-spacing: 1px; }

.btn-cyan {
    background-color: var(--brand-cyan);
    color: #0B1E2D; /* Azul oscuro para contraste */
    border: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-cyan:hover {
    background-color: #ffffff;
    color: #0B1E2D;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(43, 196, 243, 0.3);
}

/* ==========================================================================
   2. HEADER / HERO ESPECÍFICO
   ========================================================================== */
.pqrs-header {
    padding-top: 9rem; 
    padding-bottom: 4rem; 
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pqrs-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(11, 30, 45, 0.9), rgba(11, 30, 45, 0.8)),
        url('Imagenes/Servic-Pant.webp'); 
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ==========================================================================
   3. SECCIÓN PRINCIPAL Y DEFINICIONES (CARDS)
   ========================================================================== */
.section-pqrs-bg {
    padding: 3.5rem 0; 
    position: relative;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('Imagenes/Fod-Blue.webp');
    background-size: cover;
    background-position: center;
}

.definition-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.8rem 1rem; 
    border-radius: 0.6rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.definition-card:hover {
    transform: translateX(0.3rem);
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.definition-card.selected-card {
    border-color: var(--brand-cyan);
    background-color: rgba(43, 196, 243, 0.05);
    box-shadow: 0 4px 12px rgba(43, 196, 243, 0.15);
}

.font-desc { font-size: 0.75rem; }

/* Icon Wrappers */
.icon-wrap {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}

.bg-cyan-light { background: rgba(43, 196, 243, 0.15); }
.bg-warning-light { background: rgba(255, 193, 7, 0.15); }
.bg-danger-light { background: rgba(220, 53, 69, 0.15); }
.bg-success-light { background: rgba(25, 135, 84, 0.15); }
.bg-primary-light { background: rgba(13, 110, 253, 0.15); }

/* ==========================================================================
   4. FORMULARIO PQRS
   ========================================================================== */
.form-wrapper {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.form-control, .form-select {
    font-size: 0.9rem; 
    background-color: #f1f5f9 !important; 
    border: 1px solid #cbd5e1;
    color: #0f2435 !important; 
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04); 
    transition: var(--transition);
}

.form-control::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--brand-cyan);
    color: #000 !important;
    box-shadow: 0 4px 10px rgba(43, 196, 243, 0.15);
}

.form-label {
    color: #334155;
    margin-bottom: 0.4rem;
}

/* ==========================================================================
   5. SECCIÓN FAQ (ACORDEONES)
   ========================================================================== */
.section-faq {
    padding: 3.5rem 0 2.5rem 0;
    background-color: var(--bg-dark-blue); 
    border-top: 1px solid rgba(255,255,255,0.05);
}

.accordion-button { font-size: 0.95rem; }

.accordion-button:not(.collapsed) {
    color: var(--brand-cyan); 
    background-color: rgba(0, 0, 0, 0.3);
}

.accordion-button::after { filter: invert(1); }

.accordion-button:not(.collapsed)::after {
    filter: invert(1) drop-shadow(0 0 2px cyan);
}

/* ==========================================================================
   6. FOOTER Y DESARROLLADOR
   ========================================================================== */
.main-footer {
    background-color: #050e14;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}

.social-link {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    color: white; border-radius: 50%; margin-right: 10px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--brand-cyan);
    color: #000;
    transform: translateY(-3px);
}

.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a:hover { color: var(--brand-cyan) !important; padding-left: 5px; }

.developer-bar {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.dev-link { font-weight: bold; color: var(--brand-cyan); transition: color 0.3s; }
.dev-link:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   7. WHATSAPP Y ANIMACIONES
   ========================================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366;
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    animation: pulse-green 2s infinite, fadeInUp 1s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   8. MEDIA QUERIES (RESPONSIVE DESIGN ROBUSTO)
   ========================================================================== */

/* --- A. Pantallas Ultra-Wide (>1400px) --- */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .pqrs-header { padding-top: 10rem; padding-bottom: 6rem; }
    .form-wrapper { padding: 4rem !important; } /* Más aire en el formulario */
}

/* --- B. Laptops y PCs estándar (992px a 1399px) --- */
@media (max-width: 1200px) {
    .definition-card { padding: 0.7rem; }
    .font-desc { font-size: 0.7rem; }
}

/* --- C. Tablets y Laptops Pequeñas (768px a 991px) --- */
@media (max-width: 991px) {
    .pqrs-header { padding-top: 8rem; }
    
    /* Ajuste de columnas: Definiciones arriba, Formulario abajo */
    .info-box-pqrs { margin-bottom: 3rem; }
    
    .definition-card { 
        margin-bottom: 0.5rem; 
        max-width: 100%;
    }

    /* Navbar móvil (herencia del index) */
    .navbar-collapse {
        background: var(--bg-dark-blue);
        padding: 1rem;
        border-radius: 8px;
    }
}

/* --- D. Móviles Grandes y Tablets Verticales (576px a 767px) --- */
@media (max-width: 767.98px) {
    .pqrs-header {
        padding-top: 7.5rem; 
        padding-bottom: 3rem;
        text-align: center;
    }
    
    .section-pqrs-bg { padding: 2.5rem 0; }
    .title-align { text-align: center; }
    
    /* Hacemos que las tarjetas de definición ocupen 2 columnas si hay espacio */
    .definition-card { 
        padding: 1rem;
        justify-content: center;
        text-align: center;
        flex-direction: column; /* Icono arriba del texto */
    }
    
    .form-wrapper { 
        padding: 1.5rem !important; 
        border-radius: 15px; 
    }
    
    .section-faq { padding: 2.5rem 0; }

    /* Botón flotante compacto */
    .whatsapp-btn {
        width: 50px; height: 50px;
        font-size: 24px; bottom: 20px; right: 20px;
        animation: fadeInUp 1s ease; 
    }
}

/* --- E. Móviles Estándar y Pequeños (<576px) --- */
@media (max-width: 576px) {
    .pqrs-header h1 { font-size: 1.8rem; }
    
    /* Las tarjetas de definición vuelven a ser simples para ahorrar espacio */
    .definition-card { 
        flex-direction: row; 
        text-align: left;
        padding: 0.8rem;
    }
    
    .icon-wrap { width: 2rem; height: 2rem; font-size: 1rem; }
    
    /* Ajuste de inputs para que no se vean pequeños al tacto */
    .form-control, .form-select {
        padding: 0.8rem;
        font-size: 16px; /* Evita el zoom automático en iOS */
    }
    
    /* Botón de envío a ancho completo */
    .btn-cyan { width: 100%; padding: 1rem; }
}

/* --- F. Pantallas muy pequeñas (360px o menos) --- */
@media (max-width: 360px) {
    .pqrs-header { padding-top: 6.5rem; }
    .font-desc { display: none; } /* Ocultamos descripción larga para evitar mucho scroll */
    .definition-card h6 { margin-bottom: 0; font-size: 0.85rem; }
}