@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

/* Colores */
:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --primary-background: #28cdf7b6;
  --secondary-background: #a7b7bdb6;
  --primary: #0d6efd;
  --secondary: green;
}

* {
  /* font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; */
  font-family: var(--font-primary);
}

body, .fondo{
  overflow-x: hidden;
  font-family: var(--font-primary);
  background-size: cover; 
  background-repeat: no-repeat;

}

@media (max-width: 768px) {
  body, .fondo {
    background-image: url('../img/fondo_movil.webp'); 
  }
}
 
.banner-top {
  height: 420px;
  div {
    height: 420px;
  }
  img {
    object-fit: cover;
    object-position: center center;
  }
}

#canasta_form {
  margin: 0;

  select {
    margin: 0;
  }
}

/* Elementos genericos */
#espacio-cabecera {
  height: 50px;
}

.img-escritorio {
  display: inherit !important;
}
.img-movil {
  display: none !important;
}

.promo-container .carousel-item:hover {
  margin: 5px 0px;
}

i {
  font-size: 20px;
}

li {
  line-height: 1;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
}

.titulo-pagina {
    padding-bottom: 12px;
    margin-top: 12px;
    font-style: italic;
    font-size: 21px;
    font-weight: bolder;
}

.grid-center {
  display: grid;
  justify-content: center;
  align-content: center;
}

.text-bg-success {
  background-color: RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1)) !important;
  color: #fff !important;
}

.text-bg-danger {
  background-color: RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1)) !important;
  color: #fff !important;
}

.btn-tiembla {
  width: fit-content;
  -webkit-animation-duration:1s;
  animation-duration:1s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-name: tada;
  animation-name: tada;
}

/* Cabecera */
.redes_sociales a i {
    width: 29px;
    margin: 0 10px;
    font-size: 29px;
}

 
/* Barra de búsqueda */
.search-container {
  height: 100%;
  display: flex; 
  align-items: center;
}

.search-container input[type="search"] {
  border: 3px solid blue;
  border-radius: 10px;
  font-size: 20px;
}

/* Contenedor de la lista */
  .productos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
  }
  /* Tarjeta producto */
  .producto-card {
	flex: 1 1 calc(25% - 1rem);
    /* box-shadow: 0 3px 10px rgb(0 0 0 / 0.1); */
    /* border-radius: 6px; */
    /* background: #fff; */
    display: flex;
    /* flex-direction: column; */
    cursor: pointer;
    /* transition: box-shadow 0.3s ease; */
    /* max-height: 520px;*/
  }
 
  /* Imagen */
  .producto-img-container {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 240px;
    overflow: hidden;
  }
  .producto-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
  }
  /* Categoría y estado stock */
  .producto-info-header {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem 0.5rem;
    font-size: 0.85rem;
  }
  .badge-categoria {
    background-color: #0d6efd;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
  }
  .badge-stock {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
  }
  .badge-stock.disponible {
    background-color: #198754;
  }
  .badge-stock.no-stock {
    background-color: #dc3545;
  }
  /* Código */
  .producto-codigo {
    font-size: 0.7rem;
    color: #555;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
  }
  /* Título */
  .producto-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0 1rem;
    color: #212529;
    margin-bottom: 0.7rem;
    flex-grow: 1;
  }
  /* Precio contado */
  .producto-precio-contado {
    padding: 0 0.4rem;
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  .precio-original {
    text-decoration: line-through;
    width: fit-content;
    margin: auto;
    margin-right: 0.4rem;
  }
  .precio-promocion {
    font-weight: 700;
    width: fit-content;
    margin: auto;
  }
  /* Precio cuotas */
  .producto-cuotas {
    padding: 0 1rem 1rem;
    font-size: 0.8rem;
  }
  .form-select {
    font-size: 0.85rem;
  }
  /* Botones */
  .btn-comprar {
    width: fit-content;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 15px;
  }
  /* Responsive */
  @media(max-width: 992px) {
    .producto-card {
      flex: 1 1 calc(50% - 1rem);
      max-height: none;
    }
  }
  @media(max-width: 576px) {
    .producto-card {
      flex: 1 1 100%;
    }
  }

/* Grid de productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-item {
  border-radius: 4px;
  padding: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Imagen del producto */
.product-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  align-content: center;
  overflow: hidden;
}

