/* =====================
   RESET
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
}

/* =====================
   UTILIDADES
===================== */
.oculto {
  display: none !important;
}

button {
  cursor: pointer;
  border: none;
}

/* =====================
   HEADER
===================== */
.header {
  background: #12414a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo img {
  height: 60px;
}

.nav button {
  background: transparent;
  color: #fff;
  font-weight: bold;
  margin-left: 15px;
}

/* =====================
   INICIO
===================== */
#inicio {
  text-align: center;
  padding: 80px 20px;
}

#inicio h1 {
  font-size: 42px;
  color: #12414a;
}

#inicio p {
  font-size: 18px;
  margin: 15px 0 30px;
}

/* =====================
   BOTONES
===================== */
.btn-principal {
  background: #fff;
  color: #12414a;
  border: 2px solid #12414a;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  font-weight: 700;
}

.btn-principal:hover {
  background: #12414a;
  color: #fff;
}

.btn-secundario {
  background: #12414a;
  color: #fff;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  width: 100%;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 16px;
  margin-top: 30px;
  border-radius: 10px;
  width: 100%;
  font-size: 16px;
}
/* =====================
   PRODUCTOS
===================== */
.menu-categorias {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  flex-wrap: wrap;
}

.menu-categorias button {
  background: #12414a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  align-content: start;
}
@media (max-width: 768px) {
  .catalogo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .catalogo {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp 0.4s ease both;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card h4 {
  min-height: 48px;
  max-height: unset;
  overflow: visible;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  min-height: 160px;
}
.btn-ver {
  margin-bottom: 0;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 2px solid #12414a;
  color: #12414a;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-ver:hover {
  background: #12414a;
  color: #fff;
}

.badge {
  background: #ff9800;
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 5px;
  max-width: 80%;
  align-self: center;
}
@media (max-width: 1200px) {
  .catalogo {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .catalogo {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .catalogo {
    grid-template-columns: repeat(2, 1fr);
  }
}
.productos-toolbar {
  max-width: 1200px;
  margin: 30px auto 10px;
  padding: 0 30px;
  display: flex;
  justify-content: flex-end;
}

.filtro-categoria label {
  font-size: 14px;
  font-weight: 600;
  margin-right: 8px;
}

.filtro-categoria select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.productos-layout {
  max-width: 1400px;
  margin: auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

/* SIDEBAR */
.productos-sidebar {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.filtro {
  margin-bottom: 20px;
}

.filtro h4 {
  margin-bottom: 8px;
  color: #12414a;
}

.filtro select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.breadcrumb {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 30px;
  font-size: 14px;
  color: #777;
}

.breadcrumb span {
  cursor: pointer;
}

.breadcrumb .activo {
  color: #12414a;
  font-weight: 600;
}
.productos-header {
  display: flex;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.subcategorias {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 0 25px;
  flex-wrap: wrap;
}

.subcategorias button {
  padding: 6px 14px;
  border: 2px solid #12414a;
  background: transparent;
  color: #12414a;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.subcategorias button.active,
.subcategorias button:hover {
  background: #12414a;
  color: #fff;
}

.filtros-activos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}

.filtro-activo {
  background: #12414a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtro-activo button {
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.btn-limpiar {
  background: transparent;
  border: 2px solid #12414a;
  color: #12414a;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* =====================
   SKELETON LOADER
===================== */
.skeleton-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  height: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  overflow: hidden;
  position: relative;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
}

@keyframes skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.fade-page {
  animation: fadePage 0.35s ease;
}

@keyframes fadePage {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   PAGINACIÓN
===================== */
.paginacion {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 30px;
}

.paginacion button {
  background: #ddd;
  padding: 8px 14px;
  border-radius: 6px;
}

.paginacion button.activa {
  background: #144e8c;
  color: #fff;
}
.paginacion button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* =====================
   DETALLE PRODUCTO
===================== */
.detalle-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 320px;
  gap: 30px;
  padding: 30px;
  align-items: flex-start;
  animation: fadeUp 0.4s ease;
}

.volver {
  margin: 20px;
  background: none;
  color: #0b2c4d;
  font-weight: bold;
}
.badge-color {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff9800;
  color: #fff;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  z-index: 2;
}
.descripcion-producto {
  margin-top: 40px;
  padding: 24px;
  background-color: #f7f7f7;
  border-radius: 8px;
}

.descripcion-producto h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.descripcion-producto p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

/* Si la descripción viene en formato lista */
.descripcion-producto ul {
  padding-left: 20px;
}

.descripcion-producto li {
  margin-bottom: 8px;
}

/* =====================
   GALERÍA (CORREGIDA)
===================== */
.galeria-producto {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.imagen-principal {
  position: relative;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  overflow: hidden;
}

.imagen-principal img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  cursor: zoom-in;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* animación al cambiar imagen */
.imagen-principal img.cambiando {
  opacity: 0;
  transform: scale(0.96);
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flecha.izquierda { left: 10px; }
.flecha.derecha { right: 10px; }

/* MINIATURAS ABAJO */
.miniaturas {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.miniaturas img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.miniaturas img:hover {
  transform: scale(1.1);
}

.miniaturas img.activa {
  border-color: #0b2c4d;
}
/* =====================
   DESCRIPCIÓN PRODUCTO (ESTILO SPI)
===================== */
.descripcion-producto {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  animation: fadeUp 0.4s ease;
}

/* Título */
.descripcion-producto h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0b2c4d; /* Azul corporativo */
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0b2c4d;
}

/* Texto */
.descripcion-producto p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

/* Listas (si la descripción tiene viñetas) */
.descripcion-producto ul {
  margin-top: 10px;
  padding-left: 20px;
}

.descripcion-producto li {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}

.descripcion-producto li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0b2c4d;
  font-size: 18px;
  line-height: 1;
}

/* Separación visual respecto al detalle */
#vistaProducto .descripcion-producto {
  border-top: 1px solid #e4e4e4;
}

/* Responsive */
@media (max-width: 900px) {
  .descripcion-producto {
    margin: 30px 16px 0;
    padding: 22px;
  }

  .descripcion-producto h3 {
    font-size: 20px;
  }
}
/* =====================
   TABS DESCRIPCIÓN (SPI STYLE)
===================== */
.descripcion-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  color: #0b2c4d;
}

.tab-btn.activo {
  color: #0b2c4d;
  border-bottom-color: #0b2c4d;
}

/* Contenido */
.descripcion-contenido {
  padding-top: 10px;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.3s ease;
}

.tab-panel.activo {
  display: block;
}

.tab-panel p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 14px;
}

.tab-panel ul {
  padding-left: 20px;
}

.tab-panel li {
  margin-bottom: 8px;
}

/* Documentación */
.tab-panel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f6f9;
  border-radius: 6px;
  color: #0b2c4d;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

.tab-panel a:hover {
  background: #e7edf3;
}

/* Responsive */
@media (max-width: 768px) {
  .descripcion-tabs {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
    padding: 10px 12px;
  }
}
/* =====================
   ESPECIFICACIONES
===================== */

/* ===== ESPECIFICACIONES (VIÑETA ÚNICA) ===== */

#tab-specs ul {
  padding-left: 0;
  margin: 0;
}

#tab-specs li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

#tab-specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0b2c4d;
  font-weight: bold;
}

/* ===== RESET TOTAL DE VIÑETAS EN DESCRIPCIÓN ===== */
#descripcionProducto ul,
#descripcionProducto li {
  list-style: none !important;
}

/* =====================
   INFO PRODUCTO
===================== */
.info {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  animation: fadeUp 0.5s ease;
}

.info h2 {
  margin-bottom: 10px;
}

.info select,
.info input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}

/* =====================
   CARRITO
===================== */
.carrito {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  animation: fadeUp 0.6s ease;
}

.carrito ul {
  list-style: none;
  margin-top: 10px;
}

.carrito li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.carrito li button {
  background: none;
  color: #000;
  font-size: 16px;
}

/* =====================
   ZOOM
===================== */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
}

/* =====================
   NOTIFICACIÓN
===================== */
.notificacion {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4abcb1;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
}

/* =====================
   ANIMACIONES
===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .detalle-layout {
    grid-template-columns: 1fr;
  }

  .imagen-principal img {
    height: 340px;
  }
}
/* ===== CORRECCIÓN ORDEN GALERÍA ===== */
.galeria-producto {
  display: flex;
  flex-direction: column;
}

.imagen-principal {
  order: 1;
}

.miniaturas {
  order: 2;
  margin-top: 10px;
}

/* =====================
   HEADER STRUCTURE
===================== */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 20px;
}

