/* ============================================================
   BRASSCRUZ — DESIGN SYSTEM MAESTRO
   Versión: 1.0
   Basado en: PARA MODELO DE INTERFAZ.txt
   Uso: Importar en cualquier página del sitio (index, producto, admin)
   <link rel="stylesheet" href="/assets/css/main.css">
============================================================ */

/* ============================================================
   0. DEPENDENCIAS EXTERNAS (copiar estos <link> en el <head>)
   <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
   <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&family=Playfair+Display:wght@700;800&display=swap" rel="stylesheet">
============================================================ */

/* ============================================================
   1. TOKENS — VARIABLES CSS (Design Tokens)
   Paleta extraída directamente del modelo guía
============================================================ */
:root {
  /* --- Paleta de colores --- */
  --c-bg:        #E3E5E4;   /* Fondo general de la página */
  --c-light:     #CCD0CF;   /* Bordes suaves, separadores */
  --c-soft:      #9BA8AB;   /* Texto secundario, iconos apagados */
  --c-mid:       #4A5C6A;   /* Acentos medios, hover states */
  --c-deep:      #253745;   /* Fondo de secciones oscuras, botones primarios */
  --c-dark:      #06141B;   /* Header, Footer, fondo más oscuro */
  --c-text:      #11212D;   /* Texto principal del cuerpo */
  --c-white:     #ECEDEE;   /* Blanco cálido para texto sobre fondos oscuros */
  --c-surface:   #f4f5f5;   /* Fondos de cards y secciones limpias */
  --c-card:      #ffffff;   /* Fondo de tarjetas de producto */
  --c-success:   #25D366;   /* WhatsApp green */
  --c-danger:    #dc3545;   /* Rojo (wishlist, alertas) */
  --c-accent:    #4A5C6A;   /* Color de acento general */

  /* --- Dimensiones estructurales --- */
  --header-h:    64px;

  /* --- Border Radius --- */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-xl:   40px;  /* Pills, inputs redondeados */

  /* --- Sombras --- */
  --shadow-sm:   0 2px 8px  rgba(6, 20, 27, .08);
  --shadow-md:   0 8px 24px rgba(6, 20, 27, .12);
  --shadow-lg:   0 20px 48px rgba(6, 20, 27, .18);

  /* --- Transición global --- */
  --transition:  all .3s cubic-bezier(.25, .8, .25, 1);

  /* --- Tipografía --- */
  --font-body:    'Montserrat', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Scrollbar personalizado --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-mid); border-radius: 99px; }

/* ============================================================
   3. TIPOGRAFÍA
============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--c-dark);
  line-height: 1.2;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--c-dark);
}

/* Eyebrow (etiqueta pequeña encima de títulos) */
.section-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-mid);
  margin-bottom: .4rem;
}

/* Título de sección principal */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--c-dark);
  line-height: 1.2;
}

/* ============================================================
   4. HEADER — Sticky Glass Morphism
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 20, 27, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;  /* permite la barra mobile debajo */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  height: var(--header-h);
  padding: 0 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  align-self: stretch;
}

/* --- Brand / Logo --- */
.brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo { height: 38px; width: auto; }

.brand-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.5px;
  color: var(--c-white);
  line-height: 1;
}

/* --- Acciones del header (botones icono) --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}

/* Oculta en mobile, visible en desktop */
.desktop-only { display: none !important; }
@media (min-width: 768px) {
  .desktop-only { display: inline-flex !important; }
}

/* Oculta en desktop, visible en mobile */
.mobile-only-flex { display: flex !important; }
@media (min-width: 768px) {
  .mobile-only-flex { display: none !important; }
}

.btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--c-white);
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .35);
  transform: scale(1.08);
}

/* --- Botón pill con texto (Suscríbete) --- */
.btn-header-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem 1rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-subscribe {
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--c-white);
}
.btn-subscribe:hover {
  background: var(--c-white);
  color: var(--c-dark);
}

/* --- Badge carrito --- */
.cart-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--c-deep);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge.show { display: flex; }

/* --- Barra de búsqueda inline (desktop) --- */
.search-wrap {
  display: none;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-xl);
  padding: .2rem .75rem;
  gap: .4rem;
  transition: var(--transition);
  flex: 1;
  max-width: 280px;
}

