/* ======================================================
   VARIABLES Y RESETEO
====================================================== */

:root {
  --negro: #0b0b0d;
  --gris-900: #121215;
  --gris-700: #1b1b20;
  --rojo: #e0102b;
  --rojo-oscuro: #b40d22;
  --rojo-neon: #ff2d55;
  --blanco: #f4f6f8;
  --borde: #26262b;

  --fuente-principal: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fuente-pixel: "Press Start 2P", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-principal);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}


/* ======================================================
   BOTONES Y ELEMENTOS GLOBALES
====================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--borde);
  background: linear-gradient(180deg, #1a1a1f, #121217);
  color: var(--blanco);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 16, 43, 0.25);
}

.btn--primary {
  background: linear-gradient(180deg, var(--rojo), var(--rojo-oscuro));
  border-color: #000;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0.9;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--borde);
}

.section-title {
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 800;
}

.section-sub {
  opacity: 0.8;
  margin-bottom: 28px;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shadow-s {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--rojo-neon), var(--rojo));
  box-shadow: 0 0 18px rgba(255, 45, 85, 0.4);
  transform: translateY(-2px);
}

/* ======================================================
   NAVBAR
====================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}

/* -------- CONTENEDOR PRINCIPAL -------- */
.navbar__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* -------- LOGO -------- */
.brand__img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand__img:hover {
  transform: scale(1.05);
}

/* -------- MENÚ DE NAVEGACIÓN -------- */
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: #17171b;
}

/* -------- BOTÓN DE CONTACTO -------- */
.nav__cta {
  margin-left: 6px;
}

.nav__cta.btn--primary:hover {
  background: linear-gradient(180deg, var(--rojo-neon), var(--rojo));
  box-shadow: 0 0 18px rgba(255, 45, 85, 0.4);
  transform: translateY(-2px);
}

/* ======================================================
   BOTÓN HAMBURGUESA
====================================================== */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 9999;
}

.burger span {
  width: 24px;
  height: 2.5px;
  background: var(--blanco); /* Cambia a var(--rojo-neon) si prefieres rojas */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger:hover span {
  background: var(--rojo-neon);
  box-shadow: 0 0 8px rgba(255, 45, 85, 0.4);
}

/* ======================================================
   ANIMACIÓN HAMBURGUESA → X
====================================================== */

.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ======================================================
   NAVBAR (MÓVIL)
====================================================== */

@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0e0e12;
    border-bottom: 1px solid var(--borde);
    padding: 16px;
    display: grid;
    gap: 12px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
  }

  .burger {
    display: flex;
  }

  .brand__img {
    height: 34px;
  }
}



/* ======================================================
   AJUSTE DE LOGO EN NAVBAR
====================================================== */
.brand__img {
  height: 50px;          /* 🔸 Tamaño ideal y equilibrado */
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand__img:hover {
  transform: scale(1.05);  /* Pequeña animación al pasar el mouse */
}

/* Versión móvil (por si en pantallas pequeñas hay que reducir más) */
@media (max-width: 600px) {
  .brand__img {
    height: 34px;
  }
}

/* ======================================================
   HERO
====================================================== */
.catalogo-hero {
  position: relative;
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(
      800px 400px at 80% 20%,
      rgba(255, 45, 85, 0.2),
      transparent 60%
    ),
    linear-gradient(180deg, #0a0a0d 0%, #111114 50%, #0a0a0d 100%);
}

/* Capa animada con rejilla wireframe */
.catalogo-hero__bg {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 70px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 70px
    ),
    radial-gradient(circle at 30% 50%, rgba(255, 50, 80, 0.15), transparent 60%);
  background-size: 80px 80px;
  animation: heroMove 40s linear infinite;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, black 40%, transparent);
}

@keyframes heroMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: -300px -300px, 300px 300px, 0 0; }
}

.catalogo-hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 20px;
}

.catalogo-hero__tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  font-size: 0.9rem;
  background: #1a1a1d;
  margin-bottom: 10px;
}

.catalogo-hero__title {
  font-family: "Press Start 2P", sans-serif;
  color: var(--rojo-neon);
  font-size: clamp(22px, 3vw, 38px);
  text-shadow: 0 0 14px rgba(255, 45, 85, 0.4);
  margin-bottom: 14px;
}

.catalogo-hero__sub {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
}

