/* ═══════════════════════════════════════════════════════════
   EONTEK — Custom Styles (Complemento a Tailwind)
   Premium Dark · Glassmorphism · Gold Accents
   ═══════════════════════════════════════════════════════════ */

/* ── Smooth scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Selection ── */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f5f5f7;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* ═══════════════════════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, #d4a017 0%, #f5c842 50%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn-gold {
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.25);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(212, 160, 23, 0.4);
}

.btn-gold:active {
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4a017;
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   GLASSMORPHISM CARD
   ═══════════════════════════════════════════════════════════ */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#mobile-menu {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
}

/* ═══════════════════════════════════════════════════════════
   HERO GLOWS
   ═══════════════════════════════════════════════════════════ */
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 200, 66, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}

.section-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════════════════════════ */
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s;
}

.trust-badge:hover {
  border-color: rgba(212, 160, 23, 0.15);
  background: rgba(212, 160, 23, 0.03);
}

/* ═══════════════════════════════════════════════════════════
   PAIN CARDS
   ═══════════════════════════════════════════════════════════ */
.pain-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: left;
  transition: all 0.4s;
}

.pain-card:hover {
  border-color: rgba(255, 100, 100, 0.15);
  background: rgba(255, 50, 50, 0.03);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════
   PROCESS CARDS
   ═══════════════════════════════════════════════════════════ */
.process-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s;
}

.process-card:hover {
  border-color: rgba(212, 160, 23, 0.2);
  transform: translateY(-4px);
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a017, #f5c842);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   VSL CONTAINER
   ═══════════════════════════════════════════════════════════ */
.vsl-container {
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.vsl-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111 0%, #0a0a0a 50%, #111 100%);
}

.vsl-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  border: 2px solid rgba(212, 160, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a017;
  cursor: pointer;
  transition: all 0.4s;
  animation: pulse-glow 3s ease-in-out infinite;
}

.vsl-play-btn:hover {
  background: rgba(212, 160, 23, 0.25);
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  border-color: rgba(212, 160, 23, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  color: #f5f5f7;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #d4a017;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #86868b;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #d4a017;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.5s;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: #86868b;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════ */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-20px, 20px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .hero-glow,
  .hero-glow-2 {
    width: 300px;
    height: 300px;
  }

  .section-glow {
    width: 400px;
    height: 400px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HERO — Animación 3D Celular
   ═══════════════════════════════════════════════════════════ */

.phone-3d-scene {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 780px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Envoltorio de levitación */
.phone-float-wrapper {
  position: relative;
  z-index: 2;
  animation: phoneFloat 3.5s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Envoltorio de rotación Y */
.phone-rotate-wrapper {
  transform-style: preserve-3d;
  animation: phoneRotateY 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(212, 160, 23, 0.30)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.60));
}

.phone-3d-img {
  width: 420px;
  height: auto;
  display: block;
  transform-style: preserve-3d;
  /* Sombra reflejo en el suelo */
}

/* Reflejo/sombra en el "suelo" */
.phone-rotate-wrapper::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) rotateX(90deg) scaleY(0.3);
  width: 140px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(212, 160, 23, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  transform-origin: bottom center;
  transform: translateX(-50%);
}

/* ── Keyframes ── */

/* Levitación: sube y baja suavemente */
@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* Rotación 3D en Y: de izquierda a derecha con pausa en el frente */
@keyframes phoneRotateY {
  0% {
    transform: rotateY(-22deg) rotateX(3deg);
  }

  25% {
    transform: rotateY(0deg) rotateX(2deg);
  }

  50% {
    transform: rotateY(22deg) rotateX(3deg);
  }

  75% {
    transform: rotateY(0deg) rotateX(2deg);
  }

  100% {
    transform: rotateY(-22deg) rotateX(3deg);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .phone-3d-scene {
    height: 620px;
    max-width: 620px;
  }

  .phone-3d-img {
    width: 360px;
  }
}

@media (max-width: 640px) {
  .phone-3d-scene {
    height: 480px;
    max-width: 480px;
  }

  .phone-3d-img {
    width: 280px;
  }
}


/* ═══════════════════════════════════════════════════════════
   TEKO SHIMEJI — pixel art, movimiento 2D
   ═══════════════════════════════════════════════════════════ */

#teko-shimeji {
  position: fixed;
  z-index: 9999;
  width: 48px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#teko-svg {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.8))
          drop-shadow(0 0 5px rgba(212,160,23,0.2));
  transition: filter 0.15s;
}

#teko-shimeji:hover #teko-svg {
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.9))
          drop-shadow(0 0 12px rgba(212,160,23,0.55));
}

