/* ============================================================
   EVOLKAIN — Capa de efectos compartida (sobre el HTML de Stitch)
   Catppuccin Mocha · mobile-first · Space Grotesk + Inter
   Los estilos de layout/estética vienen del HTML con Tailwind.
   Aquí vivimos: resets blandos, reveal on scroll, header al
   hacer scroll y micro-interacciones de hover.
   ============================================================ */

:root {
  --bg: #1E1E2E;
  --crust: #11111B;
  --surface: #313244;
  --surface-high: #45475A;
  --mauve: #CBA6F7;
  --on-primary: #11111B;
  --text: #CDD6F4;
  --text-muted: #A6ADC8;
  --hairline: #45475A;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-glow: 0 20px 60px -20px rgba(203, 166, 247, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; }

/* ============================================================
   HEADER — translúcido cuando scrolled (>40px), con hairline
   ============================================================ */
#site-header {
  border-bottom-style: solid;
  border-bottom-width: 0;
  border-bottom-color: transparent;
}

#site-header.scrolled {
  background: rgba(17, 17, 27, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-width: 1px;
  border-bottom-color: var(--hairline);
  border-bottom-style: solid;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
              box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

/* ============================================================
   MICRO-INTERACCIONES (cards y CTAs)
   ============================================================ */
.hover-card,
.cta-btn {
  transition: opacity 0.7s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease);
}

.hover-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   HOVER POLISH — glow mauve + lift en cards, shine en CTAs
   ============================================================ */
.hover-card {
  position: relative;
  overflow: hidden;
}
.hover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(130px 100px at top left, rgba(203, 166, 247, 0.28), transparent 72%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.hover-card:hover::before { opacity: 1; }
.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px -18px rgba(203, 166, 247, 0.55);
}

.cta-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}
.cta-btn:hover::after { transform: translateX(130%); }

/* ============================================================
   DECORATIVE SHAPES — Catppuccin (mauve, blue, teal, pink)
   Float idle via `translate`; parallax via `transform` (rAF).
   ============================================================ */
.shape {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
  animation: float-shape 12s ease-in-out infinite;
  filter: blur(2px);
}
.shape--blob { filter: blur(46px); }
.shape--ring {
  filter: blur(1px);
  opacity: 0.32;
  border: 2px solid;
  border-color: var(--ring, var(--mauve));
  box-shadow: 0 0 30px rgba(203, 166, 247, 0.18) inset, 0 0 30px rgba(203, 166, 247, 0.18);
}
.hero-scene {
  display: inline-block;
  max-width: 100%;
}
[data-parallax] {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@keyframes float-shape {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -24px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hover-card, .cta-btn { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .hover-card:hover, .cta-btn:hover { transform: none; box-shadow: none; }
  .shape, .hero-scene, [data-parallax] { animation: none; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* evolkain: prevent horizontal overflow from decorative shapes */
body{overflow-x:hidden}html{overflow-x:hidden}
