﻿body {
}


/* ==========================================================
   NEXO - TEMA PRINCIPAL
   Paleta inspirada en aplicaciones financieras modernas
   ========================================================== */

:root {
    /* COLORES PRINCIPALES */
    --bs-primary: #2854BD;
    --bs-primary-rgb: 40, 84, 189;
    --bs-info: #39A9E0;
    --bs-info-rgb: 57, 169, 224;
    --bs-dark: #1E429B;
    --bs-dark-rgb: 30, 66, 155;
    /* SUPERFICIES */
    --bs-body-bg: #F5F7FC;
    --bs-body-color: #24324B;
    --nexo-white: #FFFFFF;
    --nexo-background: #F5F7FC;
    --nexo-surface: #FFFFFF;
    --nexo-surface-soft: #EDF2FC;
    /* ESCALA AZUL */
    --nexo-blue-900: #16377F;
    --nexo-blue-800: #1E429B;
    --nexo-blue-700: #2854BD;
    --nexo-blue-600: #356DD0;
    --nexo-blue-500: #39A9E0;
    --nexo-blue-100: #E8F0FF;
    /* DEGRADADO DEL HEADER */
    --nexo-header-gradient: linear-gradient( 180deg, #16377F 0%, #1E429B 48%, #2854BD 100% );
    /* DEGRADADO DE ACCIONES */
    --nexo-action-gradient: linear-gradient( 135deg, #2854BD 0%, #39A9E0 100% );
    /* SOMBRAS */
    --nexo-shadow-sm: 0 2px 10px rgba(30, 66, 155, 0.06);
    --nexo-shadow: 0 6px 22px rgba(30, 66, 155, 0.09);
    --nexo-shadow-lg: 0 10px 35px rgba(22, 55, 127, 0.13);
    /* BORDES */
    --nexo-border: #E8EDF6;
    /* RADIOS */
    --nexo-radius-sm: 12px;
    --nexo-radius: 18px;
    --nexo-radius-lg: 24px;
    --nexo-radius-xl: 30px;
    /* NAVEGACIÓN */
    --nexo-navbar-height: 70px;
}


/* ==========================================================
   BASE
   ========================================================== */

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--nexo-background);
    color: var(--bs-body-color);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================
   HEADER
   ========================================================== */

.nexo-header {
    background: var(--nexo-header-gradient);
    color: white;
    padding-bottom: 44px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

    .nexo-header::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: rgba(255,255,255,0.035);
        top: -160px;
        right: -90px;
        pointer-events: none;
    }

    .nexo-header::after {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255,255,255,0.035);
        bottom: -130px;
        left: -90px;
        pointer-events: none;
    }

.nexo-header-content {
    position: relative;
    z-index: 1;
}

.nexo-brand {
    color: white;
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.7px;
}

    .nexo-brand:hover {
        color: white;
    }

.nexo-header-action {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    background: rgba(255,255,255,0.13);
    transition: background .2s;
}

    .nexo-header-action:hover {
        color: white;
        background: rgba(255,255,255,0.23);
    }

    .nexo-header-action .badge {
        font-size: .62rem;
    }


/* ==========================================================
   BUSCADOR
   ========================================================== */

.nexo-search {
    background: rgba(255,255,255,0.97);
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.10);
}

    .nexo-search .form-control,
    .nexo-search .form-select {
        border: 0;
        background: transparent;
        box-shadow: none;
        font-size: .9rem;
        min-height: 42px;
    }

    .nexo-search .form-control {
        padding-left: 12px;
    }

    .nexo-search .btn {
        border-radius: 11px !important;
        min-width: 44px;
    }


/* ==========================================================
   CONTENIDO PRINCIPAL SUPERPUESTO
   ========================================================== */

.nexo-main {
    position: relative;
    z-index: 3;
    margin-top: -28px;
    flex-grow: 1;
}

.nexo-content {
    background: var(--nexo-background);
    border-radius: var(--nexo-radius-xl) var(--nexo-radius-xl) 0 0;
    padding: 26px 20px 30px;
    min-height: 500px;
}


/* ==========================================================
   TITULOS
   ========================================================== */

.nexo-section-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--nexo-blue-900);
    letter-spacing: -0.3px;
}

.nexo-section-subtitle {
    font-size: .82rem;
    color: #77849B;
}


/* ==========================================================
   TARJETAS
   ========================================================== */