.product-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.product-item img:hover {
  transform: scale(1.1);
  transition: .2s ease-in-out all;
}

/* Título del producto */
.product-item .product-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-item .card-title {
  font-size: 12pt;
  font-weight: bold;
}

.product-item p {
  font-size: 10pt;
  margin: 0px;
  margin-bottom: 5px;
}

/* Sección de precios */
.product-item .product-price {
  color: #e74c3c;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.product-item .product-price-tachado {
  color: red;
  text-decoration: line-through;
  display: flex;
  font-size: 13px;
  position: relative;
  line-height: 13px;
}

.product-item .product-price-tachado:hover {
  content: '';
  height: 1px;
  background: red;
  position: absolute;
  transform: rotate(-3deg);
  top: 5px;
}

.price-tachado {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Thumb carousel: cursor pointer */
.carousel-thumb {
  transition: transform 0.3s ease;
}
.carousel-thumb:hover {
  transform: scale(1.1);
  border-color: #007bff !important;
  cursor: pointer;
}

/* Panel administradores */
.table-responsive {
  max-height: 90vh;
}

/* Animaciones */
@keyframes tada {
  0% {
    -webkit-transform:scaleX(1);
    transform:scaleX(1)
  }
  10%,
  20% {
    -webkit-transform:scale3d(.9,.9,.9) rotate(-3deg);
    transform:scale3d(.9,.9,.9) rotate(-3deg)
  }
  30%,
  50%,
  70%,
  90% {
    -webkit-transform:scale3d(1.1,1.1,1.1) rotate(3deg);
    transform:scale3d(1.1,1.1,1.1) rotate(3deg)
  }
  40%,
  60%,
  80% {
    -webkit-transform:scale3d(1.1,1.1,1.1) rotate(-3deg);
    transform:scale3d(1.1,1.1,1.1) rotate(-3deg)
  }
  to {
    -webkit-transform:scaleX(1);
    transform:scaleX(1)
  }
}

p-3 {
    padding: 0.4rem !important;
}

h6 {
	background: aliceblue;
    padding: 3px;
    color: #454343 !important;
    font-family: var(--font-heading);
    border-radius: 0px;
}

#form-precio input:focus {
  box-shadow: none;
  border-color: #0d6efd; /* azul Bootstrap */
}

#form-precio .input-group-text {
  background-color: #f1f3f5;
  border: none;
}


.container {
  padding: 10px;
  max-width: 100vw;
}

.text-secondaryFiltro{
    color: #d9d7d7 !important;
    border-radius: 8px 8px 0px 0px;
    background: #08436b;
	font-weight: 700;
}

.nuestroproducto {
	background: #08436b;
    text-align: center;
    padding: 10px;
    color: antiquewhite;
    border-radius: 10px;
    border: 1px solid #999999;
	
}




 .btnComprar{
	box-shadow: 6px 4px 7px 2px #404245;
	border-radius: 10px 0px;
    margin: 1%;
}
 
 
 .inputBuscador{
	     width: 100%;
    box-shadow: #3a3838 2px 4px 7px; 
    border-radius: 6px;
 }
  
 .btnBuscador{
	background: #0d6efd;
    color: #fff;
 }
 
 
 #logo {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

@media (min-width: 992px) {
  #modalBuscador {
    display: none !important;
  }
  #navbarMain {
    top: 73px;
  }
  .cabecera {
    height: auto;
  }
}


#logo {
  height: 40px;
  object-fit: contain;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.carrito-animado {
  animation: bounce 0.5s ease;
}


