/* ============================================
   OPUS SUPLEMENTOS — Stylesheet
   Dark premium gym aesthetic
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
  --black: #0a0a0a;
  --black-card: #1a1a1a;
  --black-hover: #222222;
  --red: #e31e24;
  --red-dark: #b8181d;
  --red-glow: rgba(227, 30, 36, 0.4);
  --white: #f5f5f5;
  --white-dim: #b0b0b0;
  --gray: #888888;
  --green: #25d366;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 70px;
  --container-max: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.accent {
  color: var(--red);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 0 25px var(--red-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-whatsapp {
  background: var(--green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: #fff;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.2rem;
}

.btn-success {
  background: var(--green) !important;
  border-color: var(--green) !important;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(227, 30, 36, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-logo .logo-accent {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-height) 20px 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(227, 30, 36, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(227, 30, 36, 0.08) 0%, transparent 50%),
    var(--black);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(227, 30, 36, 0.03) 2px,
      rgba(227, 30, 36, 0.03) 4px
    );
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tag {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-title .line {
  display: block;
}

.hero-title .red-line {
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.7s;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.9s;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* ── Sections ── */
section {
  padding: 80px 0;
}

.section-dark {
  background: var(--black-card);
}

/* ── Brands Section ── */
.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.brand-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
  padding: 20px 30px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: default;
}

.brand-item:hover {
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px var(--red-glow);
  transform: translateY(-2px);
}

/* ── Categories Grid ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--red-glow);
}

.category-card svg {
  margin: 0 auto 12px;
  transition: transform var(--transition);
}

.category-card:hover svg {
  transform: scale(1.15);
}

.category-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* ── Benefits Section ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.benefit-card:hover {
  border-color: rgba(227, 30, 36, 0.3);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: rgba(227, 30, 36, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.benefit-card p {
  color: var(--white-dim);
  font-size: 0.95rem;
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.product-card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--red-glow);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.product-card-img .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.product-card-body {
  padding: 1.2rem;
}

.product-marca {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-nombre {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-sabor {
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 2px;
}

.product-cantidad {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.product-precio {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 1rem;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

.product-card-actions .btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 8px 10px;
}

/* ── Tienda Page ── */
.page-header {
  padding: calc(var(--nav-height) + 40px) 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(227, 30, 36, 0.08) 0%, transparent 60%),
    var(--black);
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--red);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
  padding: 0 20px;
}

.filter-btn {
  background: var(--black-card);
  color: var(--white-dim);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--white);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

#productos-grid {
  transition: opacity 0.2s ease;
}

/* ── Product Detail Page ── */
.producto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.producto-imagen {
  background: var(--black-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.producto-imagen img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.producto-info {
  padding-top: 1rem;
}

.producto-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 0.8rem;
}

.producto-marca {
  font-size: 1rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.producto-sabor,
.producto-presentacion {
  font-size: 1rem;
  color: var(--white-dim);
  margin-top: 0.5rem;
}

.producto-precio-detalle {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--red);
  margin: 1rem 0;
  text-shadow: 0 0 30px var(--red-glow);
}

.producto-descripcion {
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.producto-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.producto-envio-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  background: rgba(227, 30, 36, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(227, 30, 36, 0.15);
  font-size: 0.9rem;
  color: var(--white-dim);
}

.producto-not-found {
  text-align: center;
  padding: 4rem 2rem;
}

/* ── Carrito Page ── */
#carrito-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

#carrito-vacio {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1.5rem;
}

#carrito-vacio svg {
  opacity: 0.3;
}

#carrito-vacio h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

#carrito-vacio p {
  color: var(--gray);
}

.carrito-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--black-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
  transition: all var(--transition);
  animation: slideIn 0.3s ease;
}

.carrito-item-removing {
  opacity: 0;
  transform: translateX(-30px);
}

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

.carrito-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}

.carrito-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carrito-item-info h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.carrito-item-marca {
  font-size: 0.8rem;
  color: var(--gray);
}

.carrito-item-presentacion {
  font-size: 0.8rem;
  color: var(--white-dim);
}

.carrito-item-precio {
  font-size: 0.9rem;
  color: var(--white-dim);
}

