/* ================================
   VARIABLES Y RESET
================================ */
:root {
  --bg: #050a05;
  --card: #0d1a0d;
  --border: #1a3a1a;
  --accent: #00ff41;
  --red: #ff3333;
  --text: #f1f1f5;
  --muted: #7a9a7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,255,65,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ================================
   HERO Y NAVEGACIÓN
================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 26px 30px 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,255,65,0.18);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.82) 38%, rgba(0,25,10,0.58) 100%),
    radial-gradient(circle at 76% 52%, rgba(0,255,65,0.2), transparent 32%),
    #020602;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 55%, rgba(0,255,65,0.22) 56%, transparent 57%),
    linear-gradient(132deg, transparent 62%, rgba(0,255,65,0.16) 63%, transparent 64%),
    linear-gradient(90deg, rgba(0,255,65,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,255,65,0.04) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  opacity: 0.34;
}

.hero::after {
  right: -180px;
  bottom: -220px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,65,0.18), transparent 68%);
}

.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: max-content minmax(320px, 1fr) 58px;
  align-items: center;
  gap: 18px;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(50% 0, 92% 25%, 92% 75%, 50% 100%, 8% 75%, 8% 25%);
  border: 2px solid var(--accent);
  background: rgba(0,255,65,0.08);
  box-shadow: 0 0 22px rgba(0,255,65,0.2);
}

.brand-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(255,255,255,0.18);
  white-space: nowrap;
}

.brand-text span {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(0,255,65,0.72);
}

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0,255,65,0.58);
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  box-shadow: inset 0 0 18px rgba(0,255,65,0.08);
  cursor: pointer;
}

.cart-link svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #54ff66;
  color: #021402;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.cart-count.bump {
  animation: bumpCount 0.34s ease;
}

@keyframes bumpCount {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.badge {
  display: inline-block;
  background: rgba(0,255,65,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 4px;
  margin-bottom: 14px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,255,65,0.3); }
  50%       { box-shadow: 0 0 20px rgba(0,255,65,0.7); }
}

.slide-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.35rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 30px rgba(0,255,65,0.4);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: 0;
  white-space: nowrap;
}

.slide-content h1 span {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
}

.slide-content h1 + p {
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  margin-bottom: 10px;
}

.slide-content h1 + p strong {
  color: var(--accent);
}

.hero-copy {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.search-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  background:
    linear-gradient(#070907, #070907) padding-box,
    linear-gradient(135deg, rgba(0,255,65,0.75), rgba(255,51,51,0.35), rgba(0,255,65,0.15)) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(0,255,65,0.12), inset 0 0 18px rgba(0,255,65,0.04);
  overflow: hidden;
}

.hero-search-cta {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 14px;
  width: min(500px, 100%);
  height: 52px;
  padding: 0 18px;
  margin: 10px 0 34px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border: 1px solid rgba(0,255,65,0.65);
  border-radius: 13px;
  background: rgba(0,0,0,0.42);
  box-shadow: inset 0 0 22px rgba(0,255,65,0.08);
}

.hero-search-cta svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.72);
}

.hero-search-cta strong {
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(590px, 100%);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.feature-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.feature-item > span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--accent);
  border: 1px solid rgba(0,255,65,0.55);
  border-radius: 50%;
  background: rgba(0,255,65,0.08);
  box-shadow: 0 0 18px rgba(0,255,65,0.18);
}

.feature-item strong,
.feature-item small {
  display: block;
}

.feature-item strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.feature-item small {
  color: rgba(255,255,255,0.66);
  font-size: 0.7rem;
  margin-top: 4px;
}

.search-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,0.06), transparent);
  pointer-events: none;
}

.search-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  fill: var(--accent);
  opacity: 0.86;
  z-index: 1;
}

.search-box input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0 54px 0 52px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: rgba(122,154,122,0.78);
}

.search-box:focus-within {
  box-shadow: 0 0 30px rgba(0,255,65,0.24), inset 0 0 22px rgba(0,255,65,0.06);
}

