:root {
    --color-primary: #0090d8; /* Color principal (azul) */
    --color-secondary: #fb6a12; /* Color secundario (naranja) */
    --color-white: #ffffff; /* Blanco */
    --color-black: #000000; /* Negro */
    --color-text: #707070; /* Color de texto gris */
    --header-padding: 100px; /* Padding para el header en pantallas grandes */
    --header-sticky-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra para el header sticky */
    --transition-duration: 0.3s; /* Duración de las transiciones */
}

/* Estilos generales para el header */
#header, #header .header-top {
    background-color: var(--color-primary) !important;
    transition: box-shadow var(--transition-duration) ease; /* Transición para el efecto sticky */
}

/* Estilos para los enlaces del header */
#header a:hover {
    color: var(--color-primary) !important;
}

/* Estilos para los enlaces del menú superior */
#header .top-menu a[data-depth="0"]:hover, a:hover {
    color: var(--color-secondary) !important;
}

/* Estilos para el header sticky */
#header.sticky {
    position: fixed;
    top: 0;
    box-shadow: var(--header-sticky-shadow);
    width: 100% !important;
    z-index: 1000; /* Asegura que el header esté por encima de otros elementos */
}

.header-banner {
    background-color: var(--color-white);
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #333;
    width: 100%;
}

p.header-banner-custom {
    padding-top: 5px;
    margin-bottom: 5px !important;
    font-size: smaller;
}

/* Estilos para la barra de navegación */
nav.header-nav {
    background-color: var(--color-white) !important;
}

/* Estilos para los elementos del dropdown */
a.dropdown-item {
    color: var(--color-white) !important;
}

.popover.sub-menu.js-sub-menu a {
    color: black !important;
}

/* Estilos para el contenedor en pantallas grandes */
@media (min-width: 1200px) {
    .container {
        width: 100% !important;
        max-width: 100%;
    }

    /* nav.header-nav, .header-top, .col-md-6.links {
        padding-left: var(--header-padding) !important;
        padding-right: var(--header-padding) !important;
    } */
    nav.breadcrumb {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }
    .top-menu .sub-menu {
        width: calc(100% - 330px);
        min-width: calc(100% - 330px);
        left: 300px;
    }
    .col-md-6.col-sm-12.store-description {
        margin-top: -94px;
    }
    div#_desktop_order_tracking{
        display: inline-block;
        margin-left: 20px;
    }
}

/* NUEVO: Breakpoint para desktop pequeño (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        width: 100% !important;
        max-width: 100%;
    }

    nav.header-nav, .header-top, .col-md-6.links {
        padding-left: 75px !important;
        padding-right: 75px !important;
    }
    nav.breadcrumb {
        padding-left: 75px !important;
        padding-right: 75px !important;
    }
    .top-menu .sub-menu {
        width: calc(100% - 250px);
        min-width: calc(100% - 250px);
        left: 220px;
    }
    .col-md-6.col-sm-12.store-description {
        margin-top: -70px;
    }
    div#_desktop_order_tracking{
        display: inline-block;
        margin-left: 15px;
    }
    
    #subcategories ul li {
        width: calc(100% / 4 - 20px) !important;
    }
    
    .page-content.card.card-block {
        max-width: 85%;
    }
}

/* NUEVO: Breakpoint para tablets (768px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .container {
        width: 100% !important;
        max-width: 100%;
    }

    nav.header-nav, .header-top, .col-md-6.links {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
    nav.breadcrumb {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
    .top-menu .sub-menu {
        width: calc(100% - 150px);
        min-width: calc(100% - 150px);
        left: 120px;
    }
    .col-md-6.col-sm-12.store-description {
        margin-top: -50px;
    }
    div#_desktop_order_tracking{
        display: inline-block;
        margin-left: 10px;
    }
    
    #subcategories ul li {
        width: calc(100% / 3 - 20px) !important;
    }
    
    .page-content.card.card-block {
        max-width: 90%;
        padding: 28px 20px;
    }
    
    .headerH1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    section#wrapper {
        padding-top: 10px !important;
    }

    .add-to-cart-fixed {
        position: fixed; /* Fija el div en la pantalla */
        bottom: 0; /* Lo coloca en la parte inferior */
        left: 0; /* Lo alinea a la izquierda */
        right: 0; /* Lo alinea a la derecha */
        z-index: 1000; /* Asegura que esté por encima de otros elementos */
        background-color: var(--color-white); /* Fondo blanco */
        padding: 10px; /* Espaciado interno */
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Sombra superior */
    }

    .add-to-cart-fixed .btn {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 100%; /* Evita que se salga de la pantalla */
    }
    #header .top-logo img {
        width: auto;
        max-height: 3rem;
    }
    a.dropdown-item {
        color: #7a7a7a !important;
    }
    figcaption.caption{
        display: none;
    }
    .mi-menu-desktop {
        display: none;
    }
    .mi-menu{
        display: none !important;
    }
    
    /* CORREGIDO: Subcategorías en móvil */
    #subcategories ul li {
        width: calc(100% / 2 - 15px) !important;
    }
}

