@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f1f5f9;
  color: #1f2937;
  overflow-x: hidden;
}

/* =========================
   MAIN FLEX (FOOTER ABAJO)
========================= */
main {
  flex: 1;
  display: block;
}

/* =========================
   CONTENEDOR
========================= */
.contenedor {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
/* HEADER NORMAL */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #000000;
  transition: all 0.3s ease;
}

.header-top {
  display: grid;
  grid-template-columns: 192px 89px 1fr;
  align-items: center;
  gap: 0px 15px;
  padding: 10px 0;
}

.logo {
  width: 188px;
  height: 43px;
}

.img-logo img {
  width: 188px;
  height: 43px;
  display: flex;
}

/* BOTÓN CATEGORÍAS */
.categorias-desktop {
  background: #111827;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  color: #ffffff;
}

/* BUSCADOR */
.buscador input {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: none;
  outline: none;
}

/* =========================
   BUSCADOR PRO
========================= */
.buscador {
  position: relative;
}

/* RESULTADOS */
.resultados-busqueda {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
}

/* ITEM */
.resultado-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #ffffff;
}

@media (max-width: 768px) {
  .resultado-item {
    padding: 4px;
    font-size: 12px;
  }
}
.resultado-item:hover {
  background: #ffffff;
}

/* IMG */
.resultado-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* TEXTO */
.resultado-info {
  display: flex;
  flex-direction: column;
}

.resultado-nombre {
  font-size: 14px;
}

.resultado-precio {
  color: #16a34a;
  font-weight: bold;
  font-size: 13px;
}

/* CARRITO */
.carrito {
  background: #ffffff;
  color: #ff6600;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 31px;
  cursor: pointer;
  color: #ffffff;
}

/* =========================
   MENÚ NORMAL
========================= */
.menu-bar {
  background: #111827;
  display: block;
  position: relative; /* 👈 CAMBIO CLAVE */
  width: 100%;
  z-index: 9998;
}

/* =========================
   MENÚ desktop
========================= */
.menu-horizontal {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.menu-horizontal > li {
  position: relative;
}

.menu-horizontal > li > a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
}

.submenu li a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
}

.submenu li a:hover {
  background: #f5f5f5;
}

.menu-horizontal li:hover .submenu {
  display: block;
}

.menu-horizontal > li > .menu-padre::after {
  content: " ▾";
  margin-left: 6px;
}

.menu-bar nav {
  display: flex;
  gap: 20px;
  padding: 0px 0;
}

.menu-bar a {
  color: #ffffff;
  text-decoration: none;
}

/* =========================
   CATEGORÍAS MOBILE
========================= */
.categorias-mobile {
  display: none;
  flex-direction: column;
  margin-bottom: 1rem;
}

