/* =========================================================
   GENERAL
========================================================= */

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;

    color: #343a40;

    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

    background: #edf2f9;
}


/* =========================================================
   HEADER
========================================================= */

.market-header {

    background: #ffffff;

    box-shadow: 0 2px 15px rgba(0, 0, 0, .05);

    position: sticky;

    top: 0;

    z-index: 1000;

}


/* =========================================================
   CONTENEDOR INTERNO HEADER
========================================================= */

.market-wrapper {

    width: 100%;

    margin: 0;

    padding-left: 45px;

    padding-right: 45px;

}


/* =========================================================
   LOGO
========================================================= */

.market-logo {

    height: 90px;

    width: auto;

    transition: all .35s ease;

}


.navbar-brand {

    text-decoration: none;

}


.navbar-brand:hover .market-logo {

    transform: scale(1.05);

    filter: drop-shadow(0 8px 18px rgba(13, 110, 253, .25));

}


.market-brand {

    transition: .30s;

}


.market-title {

    font-size: 2rem;

    font-weight: 700;

    color: #123c73;

    line-height: 1;

    letter-spacing: -.5px;

    transition: .30s;

}


.market-subtitle {

    margin-top: 8px;

    display: inline-flex;

    align-items: center;

    padding: 6px 14px;

    border-radius: 50px;

    background: #eef5ff;

    color: #0d6efd;

    font-size: .83rem;

    font-weight: 600;

    transition: .30s;

}


.navbar-brand:hover .market-title {

    color: #0d6efd;

}


.navbar-brand:hover .market-subtitle {

    background: #0d6efd;

    color: #fff;

    transform: translateX(5px);

}


/* =========================================================
   MENÚ
========================================================= */

.navbar {

    min-height: 110px;

}


/* ==========================================
   MENÚ
========================================== */

.navbar-nav {

    gap: 4px;

}

.navbar-nav .nav-link {

    color: #495057;

    font-weight: 600;

    font-size: .95rem;

    padding: 10px 12px;

    margin: 0;

    transition: .25s;

}

.navbar-nav .nav-link:hover {

    color: #0d6efd;

}

.navbar-nav .nav-link.active {

    color: #0d6efd;

}


.navbar-nav .nav-link:hover {

    color: #0d6efd;

}


.navbar-nav .nav-link.active {

    color: #0d6efd;

}


/* =========================================================
   BOTONES
========================================================= */

.btn-market-register,
.btn-market-login {

    border-radius: 12px;

    padding: .60rem 1.45rem;

    font-weight: 600;

    transition: .30s;

}


.btn-market-register:hover,
.btn-market-login:hover {

    transform: translateY(-2px);

}


/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.market-toggler {

    border: none;

    background: transparent;

    color: #123c73;

    font-size: 1.55rem;

    box-shadow: none !important;

    transition: .30s;

}


.market-toggler:hover {

    color: #0d6efd;

    transform: rotate(90deg);

}


.market-toggler:focus {

    box-shadow: none;

}


/* =========================================================
   CONTENIDO PÚBLICO
========================================================= */

main {

    min-height: calc(100vh - 180px);

    background: #edf2f9;
}


/* =========================================================
   FONDO UNIFORME PARA TODAS LAS SECCIONES PÚBLICAS
========================================================= */

main > section {

    background-color: transparent;

}

/* ==========================================
   TABLET
========================================== */

@media (max-width:991.98px) {

    .navbar {

        min-height: 90px;

    }

    .market-logo {

        height: 70px;

    }

    .market-title {

        font-size: 1.60rem;

    }

    /* Ocultamos el subtítulo para ganar espacio */

    .market-subtitle {

        display: none;

    }

    #marketNav {

        margin-top: 20px;
        background: #fff;
        border-radius: 18px;
        padding: 20px;
        box-shadow: 0 12px 30px rgba(0,0,0,.08);

    }

    .navbar-nav .nav-item {

        width: 100%;

    }

    .navbar-nav .nav-link {

        padding: 12px 0;

    }

    .btn-market-register,
    .btn-market-login {

        width: 100%;
        margin-top: 12px;

    }