.nexo-card {
    background: var(--nexo-white);
    border: 1px solid rgba(40,84,189,0.055);
    border-radius: var(--nexo-radius);
    box-shadow: var(--nexo-shadow-sm);
}

.nexo-card-hover {
    transition: transform .2s, box-shadow .2s;
}

    .nexo-card-hover:hover {
        transform: translateY(-3px);
        box-shadow: var(--nexo-shadow);
    }


/* ==========================================================
   CATEGORÍAS
   ========================================================== */

.nexo-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 30px;
    background: white;
    border: 1px solid #E1E9F8;
    color: var(--nexo-blue-800);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--nexo-shadow-sm);
    transition: all .2s;
}

    .nexo-category i {
        font-size: 1rem;
    }

    .nexo-category:hover,
    .nexo-category.active {
        background: var(--nexo-blue-700);
        border-color: var(--nexo-blue-700);
        color: white;
    }


/* ==========================================================
   BANNER PROMOCIONAL
   ========================================================== */

.nexo-banner {
    position: relative;
    overflow: hidden;
    background: var(--nexo-action-gradient);
    border-radius: var(--nexo-radius-lg);
    color: white;
    padding: 23px;
    box-shadow: var(--nexo-shadow);
}

    .nexo-banner::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        right: -55px;
        top: -60px;
        border-radius: 50%;
        background: rgba(255,255,255,0.12);
    }

.nexo-banner-icon {
    font-size: 4.5rem;
    opacity: .9;
    position: relative;
    z-index: 1;
}


/* ==========================================================
   PRODUCTOS
   ========================================================== */

/*.nexo-product-card {
    height: 100%;
    background: white;
    border: 1px solid rgba(40,84,189,0.06);
    border-radius: 17px;
    overflow: hidden;
    box-shadow: var(--nexo-shadow-sm);
    transition: transform .2s, box-shadow .2s;
}*/
.nexo-product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .nexo-product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--nexo-shadow);
    }

/*.nexo-product-image {
    background: linear-gradient( 145deg, #EDF2FC, #F8FAFF );
    position: relative;
}*/
.nexo-product-image {
    flex-shrink: 0;
}

    .nexo-product-image i {
        color: #A7B9DD;
    }

.nexo-product-card > .p-2 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nexo-product-category {
    font-size: .70rem;
    color: #8995AA;
    font-weight: 600;
}

.nexo-product-name {
    color: #263B63;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nexo-product-price {
    color: var(--nexo-blue-700);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.3px;
}

.nexo-product-shipping {
    color: #298B70;
    font-size: .72rem;
    font-weight: 600;
}


/* ==========================================================
   BOTONES
   ========================================================== */

.btn-primary {
    --bs-btn-bg: #2854BD;
    --bs-btn-border-color: #2854BD;
    --bs-btn-hover-bg: #1E429B;
    --bs-btn-hover-border-color: #1E429B;
    --bs-btn-active-bg: #16377F;
    --bs-btn-active-border-color: #16377F;
}

.nexo-btn {
    background: var(--nexo-action-gradient);
    color: white;
    border: none;
    border-radius: 11px;
    font-weight: 650;
    padding: 9px 14px;
}

    .nexo-btn:hover {
        color: white;
        opacity: .92;
    }


/* ==========================================================
   BENEFICIOS
   ========================================================== */

.nexo-benefit {
    text-align: center;
    padding: 15px 5px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--nexo-shadow-sm);
}

    .nexo-benefit i {
        font-size: 1.55rem;
        color: var(--nexo-blue-700);
    }

    .nexo-benefit span {
        display: block;
        font-size: .72rem;
        font-weight: 650;
        margin-top: 7px;
        color: #52617D;
    }


/* ==========================================================
   NAVEGACIÓN INFERIOR
   ========================================================== */

.nexo-bottom-nav {
    min-height: var(--nexo-navbar-height);
    background: linear-gradient( 180deg, #2854BD 0%, #1E429B 100% );
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 7px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));
    z-index: 1050;
}

.nexo-nav-container {
    max-width: 960px;
}

.nexo-nav-item {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    font-size: .68rem;
    font-weight: 550;
    transition: color .2s;
}

    .nexo-nav-item i {
        font-size: 1.3rem;
    }

    .nexo-nav-item:hover,
    .nexo-nav-item.active {
        color: white;
    }

