@charset "UTF-8";
/* ==========================================================================
   lafabricadepegatinas v.2027 — FAQ
   Archivo: css/faq.css
   Autor:   pacocaetano | lafabricadepegatinas.com
   Versión: 2027.1
   ========================================================================== */


/* ==========================================================================
   01. HERO / CABECERA
   ========================================================================== */

.faq-hero {
    padding: calc(52px + var(--lfdp-space-xxl)) 0 var(--lfdp-space-lg);
    text-align: center;
    background: var(--lfdp-bg);
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lfdp-hero-glow);
    pointer-events: none;
}

.faq-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lfdp-accent);
    margin-bottom: var(--lfdp-space-sm);
}

.faq-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--lfdp-txt);
    line-height: 1.1;
    margin-bottom: var(--lfdp-space-sm);
}

.faq-hero__title span {
    background: var(--lfdp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-hero__sub {
    font-size: 1.05rem;
    color: var(--lfdp-txt3);
    max-width: 560px;
    margin: 0 auto var(--lfdp-space-lg);
    line-height: 1.7;
}

/* Buscador */
.faq-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.faq-search__input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: var(--lfdp-radius-pill);
    border: 1.5px solid var(--lfdp-border2);
    background: var(--lfdp-bg2);
    font-family: var(--lfdp-font);
    font-size: 0.92rem;
    color: var(--lfdp-txt);
    outline: none;
    transition: border-color var(--lfdp-transition), box-shadow var(--lfdp-transition);
    box-sizing: border-box;
}

.faq-search__input::placeholder { color: var(--lfdp-txt4); }

.faq-search__input:focus {
    border-color: var(--lfdp-accent);
    box-shadow: 0 0 0 3px rgba(153,51,153,0.12);
}

.faq-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lfdp-txt4);
    font-size: 0.9rem;
    pointer-events: none;
}


/* ==========================================================================
   02. LAYOUT PRINCIPAL
   ========================================================================== */

.faq-layout {
    max-width: var(--lfdp-max-width);
    margin: 0 auto;
    padding: var(--lfdp-space-lg) var(--lfdp-space-md) var(--lfdp-space-xl);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--lfdp-space-lg);
    align-items: start;
}


/* ==========================================================================
   03. MENÚ DE CATEGORÍAS (sidebar)
   ========================================================================== */

.faq-nav {
    position: sticky;
    top: calc(var(--lfdp-nav-h, 64px) + 16px);
}

.faq-nav__title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lfdp-txt4);
    margin-bottom: 10px;
    padding-left: 12px;
}

.faq-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-nav__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--lfdp-radius-sm);
    border: none;
    background: transparent;
    font-family: var(--lfdp-font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--lfdp-txt3);
    cursor: pointer;
    text-align: left;
    transition: all var(--lfdp-transition);
}

.faq-nav__btn:hover {
    background: var(--lfdp-bg3);
    color: var(--lfdp-txt);
}

.faq-nav__btn.is-active {
    background: var(--lfdp-gradient-soft);
    color: var(--lfdp-accent);
    font-weight: 600;
}

.faq-nav__btn .faq-nav__emoji {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-nav__icon {
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    color: inherit;
}

.faq-cat__icon {
    font-size: 1rem;
    color: var(--lfdp-accent);
    flex-shrink: 0;
}

.faq-nav__count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lfdp-txt4);
    background: var(--lfdp-bg3);
    border-radius: var(--lfdp-radius-pill);
    padding: 1px 7px;
    flex-shrink: 0;
    transition: all var(--lfdp-transition);
}

.faq-nav__btn.is-active .faq-nav__count {
    background: rgba(153,51,153,0.12);
    color: var(--lfdp-accent);
}

/* Separador + botón "Todas" */
.faq-nav__sep {
    height: 1px;
    background: var(--lfdp-border);
    margin: 8px 0;
}


/* ==========================================================================
   04. PANEL DE PREGUNTAS
   ========================================================================== */

.faq-panel {
    min-width: 0;
}

/* Cabecera de categoría */
.faq-cat {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.faq-cat.is-visible {
    display: flex;
}

.faq-cat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    padding-bottom: var(--lfdp-space-sm);
    border-bottom: 1.5px solid var(--lfdp-border);
}