.input-group .form-control,
.input-group .btn {
  height: 36px;
  font-size: 0.9rem;
}


.navbar-nav .nav-link {
  padding: 8px 16px;
  transition: background 0.3s;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}



:root {
  --navbar-height: 56px;
}

#navbarMain {
  width: 100%;
  z-index: 1030;
  top: 5px;
}

.cabecera {
  height: 75px;
  z-index: 1100;
}

/* margen para contenido principal */
main {
  margin-top: var(--navbar-height);
  margin-bottom: 0;
}

/* Vista móvil - navbar abajo + íconos */
@media (max-width: 767.98px) {
  .cabecera .navbar-brand-group img {
    height: 50px;
  }

  #navbarMain > div {
    align-items: start !important;
    justify-content: space-between;
  }

  #navbarMain button {
    width: fit-content !important;
  }

  #navbarMain {
	  box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.25);
	  border-radius: 10px 10px 0px 0px;
    top: auto !important;
    bottom: 0 !important;
    position: fixed !important;
    /* border-top: 1px solid #005577; */
  }

  main {
    margin-top: 0;
    margin-bottom: var(--navbar-height);
  }

  #navbarCategorias {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    background-color: #003554;
    width: 100%;
    z-index: 1040;
  }

  #navbarCategorias .img-container {
    display: none !important;
  }

  #navbarCategorias.collapse.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .bottom-icons {
    background-color: #00bcd4;
    border-radius: 10px 10px 0px 0px;
    position: fixed;
    bottom: -2px;
    box-shadow: 0 0 10px hsl(0deg 0% 0% / 35%);
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1035; 
  }

  .bottom-icons .nav-link {
    color: #0d6efd;
    padding: 0.5rem;
  }

  .bottom-icons .badge {
    font-size: 0.65rem;
    padding: 0.35em 0.4em;
    line-height: 1;
    border-radius: 50%;
  }

  .img-escritorio {
    display: none !important;
  }
  
  .img-movil {
    display: inherit !important;
  }
}


.filtro-box {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: 100%;
  transition: transform 0.2s ease;
}

.filtro-box:hover {
  transform: translateY(-3px);
}

.filtro-titulo {
  font-weight: 600;
  font-size: 15px;
  color: #003554;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#form-precio .form-control {
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  .filtro-box {
    padding: 5px;
  }

  .filtro-titulo {
    font-size: 14px;
  }

  #filtros-container {
    flex-direction: column;
  }
}


.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 490px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #444;
}

.badge {
  padding: 0.25em 0.6em;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  user-select: none;
}

.in-stock {
  background-color: #d1e7dd;
  color: #0f5132;
}

.out-stock {
  background-color: #f8d7da;
  color: #842029;
}

.product-code {
  color: #888;
  font-style: italic;
}

.product-image-container {
  flex-grow: 1;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 14px;
}

.product-image-container:hover .product-image {
  transform: scale(1.1);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #222;
  cursor: pointer;
  user-select: none;
}

.product-title:hover {
  color: #0d6efd;
}

