/* ==========================================================================
   VIAJES SAMSER — CINEMATIC INTRO OVERLAY
   Paleta Institucional: Navy Real (#021d76), Oro Imperial (#fbb801),
   Cian Aeroespacial (#38bdf8) & Fondo Espacial (#01091d)
   ========================================================================== */

#samser-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: #01091d;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.75s;
}

#samser-intro-overlay.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 3D Perspective Stage */
.intro-stage-3d {
  perspective: 1200px;
  perspective-origin: center center;
}

/* Background Atmosphere */
.intro-backdrop-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #052a7a 0%, #021a52 35%, #010e2c 70%, #000615 100%);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.intro-flare-spot {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 184, 1, 0.16) 0%, rgba(56, 189, 248, 0.12) 40%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: introFlarePulse 4.5s ease-in-out infinite;
}

@keyframes introFlarePulse {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.18); opacity: 0.8; }
}

/* Ambient Canvas */
#intro-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Top Controls Bar ── */
.intro-top-controls {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
}

.intro-btn-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e2e8f0;
  background: rgba(2, 29, 118, 0.45);
  border: 1px solid rgba(251, 184, 1, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.intro-btn-ctrl:hover {
  color: #ffffff;
  border-color: var(--samser-gold-500, #fbb801);
  background: rgba(2, 29, 118, 0.7);
  transform: translateY(-1px);
}

.intro-btn-skip {
  background: linear-gradient(135deg, rgba(251, 184, 1, 0.2), rgba(2, 29, 118, 0.5));
  border: 1.5px solid rgba(251, 184, 1, 0.7);
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.intro-btn-skip:hover {
  background: linear-gradient(135deg, #fbb801, #e19f00);
  color: #021d76;
  border-color: #ffffff;
  box-shadow: 0 0 24px rgba(251, 184, 1, 0.55);
}

.intro-btn-skip svg {
  transition: transform 0.25s ease;
}

.intro-btn-skip:hover svg {
  transform: translateX(3px);
}

/* ── Central Stage ── */
.intro-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* Orbital Portal Rings */
.intro-ring-outer {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1.5px dashed rgba(251, 184, 1, 0.3);
  pointer-events: none;
  animation: introSpinClockwise 26s linear infinite;
  box-shadow: 0 0 45px rgba(251, 184, 1, 0.08);
}

.intro-ring-inner {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  pointer-events: none;
  animation: introSpinCounter 18s linear infinite;
}

@keyframes introSpinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes introSpinCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Energy Burst Flash */
.intro-portal-flash {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(251, 184, 1, 0.85) 30%, rgba(56, 189, 248, 0.4) 65%, transparent 80%);
  opacity: 0;
  filter: blur(28px);
  transform: scale(0.5);
  pointer-events: none;
  transition: all 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Logo Capsule Container ── */
.intro-logo-capsule {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1.6s ease;
}

/* Left & Right Shutter Halves */
.intro-capsule-shutter {
  position: absolute;
  top: 0;
  width: 150px;
  height: 300px;
  overflow: hidden;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.8s ease;
  z-index: 20;
}

.intro-capsule-left {
  left: 0;
}

.intro-capsule-right {
  right: 0;
}

/* The circular medallion inside shutters */
.intro-capsule-disc {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #021f75 0%, #01144a 60%, #000c2f 100%);
  border: 2px solid rgba(251, 184, 1, 0.65);
  box-shadow: 0 0 40px rgba(2, 29, 118, 0.8), 0 0 20px rgba(251, 184, 1, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.intro-capsule-right .intro-capsule-disc {
  margin-left: -150px;
}

.intro-capsule-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(251, 184, 1, 0.2), transparent 70%);
  pointer-events: none;
}

/* Brand Logo Content Inside Medallion */
.intro-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 20px;
}

.intro-emblem-badge {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 184, 1, 0.5);
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-brand-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: 5px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.intro-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--samser-gold-500, #fbb801);
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 0 12px rgba(251, 184, 1, 0.5);
}

/* Center Laser Seam Line */
.intro-capsule-seam {
  position: absolute;
  inset-y: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fbb801;
  box-shadow: 0 0 14px #fbb801, 0 0 24px #38bdf8;
  z-index: 30;
  transition: opacity 0.3s ease;
}

/* ── Official Viajes Samser Airplane Takeoff Stage ── */
.intro-airplane-stage {
  position: absolute;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transform: translate(0, 35px) scale(0.38) rotate(0deg);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
  will-change: transform, opacity;
}

.intro-airplane-wrap {
  position: relative;
  width: 320px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-jet-svg,
.intro-samser-plane-svg {
  width: 340px;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 20px 45px rgba(2, 29, 118, 0.85)) drop-shadow(0 0 28px rgba(251, 184, 1, 0.45));
  animation: planeFloatingSway 2.5s ease-in-out infinite alternate;
}

@keyframes planeFloatingSway {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-5px) rotate(1deg);
  }
}