.faq-cat__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.faq-cat__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lfdp-txt);
}

.faq-cat__desc {
    font-size: 0.88rem;
    color: var(--lfdp-txt3);
    margin-left: auto;
}


/* ==========================================================================
   05. ACORDEÓN FAQ
   ========================================================================== */

.faq-item {
    border: 1.5px solid var(--lfdp-border);
    border-radius: var(--lfdp-radius-md);
    background: var(--lfdp-bg2);
    overflow: hidden;
    transition: box-shadow var(--lfdp-transition), border-color var(--lfdp-transition);
}

.faq-item:hover {
    border-color: rgba(153,51,153,0.25);
    box-shadow: var(--lfdp-card-shadow);
}

.faq-item[open] {
    border-color: rgba(153,51,153,0.35);
    box-shadow: var(--lfdp-card-shadow);
}

/* Cabecera del acordeón */
.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--lfdp-txt);
    transition: color var(--lfdp-transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item[open] summary {
    color: var(--lfdp-accent);
}

/* Icono chevron */
.faq-item summary::after {
    content: '\f078'; /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--lfdp-txt4);
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.28s ease, color var(--lfdp-transition);
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--lfdp-accent);
}

/* Contenido */
.faq-item__body {
    padding: 0 20px 20px 20px;
    font-size: 0.92rem;
    color: var(--lfdp-txt2);
    line-height: 1.75;
    border-top: 1px solid var(--lfdp-border);
    padding-top: 16px;
}

.faq-item__body p { margin: 0 0 10px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body b, .faq-item__body strong { color: var(--lfdp-txt); }
.faq-item__body a { color: var(--lfdp-accent); text-underline-offset: 3px; }
.faq-item__body a:hover { color: var(--lfdp-accent3); }

/* Lista dentro del acordeón */
.faq-item__body ul {
    margin: 8px 0 10px 18px;
    padding: 0;
}
.faq-item__body ul li { margin-bottom: 4px; }

/* Imágenes dentro del acordeón */
.faq-img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.faq-img-grid img {
    width: 100%;
    border-radius: var(--lfdp-radius-sm);
    border: 1px solid var(--lfdp-border);
    display: block;
}

.faq-img-single {
    margin-top: 14px;
    max-width: 320px;
}

.faq-img-single img {
    width: 100%;
    border-radius: var(--lfdp-radius-sm);
    border: 1px solid var(--lfdp-border);
    display: block;
}

.faq-img-caption {
    font-size: 0.78rem;
    color: var(--lfdp-txt4);
    margin-top: 5px;
    font-style: italic;
}

/* Bloque de definición (logotipo/imagotipo…) */
.faq-def {
    display: flex;
    gap: var(--lfdp-space-md);
    align-items: flex-start;
    margin-bottom: var(--lfdp-space-md);
    padding-bottom: var(--lfdp-space-md);
    border-bottom: 1px solid var(--lfdp-border);
}

.faq-def:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-def__text { flex: 1; min-width: 0; }

.faq-def__label {
    font-weight: 700;
    color: var(--lfdp-txt);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.faq-def__img {
    flex-shrink: 0;
    width: 120px;
}

.faq-def__img img {
    width: 100%;
    border-radius: var(--lfdp-radius-sm);
    border: 1px solid var(--lfdp-border);
    display: block;
}

@media (max-width: 480px) {
    .faq-def { flex-direction: column; }
    .faq-def__img { width: 100%; max-width: 200px; }
}


.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 12px;
}
.faq-table th {
    background: var(--lfdp-bg3);
    color: var(--lfdp-txt);
    font-weight: 700;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid var(--lfdp-border2);
}
.faq-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--lfdp-border);
    color: var(--lfdp-txt2);
    vertical-align: top;
}
.faq-table tr:last-child td { border-bottom: none; }


/* ==========================================================================
   06. ESTADO SIN RESULTADOS (búsqueda)
   ========================================================================== */

.faq-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--lfdp-space-xl) 0;
    gap: 12px;
    color: var(--lfdp-txt3);
}

.faq-empty.is-visible { display: flex; }