.product-pricing {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.price-original {
  text-decoration: line-through;
  color: #888;
  font-size: 0.95rem;
}

.price-discount {
  color: #dc3545;
  font-weight: 800;
}

.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-buy {
  background-color: #198754;
  border: none;
  color: white;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
  user-select: none;
}

.btn-buy:hover {
  background-color: #145c32;
}

.cuotas-select {
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
  border: 1px solid #ced4da;
  user-select: none;
}

.cuotas-buy {
  background-color: #0d6efd;
  margin-top: 0.3rem;
}

.cuotas-buy:hover {
  background-color: #084298;
}

@media (max-width: 576px) {
  .product-card {
    height: auto;
  }
  .product-image-container {
    height: 180px;
  }
}

 
    input.form-control {
      transition: box-shadow 0.3s ease;
    }
    input.form-control:focus {
      box-shadow: 0 0 5px #0d6efd;
      border-color: #0d6efd;
    }
    #slider-precio {
      margin-bottom: 1rem;
    }
	
	
	.range-slider input[type=range] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
  }
  .range-slider input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    background: #0d6efd;
    border-radius: 50%;
    border: none;
    -webkit-appearance: none;
  }
  
  
  .divContenedorFiltros{
	    background: #ffffff;
    padding: 4px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    /* border: solid 1px #918d8d; */
  }
  
    
  .filtros{
	border: solid 1px #a5a2a2;
    border-radius: 10px;
   padding-right: 0px;
    padding-left: 0px;
	margin: 5px;
  }
 @media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 23% !important;
    }
}
  
  
  
  
  
 
 .dropdown-item {
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f1f1f1 !important;
}


 /* Ancho de imagen por defecto: 70px en pantallas pequeñas */
  .img-container {
    width: 250px;
    position: relative;

    i {
      position: absolute;
      left: 5px;
      font-size: 1.8rem;
      color: red;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10;
      padding: 0px 8px;
    }

    i:hover {
      transform: scale(1.1);
      color: #ff6b6b;
    }

    i:active {
      color: #ff6b6b !important;
      animation: pulse 0.5s ease;
      background-color: inherit !important;
    }
  }

  @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.3); }
      100% { transform: scale(1); }
  }

  /* En pantallas md o más grandes: 250px */
  @media (max-width: 768px) {
    .img-container {
      width: 70px;
    }
  }
  
  
  
  
  .product-item .card-img-top {
    transition: transform 0.3s ease;
}
.product-item .card-img-top:hover {
    transform: scale(1.05);
}

.product-item .card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.product-item .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.5em;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

@media (max-width: 767.98px) {
    #carouselProductosSimilares .col-md-3 {
        max-width: 50%;
    }
}


@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

.info-producto {
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 0.95rem;
  color: #333;
  animation: fadeIn 0.8s ease-in-out;
}

