/* ============================================================================
   ARCHIVO: faq.css
   UBICACIÓN: CanariasApart.Web/wwwroot/css/front/faq.css
   DESCRIPCIÓN: Estilos para la página pública de Preguntas Frecuentes
   ============================================================================ */

:root {
    --teal: #008572;
    --teal-light: #00a68c;
    --teal-dark: #006b5a;
    --gold: #dfbb3e;
    --gold-dark: #cb9603;
    --bg-cream: #faf9f6;
    --text-dark: #1a1a1a;
    --text-mid: #555;
    --text-light: #888;
    --border-light: #e8e5df;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ===== HERO ===== */
.faq-hero {
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 40%, var(--teal-light) 100%);
}

.faq-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(223,187,62,.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
    pointer-events: none;
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.faq-hero-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 16px;
}

.faq-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.15;
}

.faq-hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin: 0;
    line-height: 1.6;
}

/* ===== BREADCRUMB ===== */
.faq-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-breadcrumb .faq-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    color: var(--text-light);
}

.faq-breadcrumb a {
    color: var(--teal);
    text-decoration: none;
    transition: color .2s;
}

.faq-breadcrumb a:hover {
    color: var(--teal-dark);
}

.faq-breadcrumb i {
    font-size: .65rem;
}

/* ===== MAIN ===== */
.faq-main {
    background: var(--bg-cream);
    padding: 48px 0 80px;
}

/* ===== TABLE OF CONTENTS ===== */
.faq-toc {
    margin-bottom: 48px;
}

.faq-toc-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.faq-toc-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: var(--shadow-sm);
}

.faq-toc-item:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.faq-toc-item i {
    font-size: .85rem;
    color: var(--teal);
    transition: color .25s;
}

.faq-toc-item:hover i {
    color: #fff;
}

/* ===== FAQ SECTIONS ===== */
.faq-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.faq-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-section-icon i {
    font-size: 1.1rem;
    color: #fff;
}

.faq-section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* ===== ACCORDION ===== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0,133,114,.2);
}

.faq-item.open {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

/* Question button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .2s;
}

.faq-question:hover {
    background: rgba(0,133,114,.03);
}

.faq-question h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
}

.faq-item.open .faq-question h3 {
    color: var(--teal);
}

.faq-chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.faq-chevron i {
    font-size: .8rem;
    color: var(--text-mid);
    transition: transform .3s ease, color .3s;
}

.faq-item.open .faq-chevron {
    background: var(--teal);
}

.faq-item.open .faq-chevron i {
    transform: rotate(180deg);
    color: #fff;
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 24px 24px;
}

.faq-answer div[itemprop="text"] {
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    line-height: 1.75;
    color: var(--text-mid);
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    margin: 0;
}

/* ===== CTA CONTACTO ===== */
.faq-cta {
    margin-top: 64px;
    text-align: center;
}

.faq-cta-content {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    box-shadow: var(--shadow-lg);
}

.faq-cta-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.faq-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 28px;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--gold);
    color: #1a1a1a;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 16px rgba(223,187,62,.35);
}

.faq-cta-btn:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(223,187,62,.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .faq-hero {
        padding: 100px 16px 48px;
    }

    .faq-hero h1 {
        font-size: 2.2rem;
    }

    .faq-hero-subtitle {
        font-size: 1rem;
    }

    .faq-toc-inner {
        gap: 8px;
    }

    .faq-toc-item {
        padding: 8px 14px;
        font-size: .82rem;
    }

    .faq-section-header h2 {
        font-size: 1.4rem;
    }

    .faq-section-icon {
        width: 40px;
        height: 40px;
    }

    .faq-question {
        padding: 16px 18px;
    }

    .faq-question h3 {
        font-size: .95rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 18px 18px;
    }

    .faq-cta-content {
        padding: 40px 24px;
    }

    .faq-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 90px 12px 36px;
    }

    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .faq-toc-item {
        padding: 7px 12px;
        font-size: .78rem;
        border-radius: 8px;
    }

    .faq-section-header {
        gap: 12px;
    }

    .faq-chevron {
        width: 28px;
        height: 28px;
    }

    .faq-cta-btn {
        padding: 12px 28px;
        font-size: .9rem;
    }
}

/* ===== ANIMACIÓN ENTRADA ===== */
.faq-section {
    animation: faqFadeIn .6s ease forwards;
    opacity: 0;
}

.faq-section:nth-child(2) { animation-delay: .1s; }
.faq-section:nth-child(3) { animation-delay: .2s; }
.faq-section:nth-child(4) { animation-delay: .3s; }

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
