/* ============================================
   GLOBALSOCIALNET — STARGATE PORTAL
   styles.css — Brand System 2026
   Equipo Tony Cañada
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Cinzel:wght@400;600;700&display=swap');

/* ── VARIABLES ─────────────────────────────── */
:root {
  --navy:      #0A1E4D;
  --navy-deep: #060f28;
  --blue:      #4DBCFF;
  --blue-lt:   #CFE7FF;
  --blue-pale: #F7FBFF;
  --gold:      #FFB200;
  --gold-lt:   #FFD060;
  --gold-dk:   #B87A00;
  --white:     #ffffff;
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(ellipse at 50% 35%,
    #ffffff 0%,
    #ffffff 12%,
    #e8f4ff 22%,
    #CFE7FF 32%,
    #7ab8e8 48%,
    #2d6fa8 62%,
    #0d3268 76%,
    #060f28 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--navy);
  overflow-x: hidden;
}

/* ── NAV ───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: linear-gradient(180deg, rgba(6,15,40,0.88) 0%, rgba(6,15,40,0.0) 100%);
  backdrop-filter: blur(4px);
}

.nav-logo img {
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(77,188,255,0.4));
}

.nav-backstage {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold), var(--gold-lt), var(--gold));
  background-size: 200% 200%;
  animation: goldShimmer 3s ease infinite;
  color: var(--navy-deep);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 22px 9px 18px;
  border-radius: 3px;
  border: 1px solid var(--gold-lt);
  box-shadow: 0 0 18px rgba(255,178,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.nav-backstage::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: sealGlint 4s ease-in-out infinite;
}
.nav-backstage:hover {
  box-shadow: 0 0 28px rgba(255,178,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-1px);
}
.nav-backstage .seal-icon { font-size: 16px; line-height: 1; }

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes sealGlint {
  0%, 70%, 100% { left: -60%; opacity: 0; }
  30%            { left: 120%; opacity: 1; }
}

/* ── HERO ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
}

/* Logo */
.hero-logo {
  width: min(520px, 80vw);
  margin-bottom: 36px;
  filter: drop-shadow(0 0 30px rgba(77,188,255,0.4))
          drop-shadow(0 0 60px rgba(77,188,255,0.15));
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(77,188,255,0.4)) drop-shadow(0 0 60px rgba(77,188,255,0.15)); }
  50%       { filter: drop-shadow(0 0 50px rgba(77,188,255,0.7)) drop-shadow(0 0 100px rgba(77,188,255,0.3)); }
}

/* ── TEXT BLOCK ────────────────────────────── */
.hero-text {
  max-width: 700px;
  margin-bottom: 52px;
}

/* Zona blanca/azul claro del centro → texto navy oscuro */
.text-silent {
  font-family: 'Cinzel', serif;
  font-size: clamp(13px, 2.2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}

.text-time {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 20px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  line-height: 1.3;
}

.gold-divider {
  width: min(400px, 70vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dk), transparent);
  margin: 24px auto;
  opacity: 0.5;
}

.text-body {
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 500;
  line-height: 1.9;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.text-road {
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.text-quote {
  font-size: clamp(13px, 1.6vw, 15px);
  font-style: italic;
  font-weight: 500;
  color: #1a3a7a;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.text-welcome {
  font-family: 'Cinzel', serif;
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
}

/* ── PORTAL SECTION ────────────────────────── */
/* Layout: label izquierda | flecha centro | gif derecha */
.portal-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 60px;
  width: min(700px, 92vw);
}

.portal-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-deep);
  text-align: right;
  line-height: 1.7;
}

/* Flecha intermitente — centro */
.arrow-blink {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  animation: arrowBlink 0.9s ease-in-out infinite;
}

.arrow-blink span {
  display: block;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid var(--navy);
}
.arrow-blink span:nth-child(2) { opacity: 0.55; }
.arrow-blink span:nth-child(3) { opacity: 0.25; }

@keyframes arrowBlink {
  0%, 100% { opacity: 1;   transform: translateX(0); }
  50%       { opacity: 0.3; transform: translateX(7px); }
}

/* GIF botón — derecha */
.portal-btn-wrap {
  display: flex;
  justify-content: flex-start;
}
.portal-btn-wrap a {
  display: block;
  transition: transform 0.3s, filter 0.3s;
}
.portal-btn-wrap a:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 18px rgba(77,188,255,0.7));
}
.portal-btn-wrap img {
  width: clamp(140px, 20vw, 190px);
  display: block;
}

/* ── VÍDEO ─────────────────────────────────── */
.hero-video-wrap {
  width: min(720px, 92vw);
  margin-bottom: 56px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(10,30,77,0.2), 0 0 0 1px rgba(77,188,255,0.2);
}
.hero-video-wrap video {
  width: 100%;
  display: block;
}

.video-sound-bar {
  background: var(--navy);
  padding: 8px 14px;
  display: flex;
  justify-content: flex-end;
}

.btn-sound {
  background: transparent;
  border: 1px solid rgba(207,231,255,0.3);
  color: var(--blue-lt);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-sound:hover {
  background: rgba(77,188,255,0.1);
  border-color: var(--blue);
  color: var(--white);
}
.btn-sound.active {
  background: rgba(77,188,255,0.15);
  border-color: var(--blue);
  color: var(--blue);
}

/* ── FOOTER ────────────────────────────────── */
.footer-portal {
  font-family: 'Cinzel', serif;
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-lt);
  opacity: 0.7;
  text-align: center;
  padding-bottom: 32px;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 10px 16px; }
  .nav-logo img { height: 36px; }
  .nav-backstage { font-size: 9px; padding: 7px 14px 7px 12px; letter-spacing: 0.12em; }

  .portal-section {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }
  .portal-label { text-align: center; }
  .arrow-blink {
    flex-direction: column;
  }
  .arrow-blink span {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--navy);
    border-bottom: none;
  }
  .portal-btn-wrap { justify-content: center; }
}

/* ── MODAL VÍDEO ───────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 10, 28, 0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.modal-box {
  width: min(860px, 95vw);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(77,188,255,0.3), 0 0 0 1px rgba(77,188,255,0.2);
}

.modal-topbar {
  background: var(--navy-deep);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ── BARRA VÍDEO INFERIOR ──────────────────── */
.video-sound-bar {
  background: var(--navy);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.video-bar-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.8;
}