.search-wrap.visible { display: flex; }

.search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: .88rem;
  width: 100%;
  min-width: 0;
}

.search-wrap input::placeholder { color: rgba(236, 237, 238, .5); }

/* --- Barra de búsqueda full-width (SOLO MOBILE, debajo del header) --- */
.search-bar-mobile {
  display: none;
  align-items: center;
  gap: .6rem;
  background: rgba(6, 20, 27, 0.97);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .55rem 1rem;
  width: 100%;
}

.search-bar-mobile.visible { display: flex; }

@media (min-width: 768px) {
  .search-bar-mobile { display: none !important; }
}

.search-bar-mobile i { color: var(--c-soft); font-size: .95rem; flex-shrink: 0; }

.search-bar-mobile input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: .92rem;
}
.search-bar-mobile input::placeholder { color: rgba(236,237,238,.45); }

.search-bar-mobile-close {
  background: none;
  border: none;
  color: var(--c-soft);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

/* --- Badge (corazón / contador) --- */
.heart-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--c-danger);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.heart-badge.show { display: flex; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.35); }
}

.heart-beat { animation: heartbeat .9s infinite; color: var(--c-danger) !important; }

/* ============================================================
   4b. MOBILE BOTTOM NAV — Solo visible en celulares
============================================================ */
.mobile-bottom-nav {
  display: none; /* hidden by default, shown via media query */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: rgba(6, 20, 27, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .45rem 0 calc(.45rem + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 767px) {
  .mobile-bottom-nav { display: flex; }

  /* Empuja el contenido para que no quede tapado por el nav fijo */
  body { padding-bottom: 70px; }
}

.mob-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  background: none;
  border: none;
  color: var(--c-soft);
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  flex: 1;
}

.mob-nav-btn i { font-size: 1.25rem; line-height: 1; }
.mob-nav-btn .mob-nav-label { line-height: 1.2; text-align: center; }

.mob-nav-btn:hover,
.mob-nav-btn:active { color: var(--c-white); }

/* Club Brasscruz — destacado */
.mob-nav-btn--club {
  color: var(--c-white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-sm);
}
.mob-nav-btn--club i { color: #f6c90e; }

/* Badge sobre ícono en mobile nav */
.mob-nav-badge {
  position: absolute;
  top: .1rem; left: 50%;
  transform: translateX(4px);
  background: var(--c-danger);
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mob-nav-badge.show { display: flex; }

/* ============================================================
   5. HERO CAROUSEL — Dual image
============================================================ */
.carousel-section {
  position: relative;
  overflow: hidden;
  background-color: var(--c-dark);
}

.no-gap {
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
}

.flex-img {
  width: 50% !important;
  max-width: 50% !important;
  object-fit: cover;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  flex: 0 0 50% !important;
  height: auto;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--c-soft);
  border: none;
  opacity: 0.5;
  transition: opacity .3s ease;
}

.carousel-indicators .active {
  background-color: var(--c-white);
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 20, 27, .55);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, .18);
}

@media (max-width: 767px) {
  .no-gap {
    flex-wrap: wrap !important; /* Permitimos que la segunda imagen baje */
  }

  .flex-img {
    width: 100% !important;     /* Cada imagen toma todo el ancho */
    max-width: 100% !important;
    flex: 0 0 100% !important;
    /* Ajustamos la altura para que no quede un carrusel infinito hacia abajo */
    height: auto !important;    
    object-fit: cover;           /* Mantiene la integridad del contenido visual */
  }
}
/* ============================================================
   6. TRUST BAR
============================================================ */
.trust-bar {
  background: var(--c-dark);
  padding: .7rem 0;
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--c-white);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.trust-item i { color: var(--c-soft); font-size: 1rem; }

/* ============================================================
   7. BENEFITS STRIP
============================================================ */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--c-deep);
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, .07);
  gap: .4rem;
}

.benefit-card:last-child { border-right: none; }
.benefit-card:hover { background: rgba(255, 255, 255, .06); }

.benefit-emoji { font-size: 1.6rem; line-height: 1; }

