/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/css.css to edit this template
*/
/* 
    Created on : 20/05/2026, 3:16:25 p. m.
    Author     : Gabyn
*/

/* ============================================
   ENIGMA — Cursor, Nav, Hero
   ============================================ */

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              background 0.3s;
  mix-blend-mode: normal;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201,137,42,0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.cursor.hovered { width: 18px; height: 18px; background: var(--gold-light); }
.cursor-ring.hovered { width: 56px; height: 56px; border-color: var(--gold); }

@media (max-width: 768px) {
  .cursor, .cursor-ring { display: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.5s var(--ease-out),
              background 0.5s,
              border-color 0.5s;
}

#navbar.scrolled {
  padding: 14px 80px;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201,137,42,0.12);
}

/* Logo en nav */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: height 0.4s var(--ease-out);
}

#navbar.scrolled .nav-logo-img {
  height: 42px;
}

/* Fallback si no hay imagen */
.nav-logo-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--font-script);
  font-size: 0.9rem;
  color: var(--gold-light);
  line-height: 1.2;
  margin-top: 2px;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-med);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-med) var(--ease-out);
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
  padding: 10px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu a:hover { color: var(--white); }

.mobile-logo {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-logo img {
  height: 70px;
  width: auto;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #navbar { padding: 18px 28px; }
  #navbar.scrolled { padding: 12px 28px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 60%, rgba(61,18,6,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(120,70,10,0.18) 0%, transparent 55%),
    linear-gradient(170deg, #000 0%, #080500 40%, #060200 70%, #000 100%);
}

/* Partículas doradas */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0%   { opacity: 0;   transform: translateY(100vh) translateX(0px); }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.2; }
  100% { opacity: 0;   transform: translateY(-40px) translateX(20px); }
}

/* Ornamentos laterales SVG */
.hero-ornament {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  opacity: 0.12;
  pointer-events: none;
}
.hero-ornament-left  { left: 3%; }
.hero-ornament-right { right: 3%; transform: translateY(-50%) scaleX(-1); }

/* Contenido centrado */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

/* Logo grande en hero */
.hero-logo-img {
  width: 220px;
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 60px rgba(201,137,42,0.4));
  opacity: 0;
  animation: fadeUp 1s 0.3s var(--ease-out) forwards;
}

/* Subtítulo eyebrow */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 1s 0.5s var(--ease-out) forwards;
}

/* Título principal — ENIGMA */
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow:
    0 0 80px rgba(201,137,42,0.35),
    0 0 200px rgba(201,137,42,0.12);
  opacity: 0;
  animation: fadeUp 1s 0.6s var(--ease-out) forwards;
}

/* Script tagline */
.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--gold-light);
  display: block;
  margin-top: 4px;
  opacity: 0;
  animation: fadeUp 1s 0.85s var(--ease-out) forwards;
}

/* Línea divisora */
.hero-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 28px auto;
  opacity: 0;
  animation: fadeUp 1s 1s var(--ease-out) forwards;
}

/* Descripción */
.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.9;
  max-width: 480px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s 1.1s var(--ease-out) forwards;
}

/* CTA Buttons */
.hero-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1.25s var(--ease-out) forwards;
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-cue span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(201,137,42,0.6);
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-breath 2.2s ease-in-out infinite;
}

@keyframes scroll-breath {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  to { opacity: 1; }
}