.__title {
    color: #DF0037;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.__subtitle {
    color: #DF0037;
    text-align: left;
    font-size: 32px;
    font-weight: 700;
}

/* ==================================
   FAQ Container - Preguntas Frecuentes
   ================================== */

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

/* Título principal con imagen */
.faqs-title-img {
    display: block;
    max-width: 600px;
    width: 100%;
    margin: 3rem auto 2rem;
    height: auto;
}

/* Sección de preguntas */
.faqs-section {
    margin-bottom: 3rem;
}

/* ==================================
   FAQ Item - Estructura del acordeón
   ================================== */

.faq-item {
    margin-bottom: 1rem;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    background: #F7F7F7;
    border-left: 8px solid #009DA9;
    transition: border-color 0.2s ease;
}

/* Cambiar color del borde cuando la pregunta está abierta */
.faq-item:has(.faq-toggle:checked) {
    border-left-color: #DF0037;
}

/* Ocultar el checkbox nativo */
.faq-toggle {
    display: none;
}

/* ==================================
   FAQ Question - La pregunta clickeable
   ================================== */

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

/* Icono de la pregunta */
.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Texto de la pregunta */
.faq-question span:nth-child(2) {
    flex: 1;
}

/* Flecha indicadora */
.faq-arrow {
    font-size: 1.5rem;
    color: #666;
    transition: all 0.0s ease;
    flex-shrink: 0;
    line-height: 1;
}

/* Cambiar flecha a X cuando está abierto */
.faq-toggle:checked+.faq-question .faq-arrow {
    font-size: 0;
}

.faq-toggle:checked+.faq-question .faq-arrow::before {
    content: '✕';
    font-size: 1.2rem;
}

/* ==================================
   FAQ Answer - La respuesta
   ================================== */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    background-color: #fafafa;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Mostrar respuesta cuando está checkeado */
.faq-toggle:checked+.faq-question+.faq-answer {
    max-height: 1000px;
    padding: 1.25rem 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

/* ==================================
   Responsive Design
   ================================== */

@media (width <=768px) {
    .faqs-container {
        padding: 1rem 0.5rem;
    }

    .faqs-title-img {
        max-width: 90%;
        margin: 2rem auto 1.5rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-arrow {
        font-size: 1.25rem;
    }

    .faq-toggle:checked+.faq-question+.faq-answer {
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

@media (width <=480px) {

    .__title {
        font-size: 32px;
    }

    .__subtitle {
        font-size: 24px;
    }

    .faqs-container {
        padding: 0.5rem 0.75rem;
    }

    .faq-question {
        padding: 0.875rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }

    .faq-item {
        margin-bottom: 0.75rem;
    }
}

/* ==================================
   Accessibility
   ================================== */

.faq-question:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.faq-toggle:focus+.faq-question {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mejora para lectores de pantalla */
.faq-toggle:checked+.faq-question::after {
    content: " (expandido)";
    position: absolute;
    left: -9999px;
}