/* ==========================================================
   NEXO STORE — estilos
   Colores tomados del logo: azul eléctrico + azul noche, fondo claro
   ========================================================== */

:root {
  --azul: #1546ff;
  --azul-2: #0a2bb8;
  --celeste: #eaf0ff;
  --navy: #0b1530;
  --texto: #1b2440;
  --gris: #5c6680;
  --fondo: #f5f7fc;
  --blanco: #ffffff;
  --borde: #e3e8f3;
  --wa: #25d366;
  --wa-2: #1da851;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(11, 21, 48, 0.08);
  --rebote: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: "Exo 2", sans-serif; color: var(--navy); line-height: 1.15; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 8px; }

/* ---------- Íconos de redes + efecto ---------- */
.ico { display: inline-flex; width: 22px; height: 22px; flex: none; transition: transform 0.3s var(--rebote), filter 0.3s; }
.ico svg { width: 100%; height: 100%; }
a:hover .ico, a:focus-visible .ico, a:active .ico {
  transform: scale(1.18) rotate(-8deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn > svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 8px 20px rgba(21, 70, 255, 0.28); }
.btn-azul:hover { background: var(--azul-2); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background: var(--wa-2); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }
.btn-borde { background: #fff; color: var(--navy); border: 1.5px solid var(--borde); }
.btn-borde:hover { border-color: var(--azul); color: var(--azul); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.btn-grande { width: 100%; padding: 1.05rem 1.4rem; font-size: 1.05rem; }

/* ---------- Encabezado ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; }
.marca img { height: 44px; width: auto; }
.marca-txt {
  font-family: "Exo 2", sans-serif; font-style: italic; font-weight: 800;
  font-size: 1.35rem; color: var(--navy); letter-spacing: 0.02em; line-height: 1;
  display: inline-flex; flex-direction: column;
}
.marca-txt small { font-style: normal; font-weight: 600; font-size: 0.55rem; letter-spacing: 0.45em; color: var(--azul); margin-top: 3px; }
.menu { display: flex; gap: 28px; font-weight: 600; font-size: 0.95rem; }
.menu a { color: var(--gris); transition: color 0.2s; }
.menu a:hover { color: var(--azul); }

/* ---------- Portada ---------- */
.hero {
  background:
    radial-gradient(600px 400px at 85% 40%, rgba(21, 70, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--fondo) 100%);
  overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; padding: 64px 0 56px; }
.chip {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--celeste); color: var(--azul); font-weight: 700; font-size: 0.82rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); font-weight: 800; margin: 18px 0 14px; }
.hero h1 em { color: var(--azul); font-style: italic; }
.hero p { font-size: 1.1rem; color: var(--gris); max-width: 30rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-img { display: flex; justify-content: center; }
.hero-img img { width: min(380px, 100%); filter: drop-shadow(0 24px 40px rgba(21, 70, 255, 0.25)); animation: flotar 6s ease-in-out infinite; }
@keyframes flotar { 50% { transform: translateY(-12px); } }

/* ---------- Beneficios ---------- */
.beneficios { padding: 8px 0 8px; }
.beneficios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.beneficio {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
}
.beneficio b { display: block; color: var(--navy); font-size: 0.95rem; }
.beneficio span { font-size: 0.85rem; color: var(--gris); }
.b-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--celeste); color: var(--azul); display: grid; place-items: center; }
.b-ico svg { width: 22px; height: 22px; }

