/* Experiencia de bienvenida — idéntica al cotizador principal */
:root {
  --bg-deep: #040612;
  --text-muted: #9cb4d8;
  --radius: 22px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --gradient-primary-hover: linear-gradient(135deg, #06b6d4 0%, #4f46e5 50%, #9333ea 100%);
  --gradient-text: linear-gradient(90deg, #ffffff 0%, #67e8f9 45%, #c4b5fd 100%);
  --float-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  --glow-aqua: rgba(34, 211, 238, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.3);
}

body.experience-active {
  margin: 0;
  font-family: var(--font);
  color: #eef4ff;
  min-height: 100dvh;
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

body.experience-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 75% 50% at 10% 15%, rgba(34, 211, 238, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 90% 12%, rgba(139, 92, 246, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 70% 55% at 50% 95%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #060818 0%, #080c1c 35%, #0a0e22 70%, #060818 100%);
  transition: opacity 0.9s ease;
}

body.experience-active.has-wallpaper::before {
  opacity: 0.35;
}

body.experience-active::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hidden { display: none !important; }

/* ===== Experience Gate ===== */
#experiencia-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(34, 211, 238, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(168, 85, 247, 0.16) 0%, transparent 50%),
    rgba(4, 6, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#experiencia-gate.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experiencia-gate__card {
  text-align: center;
  max-width: 400px;
  width: 100%;
  padding: 40px 28px 36px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.06) 50%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--float-shadow), 0 0 60px var(--glow-purple);
  animation: gateIn 0.7s ease;
}

@keyframes gateIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.experiencia-gate__logo-wrap {
  width: 148px;
  height: 148px;
  margin: 0 auto 20px;
  padding: 10px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 48px var(--glow-aqua), 0 0 32px var(--glow-purple);
}

.experiencia-gate__logo {
  width: 100%;
  height: 100%;
  max-width: 128px;
  max-height: 128px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.experiencia-gate__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experiencia-gate__subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.experiencia-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 32px var(--glow-aqua), 0 4px 20px var(--glow-purple);
  transition: transform 0.2s, box-shadow 0.2s;
}

.experiencia-gate__btn:hover {
  transform: translateY(-3px);
  background: var(--gradient-primary-hover);
  box-shadow: 0 14px 40px var(--glow-aqua), 0 8px 28px var(--glow-purple);
}

/* ===== Video Intro Overlay ===== */
#video-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#video-intro-overlay.hidden { display: none; }

#video-intro {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-intro-hint {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

#video-intro-overlay.is-hint-visible .video-intro-hint,
#video-intro-overlay:hover .video-intro-hint {
  opacity: 1;
  visibility: visible;
}

/* ===== YouTube wallpaper ===== */
.video-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.video-wallpaper.is-active {
  opacity: 1;
  visibility: visible;
}

.video-wallpaper__embed {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.video-wallpaper__embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.video-wallpaper__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(4, 6, 18, 0.82) 0%, rgba(8, 12, 28, 0.62) 45%, rgba(4, 6, 18, 0.88) 100%),
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(34, 211, 238, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 85% 85%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
  .video-wallpaper { display: none !important; }
}

/* ===== App Shell (oculto hasta terminar intro) ===== */
#app {
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#app.is-visible {
  opacity: 1;
  visibility: visible;
  padding-top: 8px;
  padding-bottom: 16px;
}

@media (max-width: 768px) {
  .experiencia-gate__logo-wrap {
    width: 132px;
    height: 132px;
    padding: 8px;
  }

  .experiencia-gate__logo {
    max-width: 116px;
    max-height: 116px;
  }
}