/* CENTRO */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

/* BUSCADOR */
.header-search input {
  width: 220px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
}


/* LOGO */
.header-logo img {
  height: 45px;
}

/* BOTONES */
.header-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.header-center button {
  background: transparent;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
}

/* CARRITO */
.carrito-wrapper img {
  width: 50px;
  height: 50px;
}
.header-cart img {
  background: transparent;
  object-fit: contain;
}
.header-cart {
  position: relative;
  cursor: pointer;
}

#contadorCarrito {
  position: absolute;
  top: -1px;
  right: -5px;
  background: #ff3b3b;
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 50%;
}

.buscador-resultados {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 999;
}

.buscador-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.buscador-item:hover {
  background: #f2f4f6;
}
/* =====================
   BUSCADOR HEADER
===================== */
.header-search {
  position: relative;
  width: 300px;
}
@media (min-width: 769px) {
.buscador-mobile {
display: none !important;
}
}
#buscador {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* LISTA RESULTADOS */
.buscador-resultados {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  z-index: 9999;
  overflow: hidden;
  animation: fadeDown 0.25s ease;
}
#resultadosBuscador {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);

  max-height: 320px;        /* 👈 alto máximo */
  overflow-y: auto;         /* 👈 scroll vertical */
  overflow-x: hidden;

  z-index: 1000;
}
#resultadosBuscador::-webkit-scrollbar {
  width: 8px;
}

