:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-tertiary: #151c33;
  --azul: #0066ff;
  --azul-oscuro: #004dbf;
  --cyan: #00d4ff;
  --morado: #7b2ff7;
  --blanco: #ffffff;
  --texto: #e8ecf5;
  --texto-suave: #8892b0;
  --borde: rgba(0, 212, 255, 0.15);
  --borde-hover: rgba(0, 212, 255, 0.45);
  --sombra: 0 8px 30px rgba(0, 0, 0, 0.4);
  --sombra-glow: 0 8px 30px rgba(0, 212, 255, 0.2);
  --header-h: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  min-height: var(--header-h);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--cyan);
  animation: pulseIcon 2s ease-in-out infinite;
}

.logo span { color: var(--cyan); }

@keyframes pulseIcon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--texto-suave);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--cyan); }

.cart-btn {
  background: linear-gradient(135deg, var(--azul), var(--cyan));
  color: var(--blanco);
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 40px;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.35);
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.badge {
  background: var(--blanco);
  color: var(--azul);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ===== HERO ANIMADO ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(ellipse at top, #0e1832 0%, #050812 100%);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.grid-pattern {
  position: absolute;
  inset: -60%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.07) 1px, transparent 1px);
  background-size: 55px 55px;
  animation: gridMove 22s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
}

@keyframes gridMove {
  from { transform: translate(0, 0); }
  to   { transform: translate(55px, 55px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #0066ff, transparent 70%);
  top: -180px; left: -180px;
}

.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #7b2ff7, transparent 70%);
  bottom: -180px; right: -150px;
  animation-delay: -4s;
}

.orb-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #00d4ff, transparent 70%);
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
  opacity: 0.35;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(45px, -35px) scale(1.12); }
  66%      { transform: translate(-35px, 25px) scale(0.94); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.3rem;
  color: var(--blanco);
  animation: fadeInUp 0.8s ease 0.2s both;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, #00d4ff, #0066ff, #7b2ff7, #00d4ff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 300% center; }
}

.hero p {
  color: var(--texto-suave);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin: 0 auto 2.2rem;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat {
  text-align: center;
  min-width: 100px;
}

.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat span {
  font-size: 0.82rem;
  color: var(--texto-suave);
}

.hero-phone {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22rem;
  color: rgba(0, 212, 255, 0.06);
  z-index: 1;
  animation: phoneFloat 6s ease-in-out infinite;
  pointer-events: none;
  display: none;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(-50%) rotate(-3deg); }
  50%      { transform: translateY(-55%) rotate(3deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== BOTONES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--azul), var(--cyan));
  color: var(--blanco);
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--texto);
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 1.5px solid var(--borde-hover);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== CATÁLOGO ===== */
.catalogo {
  padding: 4rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
}

.catalogo h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 2rem;
  text-align: center;
  color: var(--texto);
}

/* ===== FILTROS ===== */
.filtros {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.buscador {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
}

.buscador input {
  width: 100%;
  padding: 0.9rem 2.8rem;
  border: 1.5px solid var(--borde);
  border-radius: 30px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--texto);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.buscador input::placeholder { color: var(--texto-suave); }

.buscador input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.icono-buscar {
  position: absolute;
  left: 1rem;
  pointer-events: none;
  color: var(--cyan);
}

.limpiar {
  position: absolute;
  right: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--texto-suave);
  padding: 0.4rem;
  display: none;
}

.limpiar.visible { display: block; }
.limpiar:hover { color: var(--cyan); }

.categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cat-btn {
  background: var(--bg-secondary);
  border: 1.5px solid var(--borde);
  color: var(--texto-suave);
  padding: 0.5rem 1.1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}

.cat-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.cat-btn.activo {
  background: linear-gradient(135deg, var(--azul), var(--cyan));
  border-color: transparent;
  color: var(--blanco);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.35);
}

.resultados {
  text-align: center;
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-bottom: 1.5rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--borde);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: aparecer 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--borde-hover);
  box-shadow: var(--sombra-glow);
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== IMAGEN DEL CARD (CLICKABLE) ===== */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-tertiary);
}

.card-img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card-img-wrapper:hover img {
  transform: scale(1.08);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 26, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-img-wrapper:hover .card-img-overlay {
  opacity: 1;
}

.card-img-overlay span {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.card-img-wrapper:hover .card-img-overlay span {
  transform: translateY(0);
}

.card-img-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(6px);
  color: var(--cyan);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.2s;
}

.card-img-wrapper:hover .card-img-badge {
  background: var(--cyan);
  color: var(--bg-primary);
  transform: rotate(360deg);
}

/* ===== CUERPO DEL CARD ===== */
.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-categoria {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.3;
}

.card-body .price {
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
}

.card-body .code {
  font-size: 0.72rem;
  color: var(--texto-suave);
}

.minimo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(123, 47, 247, 0.1);
  color: #b088ff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  width: fit-content;
  border: 1px solid rgba(123, 47, 247, 0.2);
}

.add-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  color: var(--texto);
  border: 1px solid var(--borde);
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
  min-height: 44px;
}