/* ---------- Secciones ---------- */
.sec { padding: 72px 0; }
.sec-blanca { background: #fff; border-block: 1px solid var(--borde); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
.sec-head p { color: var(--gris); margin-top: 6px; }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filtro {
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  border: 1.5px solid var(--borde); background: #fff; color: var(--gris); transition: all 0.2s;
}
.filtro:hover { border-color: var(--azul); color: var(--azul); }
.filtro.activo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Tarjetas del catálogo ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radio); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: rgba(21, 70, 255, 0.35); }
.card-foto { position: relative; aspect-ratio: 1; background: var(--fondo); overflow: hidden; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s, transform 0.5s; }
.card-foto.lista img { opacity: 1; }
.card:hover .card-foto img { transform: scale(1.05); }
.card-foto:not(.lista):not(.sin-foto)::before,
.cargando .g-slide {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--fondo) 30%, #fff 50%, var(--fondo) 70%) 0 0 / 300% 100%;
  animation: brillo 1.3s linear infinite;
}
.cargando .g-slide { position: relative; }
@keyframes brillo { to { background-position: -150% 0; } }
.sin-foto::after {
  content: "Foto próximamente"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gris); font-size: 0.85rem; font-weight: 600;
}
.card-tag {
  position: absolute; top: 12px; left: 12px; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--azul); font-size: 0.75rem; font-weight: 700;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.15rem; font-weight: 700; }
.card-body p { font-size: 0.9rem; color: var(--gris); flex: 1; }
.card-pie { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.precio { font-family: "Exo 2", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--azul); }
.card-ver { font-weight: 700; font-size: 0.88rem; color: var(--navy); transition: color 0.2s; }
.card:hover .card-ver { color: var(--azul); }
.card-gar { font-size: 0.78rem; color: var(--gris); }

/* ---------- Garantía ---------- */
.garantias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.garantia { padding: 24px; border-radius: var(--radio); background: var(--fondo); border: 1px solid var(--borde); }
.g-tiempo { font-family: "Exo 2", sans-serif; font-weight: 800; font-size: 2rem; color: var(--azul); }
.garantia h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.garantia p { color: var(--gris); font-size: 0.95rem; }
.nota { margin-top: 18px; font-size: 0.9rem; color: var(--gris); }

