:root {
  --primary-blue: #0a57a2;
  --light-blue: #0f6cc5;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1b1f23;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

.site-header {
  background: var(--primary-blue);
  color: #fff;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  z-index: 100;
}

.site-header .container-fluid {
  overflow: visible;
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  overflow: visible;
}

.logo-wrap {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  aspect-ratio: 152 / 46;
}

.search-wrap {
  max-width: 720px;
  overflow: visible;
}

/* ===== BUSCADOR AUTOCOMPLETADO ===== */
.search-autocomplete {
  position: relative;
  width: 100%;
  overflow: visible;
}

.search-dropdown {
  position: fixed;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 10000;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #e5e7eb;
  border-top: none;
  margin-top: 4px;
  /* Posición será calculada dinámicamente con JS */
}

.search-dropdown-content {
  padding: 0;
}

.search-dropdown-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item:focus {
  background: #f8fafc;
}

.search-dropdown-item:hover .search-item-title,
.search-dropdown-item:focus .search-item-title {
  color: var(--primary-blue);
}

.search-dropdown-item.selected {
  background: #e2e8f0 !important;
}

.search-dropdown-item.selected .search-item-title {
  color: var(--primary-blue) !important;
  font-weight: 700;
}

.search-item-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 4px;
  line-height: 1.3;
}

.search-item-code {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
}

