@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =====================================================
   JADEN STORE - style.css  (tema azul oscuro)
   ===================================================== */

/* ---------- VARIABLES (como constantes) ---------- */
:root {
  --fondo: #030814;
  --panel: rgba(14, 32, 74, 0.45);
  --borde: rgba(110, 160, 255, 0.25);
  --azul: #2f7bff;
  --azul-claro: #8fc2ff;
  --blanco: #ffffff;
  --texto: #dbe6ff;
  --gris: #9db0d0;
  --alto-navbar: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--fondo);
  color: var(--blanco);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Resplandores de fondo fijos detrás de todo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(40, 110, 255, 0.28), transparent 60%),
    radial-gradient(800px 500px at 0% 60%, rgba(20, 70, 200, 0.18), transparent 60%),
    radial-gradient(900px 400px at 50% 100%, rgba(40, 110, 255, 0.22), transparent 60%);
}

section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: var(--alto-navbar);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--alto-navbar);
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(110, 160, 255, 0.12);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--blanco);
}

.navbar__logo {
  height: 38px;
  width: auto;
  display: block;
}

.navbar__linea {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.45);
}

.navbar__nombre {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.navbar__menu {
  display: flex;
  gap: 10px;
  margin-left: 56px;
}

.navbar__menu a {
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.navbar__menu a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.navbar__menu a.activo {
  border-color: var(--azul);
  box-shadow: 0 0 14px rgba(47, 123, 255, 0.6), inset 0 0 8px rgba(47, 123, 255, 0.35);
}

/* Botones de la derecha: lupa y (en celular) menú */
.navbar__acciones {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__icono {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--borde);
  border-radius: 50%;
  background: transparent;
  color: var(--blanco);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.navbar__icono:hover,
.navbar__icono[aria-expanded="true"] {
  border-color: var(--azul);
  box-shadow: 0 0 14px rgba(47, 123, 255, 0.6);
  background: rgba(47, 123, 255, 0.12);
}

.navbar__toggle {
  display: none;               /* solo en celular */
}

/* ---------- BUSCADOR ---------- */
.buscador {
  position: absolute;
  top: calc(100% + 10px);
  right: 32px;
  width: min(420px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--azul);
  border-radius: 999px;
  background: rgba(3, 8, 20, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(47, 123, 255, 0.4);
}

.buscador[hidden] {
  display: none;
}

.buscador > i {
  color: var(--azul-claro);
}

.buscador input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--blanco);
  font: inherit;
  font-size: 0.95rem;
}

.buscador input::placeholder {
  color: var(--gris);
}

.buscador button {
  border: 0;
  background: none;
  color: var(--gris);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.buscador button:hover {
  color: var(--blanco);
}

.sin-resultados {
  margin-top: 24px;
  color: var(--gris);
  font-size: 1rem;
}

/* ---------- HERO ---------- */
/* La imagen es img/hero.png. Si no existe, se ve el fondo azul de respaldo con arcos. */
.hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  min-height: clamp(580px, 58vw, 780px);
  display: flex;
  align-items: center;
  background:
    url('../img/hero.png') center right / cover no-repeat,
    radial-gradient(900px 500px at 75% 30%, rgba(40, 110, 255, 0.35), transparent 65%),
    var(--fondo);
}

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

/* Arcos luminosos de respaldo (solo cuando NO hay hero.png) */
.hero:not(.hero--con-imagen)::before {
  width: 170vw;
  height: 170vw;
  left: -35vw;
  top: 46%;
  border-radius: 50%;
  border: 3px solid rgba(100, 175, 255, 0.75);
  box-shadow: 0 0 60px 6px rgba(40, 120, 255, 0.55),
              inset 0 0 140px rgba(40, 120, 255, 0.25);
}

.hero:not(.hero--con-imagen)::after {
  width: 140vw;
  height: 140vw;
  left: 5vw;
  top: 62%;
  border-radius: 50%;
  border: 2px solid rgba(80, 150, 255, 0.4);
  box-shadow: 0 0 40px rgba(40, 120, 255, 0.35);
}

/* Cuando SÍ hay imagen: fundido arriba, sombra a la izquierda y fundido abajo */
.hero--con-imagen::after {
  inset: 0;
  background:
    linear-gradient(180deg, var(--fondo) 0%, rgba(3, 8, 20, 0.55) 10%, transparent 28%),
    linear-gradient(90deg, rgba(3, 8, 20, 0.88) 0%, rgba(3, 8, 20, 0.5) 38%, transparent 68%),
    linear-gradient(180deg, transparent 72%, var(--fondo) 100%);
}

.hero__interior {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero__texto {
  max-width: 520px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.hero__eyebrow::after {
  content: "";
  width: 110px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #ffffff 10%, #8fc2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 380px;
  margin-bottom: 34px;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--texto);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 7px 7px 7px 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #9fcbff);
  color: #06122e;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(80, 150, 255, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 44px rgba(80, 150, 255, 0.75);
}

.hero__flecha {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #06122e;
  color: var(--blanco);
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn:hover {
  background: var(--blanco);
  color: #06122e;
  box-shadow: 0 0 24px rgba(120, 180, 255, 0.6);
}

/* ---------- CATEGORÍAS (iconos de tecnología) ---------- */
.panel-cat {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
  border: 1px solid var(--borde);
  border-radius: 32px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(30, 100, 255, 0.15);
}

.panel-cat h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  white-space: nowrap;
}

.panel-cat__linea {
  align-self: stretch;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.cat-lista {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.cat {
  position: relative;
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 16px;
  border: 0;
  background: none;
  color: var(--blanco);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

/* Línea fina entre categorías */
.cat + .cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* Subrayado luminoso (hover y activo) */
.cat::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--azul);
  box-shadow: 0 0 12px var(--azul);
  transform: scaleX(0);
  transition: transform 0.35s;
}

.cat:hover::after,
.cat.activo::after {
  transform: scaleX(1);
}

.cat svg {
  width: 58px;
  height: 58px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(80, 150, 255, 0.7));
  transition: transform 0.35s, color 0.3s;
}

/* Los iconos se "dibujan" solos al cargar */
.cat svg path,
.cat svg rect {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dibujar 1.3s ease forwards;
}

.cat:nth-child(1) svg * { animation-delay: 0.1s; }
.cat:nth-child(2) svg * { animation-delay: 0.3s; }
.cat:nth-child(3) svg * { animation-delay: 0.5s; }
.cat:nth-child(4) svg * { animation-delay: 0.7s; }
.cat:nth-child(5) svg * { animation-delay: 0.9s; }

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

.cat:hover svg {
  transform: translateY(-5px) scale(1.1);
  color: var(--azul-claro);
}

/* El icono activo late con un brillo azul */
.cat.activo svg {
  color: var(--azul-claro);
  animation: pulso 2.4s ease-in-out infinite;
}

@keyframes pulso {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(80, 150, 255, 0.7)); }
  50%      { filter: drop-shadow(0 0 18px rgba(110, 180, 255, 1)); }
}

.cat__nombre {
  font-size: 0.92rem;
}

/* ---------- PRODUCTOS ---------- */
#lista-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.producto {
  padding: 22px;
  border: 1px solid var(--borde);
  border-radius: 26px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.producto[hidden] {
  display: none !important;
}

.producto:hover {
  transform: translateY(-4px);
  border-color: var(--azul);
  box-shadow: 0 0 30px rgba(47, 123, 255, 0.3);
}

.producto h3 {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.producto .precio {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.producto .detalle {
  color: var(--gris);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.producto .btn {
  display: block;
  width: 100%;
}

/* ---------- PALETA DE COLORES ---------- */
.colores {
  margin: 14px 0 6px;
}

.colores__titulo {
  margin-bottom: 10px;
  color: var(--gris);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.colores__titulo strong {
  color: var(--blanco);
  font-weight: 600;
}

.colores__lista {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.color {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: var(--c);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.color:hover {
  transform: scale(1.15);
}

.color.activo {
  box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--azul-claro);
}

/* ---------- VISOR (carrusel de fotos) ---------- */
.visor {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
  background: #0a1226;
  border-radius: 18px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.visor.activo {
  cursor: grabbing;
}

.visor [hidden] {
  display: none !important;
}

.visor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.visor img.sin-foto {
  object-fit: contain;
  padding: 18%;
}

.visor__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(3, 8, 20, 0.6);
  color: var(--blanco);
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s, color 0.3s;
}

.visor:hover .visor__btn {
  opacity: 1;
}

.visor__btn:hover {
  background: var(--blanco);
  color: #06122e;
}

.visor__btn--prev { left: 10px; }
.visor__btn--next { right: 10px; }

@media (hover: none) {
  .visor__btn {
    opacity: 1;
  }
}

.visor__contador {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(3, 8, 20, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ---------- CARACTERÍSTICAS ---------- */
.caract {
  text-align: left;
  margin: 14px 0 20px;
  border-top: 1px solid var(--borde);
  padding-top: 12px;
}

.caract summary {
  cursor: pointer;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--gris);
  transition: color 0.3s;
}

.caract summary:hover {
  color: var(--blanco);
}

.caract ul {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 0.85rem;
  color: var(--texto);
}

.caract li {
  margin-bottom: 10px;
}

/* ---------- NOSOTROS ---------- */
.texto {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--texto);
  font-size: 1.02rem;
}

.datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.datos div {
  padding: 28px 20px;
  border: 1px solid var(--borde);
  border-radius: 22px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.datos i {
  display: block;
  margin-bottom: 14px;
  font-size: 2rem;
  color: var(--azul-claro);
}

.datos strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.datos span {
  color: var(--gris);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 24px 32px;
  scroll-margin-top: var(--alto-navbar);
}

.footer__pill {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.footer__logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer__linea {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.4);
}

.footer__pill p {
  flex: 1;
  text-align: left;
  font-weight: 400;
}

.footer__redes {
  display: flex;
  gap: 22px;
}

.footer__redes a {
  color: var(--blanco);
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

.footer__redes a:hover {
  color: var(--azul-claro);
  transform: translateY(-3px);
  text-shadow: 0 0 14px rgba(100, 170, 255, 0.8);
}

.footer__copy {
  margin-top: 22px;
  text-align: center;
  color: var(--gris);
  font-size: 0.8rem;
}

/* ---------- TABLET / CELULAR ---------- */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar__toggle {
    display: flex;
  }

  .buscador {
    right: 20px;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 16px 20px 20px;
    background: rgba(3, 8, 20, 0.96);
    border-bottom: 1px solid var(--borde);
  }

  .navbar__menu.abierto {
    display: flex;
  }

  .navbar__menu a {
    text-align: center;
  }

  /* En pantallas chicas el texto queda sobre la imagen, con más sombra */
  .hero {
    min-height: 620px;
    background-position: 72% center, center, center;
  }

  .hero--con-imagen::after {
    background:
      linear-gradient(180deg, var(--fondo) 0%, transparent 22%),
      linear-gradient(180deg, rgba(3, 8, 20, 0.88) 0%, rgba(3, 8, 20, 0.55) 55%, var(--fondo) 100%);
  }

  .hero__interior {
    padding: 56px 20px;
  }

  .panel-cat {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 18px;
  }

  .panel-cat h2 {
    text-align: center;
  }

  .panel-cat__linea {
    display: none;
  }
}

@media (max-width: 600px) {
  .navbar__nombre {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
  }

  section {
    padding: 56px 16px;
  }

  .cat {
    min-width: 96px;
  }

  .footer__pill {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
    padding: 18px;
  }

  .footer__linea {
    display: none;
  }

  .footer__pill p {
    flex-basis: 100%;
    order: 3;
    text-align: center;
  }
}