/* Estilos para la sección principal */
section#wrapper {
    background-color: var(--color-white) !important;
    padding-top: 60px; /* Ajusta según la altura real del header */
}

/* Reset de márgenes */
body {
    margin: 0;
}

/* Para pruebas de scroll */
.content {
    height: 2000px; /* Solo para probar el scroll */
}

/* Estilos para la fila de firma */
.row.firma {
    background-color: var(--color-primary) !important;
    padding-top: 10px; /* Añade espacio para que el contenido no quede pegado */
}

/* Estilos para la fila de correo */
.row.mail {
    border-top: 1px solid var(--color-secondary); /* Línea superior */
    border-bottom: 1px solid var(--color-secondary); /* Línea inferior */
    padding: 25px 0 0 0; /* Añade espacio para separar el contenido de las líneas */
}

/* Estilos para botones */
input.btn.btn-primary.float-xs-right.hidden-xs-down {
    background-color: var(--color-primary) !important;
}

/* Estilos para el texto de copyright */
p.text-sm-center.copyright {
    color: var(--color-white);
}

/* Estilos para iconos hover */
.carousel .carousel-control .icon-next:hover i,
.carousel .carousel-control .icon-prev:hover i,
.dropdown:hover .expand-more,
.page-my-account #content .links a:hover i,
.search-widget form button[type=submit] .search:hover,
.top-menu .sub-menu a:hover {
    color: var(--color-primary) !important;
}

/* Estilos para las etiquetas de producto */
.product-flags li.product-flag {
    background: var(--color-primary) !important;
}

.product-flags li.product-flag.discount,
.product-flags li.product-flag.discount-amount,
.product-flags li.product-flag.discount-percentage {
    background-color: var(--color-secondary) !important;
}

/* Estilos para títulos de sección */
h1.headerH1, h2.h2.products-section-title.text-uppercase{
    border-bottom: solid 1px var(--color-text);
    color: var(--color-primary) !important;
    text-align: center;
    font-weight: 500;
}

/* Estilos para botones de añadir al carrito */
button.btn.btn-primary.add-to-cart {
    background-color: var(--color-primary) !important;
}

button.btn.btn-primary.add-to-cart:hover {
    background-color: var(--color-secondary) !important;
}

/* Estilos para descuentos */
.has-discount .discount {
    background: var(--color-secondary) !important;
}

.product-images>li.thumb-container .thumb.selected, .product-images>li.thumb-container .thumb:hover{
    border: var(--color-primary) 3px solid !important;
}

.has-discount .page-content.page-cms ul, .has-discount p, .has-discount.product-price, .page-content.page-cms .has-discount ul{
    color: var(--color-secondary) !important;
}

.product-price{
    color: var(--color-primary) !important;
}

.tabs .nav-tabs .nav-link.active{
    color: var(--color-primary) !important;
}

.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover{
    border-bottom: var(--color-primary) 3px solid;
}

#blockcart-modal .product-name{
    color: var(--color-black) !important;
}

a.btn.btn-primary{
    background-color: var(--color-primary) !important;
}

a.btn.btn-primary:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
}

button#submit-login{
    background-color: var(--color-primary) !important;
}

button#submit-login:hover {
    background-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
}

#header .header-nav .cart-preview.active{
    background: var(--color-primary) !important;
}