.clear-search {
  position: absolute;
  right: 12px;
  z-index: 2;
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgba(255,51,51,0.16);
  border: 1px solid rgba(255,51,51,0.42);
  border-radius: 8px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.clear-search.show {
  display: grid;
}

.clear-search:hover {
  background: rgba(255,51,51,0.28);
  box-shadow: 0 0 12px rgba(255,51,51,0.25);
}

/* ================================
   SECCIÓN TÍTULO
================================ */
.section-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 34px 0 28px;
  text-shadow: 0 0 20px rgba(0,255,65,0.4);
}

/* ================================
   GRID — 4 columnas como StarStreaming
================================ */
.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0;
  padding: 0 30px 80px;
}

.no-results {
  position: relative;
  z-index: 1;
  display: none;
  width: min(560px, calc(100% - 40px));
  margin: -42px auto 80px;
  padding: 22px 20px;
  text-align: center;
  background: rgba(13,26,13,0.92);
  border: 1px solid rgba(255,51,51,0.45);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(255,51,51,0.12);
}

.no-results.show {
  display: block;
}

.no-results strong {
  display: block;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.no-results span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================================
   TARJETA estilo StarStreaming
================================ */
.card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  animation: fadeUp 0.5s ease both;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--card);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0,255,65,0.25), 0 12px 40px rgba(0,0,0,0.7);
  border-color: var(--accent);
}

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

/* Imagen completa arriba */
.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

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

.card-img::after {
  display: none;
}

/* Badges arriba de la imagen */
.oferta-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 1px;
}

.nuevo-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 1px;
}

/* Info debajo completamente separada */
.card-body {
  padding: 14px 14px 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.card-body .desc {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ================================
   PRECIO
================================ */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.price {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,255,65,0.5);
  line-height: 1;
}

.price sup { font-size: 0.85rem; font-weight: 700; }

.price sub {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}

.price.text-price {
  font-size: 1.15rem;
}

.stock {
  font-size: 10px;
  background: rgba(0,255,65,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,255,65,0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.stock.agotado {
  color: #ff9a9a;
  background: rgba(255,51,51,0.1);
  border-color: rgba(255,51,51,0.32);
}

/* ================================
   BOTÓN WHATSAPP
================================ */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: auto;
}

.card-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.btn-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0,255,65,0.28);
  border-radius: 8px;
  background: rgba(0,255,65,0.08);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.selected-option {
  display: none;
  padding: 8px 10px;
  border: 1px solid rgba(0,255,65,0.22);
  border-radius: 8px;
  background: rgba(0,255,65,0.07);
  color: rgba(255,255,255,0.78);
  font-size: 0.76rem;
}

.selected-option.show {
  display: block;
}

.selected-option strong {
  color: var(--accent);
}

.btn-wa.added {
  box-shadow: 0 0 18px rgba(0,255,65,0.42);
}

.btn-wa:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  background: linear-gradient(135deg, #3a3a3a, #222);
  box-shadow: none;
}

.btn-wa:hover {
  opacity: 0.95;
  box-shadow: 0 0 16px rgba(37,211,102,0.5);
}

.btn-wa:active { transform: scale(0.97); }

.btn-wa svg {
  width: 15px; height: 15px; fill: #fff; flex-shrink: 0;
}

/* ================================
   CARRITO
================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  justify-content: flex-end;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(6px);
}

.cart-overlay.show {
  display: flex;
}

.cart-panel {
  width: min(430px, 100%);
  height: 100%;
  padding: 22px;
  background: rgba(5,10,5,0.96);
  border-left: 1px solid rgba(0,255,65,0.28);
  box-shadow: -18px 0 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,255,65,0.18);
}

.cart-head strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  color: #fff;
}

.cart-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(0,255,65,0.16);
  border-radius: 10px;
  background: rgba(13,26,13,0.82);
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item h3 {
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.cart-item p {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,255,65,0.26);
  border-radius: 7px;
  background: rgba(0,255,65,0.08);
  color: #fff;
  cursor: pointer;
}

.cart-actions .cart-remove {
  border-color: rgba(255,51,51,0.4);
  background: rgba(255,51,51,0.16);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.cart-actions .cart-remove:hover {
  box-shadow: 0 0 12px rgba(255,51,51,0.2);
}

.cart-actions span {
  min-width: 18px;
  text-align: center;
  color: #fff;
  font-weight: 800;
}

.cart-empty {
  display: none;
  margin: auto 0;
  padding: 26px 18px;
  text-align: center;
  border: 1px dashed rgba(0,255,65,0.28);
  border-radius: 12px;
  color: var(--muted);
}

.cart-empty.show {
  display: block;
}

.cart-empty strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0,255,65,0.18);
  color: var(--muted);
}

.cart-total strong {
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
}

.cart-checkout {
  display: flex;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.cart-checkout.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.details-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(6px);
}

.details-overlay.show {
  display: grid;
}

.details-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1fr);
  width: min(820px, 100%);
  max-height: min(680px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(0,255,65,0.26);
  border-radius: 14px;
  background: rgba(5,10,5,0.96);
  box-shadow: 0 24px 80px rgba(0,0,0,0.54);
}

.details-modal img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.details-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
}

.details-body span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-body h2 {
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.details-body p {
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

#detalleInfo {
  white-space: pre-wrap;
}

.details-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.details-options {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.option-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0,255,65,0.18);
  border-radius: 10px;
  background: rgba(13,26,13,0.82);
}

.option-card strong {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}

.option-card span {
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
}

.option-card button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 92px;
  right: 34px;
  z-index: 30;
  width: min(320px, calc(100% - 28px));
  padding: 14px 16px;
  border: 1px solid rgba(0,255,65,0.38);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0,255,65,0.12), rgba(18,140,126,0.14)),
    rgba(5,10,5,0.96);
  box-shadow: 0 16px 44px rgba(0,0,0,0.45), 0 0 22px rgba(0,255,65,0.16);
  color: #fff;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.toast strong {
  display: block;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.toast span {
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
}

/* ================================
   FOOTER
================================ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

footer span { color: var(--accent); }

/* ================================
   CARRUSEL
================================ */
.carrusel-wrapper {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 72px));
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(0,255,65,0.16);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.48), 0 0 34px rgba(0,255,65,0.08);
}

