:root {
  --bg: #050507;
  --surface: #0d0f14;
  --surface-2: #151922;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8fb;
  --muted: #a5adba;
  --soft: #d9dee7;
  --neon: #00ff66;
  --purple: #8b5cf6;
  --blue: #38bdf8;
  --danger: #ff3b6b;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Bebas Neue", sans-serif;
  --font-base: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(139, 92, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(0, 255, 102, 0.12), transparent 22rem),
    linear-gradient(180deg, #050507 0%, #090b10 48%, #050507 100%);
  font-family: var(--font-base);
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(18px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.logo img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface);
}

.logo span {
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0;
}

.nav-desktop,
.header-actions,
.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions {
  flex-shrink: 0;
}

.nav-desktop {
  gap: 1.25rem;
}

.nav-link,
.nav-link-mobile {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active,
.nav-link-mobile:hover,
.nav-link-mobile.active {
  color: var(--neon);
}

.btn-primario,
.btn-secundario,
.btn-carrito,
.btn-logodolares,
.btn-ver-detalles,
.btn-agregar-carrito,
.btn-logopago,
.filtro-btn,
.btn-editar,
.btn-eliminar,
.carrito-item-btn {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primario,
.btn-agregar-carrito {
  color: #031006;
  background: var(--neon);
  box-shadow: 0 0 28px rgba(0, 255, 102, 0.22);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none !important;
  box-shadow: none !important;
}

.btn-agregar-carrito {
  position: relative;
  overflow: hidden;
}

.btn-agregar-carrito::before,
.btn-agregar-carrito::after {
  content: "";
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.btn-agregar-carrito.morphing-pc {
  color: transparent;
  transform: translateY(-2px) scale(0.96);
}

.btn-agregar-carrito.morphing-pc::before {
  inset: 9px 28%;
  opacity: 1;
  border: 3px solid #031006;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(3, 16, 6, 0.12), rgba(3, 16, 6, 0.32));
  animation: pcDematerialize 0.72s ease forwards;
}

.btn-agregar-carrito.morphing-pc::after {
  left: 44%;
  right: 44%;
  bottom: 7px;
  height: 4px;
  opacity: 1;
  border-radius: 4px;
  background: #031006;
  box-shadow: 0 6px 0 8px rgba(3, 16, 6, 0.22);
  animation: pcDematerialize 0.72s ease forwards;
}

@keyframes pcDematerialize {
  0% { opacity: 1; filter: blur(0); transform: scale(1); }
  55% { opacity: 1; filter: blur(0.4px); transform: scale(0.9); }
  100% { opacity: 0; filter: blur(6px); transform: scale(0.45) translateY(-8px); }
}

.cart-particle {
  position: fixed;
  z-index: 900;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.75);
  pointer-events: none;
  animation: particleToCart 0.92s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.cart-particle:nth-child(3n) {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
}

.cart-particle:nth-child(4n) {
  width: 5px;
  height: 5px;
}

@keyframes particleToCart {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  68% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.25);
  }
}

.btn-secundario,
.btn-logodolares,
.btn-ver-detalles,
.btn-logopago,
.filtro-btn {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-carrito {
  color: var(--text);
  border: 1px solid rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.08);
}

.btn-logodolares,
.btn-logopago {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.12));
}

.btn-logopago {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  padding-inline: 0.55rem;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.btn-logopago.needs-balance {
  color: var(--neon);
  border-color: rgba(57, 255, 20, 0.45);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(56, 189, 248, 0.08));
}

.btn-logopago:hover,
.btn-logodolares:hover {
  border-color: var(--blue);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.18);
}

button:hover {
  transform: translateY(-2px);
}

.carrito-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 0.35rem;
  place-items: center;
  border-radius: 999px;
  color: #031006;
  background: var(--neon);
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  color: var(--text);
  background: transparent;
  font-size: 1.6rem;
}

.nav-mobile {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.nav-mobile.open {
  display: grid;
  gap: 0.9rem;
}

.main-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.page {
  animation: fadeIn 0.25s ease;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2rem;
  align-items: center;
  min-height: 620px;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.eyebrow {
  color: var(--neon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.productos-header h1,
.detail-title,
.form-seccion h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  max-width: 680px;
  margin: 1.2rem 0 1.5rem;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat,
.category-card,
.promo-band,
.preview-card,
.card,
.form-shell,
.admin-modal {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68)),
    url("imagenes proyecto/logos-inc-bg.jpg"),
    linear-gradient(135deg, rgba(0, 255, 102, 0.18), rgba(139, 92, 246, 0.28));
  background-size: cover;
  background-position: center;
}

.hero-visual::after {
  content: "LANZAMIENTO 01";
  position: absolute;
  right: 20px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8rem);
}

.section-head,
.productos-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-title,
.productos-header h1,
.detail-title,
.form-seccion h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.section-copy,
.productos-header p {
  max-width: 650px;
  color: var(--muted);
}

.destacados,
.productos-grid,
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
}