.market-user-dropdown{

    justify-content:flex-start;
    padding-top:15px;

}

.market-user-info{

    text-align:left !important;

}

.market-user-avatar{

    margin-left:10px;

}

}

/* ==========================================
   CELULARES
========================================== */

@media (max-width:576px) {

    .navbar {

        min-height: 80px;

    }

    .market-logo {

        height: 58px;

    }

    .market-title {

        font-size: 1.35rem;

    }

    .navbar {

        padding-top: .35rem;
        padding-bottom: .35rem;

    }

}

/* ==========================================
   USUARIO AUTENTICADO
========================================== */

.market-user-dropdown{

    display:flex;
    align-items:center;
    text-decoration:none;
    color:inherit !important;

}

.market-user-dropdown::after{

    margin-left:.75rem;

}

.market-user-info{

    display:flex;
    flex-direction:column;
    line-height:1.1;

}

.market-user-label{

    font-size:.70rem;
    color:#6c757d;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.5px;

}

.market-user-name{

    font-size:.90rem;
    font-weight:700;
    color:#123c73;

}

.market-user-avatar{

    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #dbe8ff;
    transition:.30s;

}

.market-user-dropdown:hover .market-user-avatar{

    transform:scale(1.08);
    border-color:#0d6efd;
    box-shadow:0 6px 16px rgba(13,110,253,.20);

}

.dropdown-menu{

    border:none;
    border-radius:14px;
    padding:.60rem 0;
    min-width:240px;

}

.dropdown-item{

    padding:.70rem 1.10rem;
    transition:.20s;

}

.dropdown-item:hover{

    background:#eef5ff;
    color:#0d6efd;

}

.dropdown-divider{

    margin:.35rem 0;

}

/* ==========================================
   FOOTER
========================================== */

.market-footer{

    margin-top:3px;
    border-top:1px solid #e8eef8;
    background:#123c73;
    color:#fff;
    padding:60px 0 5px;
    border-top:5px solid #0d6efd;

}

.market-footer-logo{

    width:83px;
    transition:.30s;

}

.market-footer-logo:hover{

    transform:scale(1.08);

}

.market-footer h5{

    font-weight:700;

}

.market-footer h6{

    font-weight:700;
    margin-bottom:18px;

}

.market-footer p{

    color:#d7e5ff;

}

.market-footer ul li{

    margin-bottom:10px;

}

.market-footer a{

    color:#d7e5ff;
    text-decoration:none;
    transition:.25s;

}

.market-footer a:hover{

    color:#fff;
    padding-left:6px;

}

/*==========================================
  CANAL YOUTUBE
==========================================*/

.market-social{

    margin-top:20px;

}

.youtube-link{

    display:inline-flex;
    align-items:center;
    gap:12px;

    padding:10px 16px;

    background:#ffffff;

    border-radius:12px;

    text-decoration:none;

    transition:.30s;

    border:1px solid rgba(255,255,255,.15);

}

.youtube-link:hover{

    text-decoration:none;

    transform:translateY(-3px);

    box-shadow:0 10px 24px rgba(0,0,0,.18);

}

.youtube-link i{

    font-size:1.8rem;

    color:#ff0000;

}

.youtube-info{

    display:flex;

    flex-direction:column;

    line-height:1.15;

}

.youtube-title{

    font-size:.68rem;

    text-transform:uppercase;

    letter-spacing:.8px;

    color:#7b8794;

    font-weight:600;

}

.youtube-channel{

    font-size:.95rem;

    font-weight:700;

    color:#123c73;

}

.youtube-link:hover .youtube-channel{

    color:#0d6efd;

}

.market-footer-description{

    margin-bottom:auto;

}

.market-copy{

    text-align:center;
    color:#c9d9f7;
    font-size:.90rem;

    margin-top:15px;

}

/* ==========================================================
   MARKETPLACE - CARRITO NAVBAR
   ========================================================== */

