/* ============================================================
   Alertas Figus — landing del bot de stock del Mundial 2026
   Paleta inspirada en la identidad geométrica de FIFA 26 + oro
   ============================================================ */

:root {
  --bg: #faf6ef;
  --ink: #131722;
  --ink-soft: #4a5061;
  --red: #e8412c;
  --green: #3fae4c;
  --blue: #2666d1;
  --purple: #6d4fd1;
  --gold-1: #f6c645;
  --gold-2: #c98a12;
  --telegram: #2aabee;
  --telegram-dark: #1f93cf;
  --card: #ffffff;
  --radius: 22px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Formas de fondo (estética FIFA 26) ---------- */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 0 100% 100% 100%;
  opacity: 0.12;
  animation: drift 22s ease-in-out infinite alternate;
}

.shape--red    { background: var(--red);    width: 38vw; height: 38vw; top: -12vw;  left: -10vw; }
.shape--green  { background: var(--green);  width: 26vw; height: 26vw; top: 30vh;   right: -8vw;  border-radius: 100% 0 100% 100%; animation-delay: -5s; }
.shape--blue   { background: var(--blue);   width: 30vw; height: 30vw; bottom: -10vw; left: 18vw; border-radius: 100% 100% 0 100%; animation-delay: -10s; }
.shape--gold   { background: var(--gold-1); width: 20vw; height: 20vw; top: 62vh;   left: -6vw;  border-radius: 100% 100% 100% 0; animation-delay: -14s; }
.shape--purple { background: var(--purple); width: 16vw; height: 16vw; top: 8vh;    right: 22vw; animation-delay: -18s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(4vw, 3vh, 0) rotate(14deg); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 23, 34, 0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--telegram {
  background: linear-gradient(135deg, var(--telegram), var(--telegram-dark));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(42, 171, 238, 0.55);
}
.btn--telegram:hover { box-shadow: 0 16px 38px -8px rgba(42, 171, 238, 0.7); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #2a1d04;
  box-shadow: 0 10px 30px -8px rgba(201, 138, 18, 0.6);
}

.btn--small { padding: 10px 20px; font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 64px) clamp(48px, 9vh, 110px);
  max-width: 1280px;
  margin: 0 auto;
}

.hero__kicker {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  display: grid;
}