.carrito-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cantidad-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.btn-cantidad {
  background: var(--black-card);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cantidad:hover {
  background: var(--red);
}

.cantidad-valor {
  width: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrito-item-subtotal {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red);
}

.btn-eliminar {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  font-family: var(--font-body);
}

.btn-eliminar:hover {
  color: var(--red);
}

/* Resumen */
#carrito-resumen {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

#carrito-resumen h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.resumen-linea {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  font-size: 1rem;
  color: var(--white-dim);
}

.resumen-total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.resumen-envio {
  margin: 1rem 0;
}

.resumen-envio label {
  display: block;
  font-size: 0.9rem;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.resumen-envio select {
  width: 100%;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.envio-gratis {
  color: var(--green) !important;
  font-weight: 700;
}

#carrito-resumen .btn {
  width: 100%;
  margin-top: 10px;
}

.btn-mp {
  background: #009ee3;
}

.btn-mp:hover {
  background: #007db8;
  box-shadow: 0 0 20px rgba(0, 158, 227, 0.3);
}

.btn-vaciar {
  font-size: 0.85rem;
  padding: 8px;
  border-color: rgba(255,255,255,0.15);
  color: var(--gray);
}

/* ── Nosotros Page ── */
.about-hero {
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 20px 60px;
  background:
    radial-gradient(ellipse at center, rgba(227, 30, 36, 0.1) 0%, transparent 60%),
    var(--black);
}

.about-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-hero p {
  color: var(--white-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--white-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--black-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(227, 30, 36, 0.3);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--red);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.about-brands {
  max-width: 800px;
  margin: 0 auto;
}

.about-brand-item {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.about-brand-item h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--red);
}

.about-brand-item p {
  color: var(--white-dim);
  line-height: 1.7;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(227, 30, 36, 0.3);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(227, 30, 36, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--white-dim);
  font-size: 0.9rem;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
}

.contact-envio {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.contact-envio h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--red);
}

.contact-envio p {
  color: var(--white-dim);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* Form */
.contact-form {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* ── Footer ── */
.footer {
  background: var(--black-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .nav-logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--red);
}

.footer-links a {
  display: block;
  color: var(--gray);
  padding: 4px 0;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--gray);
  font-size: 0.85rem;
}

/* ── Toast Notification ── */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--black-card);
  border: 1px solid var(--red);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 15px var(--red-glow);
}

.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.toast-hide {
  transform: translateX(100px);
  opacity: 0;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.modal-overlay.modal-active {
  opacity: 1;
}

.modal-content {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-active .modal-content {
  transform: scale(1);
}

.modal-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--red);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

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

.modal-content h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--white-dim);
  margin-bottom: 0.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  width: 100%;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .producto-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  #carrito-content {
    grid-template-columns: 1fr;
  }

  #carrito-resumen {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.8rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .brands-grid {
    gap: 1.5rem;
  }

  .brand-item {
    font-size: 1.1rem;
    padding: 14px 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1.2rem 0.5rem;
  }

  .category-card h3 {
    font-size: 0.85rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 50px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .carrito-item {
    grid-template-columns: 60px 1fr;
    gap: 0.8rem;
  }

  .carrito-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .producto-acciones {
    flex-direction: column;
  }

  .producto-acciones .btn {
    width: 100%;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  .filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
  }

  .toast-notification {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

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

/* ══════════════════════════════════════════════
   NEW MODULES — Added styles
   ══════════════════════════════════════════════ */

/* ── Nav Search Button ── */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-search-btn:hover {
  color: var(--red);
}

/* ── Products Loader ── */
.products-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  grid-column: 1 / -1;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.products-loader p {
  color: var(--gray);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Stock Badges ── */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.stock-out {
  background: rgba(136,136,136,0.2);
  color: var(--gray);
}

.stock-last {
  background: rgba(255,152,0,0.15);
  color: #ff9800;
}

.stock-few {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}

.product-stock-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
}

.producto-stock-info {
  margin: 0.5rem 0;
}

/* ── Product Gallery ── */
.producto-galeria-main {
  background: var(--black-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
}

.producto-galeria-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.producto-galeria-thumbs {
  display: flex;
  gap: 8px;
}

.galeria-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--black-card);
  padding: 0;
  transition: border-color var(--transition);
}

.galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-thumb-active,
.galeria-thumb:hover {
  border-color: var(--red);
}

.producto-imagen-single {
  background: var(--black-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.producto-imagen-single img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ── Product Variants ── */
.producto-variantes {
  margin: 1rem 0;
}

.variantes-label {
  font-size: 0.9rem;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.variantes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variante-pill {
  padding: 8px 18px;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  color: var(--white-dim);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}

.variante-pill:hover {
  border-color: var(--red);
  color: var(--white);
}

.variante-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

body.search-open {
  overflow: hidden;
}

.search-overlay-content {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.search-header {
  padding: calc(var(--nav-height) + 20px) 0 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  transition: border-color var(--transition);
}

.search-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 15px var(--red-glow);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--gray);
}

.search-close-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color var(--transition);
}

.search-close-btn:hover {
  color: var(--white);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

.search-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}

.search-no-results p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
  text-decoration: none;
}

.search-result-card:hover {
  background: rgba(255,255,255,0.05);
}

.search-result-img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}