/* Productos */
.categorias-mobile > a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* Títulos de categoría */
.categorias-mobile > a.grupo-cat {
  color: #f7c948;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover categoría */
.categorias-mobile > a.grupo-cat:hover {
  color: #ffd966;
}

.titulo-cat {
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 15px;
}

.menu-categorias {
  width: 100%;
}

.menu-item {
  border-bottom: 1px solid #ddd;
}

.menu-titulo {
  width: 100%;
  padding: 15px;
  text-align: left;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.submenu {
  display: none;
  padding: 10px 20px;
  background: white;
  z-index: 9999;
}

.submenu a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #333;
}

.submenu a:hover {
  color: #007bff;
}

.submenu.activo {
  display: block;
}

/* =========================
   BOTONES
========================= */
.botonp {
  display: block;
  text-align: center;
  background: #007bff;
  color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.boton:hover {
  background: #007bff;
}

/* =========================
   RESPONSIVE
========================= */
.ficha-tecnica {
  padding: 0 0px 0px 30px;
}

.detalle-info a {
  background-color: #ff0000;
}

@media (max-width: 768px) {
  .header-top {
    grid-template-columns: 1fr auto;
  }
  .menu-toggle {
    display: block;
  }
  .categorias-desktop {
    display: none;
  }
  .menu-bar nav {
    display: none;
    flex-direction: column;
    padding: 12px;
  }
  .menu-bar nav.active {
    display: flex;
  }
  /* 🔥 ACTIVA CATEGORÍAS EN MOBILE */
  .categorias-mobile {
    display: flex;
  }
  /* 🔥 DESACTIVA MEGA MENÚ EN MOBILE */
  .menu-categorias {
    display: none !important;
  }
  .productos {
    grid-template-columns: repeat(2, 1fr);
  }
  .detalle-producto {
    grid-template-columns: 1fr;
  }
  .ficha-tecnica {
    padding: 0px 0px 0px 19px;
  }
}
/* 🔥 ul tipo cuadros */
.ficha-tecnica ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ficha-tecnica li {
  padding: 12px 15px;
  border-bottom: 1px solid #ffffff;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* 🔥 separa mejor el título (Procesador:) del valor */
.ficha-tecnica li strong {
  min-width: 140px;
  display: inline-block;
  color: #333;
}

.ficha-tecnica li:last-child {
  border-bottom: none;
}

.detalle-info p {
  font-size: 22px;
}

@media (max-width: 480px) {
  .productos {
    grid-template-columns: 1fr;
  }
  .detalle-info {
    padding: 0 0px 0px 8px;
  }
  .detalle-info h1 {
    font-size: 25px;
  }
  .detalle-info span {
    font-size: 25px;
  }
  .detalle-info p {
    font-size: 15px;
  }
}
.header-top .acciones {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 840px) {
  .buscador {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo carrito" "menu buscador";
    gap: 10px;
  }
  .header-top .acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .logo {
    width: 164px;
    height: 43px;
  }
  .img-logo img {
    width: 164px;
    height: 43px;
    display: flex;
  }
  .menu-toggle {
    grid-area: menu;
    display: block;
    justify-self: start;
  }
  .acciones {
    grid-area: carrito;
    display: flex;
    justify-content: flex-end;
  }
  /* 🔥 Oculta botón categorías en móvil */
  .categorias-desktop {
    display: none;
  }
}
.footer-sorex {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #111827 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer-overlay {
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  padding: 5rem 0 3rem;
  justify-items: center;
}

.logo-footer img {
  width: 220px;
  max-width: 100%;
  display: block;
  margin-bottom: 0.8rem;
}

.footer-descripcion {
  font-size: 1rem;
  line-height: 1.8;
  color: #d6d6d6;
}

.footer-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  position: relative;
}

.footer-titulo::after {
  content: "";
  width: 140px;
  height: 3px;
  display: block;
  margin-top: 0.7rem;
  background: #facc15;
  border-radius: 5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.2rem;
}

.footer-links a {
  text-decoration: none;
  color: #d1d5db;
  font-size: 1rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #facc15;
  padding-left: 8px;
}

.footer-info {
  font-size: 1rem;
  color: #d1d5db;
  /* margin-bottom: 1rem; */
  line-height: 1.4;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #facc15;
  transform: translateY(-4px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  color: white;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1.5rem 1rem;
}

.footer-copy p {
  font-size: 0.95rem;
  color: #cfcfcf;
  margin: 0;
}

@media (max-width: 770px) {
  .footer-grid {
    gap: 0.5rem 0rem;
    padding: 4rem 0 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-titulo {
    font-size: 1.2rem;
  }
  .footer-descripcion {
    font-size: 0.95rem;
  }
  .footer-links a {
    font-size: 0.95rem;
  }
  .footer-info {
    font-size: 0.95rem;
  }
  .footer-copy p {
    font-size: 0.85rem;
  }
  .logo-footer img {
    width: 180px;
  }
}
@media (max-width: 647px) {
  .footer-grid {
    gap: 0.5rem 0rem;
    padding: 4rem 0 2rem;
    grid-template-columns: repeat(2, 1fr);
    justify-items: start;
  }
}
@media (max-width: 470px) {
  .footer-grid {
    display: grid;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-items: center;
    grid-template-columns: 1fr;
  }
  .footer-col {
    text-align: center;
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 58px;
    height: 58px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}
.footer-credito {
  margin-top: 10px;
  font-size: 1.3rem;
  opacity: 0.8;
}

.footer-credito a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-credito a:hover {
  color: #f7c600;
}

/* =========================
   BOTÓN FILTROS MOBILE
========================= */
.filtros-toggle {
  display: none;
  margin-bottom: 15px;
}

.filtros-toggle button {
  width: 100%;
  padding: 12px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* =========================
   PRODUCTOS
========================= */
.productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0rem 0rem 0rem;
}

.producto {
  position: relative;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.producto:hover {
  transform: translateY(-8px);
}

.producto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
}

.contenido-producto {
  padding: 15px;
}

.cont_productos h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 4rem);
  padding: 2rem 0rem 1rem 0rem;
}

/* botones de whatsapp ag carrito */
.botones-prod {
  display: flex;
  padding: 5px 0px;
}

/* PRECIO */
.precio {
  font-size: 22px;
  font-weight: bold;
  color: #16a34a;
}

.precio-original {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.badge-descuento {
  background: #ff0000;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.badge-oferta {
  background: #ff0000;
  color: #ffffff;
  padding: 3px 11px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  position: absolute;
}

/* =========================
   DETALLE PRODUCTO
========================= */
.detalle-producto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0rem;
  margin: 63px 0 20px 0;
}

@media (max-width: 768px) {
  .detalle-producto {
    margin: 30px 0 20px 0;
  }
}
@media (max-width: 1510px) {
  .productos {
    grid-template-columns: repeat(3, 1fr);
  }
}
.detalle-producto img {
  width: 100%;
}

.precio-grande {
  font-size: 32px;
  color: #16a34a;
  font-weight: 700;
}

.acciones-producto {
  gap: 5px;
  display: flex;
  flex-direction: column;
  margin: 10px 0 0;
}

.badge-oferta-detalle {
  font-weight: 700;
}

/* =========================
   GALERÍA PRODUCTO (NUEVO)
========================= */
.galeria-producto {
  display: flex;
  flex-direction: column;
}

#imgPrincipal {
  width: 87%;
  border-radius: 10px;
}

/* MINIATURAS */
.miniaturas {
  display: flex;
  gap: 10px;
  margin: 10px 0 23px 0;
  flex-wrap: wrap;
}

.miniaturas img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: 0.2s;
}

.miniaturas img:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

/* boton final vertodo */
.ver-todo {
  text-align: right;
  margin-top: 30px;
  margin-bottom: 40px;
}

.ver-todo .boton {
  display: inline-block;
  padding: 12px 25px;
}

/* =========================
   🔥 TIENDA.php
========================= */
.tienda-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 40px;
}