/* ---------- Redes ---------- */
.redes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.red {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 28px 16px; background: #fff; border: 1.5px solid var(--borde); border-radius: var(--radio);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.red .ico { width: 52px; height: 52px; margin-bottom: 10px; }
.red b { font-family: "Exo 2", sans-serif; font-size: 1.15rem; color: var(--navy); }
.red small { color: var(--gris); font-size: 0.9rem; }
.red:hover, .red:active { transform: translateY(-5px); }
.red-whatsapp:hover, .red-whatsapp:active { border-color: #25d366; box-shadow: 0 14px 32px rgba(37, 211, 102, 0.25); }
.red-tiktok:hover, .red-tiktok:active { border-color: #fe2c55; box-shadow: -6px 14px 32px rgba(37, 244, 238, 0.25), 6px 14px 32px rgba(254, 44, 85, 0.22); }
.red-instagram:hover, .red-instagram:active { border-color: #d6249f; box-shadow: 0 14px 32px rgba(214, 36, 159, 0.22); }

/* ---------- Pie ---------- */
.pie { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 44px 0 24px; margin-top: 0; }
.pie-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.marca-claro { color: #fff; font-size: 1.5rem; }
.marca-claro small { color: #6e8dff; }
.pie p { margin-top: 10px; font-size: 0.92rem; }
.pie-redes { display: flex; gap: 12px; }
.red-mini {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); transition: transform 0.25s var(--rebote), background 0.25s, box-shadow 0.25s;
}
.red-mini .ico { width: 28px; height: 28px; }
.red-mini:hover, .red-mini:active { transform: translateY(-4px); background: #fff; }
.red-mini.red-whatsapp:hover { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5); }
.red-mini.red-tiktok:hover { box-shadow: -4px 8px 20px rgba(37, 244, 238, 0.45), 4px 8px 20px rgba(254, 44, 85, 0.45); }
.red-mini.red-instagram:hover { box-shadow: 0 8px 22px rgba(214, 36, 159, 0.5); }
.pie-copy { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 28px; padding-top: 18px; font-size: 0.82rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45); transition: transform 0.3s var(--rebote);
}
.wa-flotante .ico { width: 100%; height: 100%; }
.wa-flotante::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  z-index: -1; animation: pulso 2.2s ease-out infinite;
}
@keyframes pulso { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-flotante:hover, .wa-flotante:active { transform: scale(1.1); }

/* ==========================================================
   PÁGINA DE PRODUCTO
   ========================================================== */
.pagina-producto { padding: 24px 0 72px; }
.btn-volver {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem;
  color: var(--gris); padding: 0.4rem 0.2rem; margin-bottom: 18px; transition: color 0.2s, gap 0.2s;
}
.btn-volver svg { width: 18px; height: 18px; }
.btn-volver:hover { color: var(--azul); gap: 10px; }

.prod { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }

/* Galería */
.galeria { position: sticky; top: 92px; }
.g-visor { position: relative; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--borde); }
.g-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; background: var(--fondo); display: grid; place-items: center; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; }
.g-vacia { color: var(--gris); font-weight: 600; }
.g-flecha {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--navy); box-shadow: 0 6px 18px rgba(11, 21, 48, 0.15);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.g-flecha[hidden], .g-contador[hidden] { display: none; }
.g-flecha svg { width: 20px; height: 20px; }
.g-flecha:hover { background: var(--azul); color: #fff; transform: translateY(-50%) scale(1.08); }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-contador {
  position: absolute; bottom: 12px; right: 12px; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: rgba(11, 21, 48, 0.75); color: #fff; font-size: 0.8rem; font-weight: 600;
}
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.g-thumbs::-webkit-scrollbar { display: none; }
.g-thumb {
  flex: none; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: var(--fondo);
  border: 2px solid transparent; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover { opacity: 0.85; }
.g-thumb.activa { border-color: var(--azul); opacity: 1; }

/* Información */
.p-tag { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--celeste); color: var(--azul); font-weight: 700; font-size: 0.8rem; }
.p-info h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; margin: 12px 0 6px; }
.p-precio { font-family: "Exo 2", sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--azul); }
.p-gar {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: #e8f9ef; color: #138a43; font-weight: 700; font-size: 0.88rem;
}
.p-gar svg { width: 18px; height: 18px; }
.p-desc { margin: 20px 0 22px; font-size: 1.04rem; }
.p-info h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.p-lista { list-style: none; display: grid; gap: 8px; }
.p-lista li { display: flex; align-items: flex-start; gap: 10px; }
.p-lista svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--celeste); color: var(--azul); margin-top: 1px; }
.p-compat { margin-top: 14px; color: var(--gris); }
.p-compat b { color: var(--navy); }
.p-acciones { display: grid; gap: 10px; margin-top: 26px; }
.p-acciones .ico { width: 26px; height: 26px; }
.p-extra { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 0.9rem; color: var(--gris); }
.p-nota {
  margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--celeste);
  border-left: 4px solid var(--azul); font-size: 0.88rem; color: var(--texto);
}
.no-encontrado { text-align: center; padding: 80px 0; display: grid; gap: 14px; justify-items: center; }
.no-encontrado p { color: var(--gris); }
.no-encontrado svg { width: 18px; height: 18px; }

/* ==========================================================
   CELULAR / TABLET
   ========================================================== */
@media (max-width: 900px) {
  .prod { grid-template-columns: 1fr; gap: 24px; }
  .galeria { position: static; }
  .beneficios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .menu { display: none; }
  .hero-in { grid-template-columns: 1fr; padding: 36px 0 32px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-img { order: -1; }
  .hero-img img { width: 200px; }
  .sec { padding: 52px 0; }
  .garantias, .redes { grid-template-columns: 1fr; }
  .red { flex-direction: row; text-align: left; gap: 14px; padding: 18px; }
  .red .ico { width: 44px; height: 44px; margin: 0; }
  .red b { margin-right: auto; }
  .pie-in { flex-direction: column; text-align: center; }
  .g-flecha { width: 38px; height: 38px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 1rem; }
  .card-body p { display: none; }
  .precio { font-size: 1.1rem; }
  .card-ver { display: none; }
  .marca img { height: 36px; }
  .marca-txt { font-size: 1.15rem; }
  .p-precio { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
