/* ================================================= */
/* CSS OPTIMIZADO Y DEPURADO - POMOS & CHELAS       */
/* Versión final limpia                             */
/* ================================================= */

/* ----------------------------------------- */
/* 1. VARIABLES Y CONFIGURACIÓN GLOBAL       */
/* ----------------------------------------- */
:root {
  /* Colores principales - AJUSTADOS PARA WCAG AA */
  --color-azul-primario: #021845; /* Un poco más oscuro para más contraste con blanco (17:1) */
  --color-azul-secundario: #0a3a67;
  --color-azul-borde: #1a1bcb;
  --color-amarillo-primario: #ffd700; /* Oro más oscuro (#b38600) - Ratio 6.5:1 sobre fondo claro → Pasa AA */
  --color-acento: #996b00; /* Hover más oscuro */
  --color-destacado: #102a43;

  /* Fondos */
  --color-fondo-oscuro: #f9fafb; /* Mantengo, alto contraste con texto oscuro */
  --color-fondo-secundario: #e5e7eb;

  /* Textos */
  --color-texto-principal: #1f2937; /* Bien, 14:1 sobre fondo claro */
  --color-texto-secundario: #4b5563;
  --color-texto-placeholder: #6b7280; /* Un poco más oscuro para mejor contraste */

  /* Estados - AJUSTADOS */
  --color-error: #c41c00; /* Rojo más oscuro - Ratio 5.2:1 sobre blanco → Pasa AA */
  --color-success: #1e6b30; /* Verde más oscuro - Ratio 5.8:1 sobre blanco → Pasa AA */

  /* Tipografía */
  --font-titulos: "Oswald", sans-serif;
  --font-cuerpo: "Poppins", sans-serif;

  /* Transiciones */
  --transicion-rapida: all 0.3s ease;
  --transicion-suave: all 0.5s ease;
}

/* ----------------------------------------- */
/* 2. RESET Y BASE                           */
/* ----------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-fondo-oscuro);
}

body {
  font-family: var(--font-cuerpo);
  color: var(--color-texto-principal);
  background-color: var(--color-fondo-oscuro);
}

h1,
h2,
h3 {
  font-family: var(--font-titulos);
  color: var(--color-azul-primario);
}

section {
  padding: 80px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------- */
/* 3. HEADER PRINCIPAL                       */
/* ----------------------------------------- */
.main-header {
  height: auto;
  background-color: var(--color-azul-primario);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transicion-rapida);
}

.main-header.scrolled {
  background: linear-gradient(
    135deg,
    rgba(10, 47, 107, 0.95),
    rgba(13, 58, 122, 0.95)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.top-bar {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  min-height: 90px;
}

/* ----------------------------------------- */
/* 4. LOGO                                   */
/* ----------------------------------------- */
.logo {
  width: 140px;
  min-width: 120px;
  max-width: 140px;
  padding: 0.5rem;
  background: var(--color-amarillo-primario);
  border: 3px solid var(--color-azul-borde);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: var(--transicion-rapida);
}

.logo:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.logo-letra {
  font-family: var(--font-titulos);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-azul-borde);
  line-height: 1.2;
  letter-spacing: 1px;
  text-decoration: none;
}

/* ----------------------------------------- */
/* 5. BÚSQUEDA                               */
/* ----------------------------------------- */
.search-container {
  flex: 1;
  max-width: 650px;
  display: flex;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 215, 0, 0.1);
  transition: var(--transicion-rapida);
}

.search-container:focus-within {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.search-container input[type="search"] {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--color-texto-principal);
  background: transparent;
  outline: none;
}

.search-container input[type="search"]::placeholder {
  color: var(--color-texto-placeholder);
  font-weight: 400;
}

.search-container button {
  background: var(--color-amarillo-primario);
  border: none;
  padding: 0 1.8rem;
  cursor: pointer;
  color: var(--color-azul-primario);
  transition: var(--transicion-rapida);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container button:hover {
  background: var(--color-acento);
}

.search-container button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.search-container button:hover i {
  transform: scale(1.1);
}

/* ----------------------------------------- */
/* 6. CONTROLES DEL HEADER                   */
/* ----------------------------------------- */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.cart-icon .boton,
.login-buttons .btn,
.user-section .dropdown-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.9rem 1.3rem;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transicion-rapida);
  position: relative;
}

.cart-icon .boton:hover,
.login-buttons .btn:hover,
.user-section .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.cart-icon .boton:focus,
.login-buttons .btn:focus,
.user-section .dropdown-toggle:focus {
  outline: 2px solid var(--color-amarillo-primario);
  outline-offset: 2px;
}

.cart-icon .badge {
  background: var(--color-error);
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0 5px;
  border: 2px solid var(--color-azul-primario);
}

.cart-icon .badge:empty,
.cart-icon .badge[data-count="0"] {
  display: none;
}

/* ----------------------------------------- */
/* 7. NAVEGACIÓN                             */
/* ----------------------------------------- */
.main-nav {
  padding: 0;
  background: #03183e;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.main-nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.1rem 2rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-amarillo-primario);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Dropdown principal */
.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: none;
  border-radius: 0 0 12px 12px;
  border-top: 3px solid var(--color-amarillo-primario);
  min-width: 220px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  padding: 0.8rem 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  display: none;
  transition: var(--transicion-rapida);
}

