@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600;700;800&family=Rubik:wght@300;400;500;600&display=swap');
*{
    margin:0;
    padding:0;
}

:root {
/* --gradient: linear-gradient(135deg, #00447A, #18566A); */
--gradient: linear-gradient(135deg, #00447A, #024478);
--primary-color:#00447A;
--secondary-color: #794afa;
--secondary-dark-color: #453c5c;
--white-color:#ffffff;
--light-bg-color: #f2f3f5;
--light-text-color: #7c899a;
--border-color:#e5e8ec;
--dark-color:#0a021c;
--font-small:13px;
--font-smaller: 11px;
--percent100: 100%;
--percent50: 50%;
--fw3:300;
--fW5:500;
--fW6:600;
--fw7:700;
--fw8:800;
--trans-background-color: background-color .3s, color .3s;
--trans-background: background-color .3s;

/* nuevo css */
/* --color-primary-dark: #1e40af; */
--color-secondary: #64748b;
/* --color-accent: #3b82f6; */
--color-background: #f8fafc;
--color-white: #ffffff;
--shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
--shadow-md: 0 4px 6px rgba(0,0,0,0.1);
--shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
--radius: 8px;
}

body {
font-family: 'Rubik',sans- serif;
font-size: 16px; font-weight: 400; line-height: 1.4;
color: var (--dark-color);
background-color: var (--white-color);
margin: 0;
}
a{
text-decoration:none;
color: inherit;
-webkit-tap-highlight-color: transparent;}
ul{
list-style:none;}I
img {
max-width: var(--percent100); vertical-align:middle;}
strong {font-weight:var (--fw8);}
table {border-collapse:collapse;
border-spacing:0;}
input::placeholder{
    font: inherit;
}

h1, h2, h3, h4 {
font-family:'Poppins';}
h1{font-size:
calc(1.3em + 1vw);
font-weight: var (--fw8);line-height:1;}
h2{font-size: 2.5em;}
h3{
font-size: 1.2em; font-weight: var (--fw7);
color: #1F1F1F;}
h4{font-size:1em;
font-weight:var(--fW6)
}


.container {
    max-width:1280px;
    margin:0 auto;
    padding:0 0.938em;}
    .column {
    margin-left:-0.938em;
    margin-right:- 0.938em;
}
.column .row {
padding:0 0.938em;}
.flexwrap {
display:
flex;
flex-wrap: wrap;}
.flexcenter { display:
flex;
align-items:
center;
justify-content: center;}
.flexitem { display:flex;
align-items:center;
}
.flexcol {
display: flex;
flex-direction: column;
gap: 1em;}

.main-links a:hover{
    color: var(--secondary-color);
}
.second-links a:hover{
    color: var(--light-text-color);
}
.icon-small, .icon-large{
display: flex;
align-items: center;
padding: 0 0.25em;
font-weight: normal;
}
.icon-small{
    font-size: 1.25em;
    margin-left: auto;
}
.icon-large{
    font-size: 1.75em;
    padding: 0.0.75em!important;
}
.mobile-hide{
    display: none;
}

/* header */

:where(.off-canvas, header) li > a {
    display: flex;
    position: relative;
    line-height: inherit;
}


/* headertop */

.header-top .wrapper{
    font-size: var(--font-small);
    font-weight: var(--fw3);
    justify-content: space-between;
    line-height: 42px;
}
.header-top .wrapper ul{
    gap: 2em;
}
.header-top li {
    position: relative;
}
.header-top ul ul{
    position: absolute;
    left: -1em;
    line-height: 2em;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    z-index: 1;
    display: none;
}
:where(.header-top, .thetop-nav) .right ul ul li a{
    padding: 0.25em 1em;
}
:where(.header-top, .thetop-nav) .right ul ul li.current a{
    background-color: var(--border-color);
}
.header-top li:hover ul{
    display: block;
}
.header-nav{
    padding: 0.5em 0;
    margin-bottom: 1.5em;
    border-bottom: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm);
}
.trigger{
    font-size: 1.5em;
    display: flex;
    padding: 0.25em;
    margin-right: 0.5em;
}
.logo{
    font-family: 'Poppins';
    font-size: 1.5em;
   position: relative;
   font-weight: var(--fw8);
   display: flex; 
   padding-left: 0.7em;
   /* margin-right: 2em; */
}
/* .circle{
    position: absolute;
    top: -15px;
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--percent50);
    background-color: var(--light-bg-color);
    z-index: -1;
}
.circle::before{
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
} */
.header-nav nav > ul {
    /* line-height: 85px; */
    line-height: 70px;
    gap: 2em;
}
.fly-item{
    position: absolute;
    height: 16px;
    font-weight: var(--font-smaller);
    padding: 1px;
    text-align: center;
    line-height: 15px;
    color: var(--white-color);
}
nav .fly-item{
    top: 50%;
    margin-top: -24px;
    width: 30px;
    border-radius: 3px;
    right: -32px;
    background-color: var(--primary-color);
}
.header-nav .right{
    position: relative;
    margin-left: auto;
}
.header-nav .right .icon-large{
    position: relative;
}
.header-nav .right .fly-item{
    top: 0;
    right: 16px;
    width: 16px;
    background-color: var(--primary-color);
    border-radius: var(--percent50);
    font-size: var(--font-smaller);
    background: linear-gradient(to right, #00447A, #0c81db, #4a8bf4);
}


/* Header main departamentos y categorias */
.header-main{
    /* background-color: var(--secondary-dark-color); */
    background-image: var(--gradient);
    background-image: linear-gradient(135deg, #00447A, #1664A4) !important;
    padding: 1em 0;
    margin-bottom: 2em;

}
.dpt-cat{
    position: relative;
    z-index: 10;
}
.dpt-cat .dpt-head{
    position: relative;
    width: 300px;
    /* width: 254px; */
    padding: 0.74em 1.5em;
    background-color: var(--primary-color);
    border-radius: 7px 7px 0 0;
    color: var(--white-color);
    margin-bottom: -1em;
}
.dpt-cat .dpt-head .mini-text{
    color:  var(--light-bg-color);
}
.dpt-cat .dpt-trigger{
    position: absolute;
    right: 0;
    top: 0;
    padding: 1.3em;
    height: 60px;
    /* width: 60px; */
}
 /* Menu departamentos y secciones */
.dpt-menu > ul > li a {
    font-size: var(--font-small);
    height: 46px;
    align-items: center;
}
.dpt-menu .has-child:hover ul{
    display: block;
}
.dpt-menu .has-child li a:hover{
    text-decoration: underline;
}

.page-home .dpt-cat .dpt-trigger,
.dpt-trigger .ri-close-line,
.showdpt .dpt-trigger .ri-menu-3-line{
    display: none;
}
.showdpt .dpt-trigger .ri-close-line{
    display: block;
}

.mini-text{
    font-size: var(--font-smaller);
    color: var(--light-text-color);
}
.header-main .right{
    flex: 1;
}
.sBuscar{
    position: relative;
}
.sBuscar input{
    line-height: 3.25em;
    padding: 0 7em 0 4.5em;
    border: 0;
    outline: 0;
    width: var(--percent100);
    border-radius: 7px;
    font-size: 0.9em;
    font-weight: var(--fw3);
}
.sBuscar :where(span,button){
    position: absolute;
    top: 0;
    padding: 0.55em 1.5em;
    font-size: 1em;
    color: var(--light-text-color);
    height: var(--percent100);
}
.sBuscar button{
    right: 0;
    border: 0;
    outline: 0;
    font-size: 0.875em;
    font-weight: var(--fw6);
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 0 7px 7px 0;
    cursor: pointer;
    transition: var(--dark-color);
}
.sBuscar button:hover{
    background-color: var(--dark-color);
}


/* responsive */
.site-off{
    position: fixed;
    width: 320px;
    height: var(--percent100);
    background-color: var(--white-color);
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .4s, visibility .4s;
    will-change: transform, visibility;

}
.showmenu .site-off{
    transform: translateX(0);
    visibility: visible;
    transform: .4s 0s, visibility 0s 0s;
    box-shadow: 2px 2px 5px rgb(0 0 0 / 15%);
}
.off-canvas{
    /* width: var(--percent100); */
    height: var(--percent100);
    touch-action: auto;
    padding: 1.5em;
}
.off-canvas .canvas-head{
    color:  var(--white-color);
    display: flex;
    justify-content: space-between;
    padding: 1.5em;
    margin: -1.5em -1.5em 1.5em;
    /* background-color: var(--secondary-dark-color); */
    background-image: var(--gradient);
    background-image: linear-gradient(135deg, #00447A, #1664A4) !important;
    border-bottom-right-radius: 160px 25px;
}
.off-canvas .canvas-head .logo{
    z-index: 10;
    position: relative;
}
.circle {
    /* background-image: linear-gradient(45deg, #17173F, #00447A); */
    background: linear-gradient(to right, #00447A, #0c81db, #4a8bf4);
    -webkit-background-clip: text;
    color: transparent;
}  
.off-canvas .canvas-head .logo .circle{
    opacity: .75;
    color: white;
}
.t-close{
    font-size: 1.25em;
    width: 32px;
    height: 32px;
    border-radius: var(--percent50);
    background-color: var(--primary-color);
    color: var(--white-color);
    transition: var(--trans-background-color);
}
.t-close:hover{
    background-color: var(--white-color);
    color: var(--secondary-dark-color);
    opacity: .75;
}
.off-canvas .dpt-head{
    font-size: var(--font-small);
    padding: 1em;
    text-align: center;
    background-color: var(--light-bg-color);
    border-radius: 7px 7px 0 0;
}
.off-canvas .has-child > :where(ul, .mega) {
    font-size: var(--font-small);
    font-weight: var(--fw3);
    line-height: 28px;
    padding-left: 3em;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.off-canvas .expand > :where(ul, .mega){
    max-height: 2000px;
}

.off-canvas .thetop-nav ul, .off-canvas nav > ul {
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--font-small);
    line-height: 36px;
    padding-top: 1.25em;
    margin: 1.25em 0;
    border-top: 1px solid var(--border-color);
}
.off-canvas nav .mega{
    padding: 0;
}
.off-canvas .has-child .icon-small{
    padding: 0.5em;
    line-height: initial;
}
.off-canvas .dpt-menu .icon-small i {
    transform: rotate(90deg);
}
.off-canvas .has-child{
    width: var(--percent100);
}
.off-canvas .thetop-nav .right > ul > :where(:nth-child(4), li:nth-child(5)) > a {
    display: none;
}
.off-canvas .thetop-nav .right ul ul{
    display: flex;
    flex-direction: row;
}
.off-canvas .thetop-nav .right ul ul li a{
    padding: 0.5em;
    border: 1px solid var(--border-color);
    line-height: 16px;
    margin: 0 0.5em 0.5em 0;
}

/* aaa */


.slider .item{
    position: relative;
    height: 300px;
}
.slider .image {
    width: 100%;
    height: 100%;
}
.slider .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
    border-radius: 15px;
}

.cart-total{
    color: var(--secondary-dark-color);
}
.ri-shopping-cart-line{
    color: var(--secondary-dark-color);
}
/*  fin producto */
.sectop{
    border-bottom: 1px solid var(--border-color);
    width: 90%;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 1200px;
}
.sectop h2{
    font-size: 2em;
   
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 1em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    background-color: #ffffff;
    /* border: 1px solid #ddd; */
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    transition: .4s;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
}
.product-item:hover {
    transform: scale(1.05);

}

.image-container {
    flex: 1;
    max-width: 150px; /* Ajusta el tamaño máximo de la imagen */
    margin-right: 20px; /* Espacio entre la imagen y los detalles */
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
   
}
/* .image-container img:hover {
    transform: scale(1.1);
} */

.product-details {
    flex: 2; /* Ajusta el espacio que ocupa el contenido a la derecha */
    text-align: left;
}
.product-details p{
    font-size: 15px;
}

.product-details h3 {
    font-size: var(--font-small);
    margin: 0 0 10px 0;
    color: #333;
}

.price {
    margin: 10px 0;
}

.current-price {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    margin-left: 10px;
    color: #777;
}

.disponibilidad {
    color: #ff6f00;
    margin-left: 10px;
    font-weight: bold;
}

.rating {
    margin: 10px 0;
}

.rating span {
    font-size: 16px;
}

.sold {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 14px;
    padding: 1rem;
}
.sold i{
    background-color: #F6F7F9;
    font-size: 1.25em;
    width: 42px;
    height: 42px;
    border-radius: var(--percent50);
    background-color: #F1F5F9   ;
    color: var(--dark-color);
    transition: var(--trans-background-color);
    padding: 1rem;
    margin-right: 8px;
}
.sold i:hover{
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* menu abajo barra */

.menu-bottom{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgb(0 0 0 / 10%);
    z-index: 900;
}
.menu-bottom nav li{
    flex: 1;
}
.menu-bottom nav li a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5em 0;
    color: var(--light-text-color);
    transition: var(--trans-background-color);
}
.menu-bottom nav li a:hover{
    color: var(--dark-color);
}
.menu-bottom nav li a span{
    font-size: var(--font-smaller);
}
.menu-bottom nav li a i{
    font-size: 1.25em;
}
.menu-bottom .fly-item{
    right: 50%;
    width: 16px;
    border-radius: var(--percent50);
    margin-right: -20px;
    background-color: var(--primary-color);
}
.cartAbajo{
    line-height: 13px;
}
/* buscador abajo */
.search-bottom{
    position: fixed;
    bottom: 60px;
    width: var(--percent100);
    padding: 1.5em 0;
    /* background-color: var(--secondary-dark-color); */
   background-color: #F6F7F9;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    will-change: visibility, opacity;
}
.showsearch .search-bottom{
    visibility: inherit;
    opacity: 1;
}
.buscarAbajo{
    width: 90%;
    margin: 0 auto;
}
.search-bottom .t-close{
    position: absolute;
    top: -45px;
    right: 0;
}
.search-bottom .t-close:hover{
    background-color: var(--primary-color);
}
/* articulo.html */
.reIndex{
    color: var(--light-text-color);
}
/* modal producto */
.modalP {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modalP-contenido {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.Agotado{
    display: none;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00447A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
    }
    
    .loading-text {
    font-size: 1.2rem;
    color: #333;
    }
    
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }
@media screen and (min-width:992px){
    .container{
        padding: 0 2em;
    }
    .desktop-hide{
        display: none;
    }
    .mobile-hide{
        display: block;
    }
    .logo a{
        margin-right: 2em;
    }
    .header-nav{
        padding: 0;
        margin: 0;
        border-bottom: 0;
    }
    /* .header-nav .right li > a {
        margin-left: 1em;
        
    }  */
    .header-main .right{
        max-width: 600px;
        margin-left: auto;
    }
    /* Menu departamentos y secciones */
    .dpt-menu{
        position: absolute;
        top: var(--percent100);
        width: 300px;
        background-color: var(--white-color);
        border: 1px solid var(--border-color);
        border-top: 0;
        border-bottom: 0;
    }
    .dpt-menu > ul > li > a{
        font-weight: var(--fw5);
        padding: 0 1.5em;
        padding-left: .5em;
        border-bottom: 1px solid var(--border-color);
    }
    .dpt-menu .has-child > ul, .dpt-menu .mega{
        position: absolute;
        top: 0;
        left: var(--percent100);
        width: var(--percent100);
        height: auto;
        min-height: var(--percent100);
        /* padding: 1.5em; */
        padding-left: 1.5em;
        font-size: var(--font-small);
        line-height: 2.5em;
        border: 1px solid var(--border-color);
        border-top: 0;
        display: none;
    }
    /* mostrar primer submenu */
    .dpt-menu .mega {
        display: block;
    }


    .dpt-menu .has-child > :where(ul,.mega)::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        background: linear-gradient(90deg   ,  rgb(245, 246, 249) 35%, rgb(255, 255, 255) 70%);
        opacity: 1;
    }
    .dpt-menu .mega{
        width: auto;
        min-width: var(--percent100);

    }
    .dpt-menu .has-child:hover .mega{
        display: flex;
    }

    /* slider imagen main */
    .slider > div > .wrapper{
        /* no borrar */
        /* width: calc(100% - (300px + 2em)); */
        margin-left: auto;
    }
    /* productos */
    .trending .products{
        flex: 0 0 33.3333%;
    }
    .products.big .media{
        max-height: 373px;
    }    
    /* departamentos */
    #page:not(.page-home) .dpt-menu{
        display: none;
    }
    #page.showdpt .dpt-menu {
        display: block;
    }
    
}
@media screen and (max-width:750px){
    .slider .image img {
        height: auto;
    }
    .product-item{
        padding: 0;
    }
    .product-grid{
        padding: 0;
        margin-bottom: 75px !important;
    }
    .slider .item{
        height: auto;
    }
    .flexitem img{
        width: 35px!important;
        display: none;
    }.logo{font-size: 1.3em;
        margin-left: -20px;
    }
    .icon-large{font-size: 1.5em;}
   
}@media screen and (max-width:990px){
    .pie-pagina{
        margin-bottom: 55px;
    }
    /* .slider .image img {
        object-fit: none;
    } */
}
/* nuevo css */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.seccion {
    padding: 35px 0;
}

.seccion-gris {
    background-color: var(--color-background);
}

.titulo {
    font-size: 2.5rem;
    color: #2a3a6c;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tarjeta {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tarjeta-titulo {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tarjeta-texto {
    color: var(--color-secondary);
    line-height: 1.6;
}

.lista {
    list-style: none;
}

.lista-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.lista-item::before {
    content: '✓';
    color: var(--color-accent);
    margin-right: 1rem;
    font-weight: bold;
}

.imagen-sistema {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.seccion-contacto {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.boton {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pie-pagina {
    background-image: var(--gradient);
    color: var(--color-white);
    padding: 2rem 0
}

.pie-pagina-grid {
    /* display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; */
    justify-content: space-between;
  display: flex;
}

.pie-pagina-titulo {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pie-pagina-texto {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.redes-sociales {
    display: flex;
    gap: 1rem;
}

.red-social {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.red-social:hover {
    color: var(--color-white);
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.caracteristica {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.caracteristica:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.caracteristica-titulo {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sistema-info {
    padding: 2rem;
}

.sistema-titulo {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.check-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.check-icon {
    color: #22c55e;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .grid-3, .grid-2, .pie-pagina-grid {
        grid-template-columns: 1fr;
    }
    .pie-pagina-grid{
        gap: 2rem;
        display: grid;
    }
    .titulo {
        font-size: 2rem;
    }

    .seccion {
        padding: 40px 0;
    }

    .caracteristicas-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.6s ease forwards;
}