#resultadosBuscador::-webkit-scrollbar-thumb {
  background: #12414a;
  border-radius: 10px;
}

#resultadosBuscador::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.buscador-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.buscador-item:hover {
  background: #f4f6f7;
}

/* ITEM */
.buscador-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.buscador-item.activo {
  background: #f4f6f7;
  color: #fff;
}


.buscador-item:hover {
  background: #f0f4f8;
}

.buscador-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.buscador-item strong {
  color: #0b2c4d;
}

/* ANIMACIÓN */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==== FIX BUSCADOR TEXTO COMPLETO ==== */
.buscador-item div {
  flex: 1;
  min-width: 0;
}

.buscador-item span {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.buscador-texto {
  color: #333;
  font-size: 14px;
  line-height: 1.3;
}

.carrito-wrapper {
  position: relative;
}

.preview-carrito {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  color: #333;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}
.preview-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #e5e5e5;
}
.preview-carrito.activo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.carrito-wrapper button {
  position: relative;
  z-index: 2;
}
.preview-item {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 13px;
  margin-left: 10px;
  position: relative;
  padding-bottom: 8px;
  margin-top: 4px;
}

.preview-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background: transparent;
}

.preview-item:last-child::after {
  display: none;
}
.preview-item:last-child {
  margin-bottom: 0;
}

#btnCarrito {
  background: transparent !important;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1001;
}

#btnCarrito img {
  background: transparent !important;
  display: block;
  pointer-events: none;
}
/* =====================
   SECCIÓN CARRITO
====================== */
#carritoDesktop {
  padding: 40px 20px;
  text-align: center;
}

