
/* ===================================
   SHOPYDAS - PREGUNTAS FRECUENTES
=================================== */

.faq-contenedor {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 18px 75px;
}

/* PORTADA */

.faq-hero {
    background: linear-gradient(135deg, #10254d, #23477e);
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    color: white;
    margin-bottom: 28px;
}

.faq-hero-icono {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    background: rgba(255,255,255,.12);
    border-radius: 18px;
}

.faq-hero-icono svg {
    width: 30px;
    height: 30px;
    color: #f5b400;
}

.faq-hero h1 {
    font-size: clamp(25px, 4vw, 36px);
    margin: 0 0 12px;
    color: white;
    font-weight: 800;
}

.faq-hero p {
    max-width: 540px;
    margin: auto;
    color: #dce5f5;
    font-size: 13px;
    line-height: 1.7;
}

/* BUSCADOR */

.faq-buscador {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 0 17px;
    height: 55px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(16,37,77,.035);
}

.faq-buscador:focus-within {
    border-color: #10254d;
}

.faq-buscador svg {
    color: #94a3b8;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-buscador input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1e293b;
}

/* CATEGORÍAS */

.faq-categoria {
    margin-bottom: 35px;
}

.faq-categoria-titulo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.faq-categoria-titulo > svg {
    width: 23px;
    height: 23px;
    color: #d9a000;
}

.faq-categoria-titulo h2 {
    font-size: 20px;
    color: #10254d;
    font-weight: 800;
    margin: 0;
}

.faq-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* PREGUNTAS DESPLEGABLES */

.faq-item {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
}

.faq-item[hidden],
.faq-categoria[hidden],
.faq-sin-resultados[hidden] {
    display: none !important;
}

.faq-item[open] {
    border-color: #c8d4e8;
    box-shadow: 0 4px 15px rgba(16,37,77,.04);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 19px 20px;
    color: #10254d;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary > svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #64748b;
    transition: transform .2s;
}

.faq-item[open] summary > svg {
    transform: rotate(180deg);
    color: #d9a000;
}

.faq-respuesta {
    padding: 0 20px 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.85;
}

.faq-respuesta a {
    color: #10254d;
    font-weight: 700;
    text-decoration: underline;
}

/* AYUDA */

.faq-ayuda {
    text-align: center;
    background: #f0f4fa;
    border-radius: 17px;
    padding: 35px 20px;
    margin-top: 20px;
}

.faq-ayuda-icono {
    display: flex;
    justify-content: center;
    color: #10254d;
    margin-bottom: 14px;
}

.faq-ayuda-icono svg {
    width: 35px;
    height: 35px;
}

.faq-ayuda h2 {
    color: #10254d;
    font-size: 21px;
    margin: 0 0 10px;
}

.faq-ayuda p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 22px;
}

.faq-contactar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 10px;
    background: #10254d;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.faq-contactar:hover {
    background: #091a39;
}

.faq-contactar svg {
    width: 18px;
    height: 18px;
}

.faq-sin-resultados {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 20px;
}

/* CELULARES */

@media (max-width: 600px) {

    .faq-contenedor {
        padding: 17px 12px 50px;
    }

    .faq-hero {
        padding: 32px 20px;
        border-radius: 15px;
    }

    .faq-hero h1 {
        font-size: 26px;
    }

    .faq-hero p {
        font-size: 12px;
    }

    .faq-buscador {
        height: 49px;
        margin-bottom: 28px;
    }

    .faq-buscador input {
        font-size: 12px;
    }

    .faq-categoria {
        margin-bottom: 27px;
    }

    .faq-categoria-titulo h2 {
        font-size: 17px;
    }

    .faq-item summary {
        font-size: 12px;
        padding: 16px;
    }

    .faq-respuesta {
        font-size: 12px;
        padding: 0 16px 17px;
    }

    .faq-ayuda h2 {
        font-size: 19px;
    }
}