#header .header-nav .blockcart a:hover{
    color: var(--color-secondary) !important;
}

input.btn.btn-primary.float-xs-right.hidden-xs-down:hover{
    background-color: var(--color-secondary) !important;
}

.forgot-password  > a,.no-account > a{
    color: var(--color-secondary) !important;
}
.forgot-password  > a:hover,.no-account > a:hover{
    color: var(--color-primary) !important;
}

img.img-fluid {
    width: 100%;
    height: auto;
}

p.send-renew-password-link {
    text-align: center;
}

#subcategories ul li .subcategory-image a img {
    max-width: 150px;
    height: auto;
    vertical-align: top;
}

.block-category .block-category-inner .category-cover img {
    width: 1390px;
    height: 150px;
}

#subcategories ul li .subcategory-image a{
    border: 0px !important;
}

#subcategories ul li {
    width: calc(100% / 5 - 20px) !important;
}

nav.breadcrumb {
    margin-top: -55px;
    margin-bottom: 0px;
}

#header .header-top {
    padding: 0.5rem 0 !important;
}

@media (max-width: 767px) {
    #header .header-top {
        padding: 2rem 0 !important;
    }
}

#mobile_top_menu_wrapper {
    margin-top: 35px;
}

#main {
    padding: 60px 0;
    background: var(--color-white);
}

.page-header {
    margin-bottom: 32px;
    text-align: center;
}

.headerH1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-primary);
    letter-spacing: 1px;
}

/* Card del contenido */
.page-content.card.card-block {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    max-width: 75%;
    margin: 0 auto;
    padding: 32px 24px;
    border: 1px solid #e6e6e6;
}

/* Formulario de contacto */
.contact-form {
    width: 100%;
}

#form-postventa .form-group {
    margin-bottom: 20px;
}

#form-postventa label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--color-primary);
}

#form-postventa input[type="text"],
#form-postventa input[type="email"],
#form-postventa input[type="file"],
#form-postventa textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--color-primary);
    border-radius: 5px;
    font-size: 1rem;
    background: #f3fafe;
    color: var(--color-black);
    transition: border-color var(--transition-duration);
    box-sizing: border-box;
}

#form-postventa input[type="text"]:focus,
#form-postventa input[type="email"]:focus,
#form-postventa textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

#form-postventa input[type="file"] {
    padding: 7px 0;
    background: none;
    border: none;
    font-size: 0.95rem;
}

#form-postventa textarea {
    min-height: 110px;
    resize: vertical;
}

#form-postventa .btn.btn-primary {
    background-color: var(--color-primary);
    border: none;
    color: var(--color-white);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background var(--transition-duration);
    margin-top: 10px;
    width: 100%;
}

#form-postventa .btn.btn-primary:hover,
#form-postventa .btn.btn-primary:focus {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 600px) {
    .page-content.card.card-block {
        padding: 16px 5px;
    }
    .headerH1 {
        font-size: 1.3rem;
    }
    #custom-text{
        padding: 0px !important;
    }
    div#imagecarousel {
        margin-top: -20px;
    }
    
    /* NUEVO: Subcategorías en una sola columna para móviles muy pequeños */
    #subcategories ul li {
        width: calc(100% - 20px) !important;
    }
}

.imagecarousel-indicators, .categories-carousel-dots, .brands-carousel-dots {
    display: none;
}

.brands-sort .select-title, .products-sort-order .select-title, .suppliers-sort .select-title{
    width: 50% !important;
}

.block-categories {
    display: none;
}

div#search_filters_wrapper {
    margin-top: 33px;
}

.imagecarousel-slide.active{
    z-index: 1;
}

.imagecarousel-nav {
    z-index: 2;
}

@media (min-width: 1300px) and (max-width: 1924px) {  
    .col-md-5.col-xs-12.d-flex.justify-content-between.align-items-center.flex-wrap.gap-3 {
        width: 70%;
    }

    .col-md-7.right-nav {
        float: right;
        top: -34px;
    }
}

@media (min-width: 768px) and (max-width: 1299px) {  
   .col-md-5.col-xs-12.d-flex.justify-content-between.align-items-center.flex-wrap.gap-3 {
    position: absolute;
    left: 1px;
    width: 100%;
}
.col-md-7.right-nav {
    float: right;
}

}