#carritoDesktop h2 {
  color: #12414a;
  margin-bottom: 30px;
  font-size: 28px;
}

#listaCarritoDesktop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  justify-items: center;
}

#listaCarritoDesktop .card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  text-align: center;
  width: 100%;
  max-width: 300px;
}

#listaCarritoDesktop .card img {
 width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 12px;
}

#listaCarritoDesktop .card h4 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #12414a;
}

#listaCarritoDesktop .card p {
  font-size: 17px;
  color: #666;
  margin: 4px 0;
}

#listaCarritoDesktop .card button {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
}

#listaCarritoDesktop .card button:hover {
  color: #c0392b;
}
.carrito-resumen {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 25px 0 5px;
}
.titulo-carrito {
  display: flex;
  align-items: center;
  gap: 12px;               /* espacio entre ícono y texto */
  margin-bottom: 24px;     /* “aire” hacia abajo */
  font-size: 1.8rem;
  margin-left: 24px;
  margin-top: 24px;
}

.titulo-carrito i {
  font-size: 1.4rem;
  color: black; /* o el color que uses */
}
/* =====================
   CARRUSEL RELACIONADOS
====================== */
#relacionados {
  margin-top: 40px;
  text-align: center;
}

#relacionados h3 {
  color: #12414a;
  margin-bottom: 40px;
  font-size: 25px;
}

.carrusel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 10px;
}


.carrusel {
  overflow: hidden;
  width: 100%; 
  max-width: 1000px;
  transition: transform 0.4s ease;
  display: flex;
}

.flecha-carrusel {
  background: #12414a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

.flecha-carrusel:hover {
  background: #0b2c4d;  
}
.carrusel-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
  gap: 20px;
}

