/* ===========================================================
   Gularis · Personalización de la plantilla Lexend
   Color de marca: rgb(0, 79, 130)  ->  #004F82 (azul Gularis)
   Sobrescribe el primario verde por defecto del tema (#12715B).
   =========================================================== */

:root {
    --color-primary: #004F82;
    --color-primary-10: #f5f9fc;
    --color-primary-25: #eef5f9;
    --color-primary-50: #e6f0f6;
    --color-primary-100: #cce0ec;
    --color-primary-200: #99c2d9;
    --color-primary-300: #66a3c6;
    --color-primary-400: #3385b3;
    --color-primary-500: #004F82;
    --color-primary-600: #003f68;
    --color-primary-700: #002f4e;
    --color-primary-800: #002034;
    --color-primary-900: #00101a;

    --bs-primary: #004F82;
    --bs-primary-rgb: 0, 79, 130;

    /* color usado por estilos propios fx-* heredados de la plantilla */
    --brand-color: #004F82;
}

/* .btn-primary lleva los hex hardcodeados en el tema; hay que rehacerlos */
.btn-primary {
    --bs-btn-bg: #004F82;
    --bs-btn-border-color: #004F82;
    --bs-btn-hover-bg: #003f68;
    --bs-btn-hover-border-color: #003f68;
    --bs-btn-active-bg: #003f68;
    --bs-btn-active-border-color: #002f4e;
    --bs-btn-disabled-bg: #004F82;
    --bs-btn-disabled-border-color: #004F82;
}

.btn-outline-primary {
    --bs-btn-color: #004F82;
    --bs-btn-border-color: #004F82;
    --bs-btn-hover-bg: #004F82;
    --bs-btn-hover-border-color: #004F82;
    --bs-btn-active-bg: #004F82;
    --bs-btn-active-border-color: #004F82;
}

/* Explorador de features */
.fx-feature-explorer {
    position: relative;
}

.fx-feature-shell {
    padding: 0;
    border-radius: 24px;
    background: var(--bs-secondary-bg, #f8fafc);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.fx-feature-shell > .row {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    min-height: clamp(520px, 48vw, 680px);
}

.fx-feature-shell > .row > * {
    width: auto;
    max-width: none;
    height: 100%;
    margin-top: 0;
    padding: 0;
}

.fx-feature-nav-wrap {
    height: 100%;
    align-self: stretch;
    padding: 18px 12px;
    border-radius: 0;
}

.fx-feature-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fx-feature-nav > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111827;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.fx-feature-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    color: #004F82;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.fx-feature-nav > li > a:hover {
    background: rgba(255, 255, 255, .62);
    color: #004F82;
}

.fx-feature-nav > li.uc-active > a {
    background: #fff;
    color: #04223a;
    box-shadow: inset 0 0 0 1px #9cc2da;
}

.fx-feature-nav > li.uc-active .fx-feature-icon {
    background: #fff;
    color: #004F82;
}

.fx-feature-preview {
    min-height: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--bs-secondary-bg, #f8fafc);
    overflow: hidden;
}

.fx-feature-shell #feature-explorer-switcher,
.fx-feature-shell #feature-explorer-switcher > div {
    height: 100%;
}

.fx-feature-preview img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    border-radius: 0;
    filter: none;
}

@media (max-width: 991.98px) {
    .fx-feature-shell > .row {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .fx-feature-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .fx-feature-nav > li > a {
        min-height: 52px;
    }

    .fx-feature-nav-wrap {
        height: auto;
        padding: 12px;
    }

    .fx-feature-preview {
        min-height: clamp(320px, 58vw, 520px);
    }
}

@media (max-width: 575.98px) {
    .fx-feature-shell {
        padding: 0;
        border-radius: 18px;
    }

    .fx-feature-nav {
        grid-template-columns: 1fr;
    }

    .fx-feature-preview {
        min-height: 280px;
    }
}

.fx-hero-badge-icon {
    background: linear-gradient(135deg, #3385b3 0%, #004F82 100%);
}

/* ===========================================================
   Banner: botón de play con overlay sobre la imagen del hero
   =========================================================== */
.fx-video-wrap {
    position: relative;
}

.fx-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 79, 130, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 14px 34px rgba(0, 79, 130, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .fx-video-play::before {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.55);
        animation: fx-video-pulse 2.2s ease-out infinite;
    }

    .fx-video-play i {
        font-size: 1.9rem;
        margin-left: 4px;
    }

    .fx-video-play:hover {
        transform: translate(-50%, -50%) scale(1.06);
        background: #004F82;
    }

@keyframes fx-video-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.fx-video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 20, 0.88);
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .fx-video-overlay.is-open {
        display: flex;
    }

    .fx-video-overlay .fx-video-frame {
        position: relative;
        width: min(1100px, 94vw);
    }

    #fx-video-target {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 */
    }

        #fx-video-target iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            border-radius: 14px;
        }

    .fx-video-overlay .fx-video-close {
        position: absolute;
        top: -44px;
        right: 0;
        background: transparent;
        border: 0;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 2;
    }