.block.ybc_block_latest.ybc_blog_free_ltr_mode.page_home.ybc_block_default {
    display: none;
}

.block-social.col-lg-4.col-md-12.col-sm-12 {
    display: none;
}

.block.ybc_block_categories.ybc_blog_free_ltr_mode {
    display: none;
}

.block.ybc_block_search.ybc_blog_free_ltr_mode
 {
    display: none;
}

.block.ybc_block_latest.ybc_blog_free_ltr_mode.page_blog.ybc_block_default {
    display: none;
}

.block.ybc_block_popular.ybc_blog_free_ltr_mode.page_blog.ybc_block_default {
    display: none;
}

.block.ybc_blog_free_ltr_mode.ybc_block_featured.page_blog.ybc_block_default {
    display: none;
}

.block.ybc_block_tag.ybc_blog_free_ltr_mode {
    display: none;

}

.block.ybc_blog_free_ltr_mode.ybc_block_gallery.page_blog_gallery.ybc_block_default {
    display: none;
}

#product-modal .modal-content .modal-body .product-cover-modal, .product-cover img {
    background: #fff;
    width: 2600px;
}

.contact-rich, .contact-rich h4 {
    margin-bottom: 2rem;
    display: none;
}

/* ==========================
   Contenedor principal
   ========================== */
#content.page-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 40px auto;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* ==========================
   Listas informativas
   ========================== */
#content ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 20px;
}

#content ul li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;

}

#content ul li b {
  color: #006bb3;
}

/* ==========================
   Título del formulario
   ========================== */
.contact-form h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0090d8;
}

/* ==========================
   Labels y campos
   ========================== */
.form-group {
  margin-bottom: 20px;
}

.form-control-label {
  font-weight: 500;
  color: #333;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #0090d8;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 144, 216, 0.3);
}

/* ==========================
   Select (dropdown)
   ========================== */
.form-control-select {
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center;
  background-color: #fff;
  background-size: 16px;
  padding-right: 40px;
}

/* ==========================
   Textarea
   ========================== */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================
   Botón de envío
   ========================== */
.btn.btn-primary {
  background: linear-gradient(90deg, #0090d8, #006bb3);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.3s ease;
}

.btn.btn-primary:hover {
  background: linear-gradient(90deg, #007bbd, #005f94);
  transform: scale(1.05);
}

/* ==========================
   Comentarios opcionales
   ========================== */
.form-control-comment {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 768px) {
  #content.page-content {
    padding: 20px;
  }
  .form-control-label {
    margin-bottom: 8px;
    display: block;
  }
}

ul.page-list.clearfix.text-sm-center{
    gap: 1rem;
}

#header .header-nav {
    max-height: 144px;
    border-bottom: #f6f6f6 2px solid;
}

div#imagecarousel {
    margin-top: -85px;
}

@media (max-width: 600px) {
    div#imagecarousel {
        margin-top: -35px !important;
    }
}

.header-logo img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}
.d-flex {
  display: flex !important;
}
.align-items-center {
  align-items: center !important;
  min-height: 135px;
}
.justify-content-center {
  justify-content: center !important;
  min-height: 135px;
}
.gap-4 {
  gap: 2em !important;
}
@media (max-width: 991px) {
  .header-logo img { max-width: 140px; }
}

#header ul.mi-menu li {
    /* position: relative; */
    min-width: 200px;
    /* text-align: center; */
    /* padding: 0px 14px !important; */
    font-size: large; 
    /* list-style: none; */
    display: inline-block;
    color: #fff;
    /* line-height: 45px; */
    width: 18%;
    text-align: center;
    border-right: 1px solid;
    border-left: 1px solid;
}

#header .header-nav .language-selector, #header .header-nav .user-info {
    margin-top: .9375rem;
    white-space: nowrap;
    display: grid;
}

.header-top-right {
  display: flex;
  justify-content: center;
  align-items: center; /* Si también quieres centrar verticalmente */
  width: 100%;
}

.mi-menu {
  display: flex;
  justify-content: center;
  align-items: center;

  list-style: none;
  margin: 0;
  padding: 0;
}

#header .logo {
    max-width: 90%;
    height: auto;
}