.intro-plane-contrails {
  animation: contrailPulse 1.8s ease-in-out infinite alternate;
}

@keyframes contrailPulse {
  0% {
    opacity: 0.75;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
  }
}

/* ── Slogan & Brand Statement Box ── */
.intro-slogan-box {
  margin-top: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 40;
}

.intro-luxury-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 9999px;
  background: rgba(2, 29, 118, 0.9);
  border: 1.5px solid var(--samser-gold-500, #fbb801);
  color: var(--samser-gold-500, #fbb801);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 184, 1, 0.3);
}

.intro-slogan-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 6px 25px rgba(0, 0, 0, 0.95), 0 0 35px rgba(2, 29, 118, 0.9);
}

.intro-text-shimmer {
  color: #fbb801;
  display: inline-block;
  padding: 0 6px;
  filter: drop-shadow(0 0 16px rgba(251, 184, 1, 0.9));
  text-shadow: 0 0 20px rgba(251, 184, 1, 0.9), 0 0 40px rgba(251, 184, 1, 0.5);
  animation: introGoldGlowPulse 2.4s ease-in-out infinite alternate;
}

@keyframes introGoldGlowPulse {
  0% {
    color: #fbb801;
    filter: drop-shadow(0 0 14px rgba(251, 184, 1, 0.8));
    text-shadow: 0 0 16px rgba(251, 184, 1, 0.8);
  }
  100% {
    color: #fff1a8;
    filter: drop-shadow(0 0 26px rgba(251, 184, 1, 1));
    text-shadow: 0 0 32px rgba(251, 184, 1, 1), 0 0 60px rgba(56, 189, 248, 0.7);
  }
}

.intro-slogan-desc {
  margin-top: 12px;
  color: #f1f5f9;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  max-width: 480px;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* Auto-progress Timeline Bar */
.intro-timeline-wrap {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(251, 184, 1, 0.25);
}

.intro-timeline-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #fbb801);
  transition: width 0.08s linear;
}

/* Responsive Tweaks */
@media (max-width: 640px) {
  .intro-ring-outer { width: 340px; height: 340px; }
  .intro-ring-inner { width: 300px; height: 300px; }
  .intro-logo-capsule { width: 260px; height: 260px; }
  .intro-capsule-shutter { width: 130px; height: 260px; }
  .intro-capsule-disc { width: 260px; height: 260px; }
  .intro-capsule-right .intro-capsule-disc { margin-left: -130px; }
  .intro-brand-title { font-size: 1.45rem; letter-spacing: 4px; }
  .intro-brand-sub { font-size: 0.8rem; letter-spacing: 4px; }
  .intro-emblem-badge { width: 68px; height: 68px; }
  .intro-jet-svg { width: 240px; height: 240px; }
  .intro-slogan-desc { font-size: 0.84rem; max-width: 320px; }
  .intro-top-controls { top: 16px; right: 16px; gap: 8px; }
  .intro-btn-ctrl { padding: 6px 12px; font-size: 0.72rem; }
}