.carrusel-track .card {
  flex: 0 0 calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.carrusel-track .card h4 {
  min-height: 48px;
  max-height: unset;
  overflow: visible;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  justify-self: center;
}
@media (max-width: 900px) {
  .carrusel-track .card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 500px) {
  .carrusel-track .card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}



@media (max-width: 768px) {

  .galeria-producto {
    gap: 8px;
  }

  .imagen-principal img {
    height: 280px;
  }

  .flecha {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  /* miniaturas tipo carrusel */
  .miniaturas {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 4px;
  }

  .miniaturas img {
    min-width: 64px;
    flex-shrink: 0;
  }

  .miniaturas::-webkit-scrollbar {
    height: 6px;
  }

  .miniaturas::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
  }
}
/* =====================
   COLORES CIRCULARES
===================== */
.colores-producto {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.color-item {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.color-item:hover {
  transform: scale(1.1);
}

.color-item.activo {
  border-color: #0b2c4d;
}

/* fallback si el color no existe */
.color-item[data-color="default"] {
  background: linear-gradient(45deg, #ccc, #999);
}
.campo-detalle {
  margin-top: 12px;
}

.campo-detalle label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
/* =====================
   FOOTER
===================== */
.footer {
  background: #12414a;
  color: #cfd8dc;
  margin-top: 60px;
  font-size: 14px;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-contacto {
  list-style: none;
}

.footer-contacto li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer-contacto i {
  color: #ff9800;
  margin-top: 2px;
}


.footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-col p {
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #cfd8dc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

/* REDES */
.footer-redes {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-redes a {
  color: #fff;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-redes a:hover {
  transform: scale(1.15);
  color: #ff9800;
}

.footer-redes .whatsapp:hover {
  color: #ff9800;
}

/* BARRA INFERIOR */
.footer-bottom {
  background: #4abcb1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #000000;
}
/* =====================
   MAPA FOOTER
===================== */
.footer-mapa iframe {
  width: 400px;
  height: 300px;
  border: none;
  border-radius: 5px;
  filter: grayscale(0.2) contrast(1.05);
}

/* Ajuste visual */
.footer-mapa h4 {
  margin-bottom: 10px;
}
.footer {
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contacto li {
    justify-content: center;
  }
}

/* ======================
   BANNER INICIO
====================== */
#banner-inicio img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* ======================
   CATEGORÍAS INICIO
====================== */
.categorias-carrusel {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;     /* 🔑 oculta lo que no entra */
  overflow: visible;
  position: relative;
}
.categorias-viewport {
overflow-x: auto;
overflow-y: hidden;
scroll-behavior: smooth;
width: 100%;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
}
.categorias-viewport::-webkit-scrollbar {
display: none;
}
.categorias-track {
  display: flex;
  flex-wrap: nowrap;     /* 🔑 JAMÁS bajar */
  gap: 16px; /* 🔑 el ancho lo define el contenido */
  will-change: transform;
  transition: transform 0.45s ease;
  scroll-behavior: smooth;
}
#inicio-categorias {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

#inicio-categorias h2 {
  font-size: 30px;
  color: #12414a;
  margin-bottom: 20px;
}

.categorias-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
/* ===== CATEGORÍAS HOME ===== */
.categorias-home {
  padding: 50px 20px;
  text-align: center;
}

.categorias-home h2 {
  font-size: 32px;
  color: #12414a;
  margin-bottom: 25px;
}

.categorias-cards {
display: flex;
gap: 16px;
width: max-content; /* FUNDAMENTAL */
padding: 16px 0;
transition: transform 0.3s ease;
}

.categoria-card {
  flex: 0 0 auto;
  width: 205px; /* ancho fijo estable */
  min-width: 205px;
  min-height: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  scroll-snap-align: start;
  display: inline-flex; 
}

.categoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}


.categoria-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  align-self: center;
}


.categoria-card h3 {
   font-size: 17px;
  margin-bottom: 10px;
  color: #12414a;
  font-weight: 600;
}

.categoria-card button {
  background: #12414a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.categorias-wrapper {
position: relative;
display: flex;
align-items: center;
width: 100%;
max-width: 100vw;
overflow: visible;
padding: 0 60px; /* espacio para flechas */
}
.ver-todos-wrapper {
  margin-top: 20px;
}
/* Wrapper para desktop: ocupa 100% ancho y posicion relative */

.categorias-cards, .categorias-home, #categoriasWrapper { 
  flex-wrap: nowrap !important; 
}

/* Flechas: posicionadas a los lados, no tapan el contenido */
.flecha-categoria {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 999; /* por encima de todo */
pointer-events: auto;
background: #0b3c45;
color: #fff;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
font-size: 24px;
cursor: pointer;
display: flex;

}


.flecha-categoria.izquierda {
left: 8px;
}


.flecha-categoria.derecha {
right: 8px;
}


/* Ocultar scrollbar */
#categoriasContainer::-webkit-scrollbar { display: none; }

/* Cards: mantener tu estilo pero asegurar min-width coherente */


@media (min-width: 769px) {
  .flecha-categoria {
    display: block;
  }
}
/* ======================
   DESTACADOS
====================== */
#destacados {
  padding: 50px 20px;
  padding-top: 5px;
  text-align: center;
}

#destacados h2 {
  font-size: 30px;
  color: #12414a;
  margin-bottom: 20px;
}

.destacados-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.destacados-carrusel {
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
}

.destacados-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 12px;
  padding: 12px 0;
}

