body { overflow-x: hidden; line-height: 1.6; }

::-webkit-scrollbar-thumb:hover { background: var(--burgundy-mid); }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(123, 45, 53, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 40%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--cream);
    opacity: 0.6;
    font-weight: 300;
    line-height: 1.7;
}

/* ===== SEARCH ===== */
.search-section {
    max-width: 600px;
    margin: -1rem auto 3rem;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.4;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.2rem;
    background: rgba(42, 16, 21, 0.8);
    border: 1px solid rgba(123, 45, 53, 0.3);
    border-radius: 12px;
    color: var(--cream);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: var(--cream);
    opacity: 0.55;
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.search-results-count {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.55;
    display: none;
}

.search-results-count.visible {
    display: block;
}

/* ===== FAQ LAYOUT ===== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

/* Category */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(123, 45, 53, 0.2);
}

.faq-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(123, 45, 53, 0.2);
    border: 1px solid rgba(123, 45, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-category-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.faq-category-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--cream);
    opacity: 0.55;
    background: rgba(42, 16, 21, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(123, 45, 53, 0.2);
}

/* FAQ Item */
.faq-item {
    background: rgba(42, 16, 21, 0.4);
    border: 1px solid rgba(123, 45, 53, 0.15);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(123, 45, 53, 0.3);
}

.faq-item.active {
    border-color: rgba(201, 168, 76, 0.3);
    background: rgba(42, 16, 21, 0.7);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold-pale);
}

.faq-item.active .faq-question {
    color: var(--gold);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(123, 45, 53, 0.2);
    border: 1px solid rgba(123, 45, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.6;
}

.faq-item.active .faq-toggle {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    transform: rotate(45deg);
    opacity: 1;
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.65;
    line-height: 1.8;
}

.faq-answer-inner p {
    margin-bottom: 0.75rem;
}

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

.faq-answer-inner ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.faq-answer-inner ul li {
    margin-bottom: 0.4rem;
}

.faq-answer-inner strong {
    color: var(--cream);
    opacity: 1;
    font-weight: 600;
}

.faq-answer-inner a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 76, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.faq-answer-inner a:hover {
    text-decoration-color: var(--gold);
}

.faq-answer-inner code {
    background: rgba(123, 45, 53, 0.2);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-num); font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    color: var(--gold-pale);
}

/* ===== NOT FOUND ===== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--cream);
    opacity: 0.55;
    font-size: 0.9rem;
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.contact-card {
    background: rgba(42, 16, 21, 0.6);
    border: 1px solid rgba(123, 45, 53, 0.25);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--cream);
    opacity: 0.55;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.3rem;
    background: rgba(26, 10, 14, 0.5);
    border: 1px solid rgba(123, 45, 53, 0.2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cream);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.contact-option:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.contact-option-icon {
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 8rem 1.5rem 3rem;
    }
    .faq-container {
        padding: 0 1.5rem 4rem;
    }
    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    .faq-answer-inner {
        padding: 0 1.2rem 1.2rem;
    }
    .contact-card {
        padding: 2rem 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-category-header {
        flex-wrap: wrap;
    }
    .faq-category-count {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
}
/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight for search */
mark {
    background: rgba(201, 168, 76, 0.25);
    color: var(--gold-pale);
    padding: 0 2px;
    border-radius: 2px;
}
.faq-category { scroll-margin-top: 90px; }

/* ===== Categorías plegables (19-nov) ===== */
.faq-category-header.plegable { cursor: pointer; user-select: none; }
.faq-cat-plegar {
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 2px;
    color: var(--gold, #c9a84c);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.faq-cat-plegar .ico { width: 18px; height: 18px; transition: transform 0.25s ease; }
.faq-category-header.plegable:hover .faq-cat-plegar { border-color: rgba(201, 168, 76, 0.55); background: rgba(201, 168, 76, 0.06); }
.faq-cat-plegar:focus-visible { outline: 2px solid var(--gold, #c9a84c); outline-offset: 2px; }
.faq-category.cerrada .faq-cat-plegar .ico { transform: rotate(-90deg); }
.faq-category.cerrada .faq-item { display: none; }
.faq-category.cerrada .faq-category-header { margin-bottom: 0; }
.faq-category.cerrada { margin-bottom: 1.5rem; }
@media (max-width: 480px) {
    .faq-cat-plegar { position: absolute; right: 0; top: 0.25rem; }
    .faq-category-header.plegable { position: relative; padding-right: 44px; }
}