.info-titulo {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-descripcion {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.info-lista {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.info-lista li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  color: #444;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.info-lista li:hover {
  background-color: #f9f9f9;
}

.info-lista i {
  font-size: 1.2rem;
  min-width: 24px;
}

.info-lista strong {
  color: #222;
  margin-right: 0.5rem;
  flex-shrink: 0;
  width: 120px;
}

.info-lista span {
  color: #555;
  text-align: right;
  flex-grow: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .info-producto {
    padding: 1rem;
  }

  .info-lista li {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-lista strong, .info-lista span {
    width: 100%;
    text-align: left;
    margin: 0.2rem 0;
  }

  .info-titulo {
    font-size: 1.1rem;
  }
}

/* Navbar principal */
#navbarMain {
  background-color: #31a3ce  !important; /* rojo intenso */
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

/* Links navbar */
.navbar-nav .nav-link {
  color: #fff !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffd700 !important; /* amarillo para hover */
}

/* Dropdown */
.dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  background: #fff !important;
  min-width: 220px;
}

.dropdown-item {
  color: #445157 !important;
  font-weight: 500;
  transition: background-color 0.3s;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f7f7f7 !important;
  color: #000 !important;
}

/* Íconos inferiores (móvil) */
.bottom-icons .nav-link {
  color: #fff;
}
.bottom-icons .nav-link:hover {
  color: #ffd700;
}
.bottom-icons .badge {
  font-size: 0.7rem;
  font-weight: 700;
}

/* Botón hamburguesa en móvil */
.navbar-toggler {
  border: none;
  color: #fff;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Para dropdown-menu que aparece con animación */
.animate-dropdown {
  animation: fadeInDropdown 0.3s ease forwards;
}
@keyframes fadeInDropdown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imagen logo en dropdown subcategorías */
.img-container {
  width: 70px;
}
@media (min-width: 768px) {
  .img-container {
    width: 250px;
  }
}

/* Responsive ajustes menores */
@media (max-width: 767px) {
  .navbar-nav {
    background-color: #00bcd4;
  }
  .dropdown-menu {
    position: static !important;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Estilos cabecera */
/* Estilo base del botón */
.cabecera .btn-carrito-ml {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 10px 14px;
  font-size: 1.2rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
  
}
.cabecera .btn-carrito-ml:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}
.cabecera .btn-carrito-ml i {
  color: #f9f6f6;
}
.cabecera .badge-carrito {
  position: absolute;
  top: 15px;
  right: 15px;
  transform: translate(50%, -50%);
  background-color: #f00;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.cabecera .btnbuscar {
	color: aliceblue;
  border-radius: 0px 10px 10px 0px;
  padding: 5px 20px 5px 10px;
}

/* En móvil: botón flotante centrado abajo */
@media (max-width: 767.98px) {
  .cabecera .btn-carrito-ml.position-fixed {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    padding: 0;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cabecera .btn-carrito-ml.position-fixed i {
    font-size: 1.8rem;
  }
  .cabecera .badge-carrito {
    top: 8px;
    right: 8px;
    transform: none;
    min-width: 18px;
    height: 18px;
    padding: 0;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* En desktop: botón normal, sin posición fixed y visible solo en md+ */
@media (min-width: 768px) {
  .cabecera .btn-carrito-ml.position-fixed {
    position: static !important;
    width: auto;
    height: auto;
    border-radius: 50px;
    padding: 10px 14px;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}
/* NAVBAR */
.cabecera .main-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: all 0.3s ease;
}

/* Logo */
.cabecera .navbar-brand-group img {
  height: 50px;
  transition: transform 0.2s ease-in-out;
}

.cabecera .navbar-brand-group img:hover {
  transform: scale(1.05);
}

/* Iconos de redes */
.cabecera .navbar-brand-group .bi {
  color: #606060;
  transition: color 0.2s ease;
}

.cabecera .navbar-brand-group .bi:hover {
  color: #007bff;
}

/* FORMULARIO DE BÚSQUEDA */
.cabecera .buscador-form {
  max-width: 600px;
}

.cabecera .buscador-input-group .form-control.buscador-input {
  border-radius: 50px 0 0 50px;
  border: 1px solid rgb(6, 120, 221);
  padding-left: 1rem;
  font-size: 0.95rem;
}

.cabecera .buscador-btn {
  border-radius: 0 50px 50px 0;
  color: #fff;
  border: none;
  padding: 0 1rem;
  transition: background-color 0.2s ease-in-out;
}

.cabecera .buscador-btn:hover {
  background-color: #0056b3;
}

/* USUARIO DROPDOWN */
.cabecera .nav-link.dropdown-toggle .bi-person-circle {
  font-size: 1.4rem;
  color: #6c757d;
  transition: color 0.2s;
}

.cabecera .nav-link.dropdown-toggle:hover .bi-person-circle {
  color: #000;
}

/* DROPDOWN MENU */
.cabecera .dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.cabecera .dropdown-item:hover {
  background-color: #f8f9fa;
}

/* BOTÓN CARRITO FLOTANTE */
.cabecera .btn-carrito-ml {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  padding: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  transition: all 0.2s ease-in-out;
}

.cabecera .btn-carrito-ml:hover {
  background-color: #f9f9f9;
  transform: translateX(-50%) translateY(-2px);
}

.cabecera .btn-carrito-ml .bi-cart4 {
  font-size: 1.6rem;
}

.cabecera .badge-carrito {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #dc3545;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
}

/* MODO DESKTOP: carrito se adapta */
@media (min-width: 768px) {
  .cabecera .btn-carrito-ml.position-fixed {
    position: static !important;
    transform: none !important;
    border-radius: 15px;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .cabecera .badge-carrito {
    top: auto;
    right: auto;
    margin-left: 8px;
  }
}

/* OFFCANVAS SEARCH */
.cabecera .offcanvas-search {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.cabecera .offcanvas-search .offcanvas-header {
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.cabecera .offcanvas-search .form-control {
  border-radius: 50px 0 0 50px;
  border: 1px solid #ccc;
}

.cabecera .offcanvas-search .btn {
  border-radius: 0 50px 50px 0;
  background-color: #007bff;
  color: white;
  transition: background-color 0.2s ease;
}

.cabecera .offcanvas-search .btn:hover {
  background-color: #0056b3;
}

/* MODAL DE USUARIO EN MÓVIL */
.cabecera .modal-user .modal-content {
  border-radius: 0.8rem;
  overflow: hidden;
}

.cabecera .modal-user .modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.cabecera .modal-user .list-group-item:hover {
  background-color: #f1f1f1;
}

/* Estilos footer */
.footer-empresarial {
  padding: 0;
  font-family: var(--font-primary);

}

.footer-empresarial .container {
  background-color: #343a40;
  color: #f8f9fa;
  margin: 0 auto;
  padding: 0;
}

/* Fila principal */
.footer-empresarial .row.align-items-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 1rem;
}

/* Icono de contacto */
.footer-empresarial .bi-headset {
  font-size: 3rem;
  color: #0dcaf0;
}

/* Bloque de contacto */
.footer-empresarial .contacto {
  margin-left: 1rem;
}
.footer-empresarial .contacto h6 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.footer-empresarial .contacto a {
  display: inline-block;
  margin-bottom: 1rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-empresarial .contacto a:hover {
  color: #0adabb;
}

/* Ubicación y mapa */
.footer-empresarial h6.text-center {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.footer-empresarial .d-flex > div p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.footer-empresarial .mapa {
  width: 200px;
  height: 150px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  margin-left: 1rem;
}

/* Menu de navegacion */
.footer-empresarial .list-group-item {
  color: white;
  background-color: inherit;
}

/* Iconos sociales */
.footer-empresarial .social-icons {
  display: flex;
  align-items: center;
}
.footer-empresarial .social-icon {
  font-size: 1.25rem;
  color: inherit;
  transition: color 0.3s;
}
.footer-empresarial .social-icon + .social-icon {
  margin-left: 0.5rem;
}
.footer-empresarial .social-icon:hover {
  color: #0dcaf0;
}

/* Línea divisoria y texto final */
.footer-empresarial .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-empresarial .text-center p {
  font-size: 0.85rem;
}

.footer-empresarial .copyrigth {
  background-color: #fff;
  color: #666;
}

/* Responsive: tablets y móviles */
@media (max-width: 992px) {
  .footer-empresarial .col-md-4,
  .footer-empresarial .col-md-8,
  .footer-empresarial .col-lg-2 {
    max-width: 100%;
    text-align: center;
  }
  .footer-empresarial .mapa {
    margin: 1rem auto 0;
  }
}

@media (max-width: 576px) {
  .footer-empresarial .row.align-items-center {
    padding: 0 0.5rem;
  }
  .footer-empresarial .contacto {
    margin: 0.5rem 0 0;
  }
  .footer-empresarial .social-icons {
    justify-content: center;
    width: 100%;
  }
}

.iconos-footer .bi{
  color: #f7f4f4;
}

@media (max-width: 767.98px) {
  footer {
    margin-bottom: 10px;
  }
}

@media (min-width: 768px) {
  .img-container {
    width: 250px;
  }
}

/* Animación suave de entrada */
.animate-dropdown {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInDropdown 0.3s ease forwards;
}

@keyframes fadeInDropdown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.anchonext{
	width: 5% !important;
}


.sombra{
	box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.2);
}

.buscador-input-group {
  /* border: 2px solid #31a3ce; */
  /* border-radius: 30px; */
  overflow: hidden;
}

.buscador-input {
  border: none;
  box-shadow: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 0;
}

.buscador-input:focus {
  outline: none;
  box-shadow: none;
}

.buscador-btn:hover {
  background-color: #e67e00;
  color: white;
}


.buscador-input-group {
  /* border: 2px solid #31a3ce; */
  /* border-radius: 30px; */
  overflow: hidden;
}

.buscador-input {
  border: none;
  box-shadow: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 0;
}

.buscador-input:focus {
  outline: none;
  box-shadow: none;
}

.buscador-btn {
  color: black;
  background-color: white;
  border: 1px solid #666;
  border-left: none;
  padding: 0 20px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buscador-btn:hover {
  background-color: #31a3ce;
  color: white;
}

.fnt12{
	font-size: 12px; 
}
.taend{ 
    text-align: end;
}

.jusContsb{
	    justify-content: space-between;
}

.carousel-indicators.custom-indicators {
  position: static;
  margin-top: 10px;
  justify-content: center;
  gap: 10px;
}

.carousel-indicators.custom-indicators button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #c5d6c5; /* color gris verdoso claro */
  border: none;
  opacity: 1;
  transition: background-color 0.3s ease;
}

.carousel-indicators.custom-indicators button.active {
  background-color: #777777; /* verde activo */
}


  body {
   
    font-family: var(--font-primary);
  }

  .container {
    padding: 10px; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  }

  h1, h2 {
    color: #007bff;
  }

  .form-label {
    font-weight: 600;
    color: #333;
  }

  input.form-control {
    border-radius: 10px;
    border: 1px solid #ccc;
  }

  .row.g-3 {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
  }

  .table th, .table td {
    vertical-align: middle;
  }

  .table img {
    border-radius: 8px;
  }

  .btn-success {
    border-radius: 10px;
  }

  .btn-outline-secondary {
    border-radius: 10px;
  }

  .btn-outline-danger {
    border-radius: 8px;
  }

  .shadow-sm {
   box-shadow: 1px 1px 6px 0px rgb(43 43 43) !important;
  }

  @media (max-width: 768px) {
    #menuUsuarioModal {
      display: none !important;
    }

    h1, h2 {
      font-size: 1.5rem;
    }

    .fs-3 {
      font-size: 1.25rem;
    }

    .fs-5 {
      font-size: 1rem;
    }
  }


.vistapr{
 margin-bottom: 15px;
 padding-left: 5px; 
 margin-right: 5px;	
}

.contenedorvistapr{
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 10px;
    justify-content: space-around;
}

.splide__slide {
  display: flex;
  justify-content: center;
}


/* Los íconos de flechas de Bootstrap dentro de los botones */
.splide__arrow span.carousel-control-prev-icon,
.splide__arrow span.carousel-control-next-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-size: 100% 100%;
}

.splide__arrow {
  height: 3rem !important;
  width: 3rem !important;
  opacity: 0.8;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  border: black solid 1px !important;
}

  .splide__slide {
    display: flex;
    justify-content: center;
  }

  .card img {
    width: 100%;
    border-radius: 6px;
    object-fit: contain;
    height: 200px;
    margin-bottom: 12px;
  }
  .card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
  }
  .card p {
    margin: 10px;
    color: #666;
  }

.splide__pagination {
  bottom: .2rem !important;
}

.splide__pagination__page {
  background: #4CAF50 !important;
}

.splide__pagination__page.is-active {
  background: #4CAF50 !important;
  width: 18px;
  border-radius: 10px;
  transform: scale(1) !important;
  z-index: 1;
}

.bi-person-circle::before {
    font-size: 35px !important;
}
.carousel-indicator {
  width: 10px;
  height: 6px;
  background-color: #ccc;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}
.carousel-indicator.active {
  width: 26px;
  background-color: #00c853;
}

/* Estilo para separar tarjetas dentro de cada slide */
.carousel-item .card {
    margin: 0 10px;
}
/* Para que las cards usen el mismo alto */
.carousel-item .col-md-4 {
    display: flex;
}
.carousel-item .card {
    flex: 1 1 auto;
}
/* Ajustar tamaño controles */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Contenedor del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 1.5rem;
  filter: invert(1);
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
  padding: 0 10px;
}
.carousel-control-prev,
.carousel-control-next {
  top: 35%;
  width: 40px;
  height: 40px;
  background-color: #212529cc;
  border-radius: 50%;
  border: none;
  transition: background-color 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #198754cc;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  filter: brightness(0) invert(1);
}

.splide__list {
  height: fit-content !important;
}

.less-than-4 .splide__slide {
  max-width: calc(100% / 4 - 1rem) !important;
}

/* Ajustar para responsive */
@media (max-width: 1200px) {
  .less-than-4 .splide__slide {
    max-width: calc(100% / 3 - 1rem) !important;
  }
}

@media (max-width: 768px) {
  .less-than-4 .splide__slide {
    max-width: calc(100% / 2 - 1rem) !important;
  }
}

@media (max-width: 480px) {
  .less-than-4 .splide__slide {
    max-width: 100% !important;
  }
}


    body {
      background: #f6f6f6;
      font-family: var(--font-primary);
      margin: 0; 
    }
    .products-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      gap: 1rem;
      grid-template-columns: repeat(1, 1fr);
    }
    @media (min-width: 768px) {
      .products-container {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    @media (min-width: 992px) {
      .products-container {
        grid-template-columns: repeat(4, 1fr);
      }
    }
    .product-card {
      background: #fff;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
      display: flex;
      flex-direction: column;
      cursor: default;
      transition: box-shadow 0.3s ease;
      height: 100%;
      padding: 10px;
    }
    .product-card:hover {
      box-shadow: 0 5px 15px rgb(0 0 0 / 0.15);
    }
    .product-image-container {
      flex: 0 0 auto;
      padding: 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
      border-bottom: 1px solid #eee;
      cursor: pointer;
      height: 180px;
    }
    .product-image-container img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      user-select: none;
    }
    .product-info {
      padding: 1rem 0 0 0;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .product-title {
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: 0.5rem;
      color: #333;
      cursor: pointer;
      user-select: none;
    }
    .product-price {
      margin-bottom: 1rem;
    }
    .price-old {
      font-size: 0.9rem;
      color: #999;
      text-decoration: line-through;
      margin-right: 0.5rem;
    }
    .price-current {
      font-size: 1.3rem;
      font-weight: 700;
      color: #3483fa;
    }
    .buy-form {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      flex-wrap: wrap;
    }
    .buy-button,
    .buy-submit {
      background-color: #3483fa;
      border: none;
      color: white;
      padding: 0.4rem 0.8rem;
      border-radius: 4px;
      font-size: 0.9rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      transition: background-color 0.3s ease;
    }
    .buy-button:hover,
    .buy-submit:hover {
      background-color: #2968c8;
    }
    .buy-submit {
      padding: 0.35rem 0.7rem;
    }
    .installments-select {
      flex-grow: 1;
      min-width: 120px;
      padding: 0.3rem 0.5rem;
      border-radius: 4px;
      border: 1px solid #ddd;
      font-size: 0.9rem;
      cursor: pointer;
    }

.dark {
    background-color: rgb(6, 120, 221) !important;
    color: white !important;
}

.noUi-connect {
  background: rgb(6, 120, 221) !important;
}

.contenedor-producto-nombre {
  width: 100%;
  height: calc(1.2em * 2); /* 1.2em es tu line-height; ajústalo al que uses */
  overflow: hidden;
}

.contenedor-producto-nombre h6 {
  font-size: 0.9rem;
  background: none;
  line-height: 1.2em;      
  display: -webkit-box;    
  -webkit-line-clamp: 2;   /* número de líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin: 0;
  padding: 0;
  background: none;
  color: #6e6e6e !important;
  font-weight: 800;
}