.destacados-track .card {
  flex: 0 0 calc((100% - 48px) / 5); /* 5 cards, 4 gaps */
  max-width: calc((100% - 48px) / 5);
  cursor: auto;
  flex-direction: column;
  height: 320px;
}
.categoria-card-text {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.destacados-track .card h4 {
  min-height: 48px;
  max-height: unset;
  overflow: visible;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
}
.flecha-destacados {
  background: #12414a;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.btn-ver-des {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 2px solid #12414a;
  color: #12414a;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-ver-des:hover {
  background: #12414a;
  color: #fff;
}
@media (max-width: 768px) {
  .destacados-track .card {
    min-height: 300px;
  }
}

.header-mobile,
.menu-mobile {
  display: none;
}


/* =====================
   CARRUSEL BANNER INICIO
===================== */
.banner-carrusel {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 300ms ease; /* suaviza cambio de alto */
  box-sizing: border-box;
  min-height: 0; /* opcional, controla mínimo si lo necesitas */
}

/* Track: cada slide ocupa 100% del ancho */
.banner-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  align-items: flex-start; /* <-- CRÍTICO: evita estirar hijos */
}

/* Slide wrapper: evita que flex estire la imagen */
.banner-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente dentro de la slide */
  overflow: hidden;
}

/* Imagen: no forzar altura, mantener proporción */
.banner-slide img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}



.banner-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.banner-flecha.izquierda { left: 10px; }
.banner-flecha.derecha { right: 10px; }

.banner-indicadores {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-indicador {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.banner-indicador.activo {
  background: #fff;
}

.btn-filtrar-mobile {
display: none;
}
.btn-cerrar-filtros {
display: none;
}

/* =====================
   SECCIÓN MARCAS
===================== */
.marcas {
  max-width: 1400px;
  margin: 10px auto;
  padding: 0 30px;
}

.marcas h3 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #12414a;
  font-weight: 700;
  text-align: center;
}

/* CONTENEDOR CARRUSEL */
.marcas-carrusel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 33px;
}

/* VENTANA */
.marcas-viewport {
  overflow: hidden;
  padding: 12px;
  width: 100%;
}

/* TRACK */
.marcas-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  overflow: visible;
  padding: 8px 6px;
}

/* CARD MARCA */
.marca {
  flex: 0 0 160px;
  height: 100px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: 
    transform .2s ease,
    box-shadow .2s ease,
    border .2s ease;
  border: 2px solid transparent;
}

.marca img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .85;
  transition: filter .2s ease, opacity .2s ease;
}