.benefit-label {
  color: var(--c-white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.3;
}

/* ============================================================
   8. LAYOUT UTILITIES
============================================================ */
.section-pad { padding: 3.5rem 0; }

.container-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.empty-msg {
  text-align: center;
  padding: 3rem;
  color: var(--c-soft);
  font-size: .9rem;
}

/* ============================================================
   9. FILTER PILLS (Barra de filtros)
============================================================ */
.filters-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: .35rem .95rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--c-light);
  background: transparent;
  color: var(--c-text);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--c-deep);
  border-color: var(--c-deep);
  color: #fff;
}

/* ============================================================
   10. PRODUCT CARDS
============================================================ */

/* Base: mínimo 2 columnas en cualquier pantalla */
.products-grid,
#productosContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 45%), 1fr));
  gap: 1.25rem;
}

/* Tablet: columnas más amplias */
@media (min-width: 600px) {
  .products-grid,
  #productosContainer {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Desktop: columnas generosas */
@media (min-width: 1024px) {
  .products-grid,
  #productosContainer {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.prod-card {
  background: var(--c-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Badge (NUEVO, SALE, etc.) */
.prod-badge {
  position: absolute;
  top: .7rem; left: .7rem;
  background: var(--c-deep);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* Botón wishlist en card — ahora en la izquierda */
.prod-wish,
.prod-wish--left {
  position: absolute;
  top: .65rem; left: .65rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(220, 53, 69, .25);
  color: var(--c-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.prod-wish:hover,

.prod-wish.saved,
.prod-wish--left:hover,
.prod-wish--left.saved {

  background: var(--c-danger);
  color: #fff;
  border-color: var(--c-danger);
}

/* Botón carrito en card — esquina derecha */
.prod-cart {
  position: absolute;
  top: .65rem; right: .65rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(37, 211, 102, .3);
  color: var(--c-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.prod-cart:hover,
.prod-cart.in-cart {
  background: var(--c-deep);
  color: #fff;
  border-color: var(--c-deep);
}

/* Imagen del producto */
.prod-img-wrap {
  position: relative;
  background: var(--c-surface);
  aspect-ratio: 1/1;
  overflow: hidden;
}

.prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: .75rem;
  transition: transform .4s ease;
}

.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }

/* Cuerpo de la card */
.prod-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .3rem;
}

.prod-brand {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--c-soft);
}

.prod-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--c-deep);
  margin-top: auto;
  padding-top: .5rem;
}

/* Acciones de la card */
.prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .55rem;
}

/* Si los botones son muy anchos juntos, se apilan */
.prod-actions .btn-wa,
.prod-actions .btn-buy {
  min-width: 0;
  flex: 1 1 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card guardada en wishlist */
.prod-card.saved .prod-img-wrap { outline: 2.5px solid rgba(220, 53, 69, .25); }
/* ============================================================
   11. BOTONES — Sistema completo
============================================================ */

/* WhatsApp */
.btn-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: var(--c-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  padding: .55rem .5rem;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-wa:hover { background: #1ebe5d; color: #fff; transform: scale(1.02); }

/* Comprar / Ver más */
.btn-buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  padding: .55rem .5rem;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-buy:hover { background: var(--c-dark); color: #fff; transform: scale(1.02); }

/* Botón primario general */
.btn-primary-bc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--c-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  padding: .7rem 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-primary-bc:hover { background: var(--c-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Botón secundario (outline) */
.btn-secondary-bc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: transparent;
  color: var(--c-deep);
  border: 1.5px solid var(--c-deep);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  padding: .7rem 1.5rem;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-secondary-bc:hover { background: var(--c-deep); color: #fff; }

/* Botón danger (eliminar, vaciar) */
.btn-danger-bc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: transparent;
  color: var(--c-danger);
  border: 1.5px solid var(--c-danger);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  padding: .6rem 1rem;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-danger-bc:hover { background: var(--c-danger); color: #fff; }

/* ============================================================
   12. TESTIMONIALS
============================================================ */
.testi-section { background: var(--c-deep); padding: 4rem 0; }
.testi-section .section-title { color: var(--c-white); }
.testi-section .section-eyebrow { color: var(--c-soft); }

.testi-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testi-track::-webkit-scrollbar { display: none; }

.testi-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 280px;
  max-width: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.testi-stars { color: #f59e0b; font-size: .9rem; margin-bottom: .6rem; }

.testi-text {
  color: rgba(236, 237, 238, .85);
  font-size: .88rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: .75rem;
}

.testi-author {
  color: var(--c-soft);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ============================================================
   13. FAQ TEASER
============================================================ */
.faq-teaser {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1.5px solid var(--c-light);
  text-decoration: none;
  transition: var(--transition);
}

.faq-teaser:hover { border-color: var(--c-mid); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.faq-teaser-text h3 { font-size: 1rem; font-weight: 800; color: var(--c-dark); margin-bottom: .2rem; }
.faq-teaser-text p  { font-size: .82rem; color: var(--c-soft); margin: 0; }

.faq-arrow { font-size: 1.5rem; color: var(--c-mid); flex-shrink: 0; }

/* ============================================================
   14. FOOTER
============================================================ */
.site-footer {
  background: linear-gradient(160deg, #253745 0%, #06141B 100%);
  color: var(--c-white);
}

.footer-top {
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-name {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: .35rem;
}

.footer-tagline { color: var(--c-soft); font-size: .85rem; margin-bottom: 1rem; }

.footer-social { display: flex; gap: .6rem; }

.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover { background: var(--c-mid); border-color: var(--c-mid); color: #fff; transform: scale(1.1); }

.footer-col-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-soft);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  color: rgba(236, 237, 238, .7);
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: .5rem;
  transition: color .2s;
}

.footer-link:hover { color: var(--c-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom p { font-size: .78rem; color: rgba(236, 237, 238, .5); margin: 0; }

.payment-logos { display: flex; align-items: center; gap: .75rem; }
.payment-logos img { height: 22px; width: auto; filter: brightness(0) invert(.7); }

.footer-links-bottom { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links-bottom a {
  color: rgba(236, 237, 238, .45);
  font-size: .75rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links-bottom a:hover { color: var(--c-white); }

/* ============================================================
   15. SIDE PANEL — WISHLIST
============================================================ */
.side-panel {
  position: fixed;
  top: 0; right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--c-card);
  box-shadow: -8px 0 32px rgba(6, 20, 27, .2);
  transition: right .35s cubic-bezier(.25, .8, .25, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.side-panel.open { right: 0; }

.panel-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--c-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h5 { font-size: 1rem; font-weight: 800; color: var(--c-dark); margin: 0; }

.panel-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--c-light);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-soft);
  font-size: .85rem;
  transition: var(--transition);
}

.panel-close:hover { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }

.panel-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }

.wish-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--c-bg);
}

.wish-item img {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--c-bg);
}

.wish-item-info { flex: 1; min-width: 0; }
.wish-item-info strong { display: block; font-size: .82rem; font-weight: 700; color: var(--c-dark); line-height: 1.3; }
.wish-item-info small  { font-size: .78rem; color: var(--c-mid); font-weight: 600; }

.panel-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--c-light);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.btn-wish-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--c-success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .8rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-wish-wa:hover { background: #1ebe5d; color: #fff; }

.btn-wish-clear {
  background: transparent;
  border: 1.5px solid var(--c-danger);
  color: var(--c-danger);
  border-radius: var(--radius-sm);
  padding: .6rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-wish-clear:hover { background: var(--c-danger); color: #fff; }

/* ============================================================
   16. SIDE MENU (navegación lateral)
============================================================ */
.side-menu {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--c-dark);
  transition: left .35s cubic-bezier(.25, .8, .25, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.side-menu.open { left: 0; }

.menu-head {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-head span { font-weight: 800; color: var(--c-white); font-size: 1rem; }

.menu-body-inner { padding: 1.25rem; display: flex; flex-direction: column; gap: .1rem; }

.menu-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-soft);
  margin: 1.1rem 0 .5rem;
}

.menu-item {
  display: block;
  color: rgba(236, 237, 238, .8);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.menu-item:hover { background: rgba(255, 255, 255, .07); color: var(--c-white); }
.menu-item.cat { font-size: .83rem; font-weight: 500; padding-left: 1rem; }

/* ============================================================
   17. MODAL — Genérico (beneficios, alertas, confirmaciones)
============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 20, 27, .75);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--c-card);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-box-close {
  position: absolute; top: .75rem; right: .9rem;
  background: none; border: none; font-size: 1.1rem;
  color: var(--c-soft); cursor: pointer;
  transition: var(--transition);
}

.modal-box-close:hover { color: var(--c-danger); }

.modal-box h4 { font-weight: 800; color: var(--c-dark); margin-bottom: .75rem; }
.modal-box p  { color: #555; font-size: .9rem; line-height: 1.7; margin-bottom: .75rem; }

/* ============================================================
   18. MINI SEARCH RESULTS (dropdown rápido del buscador)
============================================================ */
#miniResultados {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 999;
  padding: .75rem 1.25rem;
  display: none;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  background: rgba(6, 20, 27, .97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  max-height: 280px;
  overflow-y: auto;
}

#miniResultados.show { display: flex; }

.mini-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: .6rem;
  width: 120px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.mini-card:hover { background: rgba(255, 255, 255, .15); transform: translateY(-3px); }
.mini-card img { width: 100%; height: 70px; object-fit: contain; border-radius: var(--radius-sm); margin-bottom: .35rem; }
.mini-card h6 { font-size: .72rem; color: var(--c-white); font-weight: 600; margin: 0; line-height: 1.3; }
.mini-card p  { font-size: .7rem; color: #4ade80; font-weight: 700; margin: .2rem 0 0; }

/* ============================================================
   19. FLOATING BUTTONS
============================================================ */
.fab-wa {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 1500;
  background: var(--c-success);
  color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  text-decoration: none;
  transition: var(--transition);
}

.fab-wa:hover { transform: scale(1.1); color: #fff; box-shadow: 0 8px 28px rgba(37, 211, 102, .6); }

.fab-up {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 1500;
  background: var(--c-deep);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.fab-up.show { display: flex; }
.fab-up:hover { background: var(--c-dark); transform: translateY(-2px); }

/* En mobile: FABs suben para no tapar el bottom nav */
@media (max-width: 767px) {
  .fab-wa { bottom: calc(70px + 1rem); }
  .fab-up { bottom: calc(70px + 1rem); }
}

/* Botón carrito en barra flotante de producto.html */
.btn-barra-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .12);
  color: var(--c-deep);
  border: 1.5px solid rgba(37, 211, 102, .35);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  font-family: var(--font-body);
  flex-shrink: 0;
}
.btn-barra-cart:hover { background: var(--c-deep); color: #fff; border-color: var(--c-deep); }

/* ============================================================
   20. OVERLAY (para panels laterales)
============================================================ */
.panel-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 20, 27, .45);
  z-index: 1999;
  display: none;
}

.panel-overlay.show { display: block; }

/* ============================================================
   21. FORMULARIOS — Estilo coherente con el diseño
============================================================ */
.bc-input {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--c-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--c-text);
  background: var(--c-card);
  transition: border-color .2s ease;
  outline: none;
}

.bc-input:focus {
  border-color: var(--c-mid);
  box-shadow: 0 0 0 3px rgba(74, 92, 106, .12);
}

.bc-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--c-mid);
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.bc-select {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--c-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--c-text);
  background: var(--c-card);
  transition: border-color .2s ease;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234A5C6A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}

.bc-select:focus { border-color: var(--c-mid); box-shadow: 0 0 0 3px rgba(74, 92, 106, .12); }

/* ============================================================
   22. BADGES / TAGS DE ESTADO (para pedidos, admin)
============================================================ */
.badge-bc {
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border-radius: var(--radius-xl);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.badge-pendiente  { background: rgba(245, 158, 11, .15); color: #b45309; }
.badge-pagado     { background: rgba(37, 211, 102, .15); color: #15803d; }
.badge-enviado    { background: rgba(74, 92, 106, .15);  color: var(--c-deep); }
.badge-cancelado  { background: rgba(220, 53, 69, .15);  color: #b91c1c; }

/* ============================================================
   23a. MODAL SYSTEM — emergentes (agotado, compra, beneficios)
============================================================ */
.modal-emergente {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 27, .75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.modal-emergente.abierto { display: flex; }

.modal-contenido {
  background: var(--c-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUpModal .3s ease;
  text-align: center;
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-cerrar {
  position: absolute;
  top: .75rem; right: .9rem;
  background: none; border: none;
  font-size: 1.2rem;
  color: var(--c-soft);
  cursor: pointer;
  transition: color .2s;
  line-height: 1;
}
.modal-cerrar:hover { color: var(--c-danger); }

.modal-contenido h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 1rem;
}

.modal-contenido p { color: var(--c-text); font-size: .9rem; line-height: 1.6; margin-bottom: .5rem; }
.modal-contenido strong { color: var(--c-deep); }

/* Campos dentro del modal */
.modal-field { margin-bottom: 1rem; text-align: left; }

.modal-field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--c-mid);
  margin-bottom: .35rem;
}

.modal-field input,
.modal-field select {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--c-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--c-text);
  background: var(--c-surface);
  outline: none;
  transition: border-color .2s;
}

.modal-field input:focus,
.modal-field select:focus {
  border-color: var(--c-mid);
  box-shadow: 0 0 0 3px rgba(74, 92, 106, .12);
}

/* Acciones del modal */
.modal-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  justify-content: center;
}

/* Botón primario del modal */
.btn-confirmar {
  flex: 1;
  padding: .8rem 1rem;
  background: var(--c-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.btn-confirmar:hover { background: var(--c-dark); transform: translateY(-1px); }
.btn-confirmar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Botón secundario del modal */
.btn-cancelar {
  padding: .8rem 1.25rem;
  background: transparent;
  color: var(--c-soft);
  border: 1.5px solid var(--c-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cancelar:hover { border-color: var(--c-mid); color: var(--c-mid); }

/* ── Botón de carrito agotado ── */
.agotado-btn {
  opacity: .5 !important;
  cursor: not-allowed !important;
  border-color: var(--c-soft) !important;
  color: var(--c-soft) !important;
}
.agotado-btn:hover {
  background: rgba(255, 255, 255, .85) !important;
  color: var(--c-soft) !important;
  transform: none !important;
  border-color: var(--c-soft) !important;
}

/* ── Banner pedido pagado (pedido.html) ── */
.pagado-banner {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: rgba(37, 211, 102, .1);
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(37, 211, 102, .35);
}
.pagado-banner i { font-size: 2.5rem; color: var(--c-success); display: block; margin-bottom: .5rem; }
.pagado-banner p { font-weight: 700; color: #15803d; margin: 0; }

/* ── Sección de descuento (pedido.html) ── */
.descuento-section {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.descuento-section input {
  flex: 1;
  min-width: 140px;
  padding: .55rem .9rem;
  border: 1.5px solid var(--c-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--c-text);
  background: var(--c-card);
  outline: none;
  transition: border-color .2s;
}
.descuento-section input:focus { border-color: var(--c-mid); }

.btn-descuento {
  padding: .55rem 1.1rem;
  background: var(--c-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.btn-descuento:hover { background: var(--c-dark); }

.descuento-aplicado {
  display: none;
  color: var(--c-danger);
  font-weight: 800;
  font-size: .88rem;
  width: 100%;
  text-align: right;
  margin-top: .35rem;
}

.total-final {
  display: none;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--c-deep);
  text-align: right;
  padding-top: .4rem;
  border-top: 2px solid var(--c-deep);
  margin-top: .4rem;
}

/* ============================================================
   23. RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  /* Espacio para el bottom nav fijo en mobile */
  body { padding-bottom: 70px; }
}

@media (max-width: 680px) {
  .benefits-strip { grid-template-columns: 1fr 1fr 1fr; }
  .benefit-label  { font-size: .68rem; }
  .footer-top     { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom  { flex-direction: column; align-items: flex-start; }
  .side-panel { width: 100%; max-width: 100%; right: -100%; }
  .side-panel.open { right: 0; }
  .flex-img { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; height: 200px; }
  .no-gap { flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
  .trust-bar-inner {
    gap: 1rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 1rem;
  }
  .trust-item { flex-shrink: 0; }
}