.carrusel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: clamp(330px, 35vw, 460px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  gap: 34px;
  padding: 30px 30px 46px;
  position: relative;
  overflow: hidden;
}

.hero-banner {
  grid-template-columns: minmax(0, 1fr);
  padding-left: clamp(28px, 5vw, 84px);
  background: #020602;
}

.image-only {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.96;
}

.image-only .slide-bg {
  inset: 14px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 32%, rgba(0,0,0,0.28) 58%, rgba(0,0,0,0.05) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.35), transparent 38%);
  pointer-events: none;
}

.image-only::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.12), transparent 42%),
    linear-gradient(0deg, rgba(0,0,0,0.18), transparent 35%);
}

.flecha.hide,
.carrusel-dots.hide {
  display: none;
}

.slide-1,
.slide-2,
.slide-3,
.slide-4 {
  background:
    linear-gradient(100deg, rgba(0,0,0,0.9), rgba(1,24,8,0.84) 55%, rgba(0,55,18,0.64)),
    #020602;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 50%, rgba(0,255,65,0.16), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,0.18), transparent 70%),
    linear-gradient(90deg, rgba(0,255,65,0.05) 1px, transparent 1px);
  background-size: auto, auto, 92px 92px;
  pointer-events: none;
}

.slide-2::before { background: radial-gradient(circle at 82% 50%, rgba(0,255,65,0.14), transparent 34%); }
.slide-3::before { background: radial-gradient(circle at 82% 50%, rgba(0,255,65,0.12), transparent 34%); }
.slide-4::before { background: radial-gradient(circle at 82% 50%, rgba(0,255,65,0.13), transparent 34%); }

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.slide-tag {
  display: inline-block;
  background: rgba(0,255,65,0.15);
  border: 1px solid rgba(0,255,65,0.4);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 14px;
}