.search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-marca {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-result-nombre {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--white);
  margin: 2px 0;
}

.search-result-sabor {
  font-size: 0.8rem;
  color: var(--red);
}

.search-result-precio {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red);
  margin-top: 2px;
}

/* ── Comparador ── */
.btn-comparar {
  font-size: 0.65rem !important;
  padding: 6px 8px !important;
  white-space: nowrap;
}

.btn-comparar-active {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: var(--white) !important;
}

.comparador-barra {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: var(--black-card);
  border-top: 1px solid rgba(227, 30, 36, 0.3);
  padding: 12px 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: bottom var(--transition);
  box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
}

.comparador-visible {
  bottom: 0;
}

.comparador-barra-items {
  display: flex;
  gap: 10px;
}

.comparador-mini-card {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--red);
}

.comparador-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparador-mini-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--red);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
}

.comparador-barra-actions {
  display: flex;
  gap: 8px;
}

/* Comparador Modal */
.comparador-modal-content {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.comparador-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.comparador-modal-header h3 {
  font-size: 1.8rem;
  text-transform: uppercase;
}

.comparador-modal-close {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.comparador-modal-close:hover {
  color: var(--white);
}

.comparador-tabla-wrap {
  overflow-x: auto;
}

.comparador-tabla {
  width: 100%;
  border-collapse: collapse;
}

.comparador-tabla th,
.comparador-tabla td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  vertical-align: top;
}

.comparador-tabla th {
  padding-bottom: 20px;
}

.comparador-prod-header {
  text-align: center;
}

.comparador-prod-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto 8px;
}

.comparador-prod-header h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.comparador-label {
  font-family: var(--font-display);
  font-size: 1rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.comparador-diff {
  background: rgba(227, 30, 36, 0.05);
}

.comparador-diff td:not(.comparador-label) {
  color: var(--red);
  font-weight: 500;
}

/* ── Cupón Section ── */
.cupon-section {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cupon-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cupon-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--black);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.cupon-input:focus {
  outline: none;
  border-color: var(--red);
}

.cupon-applied-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--green);
  width: 100%;
}

.cupon-remove-btn {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: auto;
  text-decoration: underline;
  font-family: var(--font-body);
}

.cupon-remove-btn:hover {
  color: var(--red);
}

.cupon-mensaje {
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1rem;
}

.cupon-error {
  color: #ff4444;
}

.resumen-descuento {
  color: var(--green) !important;
}

.resumen-descuento span {
  color: var(--green) !important;
}

/* ── Carrito Trust & Payment ── */
.carrito-trust-badges {
  display: flex;
  gap: 12px;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-badge-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray);
}

.carrito-payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.carrito-payment-icons span {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--gray);
  font-family: var(--font-body);
}

/* ── WhatsApp Float Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: whatsappPulse 2s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--black-card);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ── Footer Updates ── */
.footer-content {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-data-fiscal {
  margin-top: 1rem;
}

.footer-data-fiscal img {
  border-radius: 4px;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--white-dim);
}

