/* ==============================================================
   KINESPRIME - REDISEÑO PREMIUM GLASSMORPHISM
   ============================================================== */

:root {
  --kp-primary: #FF2D55;
  --kp-primary-hover: #FF407D;
  --kp-primary-glow: rgba(255, 45, 85, 0.4);
  --kp-bg: #FCF9F9;
  --kp-surface: rgba(255, 255, 255, 0.85);
  --kp-surface-border: rgba(255, 255, 255, 0.4);
  --kp-text: #1a0a14;
  --kp-text-muted: #8e6b7e;
  --kp-radius-lg: 24px;
  --kp-radius-md: 16px;
  --kp-radius-sm: 8px;
}

body.dark-theme {
  --kp-bg: #0D0510;
  --kp-surface: rgba(20, 10, 25, 0.7);
  --kp-surface-border: rgba(255, 64, 125, 0.15);
  --kp-text: #F4EBF0;
  --kp-text-muted: #A38898;
}

/* 1. HEADER REDISEÑADO */
header {
  background: var(--kp-surface) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border-bottom: 1px solid var(--kp-surface-border) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
  padding: 16px 4% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 100vw !important;
}

/* Contenedor central de búsqueda en el Header (si se mueve ahí) */
.header-actions {
  gap: 12px !important;
}

/* Botones universales */
.btn-publish {
  background: linear-gradient(135deg, var(--kp-primary) 0%, #D41459 100%) !important;
  box-shadow: 0 4px 15px var(--kp-primary-glow) !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 0 28px !important;
  height: 44px !important;
  font-weight: 700 !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.btn-publish:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px var(--kp-primary-glow) !important;
}

/* 2. HERO / PORTADA REDISEÑADA */
.hero-search-section {
  margin-top: -90px !important;
  padding: calc(90px + 64px) 20px 60px !important;
  background: radial-gradient(circle at top, rgba(255,45,85,0.12) 0%, transparent 65%), var(--kp-bg) !important;
  border-bottom: none !important;
}
body.dark-theme .hero-search-section {
  background: radial-gradient(circle at top, rgba(255,45,85,0.18) 0%, transparent 60%), #0C0514 !important;
}
.hero-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 16px !important;
  text-shadow: none !important;
  animation: none !important;
}
.hero-title .neon-blue, .hero-title .neon-pink {
  text-shadow: none !important;
  animation: none !important;
  color: var(--kp-text) !important;
}
.hero-title .neon-pink {
  color: var(--kp-primary) !important;
}
body.dark-theme .hero-title .neon-blue { color: #FFF !important; }

/* Buscador Cápsula (Escritorio / Tablet) */
@media (min-width: 641px) {
  .search-bar-capsule {
    border-radius: 99px !important;
    background: var(--kp-surface) !important;
    border: 1px solid var(--kp-surface-border) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    padding: 8px 8px 8px 24px !important;
    height: 64px !important;
    max-width: 800px !important;
  }
}

/* Buscador Cápsula (Celular / Móvil) */
@media (max-width: 640px) {
  .search-bar-capsule {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border-radius: 20px !important;
    background: var(--kp-surface) !important;
    border: 1px solid var(--kp-surface-border) !important;
    box-shadow: 0 12px 36px rgba(10, 2, 18, 0.12) !important;
    padding: 16px !important;
    height: auto !important;
    min-height: auto !important;
    max-width: 100% !important;
    gap: 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   WELCOME SPLASH SCREEN ANIMATION (+18 VERIFIED INTRO)
   ══════════════════════════════════════════════════════════════════ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #1E0514 0%, #0C0514 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  opacity: 1;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.splash-exit {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

.splash-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.splash-logo-wrap {
  display: flex;
  align-items: center;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.splash-word {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF2D55 0%, #FF6B8A 50%, #C8124E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateX(120vw);
  will-change: transform, opacity;
}

.splash-kines.animate-in {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.splash-prime.animate-in {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s, opacity 0.3s 0.25s;
}

.splash-letter-i {
  display: inline-block;
  position: relative;
  transform-origin: bottom center;
  will-change: transform;
  -webkit-text-fill-color: initial;
  background: linear-gradient(135deg, #FF2D55 0%, #FF6B8A 50%, #C8124E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-letter-i.squash {
  animation: letterISquash 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes letterISquash {
  0% { transform: scaleY(1) scaleX(1); }
  35% { transform: scaleY(0.42) scaleX(1.38); }
  65% { transform: scaleY(1.15) scaleX(0.88); }
  100% { transform: scaleY(1) scaleX(1); }
}

.splash-letter-e {
  position: relative;
  display: inline-block;
  -webkit-text-fill-color: initial;
  background: linear-gradient(135deg, #FF2D55 0%, #FF6B8A 50%, #C8124E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-crown-container {
  position: absolute;
  top: -0.28em;
  right: -0.52em;
  width: 0.72em;
  height: 0.72em;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 10;
}

.splash-crown-container .splash-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(255, 45, 85, 0.6));
  transition: filter 0.3s ease;
}

.splash-crown-container.settled .splash-svg {
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.95)) drop-shadow(0 4px 14px rgba(255, 45, 85, 0.8));
}