.card:hover {
  border-color: rgba(0, 255, 102, 0.48);
  transform: translateY(-6px);
}

.card-media {
  position: relative;
  display: grid;
  min-height: 250px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(0, 255, 102, 0.18), transparent 12rem),
    linear-gradient(135deg, #11151d, #07080b);
}

.card-media img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card.sold-out {
  opacity: 0.72;
}

.card.sold-out .card-media img {
  filter: grayscale(0.8) brightness(0.58);
}

.sold-out-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 0.75rem;
  font-weight: 900;
}

.stock-empty {
  color: #fff;
  background: rgba(255, 59, 107, 0.22);
  border-color: rgba(255, 59, 107, 0.5);
}

.image-fallback {
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: 4rem;
}

.card-body {
  padding: 1rem;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 900;
}

.card-description {
  margin: 0.65rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-price {
  color: var(--neon);
  font-size: 1.35rem;
  font-weight: 900;
}

.card-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.card-footer button {
  min-width: 0;
  white-space: normal;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.filtro-btn.active {
  color: #031006;
  border-color: var(--neon);
  background: var(--neon);
}

.promo-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
}

.category-card {
  min-height: 220px;
  padding: 1.2rem;
  border-radius: var(--radius);
}

.category-card h3 {
  margin-top: 4rem;
  font-family: var(--font-display);
  font-size: 2.3rem;
}

.detail-layout,
.giveaway-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
}

.detail-media {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.16), rgba(139, 92, 246, 0.18));
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.detail-description {
  margin: 1rem 0;
  color: var(--soft);
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.size-playground {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.size-copy h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0;
}

.size-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.size-copy {
  min-width: 0;
}

.fitting-room {
  position: relative;
  display: grid;
  min-height: 178px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(57, 255, 20, 0.18), transparent 55%),
    #000;
}

.fitting-room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(57, 255, 20, 0.16), transparent 70%);
  opacity: 0;
  transform: translateX(-80%);
  pointer-events: none;
}

.fitting-room.is-changing::after {
  animation: fittingSweep 0.55s ease;
}

