:root {
  --bg-dark: #08090d;
  --bg-surface: #10131a;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.4);
  --cyan-neon: #00f0ff;
  --orange-hype: #ff4d29;
  --purple-neon: #9d4edd;
  --text-primary: #ffffff;
  --text-muted: #8b92a5;
  --font-title: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 15% 15%, rgba(0, 240, 255, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 85%, rgba(255, 77, 41, 0.07) 0%, transparent 50%);
}

/* CABECERA CON MARQUEE CONTINUO */
.header-ticker-bar {
  background: linear-gradient(90deg, #10141f, #1a2030, #10141f);
  border-bottom: 1px solid var(--border-glass);
  padding: 6px 0;
  font-size: 0.78rem;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--cyan-neon);
}

.ticker-track {
  display: inline-block;
  animation: tickerMove 22s linear infinite;
}

.ticker-track span { margin: 0 35px; font-weight: 600; }

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* NAVBAR CON LOGO 3D EN MOVIMIENTO CONTINUO */
.navbar {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-3d-emblem {
  width: 44px;
  height: 44px;
  position: relative;
  perspective: 500px;
}

.emblem-core {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: emblemOrbit 6s infinite ease-in-out;
  background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon), var(--orange-hype));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.emblem-core span {
  font-size: 1.3rem;
  transform: translateZ(10px);
}

@keyframes emblemOrbit {
  0%   { transform: rotateY(0deg) rotateX(10deg); }
  50%  { transform: rotateY(180deg) rotateX(-10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-title span {
  background: linear-gradient(135deg, var(--orange-hype), var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 28px; }

.nav-btn-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-btn-link:hover, .nav-btn-link.active { color: #fff; }

.btn-open-catalog {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-neon);
  border: 1px solid var(--border-glow);
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-open-catalog:hover {
  background: var(--cyan-neon);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.user-profile-btn img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* HERO SHOWROOM CON MOVIMIENTO 3D */
.hero-stage {
  min-height: 100vh;
  padding: 160px 32px 60px;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 50px;
  perspective: 1400px;
}

.hero-copy h1 {
  font-family: var(--font-title);
  font-size: 3.8rem;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, #fff 30%, var(--cyan-neon) 70%, var(--orange-hype) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  max-width: 520px;
}

.hero-actions-group { display: flex; align-items: center; gap: 18px; }

.btn-hero-glow {
  background: linear-gradient(135deg, var(--orange-hype), #ff2200);
  color: #fff;
  padding: 16px 36px;
  border-radius: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(255, 77, 41, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-glow:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 45px rgba(255, 77, 41, 0.6);
}

/* ESCENARIO 3D INTERACTIVO CON EL MOUSE */
.viewport-3d-shoe {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.hologram-rings {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  animation: ringRotate 20s infinite linear;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.floating-3d-sneaker {
  position: relative;
  width: 100%;
  max-width: 520px;
  z-index: 10;
  cursor: grab;
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 30px rgba(0, 240, 255, 0.25));
  transition: transform 0.12s ease-out;
  transform-style: preserve-3d;
  animation: autoFloat3D 5s ease-in-out infinite alternate;
}

@keyframes autoFloat3D {
  0% { transform: translateY(0px) rotateZ(-3deg) rotateY(10deg); }
  100% { transform: translateY(-24px) rotateZ(3deg) rotateY(-10deg); }
}

.shoe-pedestal-light {
  position: absolute;
  bottom: 40px;
  width: 360px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.5) 0%, transparent 75%);
  border-radius: 50%;
  filter: blur(12px);
}

.interactive-hint {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--cyan-neon);
}

/* MODAL DE SEGURIDAD Y OAUTH */
.modal-security-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-security-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.security-card {
  background: #0f131a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  width: 92%;
  max-width: 460px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.login-header-zone { text-align: center; margin-bottom: 24px; }

/* CUBO 3D EN EL LOGIN */
.login-logo-3d-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  perspective: 600px;
}

.cube-auth-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: authCubeRotate 7s infinite ease-in-out;
}

@keyframes authCubeRotate {
  0% { transform: rotateY(0deg) rotateX(15deg); }
  50% { transform: rotateY(180deg) rotateX(-15deg); }
  100% { transform: rotateY(360deg) rotateX(15deg); }
}

.cube-face {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(16, 20, 30, 0.9);
  border: 2px solid var(--cyan-neon);
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  border-radius: 10px;
}

.face-f { transform: translateZ(40px); }
.face-b { transform: rotateY(180deg) translateZ(40px); }
.face-r { transform: rotateY(90deg) translateZ(40px); }
.face-l { transform: rotateY(-90deg) translateZ(40px); }
.face-t { transform: rotateX(90deg) translateZ(40px); }
.face-bt { transform: rotateX(-90deg) translateZ(40px); }

/* BOTONES SOCIALES */
.social-auth-grid { display: flex; gap: 12px; margin-bottom: 22px; }

.btn-social {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-social svg { width: 18px; height: 18px; }

.btn-social.google:hover { border-color: #ea4335; color: #ea4335; }
.btn-social.facebook:hover { border-color: #1877f2; color: #1877f2; }
.btn-social.vk:hover { border-color: #4a76a8; color: #4a76a8; }

.form-group-sec { margin-bottom: 16px; text-align: left; }
.form-group-sec label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }

.form-group-sec input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
}

.btn-submit-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--cyan-neon), #00b4d8);
  color: #05070a;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

/* PORTAL DE TRANSICIÓN ANIMADA DEL LOGO */
.screen-transition-portal {
  position: fixed;
  inset: 0;
  background: #06070a;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.screen-transition-portal.active {
  opacity: 1;
  pointer-events: auto;
}

.portal-logo-emblem {
  width: 130px;
  height: 130px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon), var(--orange-hype));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.8);
  animation: portalLogoZoom 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes portalLogoZoom {
  0% { transform: scale(0.2) rotateY(0deg); opacity: 0; }
  60% { transform: scale(1.2) rotateY(360deg); opacity: 1; }
  100% { transform: scale(1) rotateY(360deg); opacity: 1; }
}

.portal-text {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-align: center;
}

.portal-loader-bar {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.portal-loader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-neon), var(--orange-hype));
  animation: portalBarFill 2.2s ease-in-out forwards;
}

@keyframes portalBarFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.toast-bar {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #10b981;
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 5000;
}

.toast-bar.show { transform: translateY(0); opacity: 1; }

@media (max-width: 960px) {
  .hero-stage { grid-template-columns: 1fr; text-align: center; padding-top: 150px; }
  .hero-copy h1 { font-size: 2.8rem; }
  .hero-actions-group { justify-content: center; }
  .nav-links { display: none; }
}