.trust-badge svg {
  color: var(--red);
  stroke: var(--red);
  min-width: 16px;
}

.footer-payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.payment-label {
  font-size: 0.85rem;
  color: var(--gray);
}

.payment-icons {
  display: flex;
  gap: 8px;
}

.payment-icon {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--white-dim);
  font-family: var(--font-body);
}

.footer-disclaimer {
  color: var(--gray);
  font-size: 0.75rem;
  margin-top: 4px;
  font-style: italic;
}

/* ── FAQ Accordion ── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(255,255,255,0.15);
}

.faq-active {
  border-color: rgba(227, 30, 36, 0.3) !important;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  transition: transform var(--transition);
  min-width: 20px;
  color: var(--red);
}

.faq-active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
  color: var(--white-dim);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Legal Pages ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--red);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 1.5rem;
  list-style: disc;
}

.legal-content li {
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.legal-content a {
  color: var(--red);
}

.legal-content strong {
  color: var(--white);
}

/* ── Responsive additions ── */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .comparador-modal-content {
    max-width: 95vw;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-trust-badges {
    gap: 8px;
  }

  .trust-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .footer-payment-methods {
    flex-direction: column;
    gap: 8px;
  }

  .whatsapp-float {
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

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

  .whatsapp-float-tooltip {
    display: none;
  }

  .comparador-barra {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .search-result-card {
    padding: 10px 8px;
  }

  .galeria-thumb {
    width: 55px;
    height: 55px;
  }

  .comparador-tabla th,
  .comparador-tabla td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .comparador-prod-header img {
    width: 70px;
    height: 70px;
  }

  .product-card-actions {
    flex-wrap: wrap;
  }

  .btn-comparar {
    width: 100%;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
  }

  /* Mejora 6: modales no se cortan en móvil */
  .modal-carrito,
  .qty-modal {
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ══════════════════════════════════════════════
   MÓDULOS 1-6 — Nuevos estilos
   ══════════════════════════════════════════════ */

/* ── Módulo 1: Nav Logo Imagen ── */
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 32px;
  }
}

/* ── Módulo 2: Footer Contact Icons ── */
.footer-contact-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.footer-contact-link svg {
  flex-shrink: 0;
}

/* ── Módulo 3: Dual Price System ── */
.product-precio-mp {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 2px;
}

.product-precio-efectivo {
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 1rem;
  font-weight: 500;
}

.precio-efectivo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: var(--green);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.precio-ahorro {
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Cart items dual prices */
.carrito-item-precios {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.carrito-item-precio-mp {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.carrito-item-precio-efectivo {
  font-size: 0.78rem;
  color: var(--green);
}

/* Payment method selector in cart */
.resumen-metodo-pago {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.resumen-metodo-pago > label {
  display: block;
  font-size: 0.9rem;
  color: var(--white-dim);
  margin-bottom: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metodo-pago-opciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metodo-pago-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.metodo-pago-option:hover {
  border-color: rgba(227, 30, 36, 0.4);
}

.metodo-pago-option input[type="radio"] {
  accent-color: var(--red);
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.metodo-pago-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metodo-pago-nombre {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

.metodo-pago-desc {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ── Módulo 4/5: Button Styles ── */
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline-red:hover {
  background: rgba(227, 30, 36, 0.08);
  color: var(--red);
}

/* ── Módulo 6: MercadoPago Loading ── */
.btn-mp-loading {
  opacity: 0.75;
  cursor: not-allowed !important;
  pointer-events: none;
}

.btn-mp-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* Payment status modals */
.modal-pago-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 1rem;
}

.modal-success-content {
  border-top: 3px solid var(--green) !important;
}

.modal-error-content {
  border-top: 3px solid #ff4444 !important;
}

.modal-pending-content {
  border-top: 3px solid #ffc107 !important;
}

/* ══════════════════════════════════════════════
   CHECKOUT — Estilos del flujo de 3 pasos
   ══════════════════════════════════════════════ */

/* ── Sección checkout ── */
.checkout-section {
  padding: 2rem 0 4rem;
}

/* ── Stepper ── */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border-radius: 12px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.stepper-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(245,245,245,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(245,245,245,0.4);
  transition: all 0.3s ease;
}

.stepper-label {
  font-size: 0.75rem;
  color: rgba(245,245,245,0.4);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.stepper-connector {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: rgba(245,245,245,0.15);
  margin: 0 8px;
  margin-bottom: 24px;
  transition: background 0.3s ease;
}

.stepper-step.active .stepper-number {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.stepper-step.active .stepper-label {
  color: var(--white);
}

.stepper-step.completed .stepper-number {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.stepper-step.completed .stepper-number::after {
  content: '✓';
  font-size: 1rem;
}

.stepper-step.completed .stepper-label {
  color: #25d366;
}

/* ── Pasos del checkout ── */
.checkout-step {
  display: none;
  animation: fadeInUp 0.35s ease;
}

.checkout-step.active {
  display: block;
}

.checkout-step-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.checkout-form {
  max-width: 600px;
}

/* ── Navegación pasos ── */
.step-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── Opciones de entrega ── */
.entrega-opciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.entrega-option {
  cursor: pointer;
}

.entrega-option input[type="radio"] {
  display: none;
}

.entrega-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid rgba(245,245,245,0.15);
  border-radius: 10px;
  background: var(--dark-card);
  transition: border-color 0.2s, background 0.2s;
}

.entrega-option input[type="radio"]:checked + .entrega-option-card {
  border-color: var(--red);
  background: rgba(227,30,36,0.08);
}

.entrega-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.entrega-option-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entrega-option-info strong {
  color: var(--white);
  font-size: 0.95rem;
}

.entrega-precio {
  font-size: 0.82rem;
  color: rgba(245,245,245,0.6);
}

.entrega-precio.envio-gratis {
  color: var(--green);
  font-weight: 600;
}

/* ── Formulario row ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Error en campos ── */
.form-error {
  display: none;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ── Tabla costos de envío ── */
.costos-envio-tabla {
  background: var(--dark-card);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.5rem 0;
}

.costos-envio-tabla h4 {
  font-size: 0.9rem;
  color: rgba(245,245,245,0.7);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.costos-envio-tabla table {
  width: 100%;
  border-collapse: collapse;
}

.costos-envio-tabla td {
  padding: 8px 0;
  font-size: 0.85rem;
  color: rgba(245,245,245,0.8);
  vertical-align: middle;
}

.costos-envio-tabla td:last-child {
  text-align: right;
  white-space: nowrap;
}

.costos-nota {
  font-size: 0.75rem;
  color: rgba(245,245,245,0.4);
  margin-top: 10px;
  margin-bottom: 0;
}

.zona-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

.zona-verde   { background: #4caf50; }
.zona-amarilla{ background: #ffc107; }
.zona-roja    { background: var(--red); }

/* ── Estimado dinámico ── */
.costo-estimado-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(227,30,36,0.08);
  border: 1px solid rgba(227,30,36,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  gap: 12px;
  margin-bottom: 1rem;
}

.costo-envio-valor {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

/* ── Items en el resumen del checkout ── */
.checkout-resumen-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245,245,245,0.1);
  padding-bottom: 1.5rem;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--dark-card);
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-sabor,
.checkout-item-cantidad {
  font-size: 0.8rem;
  color: rgba(245,245,245,0.55);
  margin-top: 2px;
}

.checkout-item-precios {
  text-align: right;
  flex-shrink: 0;
}

.checkout-item-precio-mp {
  font-size: 0.82rem;
  color: var(--white);
  font-weight: 600;
}

.checkout-item-precio-ef {
  font-size: 0.78rem;
  color: var(--green);
}

/* ── Totales ── */
.checkout-totales {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  background: var(--dark-card);
  border-radius: 10px;
}

/* ── Error checkout ── */
.checkout-error-msg {
  background: rgba(227,30,36,0.12);
  border: 1px solid rgba(227,30,36,0.4);
  color: #ff7070;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* ── Nota método de pago en carrito ── */
.resumen-metodo-nota {
  font-size: 0.78rem;
  color: rgba(245,245,245,0.45);
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

/* ── Título método de pago ── */
.metodo-pago-titulo {
  display: block;
  font-size: 0.85rem;
  color: rgba(245,245,245,0.7);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ── Responsive checkout ── */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .checkout-stepper {
    padding: 1rem 0.75rem;
  }

  .stepper-connector {
    max-width: 40px;
  }

  .stepper-number {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .stepper-label {
    font-size: 0.7rem;
  }

  .step-nav {
    flex-direction: column;
  }

  .step-nav .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .checkout-item-img {
    width: 50px;
    height: 50px;
  }
}

/* ══════════════════════════════════════
   PRODUCT CARD LINKS (Tarea 4)
   ══════════════════════════════════════ */

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

.product-nombre-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-nombre-link:hover {
  color: var(--red);
}

/* ══════════════════════════════════════
   FACTURA INFO (Tarea 6 — DNI)
   ══════════════════════════════════════ */

.factura-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(227, 30, 36, 0.06);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.factura-info p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

.factura-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Zona naranja en tabla costos ── */
.zona-naranja {
  background: #f59e0b;
}

/* ══════════════════════════════════════
   GRACIAS.HTML (Tarea 8)
   ══════════════════════════════════════ */

.gracias-section {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
}

.gracias-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ── Check animado ── */
.check-circle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.check-circle-svg {
  width: 90px;
  height: 90px;
}

.check-circle-bg {
  fill: none;
  stroke: rgba(37, 211, 102, 0.2);
  stroke-width: 3;
}

.check-circle-ring {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  animation: drawCircle 0.6s ease forwards 0.1s;
  transform-origin: center;
  transform: rotate(-90deg);
}

.check-tick {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawTick 0.4s ease forwards 0.65s;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}

.gracias-titulo {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 0.5rem;
}

.gracias-subtitulo {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ── Box datos bancarios ── */
.datos-bancarios-box {
  background: var(--black-card);
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.datos-bancarios-titulo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--white);
}

.dato-bancario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
}

.dato-bancario:last-of-type {
  border-bottom: none;
}

.dato-bancario-label {
  font-size: 0.78rem;
  color: var(--gray);
  min-width: 70px;
  flex-shrink: 0;
}

.dato-bancario-valor {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  color: var(--white);
  flex: 1;
  word-break: break-all;
}

.dato-bancario-valor.monto {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-body);
}

.dato-bancario-valor.pedido-num {
  color: var(--red);
  font-weight: 600;
}

.btn-copiar {
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid rgba(245, 245, 245, 0.15);
  color: var(--white-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-copiar:hover {
  background: rgba(245, 245, 245, 0.14);
  color: var(--white);
}

.btn-copiar.copiado {
  background: rgba(37, 211, 102, 0.15);
  border-color: var(--green);
  color: var(--green);
}

/* ── Texto comprobante ── */
.gracias-instruccion {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Box N° pedido (modo MP) ── */
.pedido-confirmado-box {
  background: var(--black-card);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.pedido-confirmado-numero {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green);
  letter-spacing: 0.06em;
}

.pedido-confirmado-nombre {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Botones de acción ── */
.gracias-acciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .gracias-acciones {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-wsp-comprobante {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-wsp-comprobante:hover {
  opacity: 0.9;
  color: #fff;
}

.btn-seguir-comprando {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-seguir-comprando:hover {
  background: var(--red);
  color: var(--white);
}

/* ══════════════════════════════════════
   WIDGET CALCULADORA DE ENVÍO (producto.html)
   ══════════════════════════════════════ */

.envio-calc {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(245, 245, 245, 0.04);
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-radius: var(--radius);
}

.envio-calc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.envio-calc-input-row {
  display: flex;
  gap: 8px;
}

.envio-calc-input {
  flex: 1;
  background: var(--black-card);
  border: 1px solid rgba(245, 245, 245, 0.15);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.envio-calc-input:focus {
  border-color: var(--red);
}

.envio-calc-resultado {
  margin-top: 0.75rem;
  padding: 10px 12px;
  background: rgba(245, 245, 245, 0.04);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.envio-calc-gratis {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 2px;
}

.envio-calc-zona {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.envio-calc-rango {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 2px;
}

.envio-calc-dias {
  font-size: 0.78rem;
  color: var(--gray);
  margin: 0;
}

.envio-calc-error {
  color: var(--red);
  font-size: 0.85rem;
  margin: 0;
}

/* ══════════════════════════════════════
   GRACIAS.HTML v2 — Nuevas clases
   ══════════════════════════════════════ */

.gracias-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* ── Check animado v2 ── */
.check-circle {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.check-circle svg {
  width: 80px;
  height: 80px;
}

.check-circle-bg {
  fill: none;
  stroke: rgba(37, 211, 102, 0.2);
  stroke-width: 3;
}

.check-circle-stroke {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawCircle 0.6s ease forwards 0.1s;
  transform-origin: center;
  transform: rotate(-90deg);
}

.check-mark {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawTick 0.4s ease forwards 0.65s;
}

/* ── Box transferencia ── */
.transferencia-box {
  background: var(--black-card);
  border: 1px solid rgba(245, 245, 245, 0.1);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.transferencia-titulo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--white);
}

.transferencia-dato {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
}

.transferencia-dato:last-of-type {
  border-bottom: none;
}

.transferencia-label {
  font-size: 0.78rem;
  color: var(--gray);
  min-width: 70px;
  flex-shrink: 0;
}

.transferencia-valor {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  color: var(--white);
  flex: 1;
  word-break: break-all;
}

.transferencia-monto {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-body);
}

.transferencia-pedido-num {
  color: var(--red);
  font-weight: 600;
}

/* ── Box N° pedido v2 (modo MP) ── */
.gracias-pedido-box {
  background: var(--black-card);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.gracias-pedido-numero {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green);
  letter-spacing: 0.06em;
}

.gracias-pedido-msg {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ══════════════════════════════════════
   CP ENVÍO RESULTADO (checkout)
   ══════════════════════════════════════ */

.cp-envio-resultado {
  margin-top: 0.75rem;
  padding: 10px 12px;
  background: rgba(245, 245, 245, 0.04);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray);
}

/* ══════════════════════════════════════
   SELECTOR DE CANTIDAD — Detail page inline
   ══════════════════════════════════════ */

.producto-qty-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.producto-qty-label {
  font-size: 0.9rem;
  color: var(--white-dim);
  font-weight: 500;
}

.producto-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.producto-qty-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.producto-qty-btn:hover {
  background: rgba(227, 30, 36, 0.2);
}

.producto-qty-valor {
  width: 44px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 36px;
}

/* ══════════════════════════════════════
   MODAL — SELECTOR DE CANTIDAD (cards)
   ══════════════════════════════════════ */

.qty-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.qty-modal-overlay.qty-modal-visible {
  opacity: 1;
}

.qty-modal {
  position: relative;
  background: var(--black-card);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--red);
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.qty-modal-overlay.qty-modal-visible .qty-modal {
  transform: translateY(0);
}

.qty-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.qty-modal-close:hover {
  color: var(--white);
}

.qty-modal-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.qty-modal-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: #111;
}

.qty-modal-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3px;
}

.qty-modal-sabor {
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 3px;
}

.qty-modal-precio-unit {
  font-size: 0.8rem;
  color: var(--gray);
}

.qty-modal-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qty-modal-selector-label {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.qty-modal-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-modal-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.qty-modal-btn:hover {
  background: rgba(227, 30, 36, 0.2);
}

.qty-modal-valor {
  width: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 34px;
}

.qty-modal-total {
  text-align: center;
  margin-bottom: 1.25rem;
}

.qty-modal-total-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.qty-modal-total span:last-child {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
  letter-spacing: 0.04em;
}

.qty-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qty-modal-btn-comprar,
.qty-modal-btn-cancelar {
  width: 100%;
}

/* ══════════════════════════════════════
   MODAL — CARRITO ABANDONADO
   ══════════════════════════════════════ */

.modal-carrito-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-carrito-overlay.modal-carrito-visible {
  opacity: 1;
}

.modal-carrito {
  position: relative;
  background: var(--black-card);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--red);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-carrito-overlay.modal-carrito-visible .modal-carrito {
  transform: translateY(0);
}

.modal-carrito-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.modal-carrito-close:hover {
  color: var(--white);
}

.modal-carrito-titulo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  padding-right: 2rem;
}

.modal-carrito-subtitulo {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.modal-carrito-items {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-carrito-item-nombre {
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
}

.modal-carrito-item-precio {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--red);
  white-space: nowrap;
}

.modal-carrito-mas {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

.modal-carrito-acciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-carrito-btn-comprar,
.modal-carrito-btn-seguir {
  width: 100%;
}

/* ══════════════════════════════════════ */

.cp-envio-resultado.gratis {
  border-left-color: var(--green);
  color: var(--green);
  font-weight: 600;
}

/* ══════════════════════════════════════
   ZIPNOVA — WIDGETS DE COTIZACIÓN DE ENVÍO
   ══════════════════════════════════════ */

/* ── Estados genéricos de loading / error ── */
.envio-cargando,
.carrito-envio-cargando {
  display: block;
  font-size: 0.82rem;
  color: var(--gray);
  padding: 8px 0;
  font-style: italic;
}

.envio-gratis-msg,
.carrito-envio-gratis {
  display: block;
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 600;
  padding: 6px 0;
}

.envio-sin-cobertura,
.carrito-envio-error {
  display: block;
  font-size: 0.82rem;
  color: var(--red);
  padding: 6px 0;
}

/* ── Widget de producto (página de detalle) ── */

.envio-calc-cargando {
  display: block;
  font-size: 0.82rem;
  color: var(--gray);
  font-style: italic;
  padding: 4px 0;
}

.envio-opciones-widget {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.envio-opcion-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  flex-wrap: wrap;
}

.envio-opcion-carrier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.envio-opcion-precio {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--red);
  white-space: nowrap;
}

.envio-opcion-dias {
  font-size: 0.75rem;
  color: var(--gray);
  width: 100%;
}

/* ── Widget de carrito (carrito.html) ── */

.resumen-envio-calc {
  margin: 0.75rem 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.resumen-envio-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.resumen-envio-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.resumen-cp-input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.resumen-cp-input:focus {
  border-color: var(--red);
}

.resumen-cp-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.carrito-envio-resultado {
  margin-top: 10px;
}

.carrito-envio-opciones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carrito-envio-opcion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}

.carrito-envio-opcion input[type="radio"] {
  accent-color: var(--red);
  flex-shrink: 0;
}

.carrito-envio-opcion.carrito-envio-opcion-sel,
.carrito-envio-opcion:has(input:checked) {
  border-color: var(--red);
  background: rgba(227, 30, 36, 0.06);
}

.carrito-envio-opt-carrier {
  flex: 1;
  font-weight: 600;
  color: var(--white);
}

.carrito-envio-opt-precio {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--red);
  white-space: nowrap;
}

.carrito-envio-opt-dias {
  font-size: 0.72rem;
  color: var(--gray);
  width: 100%;
  padding-left: 20px;
}

.envio-pendiente {
  color: var(--gray);
  font-style: italic;
  font-size: 0.82rem;
}

/* ── Opciones de envío en checkout (paso 1) ── */

.checkout-envio-opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.checkout-envio-opcion {
  cursor: pointer;
  display: block;
}

.checkout-envio-opcion input[type="radio"] {
  display: none;
}

.checkout-envio-opcion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid rgba(245, 245, 245, 0.15);
  border-radius: 10px;
  background: var(--black-card);
  transition: border-color 0.2s, background 0.2s;
}

.checkout-envio-opcion input[type="radio"]:checked + .checkout-envio-opcion-card {
  border-color: var(--red);
  background: rgba(227, 30, 36, 0.08);
}

.checkout-envio-opcion-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkout-envio-carrier {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.checkout-envio-dias {
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.5);
}

.checkout-envio-precio {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--red);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── cp-envio-resultado base (ya existía, complementar) ── */

.cp-envio-resultado {
  padding: 10px 0;
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .resumen-envio-row {
    flex-direction: column;
    align-items: stretch;
  }
  .resumen-envio-row .btn {
    width: 100%;
  }
}