.faq-empty__icon {
    font-size: 2.5rem;
    color: var(--lfdp-txt4);
}

.faq-empty__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lfdp-txt);
}


/* ==========================================================================
   07. CTA INFERIOR — ¿No encuentras respuesta?
   ========================================================================== */

.faq-cta {
    background: var(--lfdp-gradient-soft);
    border: 1.5px solid rgba(153,51,153,0.15);
    border-radius: var(--lfdp-radius-lg);
    padding: var(--lfdp-space-lg) var(--lfdp-space-md);
    text-align: center;
    margin-top: var(--lfdp-space-lg);
}

.faq-cta__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lfdp-txt);
    margin-bottom: 8px;
}

.faq-cta__sub {
    font-size: 0.92rem;
    color: var(--lfdp-txt3);
    margin-bottom: var(--lfdp-space-md);
}

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

.faq-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--lfdp-radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--lfdp-font);
    text-decoration: none;
    transition: all var(--lfdp-transition);
    border: none;
    cursor: pointer;
}

.faq-cta__btn--whatsapp {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37,211,102,0.28);
}
.faq-cta__btn--whatsapp:hover {
    background: #1fbd5a;
    transform: translateY(-2px);
    color: #ffffff;
}

.faq-cta__btn--email {
    background: var(--lfdp-bg2);
    color: var(--lfdp-txt2);
    border: 1.5px solid var(--lfdp-border2);
}
.faq-cta__btn--email:hover {
    border-color: var(--lfdp-accent);
    color: var(--lfdp-accent);
    transform: translateY(-2px);
}


/* ==========================================================================
   08. RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   09. MODAL ENLACE EXTERNO
   ========================================================================== */

.faq-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: var(--lfdp-space-md);
}

.faq-modal.is-open {
    display: flex;
}

.faq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: faq-fade-in 0.22s ease;
}

.faq-modal__box {
    position: relative;
    z-index: 1;
    background: var(--lfdp-bg2);
    border-radius: var(--lfdp-radius-lg);
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    max-width: 420px;
    width: 100%;
    padding: 36px 32px 28px;
    animation: faq-slide-up 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

.faq-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--lfdp-bg3);
    color: var(--lfdp-txt3);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--lfdp-transition);
    font-family: var(--lfdp-font);
}
.faq-modal__close:hover {
    background: var(--lfdp-bg4);
    color: var(--lfdp-txt);
}

.faq-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(153,51,153,0.12), rgba(187,68,187,0.06));
    color: var(--lfdp-accent);
}

.faq-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lfdp-txt);
    margin-bottom: 10px;
    line-height: 1.2;
}

.faq-modal__body {
    font-size: 0.9rem;
    color: var(--lfdp-txt3);
    line-height: 1.65;
    margin-bottom: 22px;
}

.faq-modal__body strong { color: var(--lfdp-txt); }

.faq-modal__divider {
    width: 100%;
    height: 1px;
    background: var(--lfdp-border);
    margin-bottom: 18px;
}

.faq-modal__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.faq-modal__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--lfdp-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--lfdp-font);
    cursor: pointer;
    border: none;
    transition: all var(--lfdp-transition);
    text-decoration: none;
}

.faq-modal__btn--cancel {
    background: var(--lfdp-bg3);
    color: var(--lfdp-txt3);
}
.faq-modal__btn--cancel:hover {
    background: var(--lfdp-bg4);
    color: var(--lfdp-txt);
}

.faq-modal__btn--primary {
    background: var(--lfdp-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(153,51,153,0.28);
}
.faq-modal__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153,51,153,0.38);
    color: #ffffff;
}

@keyframes faq-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes faq-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (max-width: 480px) {
    .faq-modal__box { padding: 28px 20px 22px; }
    .faq-modal__actions { flex-direction: column; }
    .faq-modal__btn { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: var(--lfdp-space-md);
        padding-top: var(--lfdp-space-md);
    }

    .faq-nav {
        position: static;
    }

    .faq-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .faq-nav__btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .faq-nav__count { display: none; }
    .faq-nav__sep   { display: none; }

    .faq-hero {
        padding: calc(52px + var(--lfdp-space-lg)) var(--lfdp-space-sm) var(--lfdp-space-md);
    }
}
