/* =====================================================================
   Preguntas frecuentes (/preguntas-frecuentes)
   Una sola tarjeta centrada, con el estilo de comprobante.css (.fx-*), igual que legal.css.
   Cada pregunta es un <details> nativo: funciona sin JS y se puede enlazar por su id.
   ===================================================================== */

.faq-pagina {
    min-height: calc(100vh - 5vh);
    padding: 24px 12px;
    background: #f4f6f9;
}

.fx.faq-contenedor {
    max-width: 860px;
    padding: 0;
}

.faq-cabecera {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.faq-logo {
    height: 48px;
}

.faq-cabecera .fx-title {
    margin: 0;
}

/* site.css pinta de negro todo span, label y h5 */
.faq-cabecera .fx-sub {
    display: block;
    margin: 0;
    color: var(--fx-muted);
}

/* ---- Buscador ---- */
.faq-buscador {
    position: relative;
    margin-bottom: 12px;
}

    .faq-buscador i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--fx-muted);
        font-size: 13px;
    }

    .faq-buscador .form-control {
        height: 38px;
        padding-left: 34px;
        font-size: 13px;
        border: 1px solid var(--fx-line);
        border-radius: var(--fx-ctl-radius);
    }

        .faq-buscador .form-control:focus {
            border-color: var(--fx-brand);
            box-shadow: 0 0 0 3px rgba(28, 67, 134, .12);
        }

.faq-sin-resultados {
    color: var(--fx-muted);
    font-size: 13px;
    text-align: center;
    margin: 16px 0;
}

/* ---- Contenido ---- */
.faq-contenido {
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

.faq-actualizacion {
    color: var(--fx-muted);
    font-size: 12px;
    margin: 0 0 10px;
}

/* ---- Categorías ---- */
.faq-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

    .faq-categorias a {
        padding: 4px 12px;
        font-size: 12px;
        font-weight: 600;
        color: var(--fx-brand);
        background: rgba(28, 67, 134, .06);
        border: 1px solid rgba(28, 67, 134, .18);
        border-radius: 999px;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color .2s ease, border-color .2s ease;
    }

        .faq-categorias a:hover,
        .faq-categorias a:focus-visible {
            background: rgba(0, 197, 180, .14);
            border-color: var(--fx-accent);
            color: var(--fx-text);
        }

.faq-seccion {
    scroll-margin-top: 12px;
}

    .faq-seccion h2 {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--fx-text);
        font-size: 15px;
        font-weight: 800;
        margin: 24px 0 4px;
        padding-bottom: 6px;
        border-bottom: 1px solid #e5e9f2;
    }

        .faq-seccion h2 i {
            color: var(--fx-brand);
            font-size: 14px;
        }

/* ---- Pregunta (acordeón) ---- */
.faq-item {
    border-bottom: 1px solid #eef1f6;
    scroll-margin-top: 12px;
}

    .faq-item summary {
        position: relative;
        display: block;
        list-style: none;
        cursor: pointer;
        padding: 10px 28px 10px 0;
        color: var(--fx-text);
        font-weight: 600;
    }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: "\f078";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 4px;
            top: 10px;
            font-size: 11px;
            color: var(--fx-muted);
            transition: transform .2s ease;
        }

        .faq-item summary:hover {
            color: var(--fx-brand);
        }

        .faq-item summary:focus-visible {
            outline: 2px solid var(--fx-accent);
            outline-offset: 2px;
            border-radius: 4px;
        }

    .faq-item[open] summary::after {
        transform: rotate(180deg);
    }

    .faq-item.faq-destacada {
        background: rgba(0, 197, 180, .07);
        border-radius: 8px;
        padding: 0 8px;
    }

.faq-respuesta {
    padding: 0 0 12px;
}

    .faq-respuesta p {
        margin: 0 0 8px;
        color: #334155;
    }

    .faq-respuesta ul {
        margin: 0 0 8px;
        padding-left: 22px;
    }

    .faq-respuesta li {
        margin-bottom: 4px;
    }

    .faq-respuesta strong {
        color: var(--fx-text);
    }

    .faq-respuesta a {
        color: var(--fx-brand);
        text-decoration: underline;
        word-break: break-word;
    }

