
/* ==============================
   PÁGINA DE PREGUNTAS FRECUENTES
============================== */

.main-faq {
    background: #f6f8fb;
    min-height: 80vh;
    padding: 65px 0 80px;
}

.faq-header {
    text-align: center;
    margin-bottom: 42px;
}

.faq-etiqueta {
    display: inline-block;
    color: #627b9b;
    background: #e9eff7;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.faq-header h1 {
    color: #253650;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -1px;
}

.faq-header p {
    color: #7a8798;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Tarjetas */

.faq-item {
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(30, 50, 80, 0.025);
    transition: border-color .25s ease,
                box-shadow .25s ease;
}

.faq-item:hover {
    border-color: #d5dfec;
}

.faq-item.activa {
    border-color: #cbd8e9;
    box-shadow: 0 7px 22px rgba(30, 50, 80, 0.055);
}

/* Pregunta */

.faq-pregunta {
    display: block;
    position: relative;
    width: 100%;
    padding: 23px 65px 23px 25px;
    color: #34445d;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .2s ease;
}

.faq-pregunta:hover,
.faq-pregunta:focus {
    color: #587aa6;
    text-decoration: none !important;
    outline: none;
}

.faq-item.activa .faq-pregunta {
    color: #456990;
}

/* Icono + y - */

.faq-icono {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #f1f4f8;
    color: #647a99;
    text-align: center;
    line-height: 29px;
    font-size: 18px;
    font-weight: 400;
    transition: all .25s ease;
}

.faq-item.activa .faq-icono {
    background: #e7eef7;
    color: #456990;
}

/* Respuesta */

.faq-respuesta {
    padding: 0 25px 25px;
    color: #707e91;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.faq-respuesta p {
    margin-bottom: 12px;
}

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

.faq-respuesta ul,
.faq-respuesta ol {
    padding-left: 22px;
    margin-bottom: 15px;
}

.faq-respuesta a {
    color: #5279a8;
    text-decoration: underline;
}

.faq-respuesta img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Separador de la respuesta */

.faq-separador {
    height: 1px;
    background: #edf1f6;
    margin: 0 25px 20px;
}

/* Mensaje sin preguntas */

.faq-vacio {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    color: #7a8798;
}

/* Adaptación a celulares */

@media (max-width: 767px) {
    .main-faq {
        padding: 40px 0 55px;
    }

    .faq-header {
        margin-bottom: 28px;
    }

    .faq-header h1 {
        font-size: 28px;
    }

    .faq-header p {
        font-size: 14px;
        padding: 0 10px;
    }

    .faq-pregunta {
        padding: 19px 55px 19px 18px;
        font-size: 15px;
    }

    .faq-icono {
        right: 16px;
        width: 27px;
        height: 27px;
        line-height: 27px;
    }

    .faq-respuesta {
        padding: 0 18px 21px;
        font-size: 14px;
    }

    .faq-separador {
        margin-left: 18px;
        margin-right: 18px;
    }
}




/* CONTENEDOR PRINCIPAL */

.consulta-tecnica {
    position: relative;
    overflow: hidden;
    margin: 50px auto 20px;
    padding: 55px 30px;
    max-width: 1000px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(24, 39, 58, 0.05);
}

/* DETALLES DECORATIVOS */

.consulta-tecnica::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #16a34a,
        #86efac,
        #16a34a
    );
}

.consulta-tecnica::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -160px;
    right: -100px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.055);
    pointer-events: none;
}

.consulta-contenido {
    position: relative;
    z-index: 1;
}

/* ETIQUETA */

.consulta-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    margin-bottom: 18px;
    border-radius: 30px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* TITULO */

.consulta-tecnica h2 {
    margin: 0 0 14px;
    color: #1e293b;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: -0.7px;
}

/* DESCRIPCION */

.consulta-tecnica p {
    max-width: 590px;
    margin: 0 auto 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

/* BOTONES */

.consulta-botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.consulta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.22s ease;
}

.consulta-btn i {
    font-size: 18px;
}

.consulta-flecha {
    margin-left: 5px;
    font-size: 12px !important;
    opacity: 0.7;
}

/* WHATSAPP */

.consulta-btn-whatsapp {
    color: #ffffff !important;
    background: #16a34a;
    border: 1px solid #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.14);
}

.consulta-btn-whatsapp:hover,
.consulta-btn-whatsapp:focus {
    color: #ffffff !important;
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(22, 163, 74, 0.2);
}

/* ENCUESTA */

.consulta-btn-secundario {
    color: #334155 !important;
    background: #ffffff;
    border: 1px solid #dce3eb;
}

.consulta-btn-secundario > i:first-child {
    color: #16a34a;
}

.consulta-btn-secundario:hover,
.consulta-btn-secundario:focus {
    color: #166534 !important;
    background: #f8fafc;
    border-color: #86cfa0;
    transform: translateY(-2px);
}

/* NOTA INFERIOR */

.consulta-nota {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    color: #94a3b8;
    font-size: 12px;
}

.consulta-punto {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .consulta-tecnica {
        margin: 30px 12px 15px;
        padding: 38px 20px;
        border-radius: 14px;
    }

    .consulta-tecnica h2 {
        font-size: 24px;
        letter-spacing: -0.4px;
    }

    .consulta-tecnica p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 23px;
    }

    .consulta-botones {
        flex-direction: column;
        align-items: stretch;
    }

    .consulta-btn {
        width: 100%;
        box-sizing: border-box;
        min-height: 49px;
    }

    .consulta-nota {
        font-size: 11px;
        line-height: 1.6;
        margin-top: 22px;
    }
}
