/* ============================================================
   SIGNIA FLOW
   GLOBAL CSS
   Navbar + Footer + elementos globales
============================================================ */


/* ============================================================
   VARIABLES
============================================================ */

:root {

    --signia-orange: #EB7615;
    --signia-orange-dark: #D7620B;

    --signia-text: #303B43;
    --signia-text-light: #68757D;

    --signia-navbar: #F5F6F7;

    --signia-white: #FFFFFF;

    --signia-light: #F8F9FA;
    --signia-border: #E1E5E8;

    --signia-dark: #252E34;

}


/* ============================================================
   RESET
============================================================ */

html {
    scroll-behavior: smooth;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


body {

    margin: 0;
    padding: 0;

    font-family: "Montserrat", sans-serif;

    color: var(--signia-text);

    background: var(--signia-white);

    line-height: 1.6;

}


img {

    max-width: 100%;
    height: auto;

}


a {

    text-decoration: none;

}


button,
a {

    -webkit-tap-highlight-color: transparent;

}


/* ============================================================
   NAVBAR
============================================================ */

.signia-navbar {

    position: relative;

    z-index: 1000;

    width: 100%;

    background: var(--signia-navbar);

    border-bottom: 1px solid var(--signia-border);

}


.signia-navbar .navbar {

    min-height: 78px;

    padding: 0;

}


/* ============================================================
   LOGO
============================================================ */

.signia-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


.signia-logo img {

    display: block;

    width: 165px;

    height: auto;

}


/* ============================================================
   MENÚ
============================================================ */

.signia-navbar .navbar-nav {

    align-items: center;

    gap: 8px;

}


.signia-navbar .nav-link {

    position: relative;

    padding: 27px 14px;

    color: var(--signia-orange);

    font-size: 13px;

    font-weight: 600;

    transition:
        color .25s ease,
        background-color .25s ease;

}


.signia-navbar .nav-link:hover {

    color: var(--signia-orange-dark);

}


/* ============================================================
   INDICADOR ACTIVO
============================================================ */

.signia-navbar .nav-link::after {

    content: "";

    position: absolute;

    left: 14px;
    right: 14px;

    bottom: 17px;

    height: 2px;

    background: var(--signia-orange);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform .25s ease;

}


.signia-navbar .nav-link:hover::after,
.signia-navbar .nav-link.active::after {

    transform: scaleX(1);

}


/* ============================================================
   DROPDOWN
============================================================ */

.signia-navbar .dropdown-menu {

    min-width: 235px;

    margin-top: 0;

    padding: 8px;

    border: 1px solid var(--signia-border);

    border-radius: 8px;

    background: var(--signia-white);

    box-shadow:
        0 14px 35px rgba(48, 59, 67, .10);

}


.signia-navbar .dropdown-item {

    padding: 11px 13px;

    border-radius: 5px;

    color: var(--signia-text);

    font-size: 13px;

    font-weight: 500;

    transition:
        color .2s ease,
        background-color .2s ease;

}


.signia-navbar .dropdown-item:hover {

    color: var(--signia-orange);

    background: #F7F8F9;

}


/* ============================================================
   BOTÓN NAVBAR
============================================================ */

.signia-navbar-action {

    margin-left: 18px;

}


.signia-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 43px;

    padding: 10px 19px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;

}


.signia-button-primary {

    background: var(--signia-orange);

    border: 1px solid var(--signia-orange);

    color: var(--signia-white);

}


.signia-button-primary:hover {

    background: var(--signia-orange-dark);

    border-color: var(--signia-orange-dark);

    color: var(--signia-white);

    transform: translateY(-1px);

}


/* ============================================================
   TOGGLER
============================================================ */

.signia-navbar .navbar-toggler {

    padding: 7px 9px;

    border: 1px solid #D8DDE0;

    border-radius: 5px;

}


.signia-navbar .navbar-toggler:focus {

    box-shadow: none;

}


/* ============================================================
   FOOTER
============================================================ */

.signia-footer {

    position: relative;

    padding: 70px 0 25px;

    background: var(--signia-dark);

    color: var(--signia-white);

    overflow: hidden;

}


/* ============================================================
   DECORACIÓN
============================================================ */

.signia-footer::before {

    content: "";

    position: absolute;

    top: -230px;

    right: -130px;

    width: 430px;

    height: 430px;

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 50%;

}


.signia-footer::after {

    content: "";

    position: absolute;

    bottom: -300px;

    left: -160px;

    width: 500px;

    height: 500px;

    border: 1px solid rgba(255,255,255,.04);

    border-radius: 50%;

}


.signia-footer > .container {

    position: relative;

    z-index: 2;

}