/* ======================================================
   GRID DE PRODUCTOS
====================================================== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.card {
  background: #121216;
  border: 1px solid var(--borde);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.15);
}

.card__img {
  aspect-ratio: 4/3;
  background: #19191f;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.card__price {
  color: var(--rojo-neon);
  font-weight: 700;
  margin-bottom: 10px;
}

.card__btn {
  margin-top: auto;
  padding: 10px 14px;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--rojo), var(--rojo-700));
  color: var(--blanco);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.card__btn:hover {
  transform: scale(1.05);
}

/* ======================================================
   CTA FINAL
====================================================== */
.catalogo-cta .cta {
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 40px;
  background: linear-gradient(180deg, #121216, #0b0b0d);
  text-align: center;
}

.catalogo-cta h3 {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 10px;
  color: var(--rojo-neon);
}

.catalogo-cta p {
  opacity: 0.9;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid var(--borde);
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
}

.btn--primary {
  background: rgba(255, 45, 85, 0.12); /* leve fondo rojizo translúcido */
  border: 1px solid rgba(255, 45, 85, 0.6);
  color: var(--rojo-neon);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(255, 45, 85, 0.3);
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.btn--primary:hover {
  background: var(--rojo-neon);
  color: #0a0a0d;
  box-shadow: 0 0 20px rgba(255, 45, 85, 0.7);
  border-color: var(--rojo-neon);
  text-shadow: none;
  transform: translateY(-2px);
}

.catalogo-cta{
  padding-bottom: 0px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 600px) {
  .catalogo-hero__title {
    font-size: clamp(18px, 5vw, 28px);
  }
}



/* ======================================================
   FOOTER - CLEAN SPY STYLE
====================================================== */

.footer {
  margin-top: 100px;
  padding: 60px 0 30px;
  background: linear-gradient(180deg, #0a0a0d 0%, #050506 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--blanco);
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.footer__col h4 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rojo-neon);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Logo y contacto ---------- */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 45, 85, 0.15));
}

.footer__brand p {
  opacity: 0.85;
  line-height: 1.6;
}

.footer__brand a {
  color: var(--rojo-neon);
  transition: opacity 0.3s;
}

.footer__brand a:hover {
  opacity: 0.9;
}

/* ---------- Redes sociales ---------- */
.socials {
  display: flex;
  gap: 14px;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.icon.tiktok:hover {
  background: rgba(255, 45, 85, 0.2);
  border-color: var(--rojo-neon);
  box-shadow: 0 0 15px rgba(255, 45, 85, 0.3);
  transform: translateY(-2px);
  color: var(--rojo-neon);
}

/* ---------- Enlaces ---------- */
.footer__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__links a {
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer__links a:hover {
  color: var(--rojo-neon);
  opacity: 1;
}

/* ---------- Línea inferior ---------- */
.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 18px;
  margin-top: 40px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.copy strong {
  color: var(--rojo-neon);
}

.credit {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.65;
}

.credit a {
  color: var(--rojo-neon);
  text-decoration: none;
}

.credit a:hover {
  opacity: 1;
}

/* ----------------------
   FOOTER (MÓVIL)
---------------------- */
@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer__logo {
    margin: 0 auto;
  }

  .socials {
    justify-content: center;
  }

  .footer__bottom {
    margin-top: 20px;
  }
}

/* ======================================================
   EFECTO NEÓN EN "CREADO POR SITELEGE"
====================================================== */

.credit a {
  color: var(--rojo-neon);
  position: relative;
  transition: all 0.3s ease;
}

.credit a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--rojo-neon), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.credit a:hover {
  color: var(--rojo);
  text-shadow: 0 0 8px rgba(255, 45, 85, 0.6);
}

.credit a:hover::after {
  transform: scaleX(1);
}

/* ======================================================
   BOTÓN DE CONTACTO EN NAVBAR (EXCLUSIVO)
====================================================== */
.contacto_nav {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(90deg, var(--rojo-neon), var(--rojo));
  color: var(--blanco);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 0 16px rgba(255, 45, 85, 0.25);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 45, 85, 0.4);
}

.contacto_nav:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--rojo-neon), var(--rojo-700));
  box-shadow: 0 0 28px rgba(255, 45, 85, 0.45);
}

.contacto_nav:active {
  transform: scale(0.97);
  box-shadow: 0 0 12px rgba(255, 45, 85, 0.3);
}

/* ======================================================
   ICONO DE CARRITO PEGADO AL BOTÓN HAMBURGUESA (solo móvil)
====================================================== */
.cart-icon {
  display: none;
}

@media (max-width: 960px) {
  .navbar__wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Muestra solo en móvil */
  .cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ff2d55; /* rojo */
    text-decoration: none;
    position: absolute;
    right: 52px; /* 🔧 ajusta según el tamaño del botón hamburguesa */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 50;
  }

  .cart-icon:hover {
    transform: translateY(-50%) scale(1.15);
    color: #ff456b;
  }

  /* Asegura que el botón hamburguesa esté visible encima */
  .burger {
    position: relative;
    z-index: 60;
  }
}