.nexo-nav-qr {
    width: 48px;
    height: 48px;
    margin-top: -23px;
    border-radius: 16px;
    background: white;
    color: var(--nexo-blue-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 5px 15px rgba(0,0,0,.20);
    border: 3px solid #2854BD;
}

.nexo-nav-item:hover .nexo-nav-qr {
    color: var(--nexo-blue-600);
}


/* ==========================================================
   SPINNER
   ========================================================== */

#spinner {
    backdrop-filter: blur(3px);
}


/* ==========================================================
   CINTA DE DESARROLLO
   ========================================================== */

/*#cintaEntorno {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;
    background: #1E429B;
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    text-align: center;
    border-radius: 0 0 0 10px;
    opacity: .9;
}*/


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (min-width: 768px) {

    .nexo-header {
        padding-bottom: 55px;
    }

    .nexo-content {
        padding: 32px;
        border-radius: var(--nexo-radius-xl);
        box-shadow: var(--nexo-shadow);
        margin-bottom: 25px;
    }

    .nexo-main {
        margin-top: -35px;
    }

    .nexo-product-name {
        font-size: .95rem;
    }
}

@media (max-width: 380px) {

    .nexo-content {
        padding: 22px 13px;
    }

    .nexo-product-price {
        font-size: 1rem;
    }

    .nexo-nav-item {
        font-size: .63rem;
    }
}


















/****************************************************
    AGREGADO ESPECIFICO PARA LA BILLETERA VIRTUAL
****************************************************/

/* ==========================================================
   NEXO BILLETERA - INTERFAZ FINANCIERA
   ========================================================== */


/* ==========================================================
   HEADER FINANCIERO
   ========================================================== */

.nexo-header {
    background: var(--nexo-header-gradient);
    color: white;
    padding-bottom: 55px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.nexo-header-content {
    position: relative;
    z-index: 1;
}

.nexo-header::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.nexo-header::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}


/* ==========================================================
   AVATAR
   ========================================================== */

.nexo-user-avatar {
    width: 43px;
    height: 43px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 1.35rem;
}


/* ==========================================================
   ACCIONES HEADER
   ========================================================== */

.nexo-header-action {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.10);
    font-size: 1.2rem;
    transition: background .2s;
    cursor: pointer;
}

    .nexo-header-action:hover {
        color: white;
        background: rgba(255,255,255,.24);
    }

    .nexo-header-action .badge {
        font-size: .62rem;
    }


/* ==========================================================
   SALDO
   ========================================================== */

.nexo-balance-card {
    position: relative;
    padding: 19px 20px;
    border-radius: 21px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    backdrop-filter: blur(8px);
}

.nexo-balance-amount {
    font-size: clamp(1.8rem, 6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    white-space: nowrap;
}

.nexo-balance-currency {
    font-size: 1.4rem;
    margin-right: 3px;
}

.nexo-balance-amount sup {
    font-size: .55em;
    font-weight: 650;
    vertical-align: super;
    margin-left: 2px;
}


/* ==========================================================
   ACCIONES FINANCIERAS
   ========================================================== */

.nexo-finance-action {
    height: 100%;
    min-height: 105px;
    padding: 13px 4px;
    background: white;
    border: 1px solid rgba(40,84,189,.07);
    border-radius: 16px;
    box-shadow: var(--nexo-shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-align: center;
    color: var(--nexo-blue-800);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 650;
    transition: transform .2s, box-shadow .2s;
}

    .nexo-finance-action:hover {
        color: var(--nexo-blue-700);
        transform: translateY(-3px);
        box-shadow: var(--nexo-shadow);
    }

.nexo-action-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: var(--nexo-blue-100);
    color: var(--nexo-blue-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}


/* ==========================================================
   CONTENIDO
   ========================================================== */

.nexo-main {
    position: relative;
    z-index: 3;
    margin-top: -28px;
    flex-grow: 1;
}

.nexo-content {
    background: var(--nexo-background);
    border-radius: var(--nexo-radius-xl) var(--nexo-radius-xl) 0 0;
    padding: 25px 15px 30px;
    min-height: 500px;
}


/* ==========================================================
   PUBLICACIONES
   ========================================================== */

.nexo-publications-wrapper {
    overflow: hidden;
    padding-bottom: 15px;
}

    .nexo-publications-wrapper .slick-list {
        margin: 0 -5px;
    }

    .nexo-publications-wrapper .slick-slide {
        padding: 0 5px;
    }

    .nexo-publications-wrapper .slick-dots {
        bottom: -15px;
    }

        .nexo-publications-wrapper .slick-dots li button:before {
            color: var(--nexo-blue-700);
            font-size: 8px;
        }

    .nexo-publications-wrapper .slick-prev:before,
    .nexo-publications-wrapper .slick-next:before {
        color: var(--nexo-blue-700);
    }


/* ==========================================================
   ACTIVIDADES
   ========================================================== */

#contenedor-actividades {
    min-width: 0;
}

    #contenedor-actividades .table {
        margin-bottom: 0;
    }