.market-cart-link {
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
}


/* CONTENEDOR DEL ICONO */

.market-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
}


/* BADGE CANTIDAD */

.market-cart-badge {
    position: absolute;

    top: -10px;
    right: -12px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e53935;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    border: 2px solid #ffffff;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}


/* OCULTAR BADGE */

.market-cart-badge.d-none {
    display: none !important;
}

/* ==========================================================
   MARKETPLACE - CURSOS PRÓXIMAMENTE
========================================================== */

.market-nav-coming-soon {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.market-coming-soon-badge {
    padding: 3px 7px;
    border-radius: 20px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
}

.market-courses-coming-modal {
    padding: 8px 12px;
}

.market-courses-coming-modal > i {
    display: block;
    margin-bottom: 16px;
    color: #0d6efd;
    font-size: 3rem;
}

.market-courses-coming-modal p {
    margin: 0 0 12px;
    color: #64748b;
    line-height: 1.6;
}

.market-courses-coming-modal span {
    display: inline-block;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ==========================================================
   DROPDOWN - MI CUENTA
========================================================== */

.market-user-dropdown-menu {
    min-width: 210px;
    padding: 8px;
    margin-top: 12px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(36, 58, 82, 0.12) !important;
}

.market-user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #4f6174;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.market-user-dropdown-menu .dropdown-item i {
    width: 18px;
    text-align: center;
    color: #2f7fb8;
}

.market-user-dropdown-menu .dropdown-item:hover {
    background: #eef5fb;
    color: #276b9c;
}

.market-user-dropdown-menu .dropdown-divider {
    margin: 7px 0;
    border-color: #e8eef4;
}


/* CERRAR SESIÓN */

.market-user-dropdown-menu .market-user-logout {
    color: #c94d4d;
}

.market-user-dropdown-menu .market-user-logout i {
    color: #c94d4d;
}

.market-user-dropdown-menu .market-user-logout:hover {
    background: #fff1f1;
    color: #b63f3f;
}

@media (max-width: 1199.98px) {

    .market-wrapper {

        padding-left: 30px;
        padding-right: 30px;

    }

}

@media (max-width: 767.98px) {

    .market-wrapper {

        padding-left: 15px;
        padding-right: 15px;

    }

}

/* ==========================================================
   FONDO GENERAL DEL MARKETPLACE
   Debe ir al FINAL del archivo CSS
========================================================== */

html {
    min-height: 100%;
    background: #edf2f9;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(38, 99, 181, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(38, 99, 181, 0.07),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f4f7fc 0%,
            #edf2f9 45%,
            #f7f9fc 100%
        ) !important;

    background-attachment: fixed;
}


/* ==========================================================
   CONTENIDO PRINCIPAL TRANSPARENTE
   Evita que el contenido público tape el fondo
========================================================== */

main {
    background: transparent !important;
}


/* ==========================================================
   CONTENEDORES PRINCIPALES DEL MARKETPLACE
========================================================== */

.market-main,
.market-content,
.market-public-content,
.market-page {
    background: transparent !important;
}


/* ==========================================================
   MANTENER EL FOOTER CON SU PROPIO FONDO
========================================================== */

.market-footer {
    background: #123c73 !important;
}

/* ==========================================================
   VOLVER A WISPLIBRE
========================================================== */

.market-back-main {

    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    padding: 8px 14px !important;

    border-radius: 10px;

    color: #123c73 !important;

    background: #eef5ff;

    border: 1px solid #dbe8ff;

    font-size: .88rem !important;

    font-weight: 600 !important;

    transition: all .25s ease;

}


/* ICONO */

.market-back-main i {

    font-size: .78rem;

    transition: transform .25s ease;

}


/* HOVER */

.market-back-main:hover {

    background: #123c73;

    color: #ffffff !important;

    border-color: #123c73;

    transform: translateY(-2px);

    box-shadow: 0 7px 18px rgba(18, 60, 115, .18);

}


.market-back-main:hover i {

    transform: translateX(-3px);

}