/* HOVER */
.marca:hover {
   transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.marca:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ACTIVA (marca filtrada) */
.marca.activa {
  border-color: #12414a;
  box-shadow: 0 6px 16px rgba(18,65,74,.25);
}

.marca.activa img {
  filter: grayscale(0%);
  opacity: 1;
}
/* FLECHAS DESKTOP */
.marcas-carrusel .flecha {
  background: rgba(18,65,74,.9);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.marcas-carrusel .flecha:hover {
  background: #12414a;
}

.marcas-carrusel .flecha.izquierda {
  left: -10px;
}

.marcas-carrusel .flecha.derecha {
  right: -10px;
}


/* =====================
   NOSOTROS - HERO
===================== */

.nosotros-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.nosotros-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nosotros-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.nosotros-hero-texto {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.nosotros-hero-texto h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.nosotros-hero-texto p {
  font-size: 18px;
  opacity: 0.9;
}

/* =====================
   CONTENIDO NOSOTROS
===================== */

.contenedor-nosotros {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 30px;
}

.nosotros-intro {
  text-align: center;
  margin-bottom: 50px;
  color: #12414a;
  line-height: 1.7;
}

/* 🔴 VERTICAL */
.nosotros-secciones {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* =========================
   NOSOTROS - TEXTO
========================= */

.nosotros-texto {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.nosotros-texto h2 {
  font-size: 32px;
  font-weight: 800;
  color: #12414a;
  margin-bottom: 25px;
}

.nosotros-texto p {
  font-size: 20px;
  line-height: 1.7;
  color: #444;
  max-width: 900px;
  margin: 0 auto;
}
/* =========================
   MISIÓN – LAYOUT 2 COLUMNAS
========================= */

.nosotros-mision {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.mision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* TEXTO | IMAGEN */
  gap: 60px;
  align-items: start;
}

/* Texto */
.mision-texto h3 {
  font-size: 28px;
  font-weight: 700;
  color: #12414a;
  margin-bottom: 20px;
}

.mision-texto h3 span {
  font-weight: 400;
  color: #666;
}

.mision-texto p {
  font-size: 16px;
  line-height: 1.7;
  color: #212121;
}

/* Imagen */
.mision-imagen img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

/* =========================
   ANIMACIÓN SUAVE
========================= */

.animable {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.animable.animar {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
   DIVISOR ENTRE SECCIONES
========================= */
.divisor {
  width: 100%;
  max-width: 1200px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #4abcb1,
    transparent
  );
  margin: 30px auto;
}
.nosotros-divider {
  width: 100%;
  max-width: 1200px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #4abcb1,
    transparent
  );
  margin: 70px auto;
}

.nosotros-porque {
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 20px;
}

/* Texto */
.porque-texto h3 {
  font-size: 28px;
  font-weight: 700;
  color: #12414a;
  margin-bottom: 20px;
  justify-content: center;
  text-align: center;
}

.porque-texto h3 span {
  font-weight: 400;
  color: #666;
}

.porque-texto p {
  font-size: 16px;
  line-height: 1.7;
  color: #212121;
}

/* LISTA - POR QUÉ ELEGIRNOS */
.porque-lista {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.porque-lista li {
  display: flex;  /* ícono alineado con el título */
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}
.porque-lista li i {
  width: 65px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  color: #12414a;

  background-color: #e9f2f4;
  border-radius: 50%;

  flex-shrink: 0;
}
.porque-lista li > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.porque-lista li:last-child {
  border-bottom: none;
}

.porque-lista strong {
  display: block;
  font-size: 20px;
  color: #12414a;
  margin-bottom: 6px;
}

.porque-lista span {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}



.buscador-sin-resultados {
  padding: 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.sin-resultados {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.sin-resultados h3 {
  margin-bottom: 10px;
  color: #12414a;
}

.footer-bottom a {
  color: inherit;        /* usa el mismo color del texto */
  text-decoration: none; /* quita el subrayado */
  font-weight: bold;     /* lo deja en negrita */
}

.footer-bottom a:hover {
  text-decoration: none; /* evita que se subraye al pasar el mouse */
}

.footer-bottom .developer-link {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: all 0.25s ease;
}

/* línea animada debajo */
.footer-bottom .developer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.footer-bottom .developer-link:hover::after {
  width: 100%;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.icono-busqueda {
  position: absolute;
  right: 12px;
  color: #777;
  font-size: 14px;
  pointer-events: none;
}

.header-search input {
  padding-right: 36px; /* espacio para la lupa */
}
.header-search input:focus + .icono-busqueda,
.header-search:focus-within .icono-busqueda{
  color:#000;
}

.modal-aviso {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* FONDO OSCURO */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* CAJA */
.modal-contenido {
  position: relative;
  background: #fff;
  padding: 26px 22px;
  border-radius: 16px;
  max-width: 380px;
  width: 90%;
  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);

  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.22, 1.2, .3, 1);
}

/* ICONO */
.modal-contenido .icono {
  font-size: 32px;
  margin-bottom: 10px;
}

/* TEXTO */
.modal-contenido h3 {
  margin-bottom: 8px;
  color: #12414a;
}

.modal-contenido p {
  font-size: 14px;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* BOTÓN */
.modal-contenido button {
  background: #12414a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-contenido button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ====== ESTADO ACTIVO ====== */
.modal-aviso.activo {
  pointer-events: auto;
}

.modal-aviso.activo .modal-overlay {
  opacity: 1;
}

.modal-aviso.activo .modal-contenido {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.no-mostrar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
  cursor: pointer;
}

.no-mostrar input {
  accent-color: #12414a;
  cursor: pointer;
}