.fitting-room-closed,
.fitting-room-open,
.size-model-img {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.fitting-room-closed {
  opacity: 0.78;
}

.fitting-room-open {
  opacity: 0;
  transform: scale(0.97);
}

.size-model-img {
  z-index: 2;
  max-width: 78%;
  opacity: 0;
  transform: translateY(42px) scale(0.78);
  filter: drop-shadow(0 0 16px rgba(57, 255, 20, 0.28));
}

.fitting-room:hover .fitting-room-closed,
.fitting-room.has-selection .fitting-room-closed,
.fitting-room.is-changing .fitting-room-closed {
  opacity: 0;
}

.fitting-room:hover .fitting-room-open,
.fitting-room.has-selection .fitting-room-open,
.fitting-room.is-changing .fitting-room-open {
  opacity: 0.95;
  transform: scale(1);
}

.fitting-room:hover .size-model-img,
.fitting-room.has-selection .size-model-img,
.fitting-room.is-changing .size-model-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fitting-room.is-changing .fitting-room-open {
  animation: vestidorOpen 0.54s ease both;
}

.fitting-room.is-changing .size-model-img {
  animation: patoSaleDelVestidor 0.72s cubic-bezier(0.2, 0.85, 0.24, 1.18) 0.16s both;
}

@keyframes fittingSweep {
  0% { opacity: 0; transform: translateX(-80%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(80%); }
}

@keyframes vestidorOpen {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 0.95; transform: scale(1); }
}

@keyframes patoSaleDelVestidor {
  0% { opacity: 0; transform: translateY(54px) scale(0.68); filter: blur(2px) drop-shadow(0 0 0 rgba(57, 255, 20, 0)); }
  58% { opacity: 1; transform: translateY(-7px) scale(1.04); filter: blur(0) drop-shadow(0 0 22px rgba(57, 255, 20, 0.38)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 16px rgba(57, 255, 20, 0.28)); }
}

.size-options {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-btn {
  min-width: 48px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.size-btn.active {
  color: #031006;
  border-color: #39FF14;
  background: #39FF14;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.24);
}

.carrito-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100vh;
  border-left: 1px solid var(--line);
  background: rgba(10, 12, 17, 0.98);
  box-shadow: var(--shadow);
}

.carrito-panel.cart-pop {
  animation: cartPulse 0.42s ease;
}

@keyframes cartPulse {
  0% { transform: translateX(0) scale(1); }
  45% { transform: translateX(-4px) scale(1.01); }
  100% { transform: translateX(0) scale(1); }
}

.carrito-header,
.carrito-total {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.carrito-total {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito-items {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.carrito-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.carrito-empty strong {
  color: var(--text);
  font-size: 1.25rem;
}

.carrito-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  animation: itemIn 0.22s ease;
}

.carrito-item small {
  display: inline-block;
  margin: 0.15rem 0 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.cart-stock-warning {
  border-color: rgba(255, 59, 107, 0.8);
  background: rgba(255, 59, 107, 0.1);
}

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

.carrito-item img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-2);
}

.carrito-item-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: transparent;
}

.qty-btn:hover {
  color: #031006;
  border-color: var(--neon);
  background: var(--neon);
}

.qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 900;
}

.carrito-item-btn,
.btn-eliminar {
  color: var(--text);
  background: var(--danger);
}

.carrito-total p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.carrito-resumen {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.badge-pop {
  animation: badgePop 0.4s ease;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

.btn-close {
  color: var(--text);
  background: transparent;
  font-size: 1.7rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.64);
}

.toast-container {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 500;
  display: grid;
  gap: 0.75rem;
  width: min(360px, calc(100% - 36px));
}

.toast {
  transform: translateY(12px);
  opacity: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 255, 102, 0.42);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(8, 12, 16, 0.94);
  box-shadow: var(--shadow), 0 0 24px rgba(0, 255, 102, 0.14);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(14px);
}

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

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  color: var(--neon);
  margin-bottom: 0.1rem;
}

.toast-error {
  border-color: rgba(255, 59, 107, 0.5);
  box-shadow: var(--shadow), 0 0 24px rgba(255, 59, 107, 0.16);
}

.toast-error strong {
  color: var(--danger);
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.feedback-card {
  width: min(460px, 100%);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0c0f15;
  box-shadow: var(--shadow);
  animation: modalIn 0.22s ease;
}

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

.feedback-card h3 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.35rem;
}

.feedback-card p {
  color: var(--muted);
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.game-modal {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 430;
  display: block;
  padding: 0;
  pointer-events: none;
}

.game-shell {
  width: min(420px, calc(100vw - 24px));
  max-height: min(86vh, 680px);
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid #39FF14;
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)),
    url("imagenes proyecto/fondo-juego.png"),
    #000000;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow), 0 0 34px rgba(57, 255, 20, 0.44);
  pointer-events: auto;
  animation: bubbleIn 0.28s ease;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.game-header,
.game-hud,
.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.game-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 0.95;
}

.game-story {
  margin: 0.65rem 0;
  padding: 0.65rem;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
}

.game-story strong,
.game-story p {
  display: block;
}

.game-story p {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.game-tab-btn {
  min-height: 38px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.62);
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.game-tab-btn:hover,
.game-tab-btn.active {
  color: #031006;
  border-color: #39FF14;
  background: #39FF14;
  transform: translateY(-1px);
}

.game-panel {
  display: none;
}

.game-panel.active {
  display: block;
}

.game-rules-card {
  padding: 0.8rem;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
}

.game-rules-card p,
.game-rules-list {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-rules-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.7rem 0;
  padding-left: 1.05rem;
}

.game-hud {
  margin: 0.65rem 0;
  padding: 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
}

.game-hud strong {
  color: #39FF14;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(var(--game-size), minmax(36px, 1fr));
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 12px;
  background: #000000;
}

.game-cell {
  aspect-ratio: 1;
  min-height: 44px;
  border: 1px solid rgba(57, 255, 20, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  font-weight: 900;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.2s ease, box-shadow 0.24s ease;
}

.game-cell:hover {
  border-color: #39FF14;
  transform: translateY(-2px);
}

.game-cell.revealed {
  background: rgba(255, 255, 255, 0.08);
}

.game-cell.reward {
  color: #031006;
  background: radial-gradient(circle, #caffbf, #39FF14);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.3);
}

.game-cell.error {
  background: rgba(255, 59, 107, 0.2);
  border-color: rgba(255, 59, 107, 0.8);
}

.game-cell.empty {
  color: rgba(255, 255, 255, 0.35);
}

.game-cell img {
  width: min(58px, 74%);
  height: min(58px, 74%);
  object-fit: contain;
  margin: 0 auto;
  pointer-events: none;
}

.game-cell span {
  display: block;
  color: #031006;
  font-size: 0.75rem;
}

.coin-flash {
  animation: coinFlash 0.55s ease;
}

.shake {
  animation: gameShake 0.48s ease;
}

@keyframes coinFlash {
  0% { box-shadow: 0 0 0 rgba(57, 255, 20, 0); }
  45% { box-shadow: 0 0 34px rgba(57, 255, 20, 0.82); }
  100% { box-shadow: 0 0 18px rgba(57, 255, 20, 0.3); }
}

@keyframes gameShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-8px); }
  36% { transform: translateX(7px); }
  54% { transform: translateX(-5px); }
  72% { transform: translateX(4px); }
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-modal {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius);
  padding: 1.25rem;
  background: #0c0f15;
}