.main-nav > ul > li:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.main-nav .dropdown-item {
  display: block;
  padding: 0.9rem 1.5rem;
  color: var(--color-texto-principal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: capitalize;
  transition: var(--transicion-rapida);
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.main-nav .dropdown-item:hover {
  background-color: transparent;
  color: var(--color-azul-primario);
  text-shadow: 1px 0 0 currentColor;
  padding-left: 2rem;
  border-left-color: var(--color-amarillo-primario);
}

.main-nav > ul > li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* Dropdown usuario */
.user-section .dropdown-menu {
  position: absolute;
  right: 0;
  background-color: white;
  border: 1px solid rgba(10, 47, 107, 0.2);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1001;
  display: none;
}

.user-section .dropdown-menu.show {
  display: block;
}

.user-section .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.8rem 1.2rem;
  color: var(--color-texto-principal);
  text-decoration: none;
  transition: var(--transicion-rapida);
  border-bottom: 1px solid rgba(10, 47, 107, 0.1);
}

.user-section .dropdown-item:last-child {
  border-bottom: none;
}

.user-section .dropdown-item:hover {
  background-color: transparent;
  color: var(--color-azul-primario);
  text-shadow: 1px 0 0 currentColor;
  padding-left: 1rem;
  border-left-color: var(--color-amarillo-primario);
}

.user-section .dropdown-item i {
  width: 18px;
  text-align: center;
}

/* ----------------------------------------- */
/* 8. MENÚ HAMBURGUESA Y MÓVIL               */
/* ----------------------------------------- */
.hamburger-menu,
.mobile-search-trigger {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 5px;
  transition: var(--transicion-rapida);
}

.hamburger-menu:hover,
.mobile-search-trigger:hover {
  transform: scale(1.05);
}

.mobile-search-trigger i {
  transition: transform 0.4s ease;
}

.mobile-search-trigger.active i {
  color: var(--color-amarillo-primario);
  transform: rotate(90deg);
}

.mobile-search-trigger.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.close-menu-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: var(--color-azul-primario);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.close-menu-btn:hover {
  transform: scale(1.1) rotate(90deg);
  color: var(--color-error);
}

/* ----------------------------------------- */
/* 9. BOTONES GENERALES                      */
/* ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transicion-rapida);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn-primario {
  background-color: var(--color-amarillo-primario);
  color: var(--color-destacado);
}

.btn-primario:hover {
  background-color: var(--color-acento);
}

.btn-secundario {
  background-color: transparent;
  color: var(--color-texto-principal);
  border-color: var(--color-texto-principal);
}

.btn-secundario:hover {
  background-color: var(--color-azul-primario);
  color: var(--color-fondo-oscuro);
}

.btn-pago {
  background-color: var(--color-amarillo-primario);
  color: var(--color-azul-primario);
  border: none;
}

.btn-pago:hover {
  background-color: var(--color-acento);
}

.btn-login {
  background-color: #ffd700;
  color: #021f4d;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-login:hover {
  background-color: #e6c200;
}

/* ----------------------------------------- */
/* 10. FORMULARIOS Y SELECT                  */
/* ----------------------------------------- */
.form-control {
  background-color: #fff;
  border: 1px solid #ced4da;
  color: var(--color-texto-principal);
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 16px;
  transition: 0.2s;
}

.form-control:focus {
  border-color: var(--color-amarillo-primario);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.25);
}

.form-label,
.form-floating > label {
  font-weight: 400;
  color: var(--color-azul-primario);
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-select,
.form-select-sm {
  background-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230A2F6B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  color: var(--color-texto-principal);
  border: 2px solid var(--color-azul-primario);
  border-radius: 8px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 320px;
  cursor: pointer;
  transition: var(--transicion-rapida);
  box-shadow: 0 2px 8px rgba(10, 47, 107, 0.1);
  appearance: none;
}

.form-select:hover,
.form-select-sm:hover {
  border-color: var(--color-amarillo-primario);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
  transform: translateY(-1px);
}

.form-select:focus,
.form-select-sm:focus {
  border-color: var(--color-amarillo-primario);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2),
    0 4px 12px rgba(10, 47, 107, 0.15);
}

.sort-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2rem;
}

.sort-wrapper .form-select,
.sort-wrapper .form-select-sm {
  margin-left: 0;
  margin-bottom: 0;
  width: auto;
}

/* ----------------------------------------- */
/* 11. TABLAS                                */
/* ----------------------------------------- */
.tabla {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.tabla thead {
  background-color: var(--color-azul-primario);
  color: white;
}

.tabla thead th {
  padding: 16px 15px;
  text-align: left;
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--color-amarillo-primario);
}

.tabla tbody tr {
  background-color: white;
  transition: background-color 0.25s ease;
}

.tabla tbody tr:hover {
  background-color: #f1f5ff;
}

.tabla td {
  padding: 18px 15px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 1rem;
}

.tabla tbody tr:last-child td {
  border-bottom: none;
}

.tabla .img-producto {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
}

.tabla img {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.tabla .product-name {
  font-weight: 700;
  color: var(--color-azul-primario);
  font-size: 1rem;
}

/* ----------------------------------------- */
/* 12. PRODUCTOS Y GRID                      */
/* ----------------------------------------- */
/* ========================================= */
/* TARJETA DE PRODUCTO (CORREGIDA)           */
/* ========================================= */

.product-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ocupa toda la altura disponible */
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.4);
}

