/* ============================================
   FAQ SECTION - COMPLETO
   ============================================ */

.faq-section {
    padding: 120px 0 80px;
    background: 
        /* Capa oscura */
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.9) 0%, 
            rgba(10, 0, 50, 0.85) 50%, 
            rgba(0, 0, 0, 0.164) 100%),
        /* TU IMAGEN DE FONDO */
        url('../img/sape.f148fa69.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Efecto de brillo azul/morado */
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 100, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Cartas decorativas */
.faq-section::after {
    content: '♠';
    position: absolute;
    top: 150px;
    right: 100px;
    font-size: 200px;
    color: rgba(74, 158, 255, 0.08);
    transform: rotate(15deg);
    z-index: 0;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

.faq-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(74, 158, 255, 0.5);
    position: relative;
    z-index: 3;
}

.faq-subtitle {
    text-align: center;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 60px;
    color: #e0e0e0;
    line-height: 1.8;
    position: relative;
    z-index: 3;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Imagen de teléfonos */
.faq-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.faq-image img {
    max-width: 160%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 150, 255, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

/* Acordeón */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(74, 158, 255, 0.6);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 150, 255, 0.2);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(74, 158, 255, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: #4a9eff;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1rem;
}
/* ============================================
   RESPONSIVE - TABLETS Y MÓVILES
   ============================================ */

@media (max-width: 1024px) {
    .faq-container {
        /* Cambiamos a columna para apilar elementos */
        display: flex;
        flex-direction: column;
        gap: 50px; /* Espacio entre la imagen y las preguntas */
    }

    /*  IMAGEN PRIMERO */
    .faq-image {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center; /* Centrar imagen */
        margin-bottom: 20px;
    }

    .faq-image img {
        /* Tamaño controlado para que no se salga ni se superponga */
        max-width: 60%; 
        height: auto;
        filter: drop-shadow(0 10px 30px rgba(0, 150, 255, 0.3));
    }

    /*  PREGUNTAS DESPUÉS */
    .faq-accordion {
        order: 2;
        width: 100%;
    }

    .faq-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .faq-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .faq-section::after {
        display: none; /* Ocultar cartas decorativas gigantes que pueden estorbar */
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 0 60px;
        background-attachment: scroll;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .faq-container {
        gap: 30px; /* Menos espacio en móvil */
    }
    
    /* Imagen un poco más grande en móvil si se ve muy chica */
    .faq-image img {
        max-width: 75%; 
    }
    
    .faq-question {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    /*  Padding 0 por defecto para que esté bien cerrado */
    .faq-answer {
        padding: 0; 
    }

    /*  Padding SOLO cuando está activo (abierto) */
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}