/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root{
  --bg: #1A182A;
  --ink: #FFFFFF;
  --accent: #FB923C;
  --font-main: 'Space Grotesk', sans-serif;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-main);
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.frame{ border-top:4px solid var(--ink); height:0; }

.topbar{
  position:fixed;
  top:0; left:0;
  display:flex;
  padding:26px 0 0 36px;
  z-index: 150;
}
.menu{
  font-family:var(--font-main);
  font-size:0.95rem;
  font-weight:600;
  border-bottom:2px solid var(--ink);
  padding-bottom:3px;
  width:fit-content;
  cursor: pointer;
  user-select: none;
}

/* ============================================================
   RAIL VERTICAL
   ============================================================ */
.rail{
  position:fixed;
  left:34px;
  top:400px;
  writing-mode:vertical-rl;
  font-family:var(--font-main);
  font-size:0.85rem;
  letter-spacing:0.15em;
  line-height:1.9;
  color:var(--ink);
  z-index: 150;
}

/* ============================================================
   LOGO CENTRAL + WELCOME
   ============================================================ */
.logo-group{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  z-index: 1;
  pointer-events: none;
}

.welcome{
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease;
  white-space: nowrap;
  margin: 0;
}
.welcome.show{ opacity: 1; }

.logo-svg-center{
  width: min(50vw, 600px);
  opacity: 0.4;
  transition: opacity 0.8s ease;
}
.logo-svg-center.full{ opacity: 1; }
.logo-svg-center img{
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   INTRO (SWIPER)
   ============================================================ */
.intro{
  position:relative;
  height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-left:130px;
  padding-right:40px;
  overflow:hidden;
  z-index: 2;
  transition: opacity 0.6s ease;
}
.intro.hidden{
  opacity: 0;
  pointer-events: none;
}

.swiper-container{
  width:100%;
  height:100%;
  overflow:hidden;
  cursor:default;
}

.swiper-wrapper{
  align-items: flex-start;
}

.swiper-slide{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  opacity:1;
  transition: opacity 0.3s;
  width: auto;
  max-width: 100%;
  height: auto;
}

.swiper-slide p{
  margin:0;
  font-family:var(--font-main);
  font-weight: 700;
  line-height:1.15;
  letter-spacing: -0.01em;
  will-change: font-size, padding, opacity;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* ============================================================
   INDICADOR "DESLIZA"
   ============================================================ */
.scroll-hint{
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--ink);
  z-index: 15;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.8s ease;
  user-select: none;
  pointer-events: none;
}
.scroll-hint.show{
  opacity: 1;
  pointer-events: auto;
}
.scroll-hint .arrow{
  width: 1px;
  height: 24px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.scroll-hint .arrow::after{
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: slideArrow 1.8s ease-in-out infinite;
}
@keyframes slideArrow{
  0%   { top: -100%; }
  50%  { top: 0%;    }
  100% { top: 100%;  }
}

/* ============================================================
   BOTÓN SALTAR
   ============================================================ */
.skip{
  position: fixed;
  right: 40px;
  bottom: 34px;
  cursor:pointer;
  font-family:var(--font-main);
  font-size:0.85rem;
  font-weight:600;
  letter-spacing:0.14em;
  color: #FFFFFF;
  background-color: var(--accent);
  padding: 0.7rem 1.5rem;
  border-radius: 0;
  transition: background-color 0.3s ease, opacity 0.4s ease;
  z-index: 20;
}
.skip:hover{ background-color: #e07d2b; }
.skip.hidden{
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:0 40px 34px 34px;
  z-index: 15;
  pointer-events: none;
}
.logo{ display:flex; flex-direction:column; gap:2px; }
.logo .mark{
  font-family:var(--font-main);
  font-size:1.5rem;
  font-weight:600;
  line-height:1;
  color: var(--ink);
}
.logo .caption{
  font-family:var(--font-main);
  font-size:0.55rem;
  letter-spacing:0.08em;
  color: var(--ink);
  opacity:0.8;
}

/* ============================================================
   OVERLAY DE TRANSICIÓN
   ============================================================ */
.transition-overlay{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.transition-overlay.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================================
   RESPONSIVE — TOPBAR CENTRADO a partir de 693px
   ============================================================ */
@media (max-width: 693px){
  .topbar{
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 0 0 0;
    justify-content: center;
    width: 100%;
  }
}