/* ===========================================================
   Reseñas / feedback (estilo "prueba Google" + slider)
   =========================================================== */
.fx-google-proof {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    height: 100%;
}

.fx-google-proof-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fx-google-proof-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #d0d5dd;
}

.fx-google-proof-name {
    margin: 0;
    font-weight: 700;
    color: #101828;
}

.fx-google-proof-meta {
    margin: 0;
    font-size: 0.75rem;
    color: #667085;
}

.fx-google-proof-text {
    margin: 0;
    color: #344054;
    line-height: 1.35;
    font-size: 0.88rem;
}

.fx-google-proof-stars {
    display: inline-flex;
    gap: 2px;
    color: #fbbc04;
    margin-bottom: 6px;
}

.fx-google-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: #101828;
}

    .fx-google-score .fa-google {
        color: #004F82;
    }

    .fx-google-score .fx-google-score-stars {
        color: #fbbc04;
    }

.fx-review-slider {
    position: relative;
    width: 100%;
    padding: 0 44px;
}

.fx-review-viewport {
    overflow: hidden;
}

.fx-review-track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.fx-review-slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 6px;
}

.fx-review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #101828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
    cursor: pointer;
}

.fx-review-nav--prev {
    left: 0;
}

.fx-review-nav--next {
    right: 0;
}

.fx-review-nav:hover {
    background: #f9fafb;
}

@media (max-width: 991px) {
    .fx-review-slider {
        padding: 0 40px;
    }

    .fx-review-slide {
        flex-basis: 50%;
    }
}

@media (max-width: 639px) {
    .fx-review-slider {
        padding: 0 32px;
    }

    .fx-review-slide {
        flex-basis: 100%;
    }
}

/* ===========================================================
   Botón flotante de WhatsApp (abajo-derecha, aparece a los 3s)
   =========================================================== */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

    .whatsapp-button img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .whatsapp-button.is-visible {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

/* ===========================================================
   Landings internas: botones, tarjetas de feature y stats
   =========================================================== */
.fx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #004F82;
    color: #fff;
    text-decoration: none;
    padding: 10px 10px 10px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(0, 79, 130, 0.22);
    transition: all 0.2s ease;
}

    .fx-btn-primary:hover {
        color: #fff;
        transform: translateY(-1px);
    }

.fx-btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #004F82;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fx-fact-card {
    border: 1px solid #e4e8ef;
    background-color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

    .fx-fact-card:hover {
        transform: translateY(-3px) scale(1.02);
        background: #004F82;
        box-shadow: 0 16px 30px rgba(0, 79, 130, 0.24);
    }

        .fx-fact-card:hover h3,
        .fx-fact-card:hover p,
        .fx-fact-card:hover span,
        .fx-fact-card:hover i {
            color: #ffffff !important;
        }

        .fx-fact-card:hover .bg-opacity-10 {
            background-color: rgba(255, 255, 255, 0.2) !important;
        }

.fx-google-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #cfd8e3 !important;
    background: #ffffff !important;
    color: #101828 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

    .fx-google-start-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(66, 133, 244, 0.07);
        opacity: 0;
        transition: opacity 0.18s ease;
    }

    .fx-google-start-btn:hover {
        color: #101828 !important;
        border-color: #4285f4 !important;
        box-shadow: 0 4px 12px rgba(66, 133, 244, 0.10);
    }

    .fx-google-start-btn:hover::before {
        opacity: 1;
    }

    .fx-google-start-btn:focus-visible {
        outline: 3px solid rgba(66, 133, 244, 0.24);
        outline-offset: 3px;
    }

    .fx-google-start-btn__mark {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.08);
        transition: box-shadow 0.18s ease;
    }

    .fx-google-start-btn__icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .fx-google-start-btn__text {
        position: relative;
        z-index: 1;
        font-weight: 700;
    }

    .fx-google-start-btn:hover .fx-google-start-btn__mark {
        box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.16);
    }

/* Tarjetas tipo integracion: elevacion + sombra al hover */
.gs-hover-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    will-change: transform;
}
.gs-hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(0, 79, 130, 0.25);
}

/* ===========================================================
   Fondo degradado oscuro reutilizable (banner / secciones)
   Uso: <div class="... gs-bg-gradient-dark"> + texto claro
   (combínalo con uc-dark o gs-on-dark para el texto en blanco)
   =========================================================== */
.gs-bg-gradient-dark {
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(20,140,220,.55) 0%, rgba(0,79,130,.30) 38%, rgba(0,79,130,0) 72%),
        radial-gradient(820px 420px at 88% 6%, rgba(0,196,180,.18) 0%, rgba(0,196,180,0) 60%),
        linear-gradient(180deg, #05314f 0%, #04223a 55%, #021526 100%);
}

