/* ===========================================================
   BELLAQUEO LAB -- style.css
   Design tokens, nav, animations, scroll reveals
=========================================================== */

/* -- Design Tokens -- */
:root {
  /* Colors */
  --color-primary:       #DC2627;
  --color-primary-dark:  #b81e1f;
  --color-primary-light: #f03334;
  --color-accent:        #ff4444;

  --color-bg:            #0a0a0a;
  --color-bg-alt:        #0f0f0f;
  --color-bg-card:       #141414;
  --color-text:          #ffffff;
  --color-text-muted:    rgba(255, 255, 255, 0.55);
  --color-border:        rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-heading: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  --font-body:    'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --shadow-red: 0 8px 30px rgba(220, 38, 39, 0.4);

  /* ── Standard Tokens (auto-injected) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-default: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* -- Base Typography -- */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tailwind semantic font classes */
.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }


/* ================================================
   NAVIGATION
================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background-color: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.site-header.is-scrolled {
  background-color: rgba(10, 10, 10, 0.97);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(220, 38, 39, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  text-decoration: none;
  transition: opacity 0.2s ease;
  letter-spacing: 0.1em;
}
.nav-logo:hover {
  opacity: 0.85;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: 0.12em;
  line-height: 1;
}
.nav-logo-accent {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  line-height: 1;
}

.nav-desktop {
  display: none;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover,
.nav-link--active {
  color: #ffffff;
}
.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  background: var(--color-primary);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #ffffff;
  padding: 0;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover {
  color: var(--color-primary);
  background: rgba(255,255,255,0.05);
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}


/* ================================================
   MOBILE MENU
================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 7vw, 3rem);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  text-align: center;
}
.mobile-nav-link:hover {
  color: var(--color-primary);
}


/* ================================================
   ICON SIZING
================================================ */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.icon.hidden { display: none; }
.icon-sm  { width: 1em;    height: 1em; }
.icon-lg  { width: 1.5em;  height: 1.5em; }
.icon-xl  { width: 2em;    height: 2em; }


/* ================================================
   SCROLL REVEAL ANIMATIONS
================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1)  { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2)  { transition-delay: 80ms; }
[data-reveal-stagger].is-visible > *:nth-child(3)  { transition-delay: 160ms; }
[data-reveal-stagger].is-visible > *:nth-child(4)  { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(5)  { transition-delay: 320ms; }
[data-reveal-stagger].is-visible > *:nth-child(6)  { transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(7)  { transition-delay: 480ms; }
[data-reveal-stagger].is-visible > *:nth-child(8)  { transition-delay: 560ms; }
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   KEYFRAME ANIMATIONS
================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}
@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 39, 0.5); }
  50%       { box-shadow: 0 0 0 12px rgba(220, 38, 39, 0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50%       { transform: translate(-50%, -50%) scale(1.05); opacity: 0.1; }
}

.scroll-bob {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  animation: scrollBob 2s ease-in-out infinite;
}

/* Hero decorative grid lines */
.hero-grid-lines {
  background-image:
    linear-gradient(rgba(220, 38, 39, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 39, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(220, 38, 39, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseRed 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 35px rgba(220, 38, 39, 0.65);
  animation: none;
}

.whatsapp-float-label {
  display: inline;
}

/* Ajuste para móviles */
@media (max-width: 479px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    gap: 0.4rem;
  }
}

/* ================================================
   REDUCED MOTION
================================================ */
@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;
  }
}body { margin: 0; }

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}

/* ==========================================
   BOTÓN FLOTANTE DE SOPORTE WHATSAPP
========================================== */

.whatsapp-support {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9000;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.whatsapp-support:hover {
  background: #20bd5a;
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.whatsapp-support:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 4px;
}

.whatsapp-support img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .whatsapp-support {
    left: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-support img {
    width: 30px;
    height: 30px;
  }
}