/* tabla de planes (igual que la de los Términos) */
.faq-tabla {
    overflow-x: auto;
    margin: 4px 0 10px;
}

    .faq-tabla table {
        width: 100%;
        border-collapse: collapse;
        font-size: 12px;
    }

    .faq-tabla th,
    .faq-tabla td {
        padding: 8px 10px;
        border: 1px solid var(--fx-line);
        text-align: left;
        white-space: nowrap;
    }

    .faq-tabla th {
        background: rgba(28, 67, 134, .08);
        color: var(--fx-text);
        font-weight: 700;
    }

    /* las dos últimas columnas (catálogo e inventario) se parten en dos líneas: así la tabla entra sin desplazarse */
    .faq-tabla th:nth-last-child(-n+2),
    .faq-tabla td:nth-last-child(-n+2) {
        white-space: normal;
        min-width: 100px;
    }

/* ---- Contacto ---- */
.faq-contacto {
    margin-top: 24px;
    padding: 16px;
    text-align: center;
    background: rgba(28, 67, 134, .05);
    border: 1px solid rgba(28, 67, 134, .12);
    border-radius: 12px;
}

    .faq-contacto p {
        margin: 0 0 10px;
        color: #334155;
        font-size: 13px;
    }

.faq-contacto-titulo {
    color: var(--fx-text);
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
}

.faq-contacto-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.faq-contacto-boton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fx-brand);
    background: #fff;
    border: 1px solid rgba(28, 67, 134, .25);
    border-radius: 999px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

    .faq-contacto-boton:hover,
    .faq-contacto-boton:focus-visible {
        background: rgba(0, 197, 180, .14);
        border-color: var(--fx-accent);
        color: var(--fx-text);
        text-decoration: none;
    }

    .faq-contacto-boton .fa-whatsapp {
        color: #25D366;
        font-size: 14px;
    }

@media (max-width: 575.98px) {
    .faq-pagina {
        padding: 12px 6px;
    }

    .faq-cabecera {
        gap: 10px;
    }

    .faq-logo {
        height: 38px;
    }
}

/* =====================================================================
   Manuales (/manuales)
   Misma tarjeta y secciones que preguntas frecuentes; cada video es un Short de YouTube (vertical 9:16) incrustado.
   ===================================================================== */

.fx.faq-contenedor.manuales-contenedor {
    max-width: 1040px;
}

.manuales-grilla {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.manual-tarjeta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #0a1a40;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}

    .manual-video iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* manual sin video en YouTube: mismo marco vertical con el aviso; el PDF sigue disponible debajo */
.manual-video.manual-sin-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    text-align: center;
    background: linear-gradient(160deg, #0a1a40 0%, #1c4386 100%);
}

    .manual-sin-video i {
        color: #00c5b4;
        font-size: 28px;
    }

    /* site.css pinta de negro todo span */
    .manual-sin-video span {
        color: rgba(255, 255, 255, .85);
        font-size: 13px;
        font-weight: 600;
    }

/* en mayúsculas por pedido del usuario; el texto de la vista se deja normal */
.manual-titulo {
    margin: 0;
    color: var(--fx-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.manual-enlace {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    color: var(--fx-brand);
    text-decoration: none;
}

    .manual-enlace:hover,
    .manual-enlace:focus-visible {
        color: var(--fx-text);
        text-decoration: underline;
    }

    .manual-enlace .fa-youtube {
        color: #ff0000;
        font-size: 14px;
    }

    .manual-enlace .fa-file-pdf {
        color: #d93025;
        font-size: 14px;
    }

/* "Ver en documento" va pegado debajo de "Ver en YouTube" */
.manual-enlace + .manual-enlace {
    margin-top: -4px;
}

@media (max-width: 575.98px) {
    .manuales-grilla {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media print {
    .no-imprimir {
        display: none !important;
    }

    .faq-pagina {
        background: #fff;
        padding: 0;
    }

    .fx-card {
        box-shadow: none;
        border: 0;
    }

    .faq-item summary::after {
        display: none;
    }
}