/* ==========================================================
   NAVEGACIÓN INFERIOR
   ========================================================== */

.nexo-bottom-nav {
    min-height: 70px;
    background: linear-gradient( 180deg, #2854BD 0%, #1E429B 100% );
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 7px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));
    z-index: 1050;
}

.nexo-nav-container {
    max-width: 960px;
}

.nexo-nav-item {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    font-size: .68rem;
    font-weight: 550;
    transition: color .2s;
}

    .nexo-nav-item i {
        font-size: 1.3rem;
    }

    .nexo-nav-item:hover,
    .nexo-nav-item.active {
        color: white;
    }

.nexo-nav-qr {
    width: 48px;
    height: 48px;
    margin-top: -23px;
    border-radius: 16px;
    background: white;
    color: var(--nexo-blue-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 5px 15px rgba(0,0,0,.20);
    border: 3px solid #2854BD;
}


/* ==========================================================
   SPINNER
   ========================================================== */

#spinner {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #spinner.d-none {
        display: none !important;
    }

    #spinner .spinner-border {
        width: 5rem;
        height: 5rem;
    }


/* ==========================================================
   ESPACIADO INFERIOR
   ========================================================== */

.nexo-bottom-spacing {
    height: 20px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (min-width: 768px) {

    .nexo-header {
        padding-bottom: 60px;
    }

    .nexo-content {
        padding: 32px;
        border-radius: var(--nexo-radius-xl);
        box-shadow: var(--nexo-shadow);
        margin-bottom: 25px;
    }

    .nexo-main {
        margin-top: -35px;
    }

    .nexo-main-no-header {
        margin-top: 0;
    }

    .nexo-finance-action {
        min-height: 120px;
        font-size: .82rem;
    }
}

@media (max-width: 380px) {

    .nexo-content {
        padding: 22px 11px;
    }

    .nexo-finance-action {
        min-height: 95px;
        font-size: .66rem;
    }

    .nexo-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .nexo-balance-card {
        padding: 16px;
    }
}


/* Espacio reservado para la navegación fija */

.nexo-main {
    padding-bottom: 85px;
}

@media (min-width: 768px) {
    .nexo-main {
        padding-bottom: 85px;
    }
}



.nexo-logo {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    vertical-align: -0.2em;
}

.nexo-product-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}










/* ==========================================================
   NEXO - RESULTADOS DE BÚSQUEDA
   ========================================================== */

/*.nexo-search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}*/

.nexo-results-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nexo-results-count {
    color: #77849B;
    font-size: .80rem;
}

/*.nexo-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 3px;
}

    .nexo-filter-bar::-webkit-scrollbar {
        display: none;
    }

.nexo-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 9px 13px;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--nexo-border);
    color: var(--nexo-blue-800);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .nexo-filter-chip.active {
        background: var(--nexo-blue-700);
        color: white;
        border-color: var(--nexo-blue-700);
    }

.nexo-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nexo-sort-select {
    max-width: 185px;
    border: 1px solid var(--nexo-border);
    border-radius: 11px;
    background-color: white;
    color: var(--nexo-blue-800);
    font-size: .78rem;
    font-weight: 600;
    padding: 8px 28px 8px 10px;
    box-shadow: none;
}

.nexo-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #8995AA;
    font-size: .70rem;
}

    .nexo-product-meta i {
        font-size: .8rem;
    }

.nexo-empty-state {
    background: white;
    border: 1px solid var(--nexo-border);
    border-radius: var(--nexo-radius);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--nexo-shadow-sm);
}

.nexo-empty-state-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 20px;
    background: var(--nexo-blue-100);
    color: var(--nexo-blue-700);
    font-size: 1.8rem;
}

@media (min-width: 768px) {
    .nexo-search-results {
        gap: 20px;
    }

    .nexo-results-toolbar {
        padding: 5px 0;
    }
}*/