/* ── Burbuja ── */
#teko-speech {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid rgba(212,160,23,0.55);
  color: #f5f5f7;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 10px 10px 10px 3px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom left;
}

.teko-speech-show {
  animation: tkSpeechPop 0.25s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* ── Walk: piernas se balancean, cuerpo hace bob ── */
#teko-shimeji[data-state="walk"] #teko-svg {
  animation: tkBodyWalk 0.35s ease-in-out infinite;
}
#teko-shimeji[data-state="walk"] #tk-leg-l {
  animation: tkLegL 0.35s ease-in-out infinite;
  transform-origin: 9px 22px;
}
#teko-shimeji[data-state="walk"] #tk-leg-r {
  animation: tkLegR 0.35s ease-in-out infinite;
  transform-origin: 15px 22px;
}
#teko-shimeji[data-state="walk"] #tk-arm-l {
  animation: tkArmL 0.35s ease-in-out infinite;
  transform-origin: 4px 13px;
}
#teko-shimeji[data-state="walk"] #tk-arm-r {
  animation: tkArmR 0.35s ease-in-out infinite;
  transform-origin: 20px 13px;
}

/* ── Idle: respiración ── */
#teko-shimeji[data-state="idle"] #teko-svg {
  animation: tkBreath 1.3s ease-in-out infinite;
}

/* ── Bump pared ── */
#teko-shimeji.teko-bump #teko-svg {
  animation: tkBump 0.3s ease-out forwards !important;
}

/* ── Scroll abajo ── */
#teko-shimeji.teko-scroll-down #teko-svg {
  animation: tkScrollDown 0.55s cubic-bezier(0.22,1,0.36,1) forwards !important;
}

/* ── Scroll arriba ── */
#teko-shimeji.teko-scroll-up #teko-svg {
  animation: tkScrollUp 0.55s cubic-bezier(0.22,1,0.36,1) forwards !important;
}

/* ── Click/tap ── */
#teko-shimeji.teko-tap #teko-svg {
  animation: tkTap 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards !important;
}

/* ════ KEYFRAMES ════ */

@keyframes tkBodyWalk {
  0%,100% { transform: translateY(0px)   rotate(0deg);   }
  25%      { transform: translateY(-3px)  rotate(-1.5deg); }
  75%      { transform: translateY(-2px)  rotate(1.5deg);  }
}

@keyframes tkLegL {
  0%,100% { transform: rotate(-18deg); }
  50%      { transform: rotate(18deg);  }
}
@keyframes tkLegR {
  0%,100% { transform: rotate(18deg);  }
  50%      { transform: rotate(-18deg); }
}
@keyframes tkArmL {
  0%,100% { transform: rotate(12deg);  }
  50%      { transform: rotate(-12deg); }
}
@keyframes tkArmR {
  0%,100% { transform: rotate(-12deg); }
  50%      { transform: rotate(12deg);  }
}

@keyframes tkBreath {
  0%,100% { transform: scaleY(1);     }
  50%      { transform: scaleY(0.97); }
}

@keyframes tkBump {
  0%   { transform: scaleX(1)    scaleY(1);    }
  40%  { transform: scaleX(1.2)  scaleY(0.8);  }
  70%  { transform: scaleX(0.9)  scaleY(1.1);  }
  100% { transform: scaleX(1)    scaleY(1);    }
}

@keyframes tkScrollDown {
  0%   { transform: translateY(0)    rotate(0deg);   }
  25%  { transform: translateY(-12px) rotate(-10deg); }
  55%  { transform: translateY(16px)  rotate(12deg);  }
  78%  { transform: translateY(5px)   rotate(-3deg);  }
  100% { transform: translateY(0)    rotate(0deg);   }
}

@keyframes tkScrollUp {
  0%   { transform: translateY(0)    rotate(0deg);  }
  25%  { transform: translateY(10px)  rotate(8deg);  }
  55%  { transform: translateY(-18px) rotate(-11deg);}
  78%  { transform: translateY(-5px)  rotate(3deg);  }
  100% { transform: translateY(0)    rotate(0deg);  }
}

@keyframes tkTap {
  0%   { transform: translateY(0)    scale(1);    }
  35%  { transform: translateY(-20px) scale(1.05); }
  65%  { transform: translateY(-8px)  scale(0.96); }
  100% { transform: translateY(0)    scale(1);    }
}

@keyframes tkSpeechPop {
  from { opacity:0; transform: translateX(-50%) translateY(5px)  scale(0.9); }
  to   { opacity:1; transform: translateX(-50%) translateY(0)    scale(1);   }
}