.search-dropdown-loading,
.search-dropdown-empty {
  padding: 20px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

.search-dropdown-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.search-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive: en móviles el dropdown ocupa todo el ancho disponible */
@media (max-width: 767px) {
  .search-dropdown {
    max-height: 60vh;
    border-radius: 0 0 8px 8px;
  }

  .search-dropdown-item {
    padding: 14px 16px;
  }

  .search-item-title {
    font-size: 0.9rem;
  }
}

.search-bar .form-control {
  border-right: 0;
  min-height: 42px;
}

.search-bar .btn {
  border-left: 0;
  min-height: 42px;
}

.mic-btn {
  background: #fff;
  border-color: #ced4da;
  transition: all 0.2s ease;
}

.mic-icon {
  width: 20px;
  height: 20px;
  color: #333;
  transition: color 0.2s ease;
}

.mic-btn:hover .mic-icon {
  color: #0a57a2;
}

/* Estado: Escuchando (rojo) */
.mic-btn.listening .mic-icon {
  color: #dc2626;
  animation: pulse-red 1.5s ease-in-out infinite;
}

/* Estado: Reconocido (verde) */
.mic-btn.recognized .mic-icon {
  color: #16a34a;
}

@keyframes pulse-red {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.search-bar .form-control,
.search-bar .btn {
  background: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stock-switch {
  display: flex;
  align-items: center;
}

.stock-switch .form-check-label {
  color: #fff;
  margin-left: 4px;
}

.icon-btn {
  border: 0;
  background: #16a34a;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn + .icon-btn {
  background: #22c55e;
}

.icon-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Botón del carrito con texto y badge */
.cart-btn {
  position: relative;
  padding-right: 8px;
  min-width: auto;
  text-decoration: none;
}

.cart-text {
  margin-left: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #fff;
  animation: blink-badge 1s ease-in-out infinite;
}

@keyframes blink-badge {
  0%, 50% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

/* Cuando el carrito tiene items, mostrar texto y ajustar ancho */
.cart-btn.has-items {
  width: auto;
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 767px) {
  .site-header .container-fluid {
    max-width: 100%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    overflow: visible;
  }

  .header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    position: relative;
  }

  .mobile-menu-btn {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
  }

  .logo-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    z-index: 0;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: center;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    width: 100%;
  }
}

/* Botón hamburguesa móvil */
.mobile-menu-btn {
  border: 0;
  background: transparent;
  color: #fff;
  min-width: auto;
  width: auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  cursor: pointer;
  padding: 0 8px;
}

.mobile-menu-btn .icon-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mobile-menu-text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.category-bar {
  background: #094a8b;
  color: #fff;
  min-height: 44px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .category-bar {
    overflow: visible;
  }
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-link,
.category-pill {
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* En móvil: categorías en múltiples filas sin scroll horizontal */
@media (max-width: 767px) {
  /* Asegurar que todos los contenedores principales respeten el ancho */
  main,
  .container,
  .container-fluid {
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
  }

  .category-bar {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .category-bar .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
    width: 100%;
  }

  .category-scroll {
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 8px 0;
    gap: 8px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .category-link,
  .category-pill {
    white-space: normal;
    scroll-snap-align: none;
    flex-shrink: 0;
    word-break: break-word;
    max-width: 100%;
  }
}

.category-pill {
  background: #ef4444;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.hero-banner {
  position: relative;
  color: #fff;
  overflow: hidden;
  max-width: 100%;
  /* Reservar espacio con aspect-ratio para evitar CLS */
  aspect-ratio: 1920 / 420;
  max-height: 420px;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
}

/* Mini banner en móviles - altura fija, sin superposición */
@media (max-width: 767px) {
  .hero-banner {
    aspect-ratio: auto;
    max-height: none;
  }

  .hero-banner-img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.product-strip {
  margin-top: -70px;
  padding-bottom: 32px;
  position: relative;
  z-index: 2;
}

/* En móviles, sin superposición sobre el mini-banner */
@media (max-width: 767px) {
  .product-strip {
    margin-top: -60px;
  }

  .hero-banner {
    margin-bottom: 0;
  }
}

.carousel-container {
  --card-width: 200px;
  --gap: 16px;
  --visible-cards: 5;
  --total-width: calc(var(--card-width) * var(--visible-cards) + var(--gap) * (var(--visible-cards) - 1));
  position: relative;
  max-width: calc(var(--total-width) + 100px);
  margin: 0 auto;
  padding: 0 50px;
}

.carousel-viewport {
  overflow: hidden;
  padding: 16px 0 8px;
}

.product-scroll {
  display: flex;
  gap: var(--gap);
  transition: transform 0.3s ease;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 14px;
  flex: 0 0 var(--card-width);
  min-width: var(--card-width);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin: 8px 0 12px;
  aspect-ratio: 1 / 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-btn .icon-svg {
  width: 24px;
  height: 24px;
  fill: #333;
}

@media (max-width: 1199px) {
  .carousel-container {
    --visible-cards: 4;
  }
}

@media (max-width: 991px) {
  .carousel-container {
    --visible-cards: 3;
  }
}

@media (max-width: 767px) {
  /* Carrusel swipeable: 2.5 items visibles (uno a la mitad para indicar scroll) */
  .carousel-container {
    --card-width: calc((100vw - 44px) / 2.5);
    --gap: 10px;
    padding: 0 12px;
    max-width: 100%;
  }

  .carousel-btn {
    display: none !important;
  }

  .carousel-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .product-scroll {
    transform: none !important;
  }

  .product-card {
    scroll-snap-align: start;
    padding: 10px;
    /* Flex para alinear precios/cuotas a la misma altura */
    display: flex;
    flex-direction: column;
  }

  .product-card .product-card-img-link,
  .product-card .product-card-img-link img {
    flex-shrink: 0;
  }

  .product-card-featured h6.product-card-title {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
  }

  .product-card-featured h6.product-card-title a {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.3;
  }

  .product-card .product-installments {
    flex-shrink: 0;
    margin-top: auto;
  }

  .product-card .product-price {
    flex-shrink: 0;
  }

  .product-card img,
  .product-card-featured img {
    height: 110px;
  }
}

@media (max-width: 479px) {
  .carousel-container {
    /* Mantener 2.5 items en pantallas muy pequeñas */
    --card-width: calc((100vw - 44px) / 2.5);
  }
}

@media (min-width: 768px) {
  .logo-img {
    height: 46px;
  }

  .hero-banner {
    min-height: 420px;
  }

  .product-strip {
    margin-top: -65px;
  }

  .product-scroll {
    --card-width: 200px;
  }
}

/* Sección de marcas */
.brands-section {
  padding: 48px 0;
  background: #fff;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.brand-logo:hover {
  background: #f8fafc;
}

.brand-logo img {
  height: 120px;
  max-width: 280px;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}

.brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 991px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 32px;
  }

  .brand-logo img {
    height: 100px;
    max-width: 220px;
  }
}

@media (max-width: 767px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .brand-logo {
    padding: 20px;
  }

  .brand-logo img {
    height: 85px;
    max-width: 180px;
  }
}

/* Sección destacados */
.featured-section {
  padding: 48px 0;
  background: #fff;
}

.section-header-wrap {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.section-banner {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-blue);
  padding: 10px 24px;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Título azul sobre fondo blanco (LO MÁS NUEVO) */
.section-title-blue {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin: 0;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Sección Super Sale */
.supersale-section {
  padding: 32px 0;
  background: #f8f9fa;
}

.supersale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.supersale-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supersale-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.supersale-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sección Lo más nuevo */
.nuevos-section {
  padding: 48px 0;
  background: #fff;
}

/* Banner de marca (Stihl, etc.) */
.banner-marca-section {
  padding: 0 0 32px;
  background: #fff;
}

.banner-marca-link {
  display: block;
}

.banner-marca-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel para destacados */
.carousel-container-featured {
  --visible-cards: 5;
}

.product-card-featured {
  text-align: center;
}

.product-card-featured img {
  height: 160px;
}

.product-card-featured h6 {
  font-size: 0.85rem;
  line-height: 1.3;
  min-height: 2.6em;
}

.product-card-featured h6 a,
.product-card-featured h6 a:visited,
.product-card-featured h6 a:link {
  color: #1b1f23;
  text-decoration: none;
  font-weight: 600;
}

.product-card-featured h6 a:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

.product-card-img-link {
  display: block;
}

.badge-featured {
  background: linear-gradient(135deg, #0ea5e9, var(--primary-blue));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
}

.badge-offer {
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
}

.product-installments {
  font-size: 0.75rem;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 8px 0 4px;
}

.product-installments sup {
  font-size: 0.6em;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: #dc2626;
  margin: 0;
}

.product-price sup {
  font-size: 0.6em;
}

@media (max-width: 1199px) {
  .carousel-container-featured {
    --visible-cards: 3;
  }
}

@media (max-width: 767px) {
  .section-banner {
    font-size: 1.2rem;
    padding: 8px 18px;
  }

  .section-title-blue {
    font-size: 1.2rem;
  }
}

/* Sección de estadísticas */
.stats-section {
  padding: 48px 0;
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1b1f23;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

/* Sección de categorías */
.categories-section {
  padding: 48px 0;
  background: #fff;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 4/3;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-card-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.category-card-wide {
  grid-column: span 2;
}

@media (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card-tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .category-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 479px) {
  .category-name {
    font-size: 0.85rem;
    padding: 12px;
  }
}

/* Listón de pagos y envíos */
.payment-shipping-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}

.payment-shipping-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  gap: 48px;
}

.payment-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-cards-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.payment-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1b1f23;
  line-height: 1.2;
}

.payment-link {
  font-size: 0.85rem;
  color: var(--light-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.payment-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.shipping-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shipping-icon {
  width: 32px;
  height: 32px;
  fill: var(--primary-blue);
  flex-shrink: 0;
}

.shipping-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shipping-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1b1f23;
  line-height: 1.2;
}

.shipping-subtitle {
  font-size: 0.85rem;
  color: var(--light-blue);
  font-weight: 500;
}

@media (max-width: 767px) {
  .payment-shipping-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: auto;
    padding: 12px 0;
  }

  .payment-section {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .shipping-section {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .payment-cards-img {
    height: 28px;
  }

  .shipping-icon {
    width: 28px;
    height: 28px;
  }

  .payment-title,
  .shipping-title {
    font-size: 0.85rem;
  }

  .payment-link,
  .shipping-subtitle {
    font-size: 0.8rem;
  }
}

/* Sección de información */
.info-section {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.info-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  flex-shrink: 0;
  line-height: 1;
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.info-text {
  font-size: 0.9rem;
  color: #1b1f23;
  margin: 0;
  line-height: 1.6;
}

.info-text a {
  color: #1b1f23;
  text-decoration: none;
  font-weight: 500;
}

.info-text a:hover {
  color: var(--primary-blue);
}

.info-schedule {
  color: var(--primary-blue);
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .info-item {
    display: block;
    text-align: center;
  }

  .info-icon {
    display: none;
  }
}

/* Footer y Newsletter */
.site-footer {
  background: var(--primary-blue);
}

.newsletter-section {
  padding: 48px 0;
  text-align: center;
}

.newsletter-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form .form-control {
  border-radius: 4px 0 0 4px;
  border: none;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.newsletter-form .btn {
  border-radius: 0 4px 4px 0;
  background: #16a34a;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  white-space: nowrap;
}

.newsletter-form .btn:hover {
  background: #15803d;
}

.newsletter-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-message {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.newsletter-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.newsletter-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

@media (max-width: 479px) {
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    border-radius: 4px;
  }
}

/* Footer principal (rojo) */
.footer-main {
  background: var(--primary-blue);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col {
  color: #fff;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}

/* Acordeón footer: en desktop el trigger es un título estático */
.footer-accordion-trigger {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  font: inherit;
  color: inherit;
}

.footer-accordion-icon {
  display: none;
}

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

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

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-text {
  font-size: 0.9rem;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.5;
}

.footer-text a {
  color: #fff;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

.footer-label {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Ocultar footer-main en móvil (sin acordeón, solo pie común) */
@media (max-width: 767px) {
  .footer-main {
    display: none !important;
  }
}

/* Footer acordeón solo en móvil - ya no se usa, footer-main oculto */
@media (max-width: 767px) {
  .footer-accordion-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
  }

  .footer-accordion-trigger:hover {
    opacity: 0.9;
  }

  .footer-accordion-icon {
    display: inline-flex;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .footer-col.is-open .footer-accordion-icon {
    transform: rotate(180deg);
  }

  .footer-col-content {
    display: none;
    padding: 12px 0 20px;
    text-align: left;
  }

  .footer-col.is-open .footer-col-content {
    display: block;
  }

  .footer-grid {
    text-align: left;
  }
}

/* Footer bottom (azul) */
.footer-bottom {
  background: var(--primary-blue);
  padding: 16px 0;
  border-top: 1px solid white;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-copy {
  color: #fff;
  font-size: 0.85rem;
}

.footer-fiscal {
  height: 40px;
  width: auto;
}

@media (max-width: 479px) {
  .footer-bottom-content {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 479px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* ===== SUPERMENU ===== */
.categories-dropdown {
  position: relative;
  display: inline-block;
}

.category-link-menu {
  cursor: pointer;
}

.categories-dropdown-wrapper {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  background: #00489E;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.categories-dropdown.active .categories-dropdown-wrapper {
  display: block;
}

.supermenu-loading {
  padding: 40px;
  text-align: center;
  color: #fff;
  font-size: 1rem;
}

.supermenu-container {
  display: flex;
  min-height: 300px;
  max-height: calc(100vh - 140px);
}

.supermenu-container.expanded {
  min-height: 400px;
}

.supermenu-categories {
  width: 320px;
  background-color: #f8f9fa;
  padding: 8px 0;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

.supermenu-category-item {
  display: block;
  padding: 10px 20px;
  color: #1b1f23;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.supermenu-category-item:hover,
.supermenu-category-item.active {
  background-color: #00489E;
  color: #fff;
}

.supermenu-category-item::after {
  content: '>';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 0.8rem;
}

.supermenu-category-item:hover::after,
.supermenu-category-item.active::after {
  opacity: 1;
  color: #fff;
}

.supermenu-category-item.active::after {
  content: '-';
}

.supermenu-subcategories {
  flex: 1;
  padding: 24px;
  display: none;
  background: #00489E;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

.supermenu-subcategories::-webkit-scrollbar {
  width: 8px;
}

.supermenu-subcategories::-webkit-scrollbar-track {
  background: transparent;
}

.supermenu-subcategories::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.supermenu-subcategories.active {
  display: block;
}

.supermenu-subcategories h3 {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.supermenu-category-title {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.supermenu-category-title:hover {
  color: #8BC34A;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.subcategory-item {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px;
}

.subcategory-main-title {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-transform: uppercase;
}

.subcategory-main-title:hover {
  color: #8BC34A;
}

.subcategory-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subcategory-child {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.subcategory-child:hover {
  color: #fff;
}

.subcategory-child.view-all {
  color: #8BC34A;
  font-weight: 600;
  margin-top: 4px;
}

.subcategory-child.view-all:hover {
  color: #9CCC65;
}

.supermenu-default-content {
  flex: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00489E;
  color: rgba(255,255,255,0.5);
}

.supermenu-banner {
  width: 280px;
  background-color: #00489E;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex-shrink: 0;
}

.supermenu-banner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.supermenu-overlay {
  position: fixed;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}

.categories-dropdown.active .supermenu-overlay {
  display: block;
}

/* Responsive supermenu */
@media (max-width: 991px) {
  .categories-dropdown-wrapper {
    top: 100px;
    max-height: calc(100vh - 100px);
  }

  .supermenu-container {
    flex-direction: column;
    max-height: none;
    overflow-y: auto;
  }

  .supermenu-categories {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
  }

  .supermenu-subcategories {
    max-height: none;
  }

  .supermenu-banner {
    width: 100%;
    height: 150px;
    display: none;
  }

  .supermenu-overlay {
    top: 100px;
  }

  .subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ocultar supermenu en móviles - usar navegación móvil en su lugar */
@media (max-width: 991px) {
  .categories-dropdown {
    display: none !important;
  }
}

/* ===== NAVEGACIÓN MÓVIL (OFFCANVAS) ===== */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--primary-blue);
  color: #fff;
  flex-shrink: 0;
}

.mobile-nav-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-nav-close {
  border: 0;
  background: transparent;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav-close:hover {
  background: rgba(255,255,255,0.15);
}

.mobile-nav-close .icon-svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-loading {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

/* Niveles de navegación móvil */
.mobile-nav-level {
  display: none;
}

.mobile-nav-level.active {
  display: block;
}

.mobile-nav-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #f1f5f9;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
}

.mobile-nav-back .icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mobile-nav-level-title {
  padding: 14px 20px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1b1f23;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #1b1f23;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: #f8fafc;
  color: var(--primary-blue);
}

.mobile-nav-link.has-children::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.mobile-nav-link.has-children:hover::after {
  border-color: var(--primary-blue);
}

/* Esconder en desktop */
@media (min-width: 992px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }
}