.hero__title-accent {
  background: linear-gradient(100deg, var(--gold-2), var(--gold-1) 45%, var(--gold-2) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

.hero__sub {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 54ch;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__hint { font-size: 0.85rem; color: var(--ink-soft); }

.hero__stats {
  margin-top: 44px;
  display: flex;
  gap: clamp(24px, 4vw, 56px);
}

.hero__stats dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stats dd { font-size: 0.82rem; color: var(--ink-soft); }

/* Visual del hero: álbumes flotando con parallax */
/* Sin `perspective` acá: crearía un stacking context que aísla el
   mix-blend-mode de las figuras (la perspectiva va en el transform de cada una) */
.hero__visual {
  position: relative;
  height: clamp(380px, 46vw, 560px);
}

.hero__album {
  position: absolute;
  transition: transform 0.18s ease-out;
  animation: floaty 6s ease-in-out infinite;
}

/* Los PNG tienen alfa real, así que la sombra sigue la silueta del producto */
.hero__album img {
  filter: drop-shadow(0 26px 30px rgba(19, 23, 34, 0.3));
}

.hero__album--gold   { width: 54%; top: 0;   left: 6%;  z-index: 3; }
.hero__album--dura   { width: 42%; top: 10%; right: 0;  z-index: 2; animation-delay: -2s; }
.hero__album--sobres { width: 36%; bottom: 0; left: 0;  z-index: 4; animation-delay: -4s; }
.hero__album--box    { width: 34%; bottom: 2%; right: 6%; z-index: 5; animation-delay: -3s; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.02);
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Secciones ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.how {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 64px);
  text-align: center;
}

.how__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how__card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(19, 23, 34, 0.05), 0 16px 40px -24px rgba(19, 23, 34, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.how__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1px 2px rgba(19, 23, 34, 0.05), 0 28px 56px -24px rgba(19, 23, 34, 0.32);
}

.how__num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(19, 23, 34, 0.05);
}

.how__emoji { font-size: 2rem; display: block; margin-bottom: 14px; }

.how__card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.how__card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Acentos de color por card */
.how__card:nth-child(1) { border-top: 4px solid var(--blue); }
.how__card:nth-child(2) { border-top: 4px solid var(--green); }
.how__card:nth-child(3) { border-top: 4px solid var(--red); }

/* ---------- Demo (chat) ---------- */
.demo {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.demo__copy p { color: var(--ink-soft); max-width: 46ch; }

.demo__list {
  list-style: none;
  margin: 26px 0 32px;
  display: grid;
  gap: 14px;
}

.demo__list li {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 28px -18px rgba(19, 23, 34, 0.25);
  font-size: 0.95rem;
}

/* Teléfono */
.phone-wrap { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(330px, 86vw);
  aspect-ratio: 9 / 19;
  background: #0e1621; /* Telegram dark */
  border-radius: 52px;
  border: 11px solid #131722;
  box-shadow: 0 50px 90px -30px rgba(19, 23, 34, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

/* La pantalla recorta el contenido; el marco queda libre para los botones */
.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 41px;
  overflow: hidden;
}

.phone:hover { transform: rotate(0deg) scale(1.02); }

/* Botones físicos del costado */
.phone-wrap { position: relative; }

.phone::before,
.phone::after {
  content: '';
  position: absolute;
  right: -14px;
  width: 3px;
  border-radius: 2px;
  background: #131722;
}

.phone::before { top: 18%; height: 9%; }
.phone::after  { top: 30%; height: 14%; }

.phone__notch {
  width: 110px;
  height: 22px;
  margin: 10px auto 0;
  background: #131722;
  border-radius: 999px;
}

.phone__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.phone__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.phone__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* la foto del álbum es vertical: enfocamos el centro de la tapa */
  object-position: center 32%;
  transform: scale(1.35);
}

.phone__name { color: #fff; font-weight: 600; font-size: 0.9rem; }
.phone__status { color: #6c7883; font-size: 0.75rem; }

.phone__chat {
  flex: 1;
  min-height: 0;
  padding: 16px 14px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(38, 102, 209, 0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(109, 79, 209, 0.12), transparent 50%);
}

.msg {
  background: #182533;
  color: #e7ecf0;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  max-width: 92%;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: msg-in 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes msg-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.msg b { color: #fff; }

.msg__btn {
  display: block;
  margin-top: 8px;
  text-align: center;
  background: rgba(42, 171, 238, 0.16);
  color: #64b5f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Link "🛒 Comprar" dentro del cuerpo, como lo manda el bot */
.msg__link {
  color: #64b5f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tarjeta de link preview que Telegram agrega debajo del mensaje */
.msg__preview {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #64b5f0;
  border-radius: 4px 8px 8px 4px;
}

.msg__preview-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.7rem;
  line-height: 1.35;
}

.msg__preview-domain { color: #64b5f0; font-weight: 600; }

.msg__preview-title {
  color: #fff;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg__preview-desc {
  color: #8a97a3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg__preview img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}

.msg__time {
  display: block;
  text-align: right;
  color: #6c7883;
  font-size: 0.68rem;
  margin-top: 4px;
}

/* Reacciones del canal: pills que aparecen con pop + emojis flotando */
.msg { position: relative; }

.msg__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.msg__reactions:not(:empty) { margin-top: 8px; }

.reaction {
  display: inline-flex;
  align-items: center;
  background: rgba(42, 171, 238, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  color: #9fb4c7;
  opacity: 0;
  transform: scale(0.3);
  animation: reaction-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes reaction-pop {
  to { opacity: 1; transform: scale(1); }
}

.float-emoji {
  position: absolute;
  bottom: 10px;
  font-size: 1.05rem;
  pointer-events: none;
  opacity: 0;
  animation: float-up 1.5s ease-out forwards;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(0.7); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-54px) scale(1.5) rotate(12deg); }
}

.msg--typing {
  display: inline-flex;
  gap: 5px;
  padding: 14px 16px;
  width: fit-content;
}

.msg--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c7883;
  animation: blink 1.2s infinite;
}

.msg--typing i:nth-child(2) { animation-delay: 0.2s; }
.msg--typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

/* ---------- Productos ---------- */
.products {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 64px);
  text-align: center;
}

.products__sub { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 40px; }

.products__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.products__grid .product {
  flex: 1 1 215px;
  max-width: 280px;
}

.product {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(19, 23, 34, 0.05), 0 16px 40px -24px rgba(19, 23, 34, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 1px 2px rgba(19, 23, 34, 0.05), 0 32px 60px -24px rgba(19, 23, 34, 0.35);
}

.product__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

/* Dorado: álbum gold y su combo */
.product__badge--gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #2a1d04;
  box-shadow: 0 6px 16px -6px rgba(201, 138, 18, 0.7);
}

/* Plateado: tapa dura y su combo */
.product__badge--silver {
  background: linear-gradient(135deg, #e8eaef, #aab0bd);
  color: #2c3240;
  box-shadow: 0 6px 16px -6px rgba(110, 118, 135, 0.7);
}

/* Azul: tapa blanda, sobres y combos comunes */
.product__badge--blue {
  background: linear-gradient(135deg, #5d8df0, var(--blue));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(38, 102, 209, 0.7);
}

.product__img {
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #ffffff 40%, #f3efe7);
  padding: 10px;
  margin-bottom: 16px;
}

.product__img img {
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product:hover .product__img img { transform: scale(1.08) rotate(1deg); }

.product h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product p { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 14px; }

.product__tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* Botones de compra por tienda (links de referido del bot) */
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Violeta→magenta del logo de ZonaKids */
.tag--zk {
  color: #fff;
  background: linear-gradient(135deg, #401a74, #a82d8c);
}
.tag--zk:hover { box-shadow: 0 8px 18px -8px rgba(120, 38, 140, 0.85); }

.tag--ml {
  color: #333;
  background: #ffe600; /* amarillo MercadoLibre */
}
.tag--ml:hover { box-shadow: 0 8px 18px -8px rgba(180, 160, 0, 0.9); }

/* ---------- CTA final ---------- */
.cta { padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 64px) clamp(72px, 10vh, 120px); }

.cta__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--bg);
  border-radius: 32px;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
}

/* halo de color animado dentro del panel */
.cta__inner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, var(--red), var(--gold-1), var(--green), var(--blue), var(--purple), var(--red));
  opacity: 0.16;
  animation: spin 14s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.cta__inner > * { position: relative; }

.cta__inner h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
}

.cta__dot { color: var(--gold-1); }

.cta__inner p { margin: 16px auto 30px; color: #b8bdc9; max-width: 44ch; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(19, 23, 34, 0.08);
  padding: 36px clamp(20px, 5vw, 64px) 48px;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer__links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.footer__links a:hover { border-color: var(--gold-1); }

.footer__legal { color: var(--ink-soft); font-size: 0.78rem; max-width: 64ch; margin: 0 auto; }

/* ---------- Animaciones de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: -1; height: clamp(280px, 60vw, 420px); max-width: 520px; margin: 0 auto; width: 100%; }
  .how__grid { grid-template-columns: 1fr; max-width: 480px; margin: 40px auto 0; }
  .demo { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .products__grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .hero__stats { gap: 20px; }
  .phone { transform: none; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