.badge-oferta {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #ff3b30;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(255, 59, 48, 0.3);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  padding: 20px;
  border-bottom: 1px solid #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Altura fija para el contenedor de imagen ayuda a la estabilidad */
  height: 240px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%; /* Ajuste para llenar el contenedor */
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-card-info {
  padding: 15px;
  flex-grow: 1; /* Esto hace que ocupe todo el espacio sobrante */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribuye espacio */
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* --- AQUÍ ESTÁ LA MAGIA DEL CORTE DE TEXTO --- */
.product-title {
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-azul-primario);
  margin-bottom: 8px;
  line-height: 1.4;

  /* Reglas para limitar a 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Oculta el exceso */
  text-overflow: ellipsis; /* Pone los "..." */
  height: 2.8em; /* Altura fija: 1.4 (line-height) * 2 (líneas) = 2.8em */
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto; /* Empuja el precio y botones al fondo de la tarjeta */
  margin-bottom: 12px;
}

.price-current {
  font-family: var(--font-titulos);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-texto-principal);
}

.price-old {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #9ca3af;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-card-add {
  background-color: var(--color-amarillo-primario);
  color: var(--color-azul-primario);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-card-add:hover {
  background-color: #ffca2c;
  transform: translateY(-2px);
}

.btn-card-view {
  background-color: transparent;
  color: var(--color-azul-primario);
  border: 1px solid rgba(2, 31, 77, 0.2);
  border-radius: 8px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.btn-card-view:hover {
  border-color: var(--color-azul-primario);
  background-color: #f0f4f8;
}

/* ----------------------------------------- */
/* 13. UTILIDADES                            */
/* ----------------------------------------- */
.main-content {
  padding: 50px 0;
  background-color: var(--color-fondo-oscuro);
}

.no-decoration {
  text-decoration: none;
}

/* Botones cantidad unificados */
.btn-cantidad {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-cantidad:hover {
  background-color: #e6edff;
}

/* ----------------------------------------- */
/* 14. MODAL EDAD, HERO, FOOTER, ETC.        */
/* ----------------------------------------- */
/* ----------------------------------------- */
/* 16. MODAL DE VERIFICACIÓN DE EDAD         */
/* ----------------------------------------- */
.age-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2, 31, 77, 0.98);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.age-modal-card {
  background-color: #fff;
  width: 90%;
  max-width: 450px;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 1px solid var(--color-fondo-secundario);
  border-top: 5px solid var(--color-amarillo-primario);
}

.age-text {
  font-family: var(--font-cuerpo);
  color: var(--color-texto-principal);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.legal-small {
  font-size: 0.85rem;
  color: var(--color-texto-secundario);
  display: block;
  margin-top: 15px;
  font-style: italic;
}

.btn-denegado {
  background-color: transparent;
  color: var(--color-texto-secundario);
  border: 2px solid var(--color-fondo-secundario);
  font-weight: 600;
  transition: var(--transicion-rapida);
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-denegado:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.age-hidden {
  display: none !important;
}
/* Estilo específico para el Modal alineado a estilos.css */
.modal-header-brand {
  background-color: var(--color-azul-primario);
  color: white;
}

.icon-warning-brand {
  color: var(--color-amarillo-primario);
  font-size: 3rem;
}

/* ----------------------------------------- */
/* 17. HERO CAROUSEL PERSONALIZADO           */
/* ----------------------------------------- */
.hero-slider {
  position: relative;
  margin-bottom: 3rem;
}

.hero-slider .carousel-item {
  height: 80vh;
  min-height: 500px;
  background-color: var(--color-azul-primario);
}

.hero-img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(2, 31, 77, 0.4) 0%,
    rgba(2, 31, 77, 0.85) 100%
  );
  z-index: 1;
}

.hero-slider .carousel-caption {
  z-index: 2;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-slider h5 {
  font-family: var(--font-cuerpo);
  color: var(--color-amarillo-primario);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 50px;
  border: 1px solid var(--color-amarillo-primario);
}

.hero-slider h1 {
  font-family: var(--font-titulos);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-slider p {
  font-family: var(--font-cuerpo);
  font-size: 1.2rem;
  color: #e0e0e0;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-slider .btn-primario {
  padding: 15px 40px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.hero-slider .carousel-indicators [data-bs-target] {
  background-color: var(--color-amarillo-primario);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  opacity: 0.5;
}

.hero-slider .carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
}

/* ----------------------------------------- */
/* 18. FOOTER MEJORADO                       */
/* ----------------------------------------- */

.main-footer {
  background: linear-gradient(180deg, #03183e 0%, #010e26 100%);
  color: #e6eef8;
  position: relative;
  font-family: var(--font-cuerpo);
}

.footer-top-border {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-azul-primario) 0%,
    var(--color-amarillo-primario) 50%,
    var(--color-azul-primario) 100%
  );
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.footer-brand {
  font-family: var(--font-titulos);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-amarillo-primario);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-brand:hover {
  color: #fff;
}

.footer-heading {
  color: var(--color-amarillo-primario);
  font-family: var(--font-titulos);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-subheading {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.description-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  color: white;
}

.main-footer a {
  color: #a9b3c5;
  text-decoration: none;
  transition: var(--transicion-rapida);
}

.main-footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.main-footer a:hover {
  color: var(--color-amarillo-primario);
  padding-left: 3px;
}

.age-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ffcccc;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-warning i {
  color: var(--color-error);
}

.map-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transicion-rapida);
}

.map-responsive:hover {
  border-color: var(--color-amarillo-primario);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background: var(--color-amarillo-primario);
  color: var(--color-azul-primario);
  transform: translateY(-3px);
  padding-left: 0;
}

.contact-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.contact-list i {
  color: var(--color-amarillo-primario);
  margin-top: 4px;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}


/* ----------------------------------------- */
/* 19. WHATSAPP FLOTANTE                     */
/* ----------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transicion-rapida);
  z-index: 1000;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
  animation: pulse 1.5s infinite;
}

/* ----------------------------------------- */
/* 20. BARRA DE BENEFICIOS                   */
/* ----------------------------------------- */
.benefit-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-amarillo-primario);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--color-azul-primario);
  color: var(--color-amarillo-primario);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.benefit-text h5 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-azul-primario);
  font-family: var(--font-titulos);
}

