/* ═══ BASE ═══
   Reset, tipografía, navegación, hero, menú móvil y pie. Común a todas las páginas. */

/* ── Reset y base del documento ── */
@media (pointer: fine) {
  * { cursor: none; }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Cursor personalizado ── */
/* CUSTOM CURSOR */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--neon-green);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, mix-blend-mode 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor.hovering {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 255, 133, 0.5);
  mix-blend-mode: normal;
  backdrop-filter: blur(4px);
}

/* ── Foco visible (accesibilidad) ── */
/* FOCUS VISIBLE FOR ACCESSIBILITY */
*:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

/* ── Animaciones de aparición ── */
/* ANIMACIONES BASE */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Barra de navegación ── */
/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: padding 0.5s ease, background 0.5s ease, backdrop-filter 0.5s ease;
}

nav.scrolled {
  padding: 1rem 4rem;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
}
.logo span { color: var(--neon-green); }

.menu-btn {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding: 5px 0;
}

.menu-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--neon-green);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.menu-btn:hover::after,
.menu-btn.active::after {
  transform: translateX(0);
}

/* ── Hero ── */
/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1595435934249-5df7ed68661c?q=80&w=2000&auto=format&fit=crop') center/cover;
  opacity: 0.3;
  filter: grayscale(80%) contrast(120%);
  transform: scale(1.1);
  animation: slowZoom 20s infinite alternate;
  z-index: -1;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.85;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  position: relative;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  max-width: 600px;
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1.3s forwards;
}

.btn-hero {
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.btn-hero:hover { transform: translateY(-3px); }
.btn-hero.primary { background: var(--neon-green); color: black; }
.btn-hero.primary:hover { box-shadow: 0 10px 30px rgba(0,255,133,0.25); }
.btn-hero.outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-hero.outline:hover { border-color: white; box-shadow: 0 10px 30px rgba(255,255,255,0.1); }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes textReveal {
  to { transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 1s 1.8s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--neon-green);
  transform: translateY(-100%);
  animation: scrollDrop 2s infinite ease-in-out;
}

@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  50%, 100% { transform: translateY(100%); }
}

/* ── Marquee ── */
/* MARQUEE */
.marquee-container {
  background: var(--neon-green);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  transform: rotate(-2deg) scale(1.05);
  margin: 4rem 0;
}

.marquee {
  display: flex;
  animation: scrollMarquee 20s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #000;
  text-transform: uppercase;
  padding: 0 2rem;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Menú móvil ── */
/* MOBILE MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s;
}

.hamburger.open div:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open div:nth-child(2) { opacity: 0; }
.hamburger.open div:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  #navLinks { display: none !important; }
  nav.mobile-open {
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    position: absolute;
    top: 0; left: 0; right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  nav.mobile-open #navLinks {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }
}

/* ── Secciones de página (navegación SPA) ── */
/* PAGE SECTIONS */
.page-section {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding-top: 100px;
}

.page-section.active {
  display: block;
  opacity: 1;
}

/* ── Pie de página ── */
/* FOOTER */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 4vw;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--neon-green); }

/* ── Migas de pan ── */
/* BREADCRUMB */
.breadcrumb {
  padding: 0.8rem 4vw;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--neon-green);
  text-decoration: none;
  transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 0.7; }

