/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  text-decoration: none;
}
/* .agotado{
  display: none!important;
} */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #212635;
  /* background: #f8fafc;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
  background: #f1f5f9;
}
::-webkit-scrollbar {
  width: 4px;
}
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

p {
  font-size: 14px;
  color: #6c757d;
}
.spanP{
 background: linear-gradient(135deg, #064578 0%, #1C66A2 100%);
  background-clip: border-box;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------- */
/* HEADER */
/* ------------------------- */

/* Banner superior */
.banner-superior {
  background-image: linear-gradient(135deg, #00447A, #1664A4) !important;
  color: white;
  padding: 8px 0;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.contenido-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
}

.boton-banner {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
        }

.boton-banner:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* oferta miedo */
.banner-imagen img{
  width: 150px;
}

/* Cabecera principal */
.cabecera {
  background: white;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.contenido-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #212635;
  text-decoration: none;
  flex-shrink: 0;
}

.icono-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.icono-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.logo-texto {
  background: linear-gradient(to right, #00447A, #0c81db, #4a8bf4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 16px;
  color: white;
}

.seccion-navegacion {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.boton-categorias {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  border: none;
  font-size: 14px;
  color: #212635;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.boton-categorias:hover {
  background: rgba(65, 102, 139, 0.1);
}

.contenedor-busqueda {
  flex: 1;
  width: 500px;
  position: relative;
}

.entrada-busqueda {
  width: 100%;
  padding: 10px 45px 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.entrada-busqueda:focus {
  border-color: #55a1cf;
}
.entrada-busqueda::placeholder {
  color: #6c757d;
}

.boton-busqueda {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1664A4;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.3s ease;
  right: 5px;
}
.boton-busqueda:hover {
  background: #4a90b8;
}
.selector-ubicacion {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color:white;
  white-space: nowrap;
}
.busqueda-movil{
  display: none;
}
.btn-movil{
  display: none;
}
.acciones-cabecera {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icono-cabecera {
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  font-size: 18px;
  color: white;
  text-decoration: none;
}.icono-cabecera:hover {
  background: rgba(65, 102, 139, 0.1);
}

.icono-carrito {
  position: relative;
}

.contador-carrito {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #1664A4;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
  .navegacion {
  background: white;
  /* border-top: 1px solid #eee; */
  padding: 10px 0;
  background-image: linear-gradient(135deg, #00447A, #1664A4) !important;
}
.navegacion .contenedor-navegacion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navegador-categories {
display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
    padding: 0.74em 1.5em;
    background-color: #1664A4;
    border-radius: 7px 7px 0 0;
    margin-bottom: -10px;
}.navegador-categories:hover{
  filter: brightness(70%);
  cursor:pointer;
}
.main-nav {
    display: flex;
    gap: 30px;
}
.main-nav a{
 color: white;
}
.main-nav a:hover{filter: brightness(70%);}
.entrada-busqueda{
  background: #e9ecef;
  border-radius: 11px;
}
/* -----------------------------
   CABECERA ESTILO NEURAL GLASS
----------------------------- */
.cabecera {
    position: relative;
    z-index: 1;
    background: linear-gradient(120deg, #0f0c29, #00447A, #24243e);
    overflow: hidden;
    /* Ajusta altura si quieres un header más alto */
}

/* Blur tipo Glass, DETRÁS del contenido */
.cabecera::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: -1; /* ⚡ Debajo del contenido */
}

/* FIGURAS ANIMADAS */
.cabecera .shape {
    position: absolute;
    /* background: rgba(255, 255, 255, 0.15); */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    animation: float 6s infinite;
    z-index: -1; /* Detrás del contenido */
}

/* Tipos de figuras */
.cabecera .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.cabecera .square {
    width: 40px;
    height:40px;
}

.cabecera .triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 255, 255, 0.2);
}
 
/* Animación flotante */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Asegurar que la navegación quede funcional */
.cabecera .contenido-cabecera {
    position: relative;
    z-index: 1; /* encima de blur y figuras */
}

/* Si la nav principal está dentro del header */
.navegacion {
    position: relative;
    z-index: 2; /* siempre encima */
}
/* fin header */
/* ------------------------- */
/* HERO SECTION */
/* ------------------------- */
.hero {
  padding: 30px 0 0 0;
}

.cuadricula-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.carrusel-hero {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 0%);
  border-radius: 15px;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 40px;
  color: white;
  overflow: hidden;
  /* color: #212635; */
}


.contenido-carrusel {
  z-index: 2;
}

.titulo-carrusel {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.subtitulo-carrusel {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 5px;
}

.descripcion-carrusel {
  font-size: 16px;
  opacity: 0.8;
}

.fondo-carrusel {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 577px;
  height: 300px;
  background: url('/src/img/tapo.webp') center/cover;
  opacity: 0.7;
}

.tarjeta-oferta {
  /* background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%); */
  /* background-image: linear-gradient(135deg, #00447A, #1664A4); */
  background: linear-gradient(135deg, #004d99 0%, #00c6ff 170%);
  border-radius: 15px;
  padding: 25px;
  color: white;
  position: relative;
  overflow: hidden;
}

.encabezado-oferta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.titulo-oferta {
  font-size: 24px;
  font-weight: 700;
}

.producto-info {
  margin-bottom: 20px;
}

.prodcuto-img {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
}
.infoproducto-azul{
  background: linear-gradient(320.86deg,#0c71c8 -2.21%,#2699fb); border-radius: 3px;
  display: flex;
  justify-content: center;
}
.infoproducto-verde{
  background: linear-gradient(320.86deg, #4caf50 -2.21%, #81c784);border-radius: 3px;
  display: flex;
  justify-content: center;
}
.titulo-producto {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.etiqueta-descuento {
  background: #e0ac3e;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.seccion-precio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.precio-actual {
  font-size: 28px;
  font-weight: 700;
}

.precio-original {
  font-size: 18px;
  opacity: 0.7;
}

.boton-agregar {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.boton-agregar:hover, .boton-ir:hover {
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.boton-ir {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}
.boton-menu-movil {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
  color: #1664A4;
}

.boton-menu-movil:hover {
  background: rgba(65, 102, 139, 0.1);
}
/* ------------------------- */
/* PRODUCTOS */
/* ------------------------- */

.cuadricula-productos-fac {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.producto-fac {
  background: white;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display:flex;
} 
/* .tarjeta-producto {
  background: white;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display:flex;
} */
.producto-fac{display:block!important;}
/* diseño producoto viejo no eliminar
.tarjeta-producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.imagen-producto {
  width: 150px;
  border-radius: 8px;
  margin-bottom: 15px;
  background-size: cover;
  background-position: center;
  text-align: center;
  margin: 0 auto;
  flex: 1;
  max-width: 150px;
  margin-right: 20px;
  flex: 1;
  max-width: 150px;
  margin-right: 20px;
}

.imagen-producto img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 5px;
}
.producto-detalles{
  flex: 2;
  text-align: left;
}
.nombre-producto {
  font-size: 14px;
  font-weight: 500;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #001541;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;  
}

.precio-producto {
  font-size: 18px;
  font-weight: 700;
  color: #212635;
}

.precio-original-producto {
  font-size: 14px;
  color: #6c757d;
  text-decoration: line-through;
  margin-left: 8px;
}
.opciones-producto {
    display: block;
    margin-top: 7px;
}
.opciones-producto i{
  font-size: .8em;
   width: 38px;
  height: 37px;
  border-radius: 50%;
  background-color: #F1F5F9;
  color: #2d3748;
  padding: .7rem;
  margin-right: 8px;
  }
  .opciones-producto i:hover{
      filter: brightness(80%); 
  } */
/* .btnCarrito{
  padding: .7rem 1.8rem !important;
  display: inline-table!important;
  border: 3px!important;
  border-radius: 30px!important;
  background-color: #1664A4!important;
  color: white!important;
} */
/* carrito */
.carrito-vacio, .checkout-vacio {
  text-align: center;
  padding: 2rem;
  color: #555;
}

.boton-seguir {
  margin-top: 1rem;
  background: #1664A4;
  color: white;
  border: none;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.boton-seguir:hover {
  background: #0F3A5D;
}

.menu-carrito {
  position: fixed;
  top: 0;
  right: -400px; 
  max-width: 400px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: right 0.3s cubic-bezier(.71,.11,.48,1.02), opacity 0.3s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  opacity: 0; 
  visibility: hidden;
  min-width: 360px;
}

.menu-carrito.activo {
  right: 0; 
  opacity: 1; 
  visibility: visible; 
  overflow:hidden;
}

.contenedor-carrito {
    margin-bottom: 40px;
}

.lista-productos {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    overflow: auto;
    max-height: 435px;
    /* box-shadow: 3px 3px 7px rgba(0, 21, 65, 0.15);
    border-radius: 15px; */
}

.producto-carrito {
    display: grid;
    grid-template-columns: 100px 2fr 1fr;
    gap: 0px;
    padding: 10px;
    background: white;
    /* box-shadow: 3px 3px 7px rgba(0, 21, 65, 0.15); */
    border-radius: 15px;
    margin:8px 10px;
    border: 1px solid #e3dddd;
}

.imagen-producto-carrito img {
    width: 100%;
    border-radius: 6px;
}

.info-producto-carrito {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nombre-producto-carrito {
    font-size: 16px;
    font-weight: 600;
    color: #212635;
    width: 150px; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disponibilidad-producto {
    font-size: 12px;
}

.precio-producto-carrito {
    font-weight: 700;
    color: #212635;
    margin-top: 5px;
    font-size: 14px;
    /* color: #666666; */
}

.controles-producto-carrito {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.controles-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.boton-cantidad {
    width: 30px;
    height: 30px;
    /* border: 1px solid #e9ecef; */
    border:none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
/* .btn-carrito{
  width: 27px!important;
    height: 27px!important;
} */
.resumen-compra {
  background: linear-gradient(135deg, #004d99 0%, #00c6ff 170%);
  color: #ffffff;
  padding: 15px;
  position: absolute;
  width: 92%;
  bottom: 60px;
  /* box-shadow: 3px 3px 7px rgba(0, 21, 65, 0.15); */
  border-radius: 15px;
  margin: 19px;
}

.titulo-resumen {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.detalle-resumen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.fila-resumen {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.fila-resumen.total {
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px; 
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #212635;
}

.icon-btn, .back-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #212635;
  border-radius: 8px;
  transition: background 0.2s;

}

.icon-btn i, .back-btn i {
    font-size: 24px; 
}

.boton-eliminar{border: none;padding: 3px;border-radius: 3px; background: transparent;}
.boton-eliminar:hover{filter: brightness(70%);cursor:pointer;}
/* ===== Notificación Carrito (Toast) ===== */
.notificacion-carrito {
  position: fixed;
  top:80px;
  right: 20px;
  background: #00447A;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 0.4s forwards, desaparecer 0.4s 1.8s forwards;
  z-index: 2000;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes desaparecer {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}
/* boton flotante */
/* ===== Botón flotante de Checkout ===== */
.boton-flotante-checkout {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #00447A, #1664A4);
  color: #fff;
  font-weight: bold;
  padding: 14px 28px;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 1500;
  display: none; /* Oculto por defecto */
  transition: transform 0.2s ease;
}

.boton-flotante-checkout:hover {
  transform: translateX(-50%) scale(1.05);
}

/* ------------------------- */
/* CATEGORÍAS */
/* ------------------------- */
#tituloCategoria{
  font-size: 17px;
}
.seccion-categorias {
  margin: 40px 0;
}

.titulo-seccion {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2d3748;
}

.cuadricula-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.tarjeta-categoria {
  background: white;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.tarjeta-categoria:hover {
  transform: translateY(-3px);
}

.icono-categoria {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.nombre-categoria {
  font-size: 14px;
  font-weight: 600;
  color: #212635;
}

/* ------------------------- */
/* MARCAS */
/* ------------------------- */

.seccion-marcas {
  margin: 40px 0;
}

.cuadricula-marcas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.logo-marca {
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo-marca:hover {
  transform: translateY(-2px);
}

/* ------------------------- */
/* CARACTERÍSTICAS */
/* ------------------------- */

.seccion-caracteristicas {
  background: white;
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0;
}

.cuadricula-caracteristicas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.tarjeta-caracteristica {
  text-align: center;
}

.icono-caracteristica {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 15px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #55a1cf;
}

.titulo-caracteristica {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #212635;
}

.descripcion-caracteristica {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}
/* carrito */
.pasos-compra {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.pasos-compra::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  z-index: 1;
}

.paso {
  position: relative;
  z-index: 2;
  background: #e9ecef;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.paso.activo {
  background-image: linear-gradient(135deg, #00447A, #1664A4);
  color: white;
}
/* Articulo */
.miga{
  justify-content: flex-start!important;
}
.miga a{
  color: #6c757d;
  text-decoration: none;
}
.reIndex{
  margin-left: 5px;
}

/* ------------------------- */
/* FOOTER */
/* ------------------------- */

.pie-pagina {
  background: white;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.contenido-pie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.seccion-pie h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #212635;
}

.seccion-pie ul {
  list-style: none;
}

.seccion-pie ul li {
  margin-bottom: 8px;
}

.seccion-pie ul li a {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.seccion-pie ul li a:hover {
  color: #212635;
}

.inferior-pie {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

/* ------------------------- */
/* MENÚ DE CATEGORÍAS */
/* ------------------------- */

/* Overlay del menú */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.activo {
  opacity: 1;
  visibility: visible;
}

/* Menú lateral */
.menu-lateral {
  position: fixed;
  top: 0;
  left: -350px;
  width: 350px;
  height: 100vh;
  background: white;
  z-index: 2000;
  transition: left 0.3s cubic-bezier(.71,.11,.48,1.02);
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.menu-lateral.activo {
  left: 0;
}

/* Header del menú */
.menu-header {
  background: linear-gradient(135deg, #00447A 0%, #0c81db 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom-right-radius: 160px 25px!important;
}

.menu-titulo {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: .75;
}

.boton-cerrar {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.boton-cerrar:hover {
  background: rgba(255,255,255,0.2);
}
.boton-comprar, .boton-carrito, .agregar-carrito {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 47px;
    font-size: 15px;
}

.boton-comprar, .agregar-carrito {
    /* background: #1664A4; */
    background: #004d99;
    color: white;
    width: 100%;
}
.btn-carrito{
  width: 100%;
  height: 50px;
  background: #ffffff;
  color: #004d99;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}.btn-carrito:hover{ transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);}
.boton-comprar:hover{
  filter: brightness(60%);
} .agregar-carrito:hover{
  filter: brightness(60%);
}
.boton-cantidad {
  /* width: 36px;
  height: 36px; */
  /* background: #00447A; */
  width: 28px;
  height: 28px;
  background: #004d99;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  color: white;
  box-shadow: 3px 3px 10px rgba(0, 21, 65, 0.15);
  }
  .boton-cantidad:hover{
    filter: brightness(60%);
  }
  span.cantidad {
  background: white;
  padding: 5px 16px;
  border-radius: 6px;
  box-shadow: 3px 3px 10px rgba(0, 21, 65, 0.15);
}
/* Lista de categorías */
/* categorias modern */
.category-btn{
  width: 300px;
  height: 70px;
}
.lista-categorias {
  list-style: none;
  margin: 0;
  padding: 0;
}

.categoria-principal {
  display: flex;
  align-items: center;
  padding: .8rem 1.5rem;
  text-decoration: none;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.categoria-principal:hover {
  background: linear-gradient(90deg, rgba(0,68,122,0.05) 0%, rgba(74,139,244,0.05) 100%);
  color: #00447A;
}

.categoria-icono {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #00447A;
}

.categoria-icono svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.categoria-texto {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
}

.categoria-flecha {
  font-size: 0.8rem;
  color: #7f8c8d;
  transition: transform 0.3s ease;
}

.categoria-item.expandida .categoria-flecha {
  transform: rotate(90deg);
}

/* Subcategorías */
.subcategorias {
  max-height: 0;
  overflow: hidden;
  background: #f8f9fa;
  transition: max-height 0.3s ease;
}

.categoria-item.expandida .subcategorias {
  max-height: 500px;
}

.subcategoria-item {
  display: block;
  padding: 0.75rem 1.5rem 0.75rem 3.5rem;
  text-decoration: none;
  color: #5a6c7d;
  transition: all 0.3s ease;
  position: relative;
  font-size: 13px;
}

.subcategoria-item:hover {
  background: aliceblue;
  color: #00447A;
  padding-left: 4rem;
}

.subcategoria-item:before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #bdc3c7;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.subcategoria-item:hover:before {
  background: #00447A;
  transform: translateY(-50%) scale(1.5);
}

/* Sección adicional */
.menu-footer {
  padding: 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin-top: 2rem;
}

.menu-footer-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  text-decoration: none;
  color: #5a6c7d;
  transition: color 0.3s ease;
}

.menu-footer-item:hover {
  color: #00447A;
}

.menu-footer-icono {
  width: 20px;
  margin-right: 12px;
  text-align: center;
}

.menu-footer-icono svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
} #mi-header {
  position: sticky;
  top: 0px;
  z-index: 1000;
}
/* checkout */
.grupo-direccion{
  display: flex;
}
.grupo-direccion .grupo-formulario{
  margin: 0 5px;
  width: 100%;
}
.grupo-formulario select{
  background: #E7E7EB;
  min-height: 40px;
}
.grupo-formulario input, .grupo-formulario select, .grupo-formulario textarea {
  width: 100%;
}
#loadingModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10;
  justify-content: center;
  align-items: center;
}

.modal-procesando {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  min-width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.giro {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00447A;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
main{
  min-height: 35dvh;
}
/* notificacion carrito */
#notificacion-carrito {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2ecc71; /* verde éxito */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(-20px);
  z-index: 9999;
}

/* cuando se activa */
#notificacion-carrito.mostrar {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}