/* ============================================================
   LOGO FOOTER
============================================================ */

.footer-brand {

    max-width: 310px;

}


.footer-logo {

    display: block;

    width: 175px;

    height: auto;

    margin-bottom: 22px;

    padding: 10px 14px;

    background: var(--signia-white);

    border-radius: 7px;

}


.footer-brand p {

    margin: 0;

    color: rgba(255,255,255,.55);

    font-size: 12px;

    line-height: 1.7;

}


/* ============================================================
   COLUMNAS
============================================================ */

.footer-column h3 {

    margin: 0 0 20px;

    color: var(--signia-white);

    font-size: 13px;

    font-weight: 700;

}


.footer-column ul {

    margin: 0;

    padding: 0;

    list-style: none;

}


.footer-column li {

    margin-bottom: 10px;

}


.footer-column li a {

    color: rgba(255,255,255,.55);

    font-size: 12px;

    transition: color .25s ease;

}


.footer-column li a:hover {

    color: var(--signia-orange);

}


/* ============================================================
   CONTACTO
============================================================ */

.footer-contact {

    padding-left: 25px;

    border-left: 1px solid rgba(255,255,255,.12);

}


.footer-contact-item {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 13px;

}


.footer-contact-item i {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 36px;

    width: 36px;

    height: 36px;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 6px;

    background: rgba(255,255,255,.05);

    color: var(--signia-orange);

}


.footer-contact-item a {

    color: var(--signia-white);

    font-size: 12px;

    font-weight: 500;

    transition: color .25s ease;

}


.footer-contact-item a:hover {

    color: var(--signia-orange);

}


/* ============================================================
   REDES
============================================================ */

.footer-social {

    display: flex;

    gap: 8px;

    margin-top: 22px;

}


.footer-social a {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border: 1px solid rgba(255,255,255,.13);

    border-radius: 6px;

    color: var(--signia-white);

    background: rgba(255,255,255,.04);

    transition:
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;

}


.footer-social a:hover {

    background: var(--signia-orange);

    border-color: var(--signia-orange);

    transform: translateY(-2px);

}


/* ============================================================
   DIVISOR
============================================================ */

.footer-divider {

    height: 1px;

    margin: 52px 0 22px;

    background: rgba(255,255,255,.10);

}


/* ============================================================
   FOOTER INFERIOR
============================================================ */

.footer-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.footer-bottom p {

    margin: 0;

    color: rgba(255,255,255,.38);

    font-size: 10px;

}


.footer-legal {

    display: flex;

    align-items: center;

    gap: 9px;

}


.footer-legal a {

    color: rgba(255,255,255,.38);

    font-size: 10px;

    transition: color .25s ease;

}


.footer-legal a:hover {

    color: var(--signia-orange);

}


.footer-legal span {

    color: rgba(255,255,255,.18);

}


/* ============================================================
   ELEMENTOS GENERALES
============================================================ */

.section-label {

    display: inline-block;

    margin-bottom: 14px;

    color: var(--signia-orange);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .02em;

}


.page-placeholder {

    padding: 110px 0;

}


.page-placeholder h1 {

    max-width: 850px;

    margin: 0;

    color: var(--signia-text);

    font-size: clamp(40px, 5vw, 68px);

    line-height: 1.05;

    font-weight: 600;

}


.page-placeholder h1 span {

    display: block;

    color: var(--signia-orange);

}


.page-placeholder p {

    max-width: 650px;

    margin: 25px 0 0;

    color: var(--signia-text-light);

    font-size: 16px;

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1199px) {

    .signia-navbar .nav-link {

        padding-left: 10px;

        padding-right: 10px;

    }


    .signia-navbar .nav-link::after {

        left: 10px;

        right: 10px;

    }


    .signia-navbar-action {

        margin-left: 8px;

    }


    .signia-button {

        padding-left: 14px;

        padding-right: 14px;

    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 991px) {

    .signia-navbar .navbar {

        min-height: 72px;

    }


    .signia-logo img {

        width: 150px;

    }


    .signia-navbar .navbar-collapse {

        padding: 15px 0 20px;

    }


    .signia-navbar .navbar-nav {

        align-items: flex-start;

        gap: 0;

    }


    .signia-navbar .nav-link {

        width: 100%;

        padding: 11px 0;

    }


    .signia-navbar .nav-link::after {

        display: none;

    }


    .signia-navbar .dropdown-menu {

        width: 100%;

        padding: 5px 0 5px 15px;

        border: 0;

        box-shadow: none;

    }


    .signia-navbar-action {

        margin: 15px 0 0;

    }


    .signia-navbar-action .signia-button {

        width: 100%;

    }


    .footer-contact {

        padding-left: 0;

        border-left: 0;

    }

}


/* ============================================================
   MOBILE PEQUEÑO
============================================================ */

@media (max-width: 767px) {

    .signia-footer {

        padding: 50px 0 22px;

    }


    .footer-brand {

        margin-bottom: 15px;

    }


    .footer-logo {

        width: 160px;

    }


    .footer-column {

        padding-top: 10px;

    }


    .footer-contact {

        padding-top: 25px;

        border-top: 1px solid rgba(255,255,255,.10);

    }


    .footer-divider {

        margin-top: 40px;

    }


    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

        gap: 12px;

    }


    .footer-legal {

        justify-content: flex-start;

    }


    .page-placeholder {

        padding: 80px 0;

    }


    .page-placeholder h1 {

        font-size: clamp(36px, 10vw, 50px);

    }


    .page-placeholder p {

        font-size: 14px;

    }

}