.add-btn:hover {
  background: linear-gradient(135deg, var(--azul), var(--cyan));
  border-color: transparent;
  color: var(--blanco);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

/* ===== SIN RESULTADOS ===== */
.sin-resultados { text-align: center; padding: 3rem 1rem; }
.sin-resultados p { font-size: 1.05rem; color: var(--texto-suave); margin-bottom: 1.2rem; }
.sin-resultados p i { margin-right: 0.4rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--borde);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.25s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.specs-modal { max-width: 540px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--borde);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.05), transparent);
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texto);
  font-family: 'Space Grotesk', sans-serif;
}

.modal-header h3 i { color: var(--cyan); }

.close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--texto-suave);
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
}

.modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* ===== CARRITO ITEMS ===== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h4 { font-size: 0.9rem; color: var(--texto); margin-bottom: 0.1rem; }
.cart-item .info p { font-size: 0.78rem; color: var(--texto-suave); }

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--borde);
  background: var(--bg-tertiary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--texto);
  transition: all 0.2s;
}

.qty-controls button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.qty-controls span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--texto);
}

.remove-btn {
  background: none;
  border: none;
  color: #ff4d6d;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.remove-btn:hover { background: rgba(255, 77, 109, 0.1); }

.empty-cart { text-align: center; color: var(--texto-suave); padding: 2rem 0; }

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg-tertiary);
}

.total {
  font-weight: 700;
  font-size: 1.15rem;
  text-align: right;
  color: var(--cyan);
  font-family: 'Space Grotesk', sans-serif;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: var(--blanco);
  border: none;
  padding: 0.9rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1eb955;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i { font-size: 1.15em; }

/* ===== SPECS MODAL ===== */
.specs-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--bg-tertiary);
}

.specs-header {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde);
}

.specs-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  color: var(--texto);
  margin: 0.5rem 0 0.3rem;
}

.specs-header .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 0.4rem;
}

.specs-header .code {
  font-size: 0.78rem;
  color: var(--texto-suave);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.spec-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.spec-value {
  font-size: 0.88rem;
  color: var(--texto);
  font-weight: 500;
}

.specs-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.specs-actions .add-btn { flex: 1; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #050812;
  border-top: 1px solid var(--borde);
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.footer p + p { margin-top: 0.6rem; }
.footer i { margin-right: 0.25rem; color: var(--cyan); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-tertiary);
  color: var(--texto);
  border: 1px solid var(--borde-hover);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  max-width: 100%;
}

.toast.toast-out { animation: toastOut 0.3s ease forwards; }

.toast-icono {
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
}

.toast-texto { flex: 1; line-height: 1.3; }
.toast-texto strong { display: block; font-weight: 600; font-size: 0.92rem; color: var(--texto); }
.toast-texto small { color: var(--texto-suave); font-size: 0.78rem; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.95); }
}

/* =========================================================
   RESPONSIVE — CELULARES
   ========================================================= */
@media (max-width: 720px) {
  :root { --header-h: 56px; }

  .header { padding: 0.6rem 1rem; }
  .logo { font-size: 1.1rem; }

  .nav { gap: 0.6rem; }
  .nav-link { display: none; }

  .cart-btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  .cart-label { display: none; }

  .hero {
    min-height: 80vh;
    padding: 3rem 1rem 2.5rem;
  }

  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-stats { gap: 1.5rem; }
  .stat strong { font-size: 1.4rem; }
  .stat span { font-size: 0.72rem; }

  .orb-1, .orb-2 { width: 300px; height: 300px; }
  .orb-3 { width: 220px; height: 220px; }

  .catalogo { padding: 2.5rem 1rem; }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.9rem;
  }

  .card { border-radius: 12px; }

  .card-img-wrapper img { height: 160px; }

  /* En móvil, mostrar siempre el badge de info */
  .card-img-overlay { display: none; }

  .card-body { padding: 0.75rem; gap: 0.3rem; }
  .card-body h3 { font-size: 0.85rem; }
  .card-body .price { font-size: 1.05rem; }
  .card-body .code { font-size: 0.68rem; }
  .card-categoria { font-size: 0.62rem; }

  .add-btn {
    padding: 0.6rem;
    font-size: 0.78rem;
    min-height: 40px;
  }

  .minimo-badge { font-size: 0.68rem; }

  /* Modales tipo "bottom sheet" */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    animation: modalUp 0.3s ease;
  }

  @keyframes modalUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .modal-header { padding: 0.9rem 1.2rem; }
  .modal-body { padding: 0.8rem 1.2rem; }
  .modal-footer {
    padding: 0.9rem 1.2rem;
    padding-bottom: max(0.9rem, env(safe-area-inset-bottom));
  }

  .cart-item img { width: 48px; height: 48px; }
  .cart-item .info h4 { font-size: 0.85rem; }
  .qty-controls button { width: 36px; height: 36px; }

  .specs-grid { grid-template-columns: 1fr; }
  .specs-img { height: 160px; }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  .toast { width: 100%; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .card-img-wrapper img { height: 200px; }
  .hero-stats { gap: 1rem; }
  .stat strong { font-size: 1.2rem; }
}

/* Hero-phone solo en pantallas grandes */
@media (min-width: 1200px) {
  .hero-phone { display: block; }
}