.admin-modal .btn-close {
  float: right;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-subtitle {
  color: var(--muted);
  max-width: 560px;
}

.admin-helper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 1rem;
}

.admin-status-card,
.admin-setting-card {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.075), rgba(56, 189, 248, 0.055)),
    rgba(255, 255, 255, 0.035);
}

.admin-status-card::after,
.admin-setting-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 40%;
  height: 90px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.18), transparent 70%);
  pointer-events: none;
}

.admin-status-card span,
.admin-setting-card p {
  color: var(--muted);
}

.admin-status-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.status-ok {
  color: var(--neon);
}

.status-warn {
  color: #facc15;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-setting-card h4 {
  margin: 0.25rem 0 0.5rem;
}

.admin-setting-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.admin-helper-card {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-helper-card strong,
.admin-helper-card span {
  display: block;
}

.admin-helper-card strong {
  color: var(--neon);
}

.admin-helper-card span,
.admin-list-toolbar p {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.admin-tab-btn {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  color: #031006;
  background: var(--neon);
}

.admin-tab-content:not(.active) {
  display: none;
}

.admin-tab-content.active {
  animation: adminPanelIn 0.24s ease;
}

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

.admin-list-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.form-admin,
.form-shell {
  display: grid;
  gap: 0.85rem;
}

.form-shell {
  padding: 1rem;
  border-radius: var(--radius);
}

label {
  color: var(--soft);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(0, 255, 102, 0.28);
  border-color: rgba(0, 255, 102, 0.7);
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-inline input {
  width: auto;
}

.quick-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.quick-image-btn {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.quick-image-btn img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.quick-image-btn span {
  font-weight: 800;
}

.quick-image-btn:hover {
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.12);
}

.producto-admin-item,
.categoria-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.categoria-item {
  grid-template-columns: 1fr auto;
}

.producto-admin-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}

.stock-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.stock-ok {
  color: #031006;
  background: var(--neon);
}

.stock-low {
  color: var(--text);
  background: var(--danger);
}

.producto-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stock-admin-control {
  display: grid;
  gap: 0.25rem;
  min-width: 92px;
}

.stock-admin-control span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.stock-admin-control input {
  min-height: 42px;
  padding: 0.5rem;
  text-align: center;
  font-weight: 900;
}

.btn-editar {
  color: #031006;
  background: var(--neon);
}

.giveaway-layout {
  align-items: start;
}

.preview-card {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border-radius: var(--radius);
  border-color: color-mix(in srgb, var(--preview-a, var(--neon)) 45%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 34px color-mix(in srgb, var(--preview-a, var(--neon)) 22%, transparent);
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.brand-card img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-card strong {
  display: block;
}

.preview-hero {
  min-height: 360px;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--preview-a, #00ff66) 72%, transparent), transparent 32%),
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--preview-b, #8b5cf6) 68%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78)),
    url("imagenes proyecto/giveaway-preview.jpg"),
    linear-gradient(135deg, var(--preview-a, #00ff66), var(--preview-b, #8b5cf6));
  background-size: cover;
  background-position: center;
}

.preview-hero h3 {
  margin-top: 8rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.95;
  text-shadow: 0 0 24px color-mix(in srgb, var(--preview-a, #00ff66) 55%, transparent);
}

.preview-hero p {
  color: var(--soft);
}

.preview-card[data-style="minimalista"] .preview-hero {
  filter: saturate(0.82) contrast(1.05);
}

.preview-card[data-style="elegante"] .preview-hero {
  filter: saturate(1.05) contrast(1.08);
}

.preview-card[data-style="neon"] .preview-hero {
  filter: saturate(1.35) contrast(1.15);
}

.preview-card[data-style="oscuro"] .preview-hero {
  filter: saturate(0.95) contrast(1.28) brightness(0.88);
}

.success-message {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(0, 255, 102, 0.4);
  border-radius: var(--radius);
  color: var(--neon);
  background: rgba(0, 255, 102, 0.08);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.style-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  min-height: 64px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
}

.choice-card span,
.choice-card small {
  display: block;
}

.choice-card span {
  font-weight: 900;
}

.choice-card small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.choice-card:hover {
  border-color: rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 22px rgba(0, 255, 102, 0.12);
}

.choice-card.active {
  color: #031006;
  border-color: var(--neon);
  background: linear-gradient(135deg, var(--neon), #b8ffd0);
  box-shadow: 0 0 26px rgba(0, 255, 102, 0.25);
}

.choice-card.active small {
  color: rgba(3, 16, 6, 0.72);
}

.style-choice-grid .choice-card[data-value="minimalista"].active {
  background: linear-gradient(135deg, #f7f8fb, #9ca3af);
}

.style-choice-grid .choice-card[data-value="elegante"].active {
  background: linear-gradient(135deg, #f5d27a, #8b5cf6);
}

.style-choice-grid .choice-card[data-value="neon"].active {
  background: linear-gradient(135deg, #00ff66, #38bdf8);
}

.style-choice-grid .choice-card[data-value="oscuro"].active {
  color: var(--text);
  background: linear-gradient(135deg, #111827, #00ff66);
}

.style-choice-grid .choice-card[data-value="oscuro"].active small {
  color: rgba(255, 255, 255, 0.75);
}

.productos-vacio {
  grid-column: 1 / -1;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .detail-layout,
  .giveaway-layout,
  .contact-layout,
  .size-playground {
    grid-template-columns: 1fr;
  }

  .admin-helper-grid,
  .admin-status-grid,
  .admin-settings-grid,
  .admin-list-toolbar,
  .producto-admin-item {
    grid-template-columns: 1fr;
  }

  .producto-admin-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .destacados,
  .productos-grid,
  .categorias-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-modal {
    width: min(100%, calc(100vw - 24px));
  }
}

@media (max-width: 620px) {
  .header-container {
    width: min(100% - 20px, 1180px);
    gap: 0.5rem;
  }

  .logo {
    gap: 0.45rem;
  }

  .logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .logo span {
    font-size: 1.35rem;
  }

  .header-actions {
    gap: 0.38rem;
  }

  .btn-carrito,
  .btn-logodolares {
    min-height: 36px;
    padding: 0.5rem 0.58rem;
    font-size: 0.82rem;
  }

  .menu-toggle {
    font-size: 1.35rem;
    min-width: 30px;
  }

  .main-content {
    width: min(100% - 20px, 1180px);
    padding-top: 24px;
  }

  .hero-actions,
  .promo-band,
  .section-head,
  .admin-heading,
  .game-header,
  .game-hud,
  .game-actions {
    display: grid;
  }

  .hero-stats,
  .destacados,
  .productos-grid,
  .categorias-grid,
  .brand-strip,
  .choice-grid,
  .style-choice-grid,
  .quick-image-grid {
    grid-template-columns: 1fr;
  }

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

  .fitting-room {
    min-height: 220px;
  }

  .fitting-room-closed,
  .fitting-room-open,
  .size-model-img {
    max-height: 210px;
  }

  .game-cell {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .game-modal {
    right: 10px;
    bottom: 10px;
  }

  .toast-container {
    left: 10px;
    top: 78px;
    bottom: auto;
    width: min(330px, calc(100% - 20px));
  }

  .game-shell {
    width: calc(100vw - 20px);
    max-height: 78vh;
    border-radius: 18px;
  }

  .hero-visual,
  .detail-media,
  .detail-media img {
    min-height: 340px;
  }
}

@media (max-width: 380px) {
  .logo span {
    display: none;
  }

  .btn-carrito,
  .btn-logodolares {
    padding: 0.45rem 0.5rem;
  }

  .carrito-count {
    min-width: 20px;
    height: 20px;
  }

  .game-cell {
    min-height: 34px;
  }
}