/* ============================================================
   BOTÓN FLOTANTE DE CONTACTO
============================================================ */

.signia-contact-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: auto;
    transform: none;
    z-index: 9999;
}


/* ============================================================
   BOTÓN PRINCIPAL
============================================================ */

.signia-contact-toggle {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: var(--signia-orange);

    color: var(--signia-white);

    font-size: 22px;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(48, 59, 67, .20);

    transition:
        background-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.signia-contact-toggle:hover {

    background: var(--signia-orange-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(48, 59, 67, .25);

}


/* ============================================================
   OPCIONES
============================================================ */

.signia-contact-options {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 9px;

    margin-bottom: 12px;

    pointer-events: none;

}


/* ============================================================
   OPCIÓN INDIVIDUAL
============================================================ */

.signia-contact-option {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 125px;

    padding: 9px 12px;

    border-radius: 6px;

    background: var(--signia-white);

    border: 1px solid var(--signia-border);

    color: var(--signia-text);

    font-size: 11px;

    font-weight: 600;

    box-shadow:
        0 6px 18px rgba(48, 59, 67, .10);

    opacity: 0;

    transform: translateY(10px) scale(.96);

    transition:
        opacity .22s ease,
        transform .22s ease,
        color .22s ease,
        border-color .22s ease;

}


/* ============================================================
   ICONOS
============================================================ */

.signia-contact-option i {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    border-radius: 5px;

    background: #F3F5F6;

    color: var(--signia-orange);

    font-size: 14px;

}


.signia-contact-option:hover {

    color: var(--signia-orange);

    border-color: rgba(235,118,21,.35);

}


/* ============================================================
   ESTADO ABIERTO
============================================================ */

.signia-contact-float.is-open
.signia-contact-options {

    pointer-events: auto;

}


.signia-contact-float.is-open
.signia-contact-option {

    opacity: 1;

    transform: translateY(0) scale(1);

}


/* Animación escalonada */

.signia-contact-float.is-open
.signia-contact-option:nth-child(1) {

    transition-delay: .03s;

}


.signia-contact-float.is-open
.signia-contact-option:nth-child(2) {

    transition-delay: .07s;

}


.signia-contact-float.is-open
.signia-contact-option:nth-child(3) {

    transition-delay: .11s;

}


.signia-contact-float.is-open
.signia-contact-option:nth-child(4) {

    transition-delay: .15s;

}


/* ============================================================
   CAMBIO DEL ICONO PRINCIPAL
============================================================ */

.signia-contact-float.is-open
.signia-contact-toggle {

    transform: rotate(45deg);

}


.signia-contact-float.is-open
.signia-contact-toggle:hover {

    transform: rotate(45deg) translateY(-2px);

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991px) {

    .signia-contact-float {

        right: 20px;
        bottom: 20px;

    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {

    .signia-contact-float {

        right: 16px;
        bottom: 16px;

    }


    .signia-contact-toggle {

        width: 52px;
        height: 52px;

        font-size: 20px;

    }


    .signia-contact-option {

        min-width: 118px;

        padding: 8px 10px;

        font-size: 10px;

    }


    .signia-contact-option i {

        width: 27px;
        height: 27px;

        flex-basis: 27px;

    }

}


/* ============================================================
   OPCIÓN ASISTENTE VIRTUAL
============================================================ */

.signia-contact-chatbot {
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.signia-contact-chatbot i {
    background: #FFF0E4;
}

/* ============================================================
   VENTANA DEL CHATBOT
============================================================ */

.signia-chatbot {
    position: absolute;
    right: 0;
    bottom: 72px;
    z-index: 1060;

    display: flex;
    flex-direction: column;

    width: 370px;
    height: min(540px, calc(100dvh - 120px));
    min-height: 360px;

    overflow: hidden;
    border: 1px solid var(--signia-border);
    border-radius: 16px;
    background: var(--signia-white);

    box-shadow: 0 18px 50px rgba(37, 46, 52, .20);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}

.signia-chatbot.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Cabecera */

.signia-chatbot-header {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 16px;
    color: #fff;
    background: var(--signia-dark);
}

.signia-chatbot-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    border-radius: 12px;
    background: var(--signia-orange);
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.signia-chatbot-heading {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.signia-chatbot-heading strong {
    font-size: 13px;
    line-height: 1.4;
}

.signia-chatbot-heading > span {
    color: #D9E1E5;
    font-size: 10px;
}

.signia-chatbot-status {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: #61D6A3;
}

.signia-chatbot-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    color: #fff;

    font-size: 23px;
    cursor: pointer;
}

/* Conversación */

.signia-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 13px;
    background: #F6F8F9;
}

.signia-chat-message {
    display: flex;
    margin-bottom: 12px;
}

.signia-chat-message.user {
    justify-content: flex-end;
}

.signia-chat-bubble {
    max-width: 88%;
    padding: 11px 13px;

    border: 1px solid var(--signia-border);
    border-radius: 13px 13px 13px 4px;

    background: #fff;
    color: var(--signia-text);

    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.signia-chat-message.user .signia-chat-bubble {
    border-color: var(--signia-orange);
    border-radius: 13px 13px 4px 13px;
    background: var(--signia-orange);
    color: #fff;
}

/* Opciones de respuesta */

.signia-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 5px 0 14px;
}

.signia-chat-options button {
    padding: 9px 11px;

    border: 1px solid #E8B58E;
    border-radius: 7px;

    background: #fff;
    color: var(--signia-text);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.signia-chat-options button:hover {
    border-color: var(--signia-orange);
    background: #FFF5EC;
}

/* Campo para escribir */

.signia-chatbot-form {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px;
    border-top: 1px solid var(--signia-border);
    background: #fff;
}

.signia-chatbot-form input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;

    border: 1px solid var(--signia-border);
    border-radius: 8px;
    outline: none;

    color: var(--signia-text);
    font-family: inherit;
    font-size: 11px;
}

.signia-chatbot-form input:focus {
    border-color: var(--signia-orange);
}

.signia-chatbot-form button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;
    height: 40px;

    border: 0;
    border-radius: 8px;
    background: var(--signia-orange);
    color: #fff;

    cursor: pointer;
}

.signia-chatbot-privacy {
    padding: 0 10px 10px;
    background: #fff;
    color: var(--signia-text-light);
    text-align: center;
    font-size: 9px;
}

/* Evitar superposición del menú y el chat */

.signia-contact-float.chat-open .signia-contact-options {
    display: none;
}

/* Ajustes para móviles */

@media (max-width: 480px) {
    .signia-chatbot {
        position: fixed;
        right: 10px;
        bottom: 78px;

        width: calc(100vw - 20px);
        height: min(600px, calc(100dvh - 96px));
        min-height: 320px;

        border-radius: 14px;
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    .signia-chatbot {
        transition: none;
    }
}



/* Icono del asistente virtual */
.signia-contact-chatbot i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--signia-orange);
    background: transparent;
    font-size: 22px;
    line-height: 1;
}


/* =====================================================
   ESTILOS DE PREGUNTAS FRECUENTES DEL CHATBOT
===================================================== */

.signia-chatbot-faq {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
}

.signia-chatbot-faq button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 9px 13px;

    border: 1px solid #E8B58E !important;
    border-radius: 8px !important;

    background: #FFFFFF !important;
    color: #0E3B5F !important;

    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.5;

    text-align: left;
    cursor: pointer;

    transition: all .2s ease;
}

.signia-chatbot-faq button:hover {
    background: #FFF3E9 !important;
    border-color: #EB7615 !important;
    color: #0E3B5F !important;
    transform: translateX(3px);
}

.signia-chatbot-faq button:focus-visible {
    outline: 2px solid #EB7615;
    outline-offset: 3px;
}

/* Hover del menú desplegable */
.signia-navbar .dropdown-menu .dropdown-item:hover,
.signia-navbar .dropdown-menu .dropdown-item:focus {
    background-color: #005B81;
    color: #FFFFFF;
}

/* Estados del menú desplegable de Sectores */
.signia-navbar .dropdown-menu .dropdown-item:hover,
.signia-navbar .dropdown-menu .dropdown-item:focus,
.signia-navbar .dropdown-menu .dropdown-item:active,
.signia-navbar .dropdown-menu .dropdown-item.active {
    background-color: #005B81 !important;
    color: #FFFFFF !important;
}