/* ═══════════════════════════════════════════════════════════
   Módulo: FAQ Acordeón - Photos Con Beth
   Archivo: assets/css/15-faq.css
   Usa las variables CSS del sistema (definidas en 01-base.css)
═══════════════════════════════════════════════════════════ */

/* --- Sección contenedor --- */
.faq-section {
    padding: 6rem 2rem;
    background-color: var(--section-alternate-bg);
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.faq-container h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.faq-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Lista de preguntas --- */
.faq-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Item individual --- */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
}

/* --- Botón pregunta --- */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.8rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: var(--font-weight-medium, 500);
    font-family: inherit;
    line-height: 1.4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Estado abierto - resaltar con el color acento */
.faq-item.is-open .faq-question {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.04);
}

/* --- Ícono + / × --- */
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    position: relative;
    transition: transform 0.35s ease, border-color 0.3s ease;
}

/* Línea horizontal (siempre visible) */
.faq-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 1.5px;
    background-color: currentColor;
    transition: opacity 0.3s ease;
}

/* Línea vertical (el "+" que desaparece al abrir) */
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5px;
    height: 10px;
    background-color: currentColor;
    transition: opacity 0.3s ease, transform 0.35s ease;
}

/* Al abrir: ocultar línea vertical → queda solo "−" */
.faq-item.is-open .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
    border-color: var(--accent-color);
}

/* --- Respuesta (acordeón) --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.8rem;
}

.faq-item.is-open .faq-answer {
    max-height: 600px; /* Suficiente para cualquier respuesta */
    padding: 0 1.8rem 1.6rem 1.8rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.faq-answer p strong {
    color: var(--secondary-color);
    font-weight: var(--font-weight-medium, 500);
}

/* --- CTA inferior --- */
.faq-cta {
    margin-top: 3.5rem;
    text-align: center;
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 1.5rem;
    }

    .faq-container h2 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 1.2rem 1.2rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.2rem;
    }

    .faq-item.is-open .faq-answer {
        padding: 0 1.2rem 1.4rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.9rem;
    }
}