/* Helper para texto claro sobre fondos oscuros */
.gs-on-dark,
.gs-on-dark h1, .gs-on-dark h2, .gs-on-dark h3,
.gs-on-dark h4, .gs-on-dark h5, .gs-on-dark p,
.gs-on-dark .title { color: #fff; }
.gs-on-dark .desc, .gs-on-dark .opacity-70 { opacity: .8; }

/* ===========================================================
   Menú superior sobre hero oscuro (solo mientras está transparente,
   sin scroll). Se activa con .gs-has-dark-hero en el <header>.
   =========================================================== */
/* Solo los enlaces de primer nivel y los botones de la derecha en blanco
   (NO el contenido de los desplegables, que tienen su propio fondo claro) */
.gs-has-dark-hero .uc-navbar-transparent .uc-navbar-nav > li > a,
.gs-has-dark-hero .uc-navbar-transparent .uc-navbar-right a,
.gs-has-dark-hero .uc-navbar-transparent .uc-logo {
    color: #fff;
}
.gs-has-dark-hero .uc-navbar-transparent .uc-navbar-nav > li > a .uc-navbar-parent-icon svg polyline {
    stroke: #fff;
}
.gs-has-dark-hero .uc-navbar-transparent .gs-logo-color,
.gs-has-dark-hero .uc-navbar-transparent .gs-logo-dark {
    display: none !important;
}
.gs-has-dark-hero .uc-navbar-transparent .gs-logo-white {
    display: inline-block !important;
}

/* Modo oscuro: los desplegables del menú se muestran en claro para que se lean bien */
.dark .uc-navbar-dropdown {
    background-color: #fff !important;
    color: #1a1a1a !important;
}
.dark .uc-navbar-dropdown a,
.dark .uc-navbar-dropdown h6 {
    color: #1a1a1a !important;
}
.dark .uc-navbar-dropdown a:hover {
    background-color: rgba(0, 0, 0, .05) !important;
}

/* Refuerzo de cascada para estilos inline heredados de la home */
/* Feature explorer: opciones (pestañas) horizontales arriba + imagen debajo */
#feature_explorer .fx-feature-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
}
#feature_explorer .fx-feature-tabs > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
#feature_explorer .fx-feature-tabs > li > a:hover {
    color: #004F82;
    background: rgba(0, 79, 130, .06);
}
#feature_explorer .fx-feature-tabs > li.uc-active > a {
    background: #fff;
    color: #04223a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}
#feature_explorer .fx-feature-stage {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
#feature_explorer .fx-feature-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

/* Pestañas en móvil: se reparten en varias líneas, centradas (sin scroll) */
@media (max-width: 767.98px) {
    #feature_explorer .fx-feature-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    #feature_explorer .fx-feature-tabs > li > a {
        padding: 8px 12px;
        gap: 6px;
        font-size: .9rem;
    }
    #feature_explorer .fx-feature-tabs .fx-feature-icon {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }
}

#feature_explorer .fx-feature-shell {
    background: var(--bs-secondary-bg, #f8fafc);
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    padding: 0;
}

#feature_explorer .fx-feature-shell > .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

#feature_explorer .fx-feature-shell > .row > * {
    height: 100%;
    margin-top: 0;
    padding: 0;
}

#feature_explorer .fx-feature-nav-wrap.bg-secondary {
    background: var(--bs-secondary-bg, #f8fafc);
    height: 100%;
    align-self: stretch;
    padding: 18px 12px;
    border-radius: 0;
}

#feature_explorer .fx-feature-icon,
#feature_explorer .fx-feature-nav > li.uc-active .fx-feature-icon {
    background: #fff;
}

#feature_explorer #feature-explorer-switcher,
#feature_explorer #feature-explorer-switcher > div {
    height: 100%;
}

#feature_explorer .fx-feature-preview {
    min-height: 100%;
    align-items: stretch;
    padding: 0;
    background: var(--bs-secondary-bg, #f8fafc);
    border: 0;
}

#feature_explorer .fx-feature-preview img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 991.98px) {
    #feature_explorer .fx-feature-shell {
        border-radius: 20px;
    }

    #feature_explorer .fx-feature-shell > .row {
        min-height: 0;
    }

    #feature_explorer .fx-feature-nav-wrap.bg-secondary {
        height: auto;
        padding: 12px;
    }

    #feature_explorer .fx-feature-preview {
        min-height: clamp(320px, 58vw, 520px);
    }
}

@media (max-width: 575.98px) {
    #feature_explorer .fx-feature-shell {
        border-radius: 18px;
    }

    #feature_explorer .fx-feature-preview {
        min-height: 280px;
    }
}
