/* ================================================================
   AYUDA — Estilos para la página de Centro de Ayuda
================================================================ */

.ayuda-hero {
    padding: 140px 20px 100px;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%),
                url('../images/hero_bg.png') center/cover no-repeat;
    text-align: center;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.ayuda-hero h1 {
    font-size: 3.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.ayuda-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.ayuda-content {
    padding: 80px 20px;
    background: #FAFAFA;
}
.ayuda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.ayuda-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
}
.ayuda-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 92, 191, 0.3);
}
.ayuda-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.ayuda-card h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.ayuda-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
}

.faq-section {
    max-width: 800px;
    margin: 0 auto 80px;
}
.faq-section h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.active {
    border-color: var(--primary);
}
.faq-question {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}
.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-sec);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 400px; /* arbitrary large value */
}

.contact-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(124, 92, 191, 0.2);
}
.contact-box h2 {
    font-size: 2.4rem;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 16px;
    color: white;
}
.contact-box p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}
.contact-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
}
.btn-email {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid white;
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-email:hover {
    background: white;
    color: var(--primary);
}

@media (max-width: 900px) {
    .ayuda-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .ayuda-hero { padding: 60px 20px 40px; }
    .ayuda-hero h1 { font-size: 2.2rem; }
    .ayuda-grid { grid-template-columns: 1fr; }
    .contact-btns { flex-direction: column; }
    .btn-whatsapp, .btn-email { width: 100%; justify-content: center; }
}
