:root {
  --heron-cyan: #42b2c2;
  --heron-cyan-light: #7be3f2;
  --heron-purple: #6b347a;
  --heron-purple-light: #9b5de5;
  --heron-navy: #1e293b;
  --text-light: #ffffff;
}

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

html,
body {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--heron-navy);
  background-color: #8bb8ff;
  -webkit-font-smoothing: antialiased;
}

/* Fondo original acuarela */
.bg-watercolor {
  position: fixed;
  inset: -4%;
  background-image: url('/assets/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: bgSlowDrift 24s ease-in-out infinite alternate;
  filter: saturate(1.06);
}

@keyframes bgSlowDrift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.05) translate3d(-1%, -1%, 0);
  }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(142, 180, 255, 0.16) 52%,
    rgba(30, 41, 59, 0.24) 100%
  );
  pointer-events: none;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Contenedor principal centrado */
.landing-container {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

/* Tarjeta orgánica y muy redondeada con acabado cristal suave */
.hero-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 2rem 1.8rem;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px -12px rgba(45, 55, 105, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Resplandor suave detrás del logo */
.heron-aura {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(123, 227, 242, 0.55) 0%,
    rgba(155, 93, 229, 0.28) 50%,
    rgba(255, 255, 255, 0) 72%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: auraPulse 5.5s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

/* Contenedor del logo */
.logo-wrapper {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(45, 55, 105, 0.24));
  user-select: none;
  -webkit-user-drag: none;
}

/* Menús tipo píldora (pill buttons) redondeados y elegantes */
.social-actions {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.cta-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-light);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

/* Botón Twitch: degradado amatista/lavanda suave */
.cta-twitch {
  background: linear-gradient(135deg, rgba(107, 52, 122, 0.92) 0%, rgba(145, 70, 255, 0.88) 100%);
  box-shadow:
    0 12px 28px -6px rgba(107, 52, 122, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

/* Botón Twitter/X: degradado turquesa/océano suave */
.cta-twitter {
  background: linear-gradient(135deg, rgba(35, 118, 135, 0.92) 0%, rgba(66, 178, 194, 0.9) 100%);
  box-shadow:
    0 12px 28px -6px rgba(35, 118, 135, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.9);
}

.cta-twitch:hover {
  box-shadow:
    0 18px 34px -6px rgba(132, 62, 212, 0.52),
    0 0 20px rgba(176, 128, 255, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.65);
}

.cta-twitter:hover {
  box-shadow:
    0 18px 34px -6px rgba(50, 158, 175, 0.52),
    0 0 20px rgba(123, 227, 242, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.65);
}

.cta-btn:active {
  transform: translateY(0px) scale(0.995);
}

.cta-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Destello sedoso al pasar el ratón */
.btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.cta-btn:hover .btn-shine {
  left: 140%;
}

/* Círculo del icono a la izquierda */
.btn-icon-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.cta-btn:hover .btn-icon-box {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.3);
}

.social-svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Texto limpio y equilibrado */
.btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.1rem;
}

.btn-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #ffffff;
}

.btn-subtitle {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

/* Círculo de la flecha a la derecha */
.btn-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease;
}

.btn-arrow svg {
  width: 19px;
  height: 19px;
}

.cta-btn:hover .btn-arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.3);
}

/* Pie discreto */
.landing-footer {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(30, 41, 59, 0.7);
}

/* Responsividad móvil */
@media (max-width: 520px) {
  .landing-container {
    padding: 1.25rem 1rem;
  }

  .hero-card {
    padding: 1.75rem 1.25rem 1.4rem;
    border-radius: 36px;
  }

  .logo-wrapper {
    width: min(100%, 300px);
    margin-bottom: 1rem;
  }

  .cta-btn {
    padding: 0.55rem 0.65rem 0.55rem 0.55rem;
    gap: 0.8rem;
  }

  .btn-icon-box {
    width: 46px;
    height: 46px;
  }

  .social-svg {
    width: 21px;
    height: 21px;
  }

  .btn-title {
    font-size: 1.08rem;
  }

  .btn-subtitle {
    font-size: 0.8rem;
  }

  .btn-arrow {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-watercolor,
  .heron-aura,
  .logo-wrapper {
    animation: none !important;
  }

  .cta-btn,
  .btn-shine,
  .btn-icon-box,
  .btn-arrow {
    transition: none !important;
  }
}
