/* =========================================================
   Marlen Snacks · Landing
   Paleta basada en logo: azul profundo #001838 + #0080e0
   ========================================================= */

:root {
  --bg: #00091a;
  --bg-2: #001838;
  --bg-3: #002a5e;
  --primary: #0080e0;
  --primary-2: #2098ff;
  --primary-soft: rgba(0, 128, 224, 0.18);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-mute: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(0, 128, 224, 0.35);
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --max: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 12px 40px -12px rgba(0, 128, 224, 0.5);
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 6px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ── Animated background ────────────────────────────────── */
.bg {
  position: fixed; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-2) 0%, var(--bg) 60%),
    var(--bg);
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  animation: drift 22s ease-in-out infinite;
  will-change: transform, opacity;
}
.orb1 { width: 560px; height: 560px;
  background: radial-gradient(circle, #0080e0 0%, #002878 60%, transparent 100%);
  top: -10%; left: -10%; }
.orb2 { width: 420px; height: 420px;
  background: radial-gradient(circle, #2098ff 0%, #002060 60%, transparent 100%);
  bottom: -10%; right: -10%; animation-delay: -8s; animation-duration: 26s; }
.orb3 { width: 320px; height: 320px;
  background: radial-gradient(circle, #40b0ff 0%, #001848 60%, transparent 100%);
  top: 50%; left: 60%; animation-delay: -14s; animation-duration: 30s; }
.orb4 { width: 280px; height: 280px;
  background: radial-gradient(circle, #0060d0 0%, #002878 60%, transparent 100%);
  top: 70%; left: 5%; animation-delay: -5s; animation-duration: 24s; }

@keyframes drift {
  0%, 100% { opacity: 0.45; transform: translate(0, 0) scale(1); }
  50%      { opacity: 0.6;  transform: translate(40px, -30px) scale(1.1); }
}

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 128, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 128, 224, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.5;
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(0, 9, 26, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--easing), background .3s var(--easing);
}
.header.scrolled {
  background: rgba(0, 9, 26, 0.85);
  border-bottom-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand-link {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  transition: opacity .2s;
}
.brand-link:hover { opacity: .85; }
.brand-logo {
  filter: drop-shadow(0 0 12px rgba(0, 128, 224, 0.5));
}
.brand-text {
  background: linear-gradient(135deg, #fff 30%, #80c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav {
  display: flex; align-items: center; gap: 28px;
  font-size: .95rem;
}
.nav a {
  position: relative;
  color: var(--text-soft);
  transition: color .2s;
  padding: 6px 0;
}
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--easing);
}
.nav a:not(.nav-cta):hover { color: var(--text); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--whatsapp);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.nav-cta:hover {
  background: #20c25a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.6);
}
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(0, 9, 26, 0.95);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 0;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  background: var(--whatsapp);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  margin-top: 8px;
  font-weight: 600;
  border: none;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0 80px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.logo-stage {
  position: relative;
  width: 280px; height: 280px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.logo-img {
  position: relative; z-index: 2;
  width: 240px; height: 240px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 30px rgba(0, 128, 224, 0.55))
    drop-shadow(0 0 80px rgba(0, 128, 224, 0.25));
}
.logo-glow {
  position: absolute; inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 128, 224, 0.45) 0%, transparent 65%);
  animation: pulseGlow 4s ease-in-out infinite;
  z-index: 1;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.15); opacity: .9;  }
}
.logo-ring {
  position: absolute; inset: 8%;
  border: 1.5px solid rgba(0, 128, 224, 0.35);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.logo-ring::before, .logo-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}
.logo-ring::before { top: -4px; left: 50%; transform: translateX(-50%); }
.logo-ring::after { bottom: -4px; left: 50%; transform: translateX(-50%); }
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #80c4ff;
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(135deg, #fff 0%, #80c4ff 50%, #2098ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-tagline {
  max-width: 580px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .2s, box-shadow .25s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.55);
}
.btn-primary:hover {
  background: #20c25a;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(37, 211, 102, 0.7);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid var(--text-mute);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--text);
  border-radius: 3px;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 24, 56, 0.5) 50%, transparent 100%);
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-inline: auto;
}
.section-eyebrow {
  display: inline-block;
  color: var(--primary-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(0, 128, 224, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid var(--line);
  transition: transform .35s var(--easing), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(0, 128, 224, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #003a9e 100%);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -8px rgba(0, 128, 224, 0.6);
}
.product-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.product-card p {
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.6;
}

/* Two-col */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}
.two-col-text .section-title { margin-bottom: 20px; }
.two-col-text p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 24px;
}
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 1rem;
  color: var(--text-soft);
}
.check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-2);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .85rem;
}
.two-col-visual {
  display: grid;
  gap: 16px;
}
.stat-card {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 128, 224, 0.12) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  transition: transform .3s var(--easing);
}
.stat-card:hover { transform: translateX(4px); }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.03em;
}
.stat-label {
  color: var(--text-soft);
  font-size: .92rem;
  margin-top: 4px;
}

/* CTA */
.section-cta { padding-bottom: 60px; }
.cta-card {
  text-align: center;
  padding: clamp(40px, 6vw, 70px);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at top, rgba(0, 128, 224, 0.18) 0%, transparent 60%),
    linear-gradient(160deg, rgba(0, 128, 224, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 128, 224, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-card .section-title { margin-bottom: 14px; }
.cta-card .section-sub { margin-bottom: 32px; max-width: 560px; margin-inline: auto; }
.cta-card .btn { margin-bottom: 14px; }
.cta-sub {
  color: var(--text-mute);
  font-size: .88rem;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 9, 26, 0.6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
}
.footer-brand img { filter: drop-shadow(0 0 8px rgba(0, 128, 224, 0.5)); }
.footer-nav {
  display: flex; gap: 24px;
  font-size: .95rem;
}
.footer-nav a {
  color: var(--text-mute);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  font-size: .85rem;
  color: var(--text-mute);
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── WhatsApp floating button ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow:
    0 10px 28px -6px rgba(37, 211, 102, 0.6),
    0 0 0 0 rgba(37, 211, 102, 0.45);
  z-index: 100;
  transition: transform .25s var(--easing), box-shadow .3s;
  animation: waPulse 2.4s infinite;
}
.wa-float:hover {
  transform: scale(1.1) rotate(-6deg);
  background: #20c25a;
}
.wa-float-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: waPulseRing 2.4s infinite;
  pointer-events: none;
}
.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #fff;
  color: var(--bg-2);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.wa-float-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.wa-float:hover .wa-float-tooltip,
.wa-float:focus-visible .wa-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.6), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes waPulseRing {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  .wa-float { width: 56px; height: 56px; bottom: 18px; right: 18px; }
  .wa-float-tooltip { display: none; }
}

/* ── Reveal animation ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--easing), transform .9s var(--easing);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger inside groups */
.product-grid [data-reveal]:nth-child(1) { transition-delay: .05s; }
.product-grid [data-reveal]:nth-child(2) { transition-delay: .15s; }
.product-grid [data-reveal]:nth-child(3) { transition-delay: .25s; }
.product-grid [data-reveal]:nth-child(4) { transition-delay: .35s; }

.hero-inner [data-reveal]:nth-child(1) { transition-delay: .1s; }
.hero-inner [data-reveal]:nth-child(2) { transition-delay: .25s; }
.hero-inner [data-reveal]:nth-child(3) { transition-delay: .35s; }
.hero-inner [data-reveal]:nth-child(4) { transition-delay: .45s; }
.hero-inner [data-reveal]:nth-child(5) { transition-delay: .55s; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 4px;
}