.benefit-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
}

/* ----------------------------------------- */
/* 21. CATEGORÍAS VISUALES                   */
/* ----------------------------------------- */
.category-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(2, 31, 77, 0.9)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.category-overlay h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-overlay span {
  color: var(--color-amarillo-primario);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover .category-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(2, 31, 77, 1));
}

.category-card:hover span {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------- */
/* 22. MEJORAS DEL CARRITO (CHECKOUT)        */
/* ----------------------------------------- */
.tabla img {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.tabla .product-name {
  font-weight: 700;
  color: var(--color-azul-primario);
  font-size: 1rem;
  margin-bottom: 0;
}

.tabla input.form-control {
  max-width: 50px;
  padding: 5px;
  font-size: 0.9rem;
}
.close-menu-btn {
  display: none;
}

/* Botón lupa para móvil (oculto en escritorio) */
.mobile-search-trigger {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-search-trigger i {
  transition: transform 0.4s ease;
}
.mobile-search-trigger:active {
  transform: scale(0.9); /* Se encoge un poquito al tocar (efecto botón) */
}
.mobile-search-trigger.active {
  background-color: rgba(255, 255, 255, 0.1); /* Fondo sutil */
}
.mobile-search-trigger.active i {
  color: var(--color-amarillo-primario); /* Se pone amarilla */
  transform: rotate(90deg); /* Gira 90 grados */
}

@keyframes searchBounce {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(5px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ================================================= */
/* 23. ESTILOS PÁGINA DE DETALLES (NUEVO)            */
/* ================================================= */

.breadcrumb-item a {
  color: var(--color-texto-secundario);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item.active {
  color: var(--color-azul-primario);
  font-weight: 700;
}

/* Galería de Imágenes */
.detail-gallery-container {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.detail-main-img {
  height: 450px;
  width: 100%;
  object-fit: contain !important;
  object-position: center;
  background-color: white;
  padding: 10px;
  transition: transform 0.5s ease;
}

.detail-gallery-container:hover .detail-main-img {
  transform: scale(1.05);
}

.detail-price-container {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--color-amarillo-primario);
}

.detail-price-old {
  color: #999;
  font-size: 1.1rem;
  text-decoration: line-through;
  margin-right: 10px;
}

.detail-price-current {
  font-family: var(--font-titulos);
  color: var(--color-azul-primario);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.discount-badge-lg {
  background-color: #28a745; /* Verde éxito */
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 10px;
}

/* Selector de Cantidad Estilizado */
.qty-selector-lg {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  width: fit-content;
  overflow: hidden;
  background: white;
}

.qty-btn {
  background: white;
  border: none;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  color: var(--color-azul-primario);
  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  background: #f0f0f0;
  color: var(--color-amarillo-primario);
}

.qty-input {
  border: none;
  text-align: center;
  width: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-texto-principal);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Badges de Confianza */
.trust-badges {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-texto-secundario);
  font-weight: 500;
}

.trust-item i {
  font-size: 1.5rem;
  color: var(--color-azul-primario);
}
.detail-gallery-container {
  background: var(--color-fondo-oscuro);
  transition: var(--transicion-rapida);
}

.detail-gallery-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.detail-title {
  font-family: var(--font-titulos);
  color: var(--color-azul-primario);
  font-size: 2rem;
  letter-spacing: 1px;
}

.detail-price-current {
  color: var(--color-amarillo-primario);
  font-weight: 700;
  font-size: 2.2rem;
}

.tachado {
  color: var(--color-texto-secundario);
}

.qty-selector-lg {
  max-width: 200px;
  border: 1px solid var(--color-fondo-secundario);
  transition: var(--transicion-rapida);
}

.qty-selector-lg:focus-within {
  border-color: var(--color-amarillo-primario);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.qty-btn {
  padding: 0.75rem 1.25rem;
  font-size: 1.2rem;
  color: var(--color-azul-primario);
  transition: var(--transicion-rapida);
}

.qty-btn:hover {
  background: var(--color-amarillo-primario);
  color: white;
}

.trust-badges {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
  padding: 0.5rem 1rem;
  background: var(--color-fondo-secundario);
  border-radius: 8px;
  flex: 1;
  justify-content: center;
}

.trust-item i {
  color: var(--color-amarillo-primario);
  font-size: 1.2rem;
}
/* ========================================= */
/* 24. ACORDEÓN DE DESCRIPCIÓN (NUEVO)       */
/* ========================================= */

.description-accordion {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  margin-top: 2rem;
  overflow: hidden; /* Importante para la animación */
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
}

.accordion-header:hover {
  background-color: #f9f9f9;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-titulos);
  color: var(--color-azul-primario);
  text-transform: capitalize;
}

.accordion-header i {
  color: var(--color-texto-principal);
  transition: transform 0.3s ease;
}

/* Estado Activo (Rotación de flecha) */
.accordion-header.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}

.accordion-content.open {
  /* Un valor alto seguro para permitir que se muestre todo el texto */
  max-height: 1000px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-body {
  padding: 20px;
  color: var(--color-texto-principal);
  font-size: 0.95rem;
  line-height: 1.6;
}
/* ========================================= */
/* 25. DISPONIBILIDAD Y STOCK (NUEVO)        */
/* ========================================= */
.stock-warning-container {
  margin: 1.5rem 0;
  font-family: var(--font-cuerpo);
}

.stock-label {
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
  margin-bottom: 5px;
  display: block;
}

.stock-alert {
  color: #d32f2f; /* Rojo intenso */
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-alert i {
  font-size: 1.1rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #d32f2f;
  border-radius: 4px;
  /* Animación sutil al cargar */
  width: 0%;
  transition: width 1s ease-out;
}

.badge-stock-ok {
  background-color: #e8f5e9;
  color: #1b5e20;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* ========================================= */
/* 26. ESTILOS BREADCRUMB (NUEVO)            */
/* ========================================= */

.breadcrumb-custom {
  background-color: #f8f9fa; /* Fondo gris muy suave */
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  align-items: center;
}

.breadcrumb-custom .breadcrumb-item a {
  color: var(--color-texto-secundario);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
  color: var(--color-azul-primario);
  text-decoration: underline;
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--color-azul-primario);
  font-weight: 700;
  font-family: var(
    --font-titulos
  ); /* Usamos tu fuente Oswald para el producto */
  letter-spacing: 0.5px;
}

/* Cambiar el separador "/" por defecto de Bootstrap a una flecha ">" más elegante */
.breadcrumb-item + .breadcrumb-item::before {
  content: "\f054"; /* Código unicode de FontAwesome (chevron-right) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: #ccc;
  padding-top: 4px; /* Pequeño ajuste visual */
}
/* ========================================= */
/* 29. BOTÓN EXPLORAR MÁS (FOOTER)           */
/* ========================================= */
.btn-explorar {
  display: inline-block;
  padding: 12px 30px;
  color: var(--color-texto-secundario);
  background-color: #f3f4f6; /* Fondo gris muy suave */
  border-radius: 50px; /* Redondeado tipo píldora */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-explorar:hover {
  background-color: #ffffff;
  color: var(--color-azul-primario);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-explorar i {
  color: var(--color-amarillo-primario); /* Icono amarillo */
}
/* ================================================= */
/* 27. ANIMACIONES SCROLL                   */
/* ================================================= */

/* Estado inicial: Invisible y desplazado */
.reveal {
  opacity: 0;
  transform: translateY(50px); /* Se mueve 50px hacia abajo */
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Suavidad "Apple-like" */
  will-change: opacity, transform; /* Optimización de rendimiento */
}

/* Variación: Entrar desde la izquierda */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Variación: Entrar desde la derecha */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Variación: Pequeño Zoom (Escala) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Estado Activo: Cuando el JS detecta el elemento */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Retrasos para efectos en escalera (staggering) */
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}

/* ACCESIBILIDAD: Desactiva animaciones si el usuario lo prefiere en su sistema */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ================================================= */
/* FLECHAS DEL CARRUSEL (DETALLES)                   */
/* ================================================= */

.detail-gallery-container .carousel-control-prev,
.detail-gallery-container .carousel-control-next {
  background: none;
  border: none;
  width: 5%; /* Un área de clic razonable, pero sin invadir */
  opacity: 0.7; /* Ligeramente sutil por defecto */
}

/* 2. Subir la opacidad al hacer hover para indicar interacción */
.detail-gallery-container .carousel-control-prev:hover,
.detail-gallery-container .carousel-control-next:hover {
  opacity: 1;
}

/* 3. Cambiar el color del ICONO SVG a Azul (#021845) */
/* Esta es la sintaxis para reescribir el SVG de Bootstrap en línea */
.detail-gallery-container .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23021845'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.detail-gallery-container .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23021845'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Aumentar sutilmente el tamaño de la flecha para mejor UX */
.detail-gallery-container .carousel-control-prev-icon,
.detail-gallery-container .carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
}
/* ================================================= */
/* 28. SEGUIMIENTO DE PROGRESO (NUEVO)            */
/* ================================================= */
.progress-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
  padding: 0 10px;
}

.progress-tracker::before {
  content: "";
  position: absolute;
  top: 25px; /* Mitad del icono de 50px */
  left: 5%;
  width: 90%;
  height: 4px;
  background-color: #e9ecef;
  z-index: 1;
  border-radius: 10px;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 25%;
  /* Asegura que el texto no rompa el layout */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid #dee2e6;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #adb5bd;
  margin: 0 auto 10px auto;
  transition: all 0.3s ease;
  /* Evita que el icono se aplaste */
  flex-shrink: 0;
}

.step-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  line-height: 1.2;
}

/* Estado COMPLETADO (Azul) */
.step.completed .step-icon {
  background-color: var(--color-azul-primario);
  border-color: var(--color-azul-primario);
  color: #fff;
  box-shadow: 0 4px 10px rgba(2, 31, 77, 0.3);
}
.step.completed .step-label {
  color: var(--color-azul-primario);
  font-weight: 700;
}

/* Estado ACTUAL (Amarillo) */
.step.active .step-icon {
  background-color: var(--color-amarillo-primario);
  border-color: var(--color-amarillo-primario);
  color: var(--color-azul-primario);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.step.active .step-label {
  color: var(--color-destacado);
  font-weight: 800;
}

/* Estilos de la Tarjeta de Resumen */
.summary-card {
  background: #f8f9fa;
  border-left: 5px solid var(--color-amarillo-primario);
}
.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.summary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.summary-label {
  color: #666;
  font-size: 0.95rem;
}
.summary-value {
  font-weight: 600;
  color: var(--color-azul-primario);
  text-align: right;
}

.total-highlight {
  font-size: 1.5rem;
  color: var(--color-azul-primario);
  font-weight: 800;
}

/* Tabla personalizada */
.table-custom thead {
  background-color: var(--color-azul-primario);
  color: white;
}
.table-custom th {
  padding: 12px;
  font-weight: 500;
  border: none;
}
.table-custom td {
  padding: 15px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
}
.table-custom tr:last-child td {
  border-bottom: none;
}

/* ================================================= */
/* MEDIA QUERIES                                     */
/* ================================================= */

/* Tablet y Menor (1024px) */
@media (max-width: 1024px) {
  .product-img-wrap img {
    height: 240px;
  }

  .product-title {
    font-size: 1rem;
  }

  .price-current {
    font-size: 1.6rem;
  }
  .main-nav {
    display: block; /* Activado para transiciones */
    position: fixed;
    top: 0;
    right: -100%; /* Oculto a la derecha */
    width: 80%; /* Ancho total */
    height: 100vh; /* Altura total */
    background-color: #ffffff; /* FONDO BLANCO */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900; /* Justo debajo del header principal (que es 1000) */
    overflow-y: auto; /* Permite scroll si el menú es largo */
    box-shadow: none;
  }

  /* Estado cuando se abre (Clase agregada por JS) */
  .main-nav.active {
    right: 0; /* Se desliza a la vista */
  }

  /* 2. ENLACES PRINCIPALES (Inicio, Cervezas, etc.) */
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    background: white; /* Asegura fondo blanco */
  }

  .main-nav > ul > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0; /* Línea gris muy sutil */
  }

  .main-nav a {
    justify-content: space-between; /* Texto a la izq, flecha a la der */
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700; /* Letra más gruesa */
    color: var(--color-azul-primario); /* TEXTO AZUL OSCURO */
    background: transparent;
    border-bottom: none;
    text-shadow: none; /* Quitamos sombras de texto */
  }

  /* Efecto al tocar enlace principal */
  .main-nav a:hover,
  .main-nav a:active {
    background-color: #f8f9fa;
    color: var(--color-azul-primario);
  }

  /* 3. SUBMENÚS (Desplegables) */
  .main-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    background-color: #f4f6f9;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    display: none !important; /* ¡Forzamos ocultamiento! */
    overflow: hidden;
  }

  /* Mostrar submenú */
  .main-nav .dropdown.show .dropdown-menu {
    display: block !important;
    animation: fadeIn 0.3s ease;
  }

  /* Items del submenú (Corona, Victoria...) */
  .main-nav .dropdown-item {
    color: var(--color-texto-secundario) !important; /* Gris oscuro */
    font-weight: 500;
    padding: 14px 20px 14px 40px; /* Sangría para jerarquía */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1rem;
  }

  .main-nav .dropdown-item:hover,
  .main-nav .dropdown-item:active {
    background-color: #e9ecef;
    color: var(--color-azul-primario) !important;
    padding-left: 45px;
  }

  /* Quitamos adornos viejos */
  .main-nav .dropdown-item::before,
  .main-nav > ul > li:not(:last-child)::after {
    display: none;
  }
  .main-header h1,
  .main-header h2,
  .main-header h3,
  .hero-slider h1,
  .hero-slider h2 {
    color: var(--color-amarillo-primario);
  }

  /* 4. AJUSTES VARIOS MÓVIL */

  /* Asegurar que el Header azul esté SIEMPRE encima del menú blanco */
  .main-header {
    z-index: 1000;
  }

  .close-menu-btn {
    display: block;
    position: absolute; /* Flotando en la esquina */
    top: 20px; /* Separación del techo */
    right: 25px; /* Separación de la derecha */
    background: transparent;
    border: none;
    color: var(--color-azul-primario); /* Color Azul Oscuro */
    font-size: 2rem; /* Tamaño grande */
    cursor: pointer;
    z-index: 1100; /* Por encima del contenido */
    padding: 5px;
    transition: transform 0.3s ease;
  }

  /* Efecto al tocar */
  .close-menu-btn:hover,
  .close-menu-btn:active {
    transform: scale(1.1) rotate(90deg); /* Pequeño giro al cerrar */
    color: var(--color-error); /* Se pone rojo al tocar (opcional) */
  }

  /* Ajuste para que el texto del menú no choque con la X */
  .main-nav {
    padding-top: 80px; /* Espacio arriba */
  }
  /* Flecha que indica submenú - rota al abrir */
  .dropdown-toggle-nav .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 0.5em;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .dropdown.show .dropdown-toggle-nav .fa-chevron-down {
    transform: rotate(180deg);
  }
  /* Feedback visual al tocar la categoría padre */
  .dropdown-toggle-nav:active {
    background-color: #f0f0f0;
  }
  .dropdown-toggle-nav .fa-chevron-down {
    font-size: 0.8em;
    margin-left: 0.5em;
  }

  /* Animación */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeOut {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-10px);
    }
  }

  /* Aplicar fadeOut al cerrar  */
  .main-nav .dropdown-menu.closing {
    animation: fadeOut 0.3s ease forwards;
  }
}

/* Móvil (768px) */
@media (max-width: 768px) {
    
  .listar-breadcrumbs {
    display: none;
  }

  .hero-slider .carousel-caption {
    padding-bottom: 60px;
    justify-content: flex-end;
  }

  .hero-slider h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero-slider p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .hero-slider .btn-primario {
    margin-bottom: 20px;
    padding: 10px 30px;
  }

  .main-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .product-img-wrap img {
    height: 100px !important;
    padding: 10px;
  }

  .product-card-info {
    padding: 15px;
  }

  .product-title {
    font-size: 0.9rem;
  }

  .price-current {
    font-size: 1.5rem;
  }

  .btn-card-add {
    font-size: 0.8rem;
    padding: 8px;
  }

  .logo {
    width: 120px;
    min-width: 100px;
    padding: 0.6rem 0.8rem;
  }

  .logo-letra {
    font-size: 1rem;
  }

  .search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .header-controls {
    gap: 1rem;
  }

  .cart-icon .boton,
  .login-buttons .btn,
  .user-section .dropdown-toggle {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero-slider .carousel-item {
    height: 60vh;
    min-height: 400px;
  }

  .main-footer {
    text-align: center;
  }

  .footer-heading {
    border-bottom: none;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-list li {
    justify-content: center;
  }

  .whatsapp-float {
    bottom: 90px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* Tabla responsive para móvil */
  .tabla thead {
    display: none !important;
  }

  .tabla tbody tr {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .tabla td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
  }

  .tabla td:last-child {
    border-bottom: none;
  }

  .tabla td.td-producto {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-fondo-secundario);
    width: 100%;
  }

  .td-producto > .info-producto-movil {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 15px !important;
    max-width: calc(100%);
  }

  .product-name {
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.3;
    padding-right: 5px;
  }

  .img-carrito-thumb {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .btn-eliminar-movil {
    width: 40px;
    height: 40px;
    background-color: #fff5f5;
    color: #dc3545;
    border: 1px solid #ffdada;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.2s;
    align-self: center;
  }

  .btn-eliminar-movil:active {
    transform: scale(0.95);
    background-color: #dc3545;
    color: white;
  }

  .tabla td.td-producto::before {
    display: none;
  }

  .tabla td:not(.td-producto)::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-azul-primario);
    font-size: 0.9rem;
  }

  /* Header más compacto */
  .top-bar {
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
    gap: 0.8rem;
    justify-content: space-between;
    height: 70px;
    position: relative;
  }

  /* Logo más pequeño */
  .logo {
    width: 90px;
    min-width: auto;
    padding: 5px;
    border-width: 2px;
  }

  .logo-letra {
    font-size: 0.8rem;
  }

  /* CONTROLES */
  .header-controls {
    gap: 0.8rem;
  }

  .cart-icon .boton,
  .user-section .dropdown-toggle,
  .btn-login {
    background: transparent;
    border: none;
    padding: 5px;
  }

  .user-section .dropdown-toggle {
    font-size: 1.2rem;
  }

  .user-section .dropdown-toggle span:not(.fa-solid) {
    display: none;
  }

  /* SEARCH CONTAINER */
  .search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--color-azul-primario);
    border-radius: 0 0 16px 16px;
    display: none;
    opacity: 0;
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 900;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .search-container.active {
    opacity: 1;
    transform: translateY(0);
    display: flex;
    animation: searchBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    border-bottom: 3px solid var(--color-amarillo-primario) !important;
  }

  .search-container input[type="search"] {
    background-color: #f3f4f6;
    border-radius: 50px;
    padding: 12px 50px 12px 20px;
    margin-right: -45px;
    width: 100%;
    border: 1px solid transparent;
  }

  .search-container input[type="search"]:focus {
    background-color: #fff;
    border-color: var(--color-amarillo-primario);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
  }

  .search-container button {
    background: transparent !important;
    color: var(--color-azul-primario);
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .search-container button:active {
    transform: scale(0.9);
    color: var(--color-amarillo-primario);
  }

  .mobile-search-trigger {
    display: block;
  }

  .hamburger-menu {
    display: block;
    font-size: 1.4rem;
    padding: 5px;
    border: none;
    background: transparent;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 899;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-nav.active ~ .menu-overlay,
  .main-nav.active + .menu-overlay,
  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  }

  .hamburger-menu.active,
  .hamburger-menu[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }

  /* ------------------------------------------------ */
  /* NUEVOS ESTILOS PARA DETALLES DE PRODUCTO (MÓVIL) */
  /* ------------------------------------------------ */

  .products.container {
    margin-top: 20px !important;
  }

  /* 1. Galería compacta */
  .detail-gallery-container {
    margin-bottom: 15px;
  }

  .detail-main-img {
    height: 280px !important; /* Evita que ocupe toda la pantalla */
  }

  /* 2. Títulos y Precios */
  .detail-title {
    font-family: var(--font-titulos);
    font-size: 1.3rem; /* Reducido de 2.5rem a 1.6rem */
    line-height: 1.2;
    color: var(--color-azul-primario);
    margin-bottom: 0.5rem;
  }

  .detail-price-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 20px;
  }

  .detail-price-current {
    font-size: 1.8rem;
  }

  /* 3. Botones grandes y fáciles de tocar */
  .qty-selector-lg {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 15px;
  }

  .qty-btn {
    width: 60px; /* Más ancho para el dedo */
    background-color: #f9f9f9;
  }

  /* Botones de acción en columna vertical */
  .d-grid.d-md-flex {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  /* 4. Insignias en cuadrícula 2x2 */
  .trust-badges {
    display: flex !important; /* Forzamos fila horizontal */
    flex-direction: row; /* Dirección fila */
    justify-content: space-between; /* Distribución equitativa */
    gap: 8px; /* Menos espacio entre ellos */
    margin-top: 15px;
  }

  .trust-item {
    padding: 8px 4px; /* Relleno reducido */
    font-size: 0.7rem; /* Texto más pequeño (aprox 11px) */
    width: 32%; /* Para que quepan 3 en el 100% */
    flex: 1; /* Crecen igual */
    white-space: nowrap; /* Intenta que el texto no salte de línea */
    overflow: hidden; /* Evita desbordes */
    text-overflow: ellipsis; /* Puntos suspensivos si no cabe */
    flex-direction: column;
    text-align: center;
  }

  .trust-item i {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .btn-primario,
  .btn-secundario {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  @keyframes searchBounce {
    0% {
      opacity: 0;
      transform: translateY(-20px) scale(0.9);
    }
    60% {
      opacity: 1;
      transform: translateY(5px) scale(1.02);
    }
    100% {
      transform: translateY(0) scale(1);
    }
  }
}

/* Móvil Pequeño (576px) */
@media (max-width: 576px) {
  .form-select,
  .form-select-sm {
    font-size: 0.9rem;
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .product-img-wrap {
    height: 120px !important; /* Bajamos de 140px/240px a 120px */
    padding: 5px !important; /* Menos relleno blanco alrededor */
    min-height: auto; /* Evita alturas mínimas heredadas */
  }

  /* 2. Compactar el bloque de información */
  .product-card-info {
    padding: 8px 10px !important; /* Reducimos el "aire" interno */
    justify-content: flex-end; /* Empuja todo hacia abajo si sobra espacio */
  }

  /* 3. Título más pequeño y pegado */
  .product-title {
    font-size: 0.8rem !important;
    height: 2.4em !important; /* Altura justa para 2 líneas */
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
  }

  /* 4. Precios compactos */
  .price-row {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    align-items: baseline;
  }

  .price-current {
    font-size: 1rem !important; /* Precio un poco más chico */
  }

  .price-old {
    font-size: 0.75rem !important;
  }

  /* 5. BOTONES: Asegurar que estén en una línea y delgados */
  .action-buttons {
    display: grid !important;
    grid-template-columns: 1fr auto !important; /* Botón agregar ocupa espacio, ojo se adapta */
    gap: 5px !important;
  }

  /* Botón Agregar */
  .btn-card-add {
    padding: 6px 0 !important; /* Quitamos padding lateral excesivo */
    font-size: 0.75rem !important;
    height: 32px; /* Altura fija delgada */
    width: 100%;
  }

  /* Botón Ver (Ojo) */
  .btn-card-view {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
  }

  /* Ajuste de iconos */
  .btn-card-add i,
  .btn-card-view i {
    font-size: 0.8rem;
  }

  .step-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem; /* Icono interno más chico */
    border-width: 2px;
    margin-bottom: 5px;
  }

  /* 2. Ajustar la línea gris para que coincida con el nuevo centro */
  .progress-tracker::before {
    top: 16px; /* Mitad de 32px */
    height: 3px;
  }

  /* 3. Texto más pequeño y compacto */
  .step-label {
    font-size: 0.65rem; /* ~10px */
    word-wrap: normal;
    white-space: normal; /* Permite saltos de línea */
  }

  /* 4. Estado activo escala menos exagerada */
  .step.active .step-icon {
    transform: scale(1.1);
  }

  /* Ajuste de márgenes generales */
  .progress-tracker {
    margin: 1.5rem 0;
    padding: 0;
  }
}

/* Móvil Extra Pequeño (480px) */
@media (max-width: 480px) {
  .logo {
    width: 100px;
    padding: 0.5rem 0.6rem;
  }

  .logo-letra {
    font-size: 0.9rem;
  }

  .search-container input[type="search"] {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .search-container button {
    padding: 0 1.2rem;
  }

  .header-controls {
    gap: 0.6rem;
  }

  .login-buttons .btn span,
  .user-section .dropdown-toggle span:not(.badge) {
    display: none;
  }

  .cart-icon .boton,
  .login-buttons .btn,
  .user-section .dropdown-toggle {
    padding: 0.6rem;
    min-width: 40px;
    justify-content: center;
  }
}