/* =========================
   SIDEBAR FILTROS
========================= */
.filtros {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
}

/* GRUPOS */
.filtro-grupo {
  margin-bottom: 20px;
}

.filtro-grupo h4 {
  margin-bottom: 10px;
}

/* OPCIONES */
.filtro-grupo label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* INPUT PRECIO */
.filtro-grupo input[type=number] {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* =========================
   PRODUCTOS
========================= */
.productos-tienda {
  width: 100%;
}

.productos-tienda h2 {
  margin: 0px 0 19px 0px;
}

/* =========================
   RELACIONADOS (FIX PRO)
========================= */
/* CONTENEDOR */
.reel-productos {
  overflow: hidden;
  position: relative;
}

/* TRACK (el que se mueve) */
.reel-track {
  display: flex;
  gap: 15px;
  width: max-content;
  padding: 26px 0 26px 0;
  overflow: visible;
  will-change: transform;
}

/* 🔥 PAUSA EN HOVER (solo desktop) */
@media (hover: hover) {
  .reel-track:hover {
    animation-play-state: paused;
  }
}
/* ANIMACIÓN */
@keyframes scrollReel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* =========================
   CARD
========================= */
.card-rel {
  flex: 0 0 180px;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 🔥 TRANSICIÓN SUAVE */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 🔥 EFECTO HOVER */
.card-rel:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* =========================
   IMAGEN
========================= */
.card-rel img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* 🔥 ZOOM IMAGEN */
.card-rel:hover img {
  transform: scale(1.15);
}

/* =========================
   TEXTO
========================= */
.card-rel p {
  font-size: 14px;
  margin: 8px 0;
}

@media (max-width: 836px) {
  .detalle-producto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  #imgPrincipal {
    width: 100%;
    border-radius: 10px;
    max-width: 32rem;
  }
  .ficha-tecnica {
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .miniaturas {
    display: flex;
    gap: 10px;
    margin: 10px 0 13px 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 823px) {
  .productos {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================
   MÓVIL
========================= */
@media (max-width: 768px) {
  .card-rel {
    flex: 0 0 140px;
  }
  .card-rel img {
    height: 100px;
  }
}
@media (max-width: 520px) {
  .productos {
    grid-template-columns: 1fr;
  }
  .cont_productos {
    width: 75%;
  }
}
@media (max-width: 440px) {
  .cont_productos {
    width: 85%;
  }
  .descripcion {
    font-size: 14px;
  }
}
/* =========================
   FADE LATERALES (PRO)
========================= */
.reel-productos::before,
.reel-productos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* =========================
   SLIDER (NO TOCADO)
========================= */
.slider {
  width: 100%;
  padding: 25px 350px 23px 350px;
  background: #ffffff;
  border-radius: 16px;
}

@media (max-width: 1550px) {
  .slider {
    margin-top: 0px;
    padding: 25px 90px 23px 90px;
  }
}
@media (max-width: 1000px) {
  .slider {
    margin-top: 0px;
    padding: 0 0 0 0;
  }
}
@media (max-width: 680px) {
  .slider {
    margin-top: 0px;
    padding: 0px;
  }
}
/* =========================
   🔥 CONTENEDOR INTERNO
========================= */
.slider-inner {
  width: 100%;
  aspect-ratio: 9/4;
  border-radius: 14px;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .slider-inner {
    border-radius: 0;
  }
}
/* =========================
   🔥 SLIDES
========================= */
.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* =========================
   🔥 IMAGEN
========================= */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   🔥 OVERLAY
========================= */
/* =========================
   🔥 TEXTO
========================= */
.contenido {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  color: #ffffff;
  max-width: 400px;
}

.tag {
  font-size: 14px;
}

.contenido h1 {
  font-size: 40px;
  margin: 5px 0;
}

.contenido h2 {
  font-size: 50px;
  color: #007bff;
}

.contenido p {
  margin: 10px 0;
}

/* =========================
   🔥 BOTÓN
========================= */
.btn-slider {
  display: inline-block;
  background: #007bff;
  padding: 10px 20px;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
}

/* =========================
   🔥 FLECHAS
========================= */
.flecha-slider {
  display: none;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* =========================
   🔥 DOTS
========================= */
.dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  display: none;
}

.dot {
  height: 10px;
  width: 10px;
  background: #ddd;
  margin: 5px;
  display: inline-block;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #ffffff;
}

/* =========================
   📱 RESPONSIVE
========================= */
@media (max-width: 768px) {
  .slider-inner {
    aspect-ratio: 9/4;
    border-radius: 0;
  }
  .contenido {
    left: 20px;
  }
  .contenido h1 {
    font-size: 22px;
  }
  .contenido h2 {
    font-size: 28px;
  }
}
@media (max-width: 611px) {
  span {
    font-size: 10px;
  }
  .contenido h1 {
    font-size: 12px;
  }
  .contenido h2 {
    font-size: 12px;
  }
  .contenido p {
    margin: 3px 0;
    font-size: 12px;
  }
}
@media (max-width: 517px) {
  .contenido .btn-slider {
    display: none;
  }
}
@media (max-width: 350px) {
  .slider-inner {
    aspect-ratio: 9/4;
  }
}
/* =========================
   🔥 MINI CARRITO
========================= */
.mini-carrito {
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: #ffffff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.mini-carrito.activo {
  right: 0;
}
.mini-carrito.activo a {
  text-align: center;
  width: 52%;
  margin: 0px 0px 0px 14px;
}

@media (max-width: 420px) {
  .mini-carrito.activo {
    width: 100%;
  }
}
.mini-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: #000000;
  color: #ffffff;
}
.mini-header span {
  cursor: pointer;
}

.mini-contenido {
  overflow-y: auto;
  text-align: center;
}

.mini-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #ffffff;
  align-items: center;
}

.mini-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.mini-total {
  padding: 15px;
  font-weight: bold;
}

/* =========================
   🔥 MODAL CORRECTO
========================= */
.modal-carrito {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 20000;
}

.modal-carrito.activo {
  display: flex;
}

.modal-contenido {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
}

/* =========================
   🔥 BOTONES MODAL
========================= */
.modal-botones {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.boton {
  background: #007bff;
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  margin: 6px 0px;
}

.btnProducto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.boton-secundario {
  background: #ff0000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0;
  color: #ffffff;
}

/* =========================
   🔥 BOTONES GENERALES
========================= */
button {
  cursor: pointer;
  background: #ff0000;
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
}

/* =========================
   🛒 CARRITO
========================= */
.tabla-carrito {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

/* HEAD */
.tabla-carrito thead {
  background: #111827;
  color: #ffffff;
}

.tabla-carrito th {
  padding: 12px;
  text-align: left;
}

/* FILAS */
.tabla-carrito td {
  padding: 7px;
  border-bottom: 1px solid #ffffff;
  vertical-align: middle;
  font-size: 14px;
}

/* PRODUCTO */
.producto-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.producto-info img {
  width: 80px; /* 🔥 CONTROLA TAMAÑO */
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 5px;
}

/* CANTIDAD */
.cantidad form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cantidad button {
  background: #111827;
  color: #ffffff;
  border-radius: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 16px;
}

@media (max-width: 680px) {
  .cantidad button {
    width: 25px;
    height: 27px;
  }
}
.cantidad span {
  min-width: 25px;
  text-align: center;
  font-weight: bold;
}

/* ELIMINAR */
.eliminar {
  background: red;
  padding: 8px 12px;
  border-radius: 5px;
}

@media (max-width: 680px) {
  .eliminar {
    padding: 4px 8px;
    margin-right: 4px;
  }
}
/* TOTAL */
.total-carrito {
  margin-top: 20px;
  text-align: right;
}

.total-carrito h2 {
  color: #16a34a;
}

/* BOTÓN WHATSAPP */
.boton-whatsapp {
  display: inline-block;
  margin-top: 15px;
  background: #ff0000;
}

/* =========================
   📱 CARRITO MOBILE
========================= */
@media (max-width: 480px) {
  .tabla-carrito thead {
    display: none;
  }
  .tabla-carrito,
  .tabla-carrito tbody,
  .tabla-carrito tr,
  .tabla-carrito td {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .tabla-carrito tr {
    background: #ffffff;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .tabla-carrito td {
    border: none;
    padding: 2px 0;
  }
  .producto-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .producto-info img {
    width: 65%;
    height: auto;
  }
  .cantidad form {
    justify-content: flex-start;
  }
  .total-carrito {
    text-align: left;
  }
}
/* =========================
   BENEFICIOS
========================= */
.beneficios {
  background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 50%, #1f1f1f 100%);
  padding: 17px 0;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.icono svg {
  width: 110px;
  max-width: 79px;
}

.beneficios h4 {
  color: #00d9ff;
}

@media (max-width: 768px) {
  .beneficios-grid {
    gap: 10px;
  }
  .beneficios-grid .icono {
    font-size: 20px;
  }
  .beneficios-grid h4 {
    font-size: 12px;
  }
  .icono svg {
    width: 110px;
    max-width: 55px;
  }
}
.beneficios {
  padding: 10px 0;
}

@media (max-width: 420px) {
  .beneficios-grid {
    gap: 1px;
  }
  .beneficios-grid h4, p {
    font-size: 8px;
  }
  .icono svg {
    width: 70px;
    max-width: 50px;
  }
}
/* =========================
   📱 TABLET
========================= */
@media (max-width: 900px) {
  .tienda-layout {
    grid-template-columns: 1fr;
  }
  .filtros {
    order: -1;
  }
}
/* =========================
   📱 MOBILE PRO (FILTROS)
========================= */
@media (max-width: 768px) {
  .tienda-layout {
    display: block;
  }
  /* BOTÓN VISIBLE */
  .filtros-toggle {
    display: block;
  }
  /* PANEL OCULTO */
  .filtros {
    display: none;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  /* CUANDO SE ABRE */
  .filtros.activo {
    display: block;
  }
}
/* =========================
   reel de logos de marcas que se vende
========================= */
.brands {
  overflow: hidden;
  width: 100%;
  background: #ffffff;
  padding: 15px 0px 15px 0px;
}

.brands-track {
  display: flex;
  width: max-content;
  animation: scroll 10s linear infinite;
}

.logos {
  display: flex;
  flex-shrink: 0; /* 🔥 clave para que no se rompa */
  align-items: center;
}

.logos img {
  height: 50px;
  margin: 0 40px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.logos img {
  height: 50px;
  margin: 0 40px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logos img:hover {
  transform: scale(1.2);
  filter: brightness(1.3) drop-shadow(0 0 8px #14cdee 0, 201, 236);
  cursor: pointer;
}

/* =========================
   NOSOTROS PREMIUM
========================= */
.nosotros-premium {
  background: #ffffff;
}

/* HERO */
.hero-premium {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ddd, #ffffff);
}

.hero-premium h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-premium p {
  font-size: 18px;
  color: #ddd;
}

/* SECCIONES */
.section-premium {
  padding: 80px 0;
}

.section-premium h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section-premium p {
  color: #111827;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* GRID */
.grid-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.img-premium {
  height: 300px;
  border-radius: 12px;
  background: url("/tienda-tech/imagenes/banner1.jpg") center/cover no-repeat;
}

/* DARK SECTION */
.section-dark {
  background: #111827;
  color: #ffffff;
  padding: 80px 0;
}

.card-premium {
  background: #111827;
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s;
}

.card-premium:hover {
  transform: translateY(-5px);
}

.card-premium h3 {
  margin-bottom: 10px;
}

/* VALORES */
.center {
  text-align: center;
}

.valores-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.valores-premium div {
  padding: 20px;
}

.valores-premium h4 {
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .grid-premium {
    grid-template-columns: 1fr;
  }
  .hero-premium h1 {
    font-size: 32px;
  }
}
/* =========================
   CONTACTO PREMIUM
========================= */
.contacto-premium {
  background: #ffffff;
}

/* HERO */
.contacto-hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ddd, #ffffff);
}

.contacto-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.contacto-hero p {
  color: #ddd;
}

/* GRID */
.contacto-info {
  padding: 60px 0;
}

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

.contacto-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #ffffff;
}

.contacto-card:hover {
  transform: translateY(-5px);
}

.contacto-card h3 {
  margin-bottom: 10px;
}

.telefono {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
}

.contacto-card span {
  color: #ddd;
  font-size: 14px;
}

/* MAPA */
.contacto-mapa {
  width: 95%;
  margin: 40px auto; /* centra */
}

.contacto-mapa iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px; /* opcional, se ve más pro */
}

body.fixed-header {
  padding-top: 120px;
}

.header.fixed {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
}

/* =========================
   🔥 ADMIN PANEL
========================= */
.admin-panel h1 {
  margin-bottom: 20px;
}

/* HEADER ADMIN */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px 0;
}

.admin-acciones {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
}

@media (max-width: 328px) {
  .admin-acciones {
    display: flex;
    gap: 0px;
    flex-direction: column;
    align-items: center;
  }
}
/* TABLA */
.tabla-admin {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.tabla-admin thead {
  background: #111827;
  color: #ffffff;
}

.tabla-admin th,
.tabla-admin td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ffffff;
}

/* HOVER */
.tabla-admin tbody tr:hover {
  background: #ffffff;
}

/* IMAGEN */
.img-admin {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* NOMBRE */
.nombre-prod {
  text-align: left;
}

/* PRECIO */
.precio-admin {
  color: #16a34a;
  font-weight: bold;
}

/* STOCK */
.stock {
  padding: 4px 10px;
  border-radius: 6px;
  color: #000000;
  font-weight: bold;
  font-size: 11px;
}

.stock.bajo {
  background: #ff0000;
}

/* ACCIONES */
.acciones-admin {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
}

.btn-editar {
  background: #007bff;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-eliminar {
  background: #ff0000;
  color: #ffffff;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
}

/* =========================
   📱 RESPONSIVE TABLET
========================= */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .tabla-admin th,
  .tabla-admin td {
    padding: 9px;
    font-size: 12px;
  }
  .img-admin {
    width: 50px;
    height: 50px;
  }
}
/* =========================
   📱 MOBILE PRO (CARD MODE)
========================= */
@media (max-width: 545px) {
  .tabla-admin th,
  .tabla-admin td {
    padding: 5px;
    font-size: 11.5px;
  }
}
@media (max-width: 480px) {
  .tabla-admin thead {
    display: none;
  }
  .tabla-admin,
  .tabla-admin tbody,
  .tabla-admin tr,
  .tabla-admin td {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
  }
  .tabla-admin tr {
    background: #ffffff;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  .tabla-admin td {
    text-align: left;
    padding: 1px 0;
    border: none;
  }
  .acciones-admin {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .img-admin {
    width: 100%;
    height: auto;
  }
}
/* =========================
   🔥 actualizar admin
========================= */
.admin-form h1 {
  margin-bottom: 20px;
}

/* ALERTA */
.alerta-error {
  background: #ffffff;
  color: #ff0000;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* FORM */
.form-admin {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FIELDSET */
.form-admin fieldset {
  border: none;
  margin-bottom: 20px;
}

.form-admin legend {
  font-weight: bold;
  margin-bottom: 10px;
  color: #111827;
}

/* CAMPOS */
.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.campo label {
  font-weight: 600;
  margin-bottom: 5px;
}

.campo input,
.campo textarea,
.campo select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  outline: none;
}

/* GRID */
.campo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* IMG PREVIEW */
.img-preview {
  border-radius: 8px;
  margin-top: 10px;
  width: 100%;
  max-width: 30rem;
}

/* previsualizar multiples img galeria actualizar */
.preview-galeria {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preview-galeria img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ffffff;
}

.preview-img {
  width: 150px;
  margin-top: 10px;
  display: none;
}

.preview-galeria {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.preview-galeria img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ffffff;
}

/* BOTÓN eliminar img de galeria actualizar */
.preview-galeria {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preview-galeria img {
  width: 80px;
  border-radius: 6px;
}

.img-item {
  position: relative;
  display: inline-block;
}

.img-item img {
  width: 100px;
  border-radius: 6px;
}

/* BOTÓN FULL */
.boton-full {
  width: 100%;
  margin-top: 10px;
}

/* =========================
   📱 TABLET
========================= */
@media (max-width: 768px) {
  .campo-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   📱 MOBILE
========================= */
@media (max-width: 480px) {
  .form-admin {
    padding: 15px;
  }
  .img-preview {
    width: 100%;
  }
  .campo input,
  .campo textarea,
  .campo select {
    font-size: 14px;
    width: 100%;
  }
}
.preview-img {
  width: 100%;
  max-width: 30rem;
}

/* =========================
   login stilos
========================= */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #ffffff;
}

.login-box {
  background: #ffffff;
  padding: 30px;
  width: 350px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.login-box h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.login-box label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.login-box input[type=email],
.login-box input[type=password] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.login-box input:focus {
  border-color: #f0c14b;
  outline: none;
}

.btn-login {
  width: 100%;
  background: #f0c14b;
  border: 1px solid #a88324;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.btn-login:hover {
  background: #ddb347;
}

.error {
  color: #ff0000;
  margin-bottom: 10px;
}/*# sourceMappingURL=app.css.map */