.slide-2 .slide-tag { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.5); color: #a78bfa; }
.slide-3 .slide-tag { background: rgba(6,182,212,0.2); border-color: rgba(6,182,212,0.5); color: #67e8f9; }
.slide-4 .slide-tag { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.5); color: #fca5a5; }

.slide-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 4.6vw, 5.3rem);
  font-weight: 800; color: #fff;
  line-height: 1.1; margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: 0;
}

.slide-content p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.98rem, 1.2vw, 1.18rem);
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 560px;
}

.slide-precio {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2vw, 2.1rem); font-weight: 800;
  color: var(--accent); margin-bottom: 20px;
  text-shadow: 0 0 16px rgba(0,255,65,0.5);
}

.slide-precio span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
}

.slide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; font-family: 'Syne', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 10px; text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.slide-btn:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(37,211,102,0.5);
}

.slide-visual {
  position: relative;
  z-index: 1;
  min-height: 340px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 10px;
}

.slide-visual::before {
  content: '';
  position: absolute;
  right: 4%;
  bottom: 12%;
  width: 86%;
  height: 70%;
  background:
    linear-gradient(135deg, transparent 15%, rgba(0,255,65,0.35), transparent 48%),
    linear-gradient(45deg, transparent 38%, rgba(0,255,65,0.2), transparent 45%);
  filter: blur(2px);
  opacity: 0.55;
}

.slide-visual img {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  max-height: 390px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0,255,65,0.18);
  border-radius: 10px;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,0.72)) drop-shadow(0 0 24px rgba(0,255,65,0.12));
}

.flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.38); border: 1px solid rgba(0,255,65,0.34);
  color: #fff; font-size: 2rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: background 0.2s;
}

.flecha:hover { background: rgba(0,255,65,0.2); border-color: var(--accent); }
.flecha-izq { left: 10px; }
.flecha-der { right: 10px; }

.carrusel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: max-content minmax(260px, 1fr) 54px;
    gap: 14px;
    width: min(100%, calc(100% - 40px));
  }

  .slide {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    height: clamp(310px, 38vw, 390px);
    min-height: 0;
    padding-inline: 10px;
  }

  .slide-content h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  }

  .slide-content h2 {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  }

  .slide-visual {
    min-height: 300px;
  }

  .slide-visual img {
    max-height: 340px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 380px;
  }

  .feature-item {
    border-right: 0;
    padding-right: 0;
  }

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

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 16px 14px 24px;
  }

  .topbar {
    grid-template-columns: 1fr 50px;
    gap: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .cart-link {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .cart-link svg {
    width: 25px;
    height: 25px;
  }

  .search-shell {
    grid-column: 1 / -1;
  }

  .search-box {
    height: 50px;
    border-radius: 14px;
  }

  .carrusel-wrapper {
    width: 100%;
    margin-top: 16px;
  }

  .slide {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0 54px;
  }

  .hero-banner {
    min-height: 360px;
    padding: 38px 18px 72px;
  }

  .slide-bg {
    object-position: 68% center;
  }

  .hero-banner::after {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.74) 58%, rgba(0,0,0,0.2) 100%),
      linear-gradient(0deg, rgba(0,0,0,0.42), transparent 42%);
  }

  .slide-content {
    max-width: 100%;
  }

  .slide-content h1 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
    white-space: normal;
  }

  .slide-content h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .hero-search-cta {
    height: 50px;
    margin-bottom: 22px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-item {
    border-right: 0;
    padding-right: 0;
  }

  .slide-visual {
    min-height: 210px;
    align-items: center;
  }

  .slide-visual img {
    width: min(360px, 92%);
    max-height: 260px;
    object-fit: cover;
  }

  .flecha {
    top: auto;
    bottom: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .flecha-izq {
    left: 0;
  }

  .flecha-der {
    right: 0;
  }

  .carrusel-dots {
    bottom: 22px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 14px 68px;
  }

  .details-modal {
    grid-template-columns: 1fr;
  }

  .details-modal img {
    min-height: 210px;
    max-height: 260px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .slide-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .badge {
    letter-spacing: 1.5px;
    padding-inline: 12px;
  }

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

  .search-box input {
    font-size: 0.92rem;
  }
}
