/* ==========================================================================
   ARTIZEN LATAM - STYLESHEET
   Estilo: Fanzine / Atlas Científico Retro-Futurista
   Fondo Negro Absoluto, Textura Grunge, Tipografía Técnica e Impactante
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & VARIABLES GLOBALES
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

:root {
  --bg-color: #000000;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  
  /* Valores base de variables de acento (se sobrescriben por sección) */
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --accent-color-rgb: 255, 255, 255;
  
  /* Colores de identidad */
  --color-green: #3da86c;
  --color-green-glow: rgba(61, 168, 108, 0.25);
  
  --color-purple: #8c52ff;
  --color-purple-glow: rgba(140, 82, 255, 0.25);
  
  --color-orange: #e05a2b;
  --color-orange-glow: rgba(224, 90, 43, 0.25);
  
  --color-gold: #cca43b;
  --color-gold-glow: rgba(204, 164, 59, 0.25);
  
  --color-teal: #4dc9b6;
  --color-teal-glow: rgba(77, 201, 182, 0.25);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-white);
  overflow: hidden; /* Controlado por el snap container */
}

body {
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-color);
}

/* --------------------------------------------------------------------------
   2. TEXTURA DE GRANO / RUIDO GLOBAL
   -------------------------------------------------------------------------- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.055;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. SNAP CONTAINER & SECCIÓN ESTRUCTURAL
   -------------------------------------------------------------------------- */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.snap-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 50px 80px 50px;
  height: 100%;
  z-index: 2;
}

.section-layout--col {
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

/* Sobrescribir variables de acento por sección */
.section-intro {
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --accent-color-rgb: 255, 255, 255;
}

.section-green {
  --accent-color: var(--color-green);
  --accent-glow: var(--color-green-glow);
  --accent-color-rgb: 61, 168, 108;
}

.section-purple {
  --accent-color: var(--color-purple);
  --accent-glow: var(--color-purple-glow);
  --accent-color-rgb: 140, 82, 255;
}

.section-orange {
  --accent-color: var(--color-orange);
  --accent-glow: var(--color-orange-glow);
  --accent-color-rgb: 224, 90, 43;
}

.section-gold {
  --accent-color: var(--color-gold);
  --accent-glow: var(--color-gold-glow);
  --accent-color-rgb: 204, 164, 59;
}

.section-projects {
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.2);
  --accent-color-rgb: 255, 255, 255;
}

.section-funds {
  --accent-color: var(--color-teal);
  --accent-glow: var(--color-teal-glow);
  --accent-color-rgb: 77, 201, 182;
  position: relative;
}

.section-funds::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/bg_fondos.png') center / cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. STICKY HEADER
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.header-nav-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.header-nav-btn:hover {
  color: var(--text-white);
}

.lang-toggle {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  color: var(--text-white);
  border-color: var(--text-white);
}

/* Logo image in header */
.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.header-logo-link:hover {
  opacity: 1;
}

.header-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.header-logo-link {
  text-transform: uppercase;
  color: var(--text-gray);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 2px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   5. SIDE INDICATOR DOTS
   -------------------------------------------------------------------------- */
.side-indicator-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 900;
}

.dot-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--text-gray);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  position: relative;
}

.dot-indicator span {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  margin-right: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dot-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  background: transparent;
  border: 1px solid var(--text-gray);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot-indicator:hover span {
  opacity: 1;
  transform: translateX(0);
  color: var(--text-white);
}

.dot-indicator:hover::after {
  background: var(--text-white);
  border-color: var(--text-white);
  transform: scale(1.3);
}

.dot-indicator.active {
  color: var(--text-white);
}

.dot-indicator.active span {
  opacity: 1;
  transform: translateX(0);
}

.dot-indicator.active::after {
  background: var(--text-white);
  border-color: var(--text-white);
  transform: scale(1.5);
}

/* Colores dinámicos para los indicadores al estar en secciones específicas */
body.active-sec-clase-1 .dot-indicator.active::after,
body.active-sec-clase-1 .dot-indicator.active { color: var(--color-green); }
body.active-sec-clase-1 .dot-indicator.active::after { background: var(--color-green); border-color: var(--color-green); }

body.active-sec-clase-2 .dot-indicator.active::after,
body.active-sec-clase-2 .dot-indicator.active { color: var(--color-purple); }
body.active-sec-clase-2 .dot-indicator.active::after { background: var(--color-purple); border-color: var(--color-purple); }

body.active-sec-clase-3 .dot-indicator.active::after,
body.active-sec-clase-3 .dot-indicator.active { color: var(--color-orange); }
body.active-sec-clase-3 .dot-indicator.active::after { background: var(--color-orange); border-color: var(--color-orange); }

body.active-sec-artefacto .dot-indicator.active::after,
body.active-sec-artefacto .dot-indicator.active { color: var(--color-gold); }
body.active-sec-artefacto .dot-indicator.active::after { background: var(--color-gold); border-color: var(--color-gold); }

body.active-sec-proyectos .dot-indicator.active::after,
body.active-sec-proyectos .dot-indicator.active { color: var(--text-white); }
body.active-sec-proyectos .dot-indicator.active::after { background: var(--text-white); border-color: var(--text-white); }

body.active-sec-fondos .dot-indicator.active::after,
body.active-sec-fondos .dot-indicator.active { color: var(--color-teal); }
body.active-sec-fondos .dot-indicator.active::after { background: var(--color-teal); border-color: var(--color-teal); }


/* --------------------------------------------------------------------------
   6. SECCIÓN 0: INTRO
   -------------------------------------------------------------------------- */
.section-intro {
  text-align: center;
  align-items: center;
  padding: 0 20px;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.carousel-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: carouselFade 20s infinite;
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 5s; }
.carousel-slide:nth-child(3) { animation-delay: 10s; }
.carousel-slide:nth-child(4) { animation-delay: 15s; }

@keyframes carouselFade {
  0% { opacity: 0; }
  5% { opacity: 0.25; }
  20% { opacity: 0.25; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 20px 40px;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-gray);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.intro-source-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-gray);
  margin-bottom: 18px;
  opacity: 0.7;
}

.intro-artizen-link {
  color: var(--text-gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.intro-artizen-link:hover {
  color: #3ecf6e;
  border-bottom-color: #3ecf6e;
}

.intro-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: 6rem;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 10px;
  filter: url(#grunge-filter);
  color: var(--text-white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.intro-tagline-large {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--text-gray);
  text-transform: lowercase;
  margin-bottom: 30px;
}

.separator-double {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 160px;
  margin-bottom: 35px;
}

.separator-double span {
  height: 1px;
  background-color: var(--text-white);
  width: 100%;
}

.intro-paragraph {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-white);
  opacity: 0.9;
  text-align: center;
  max-width: 680px;
  margin-bottom: 45px;
  font-weight: 400;
}

.intro-paragraph strong {
  font-weight: 700;
}

.intro-question {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text-white);
  margin-bottom: 20px;
  font-weight: 700;
}

.intro-cta-wrapper {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.intro-button {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--text-white);
  background: transparent;
  color: var(--text-white);
  padding: 14px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 700;
}

.intro-button:hover {
  background: var(--text-white);
  color: #000000;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.intro-button.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-gray);
  padding: 10px 24px;
  font-size: 0.75rem;
  font-weight: 400;
}

.intro-button.secondary:hover {
  border-color: var(--text-white);
  color: #000000;
}

.button-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.intro-button:hover .button-arrow {
  transform: translateY(3px);
}

/* Elementos decorativos abstractos de la Intro */
.intro-decorations-left {
  position: absolute;
  left: 60px;
  bottom: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
  opacity: 0.4;
  align-items: center;
}

.intro-decorations-right {
  position: absolute;
  right: 60px;
  top: 120px;
  z-index: 2;
  opacity: 0.4;
}

.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  opacity: 0.5;
}

.scroll-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-gray);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-white), transparent);
  animation: scrollPulse 2s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   7. SECCIÓN DE CLASES (VERDE, PÚRPURA, NARANJA)
   -------------------------------------------------------------------------- */
.class-section {
  background-color: var(--bg-color);
}

.visual-col {
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 30px;
  height: 100%;
}

.patterns-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.pattern-separator {
  width: 25px;
  height: 1px;
  background-color: var(--accent-color);
  opacity: 0.4;
}

/* Elemento Anillos Concéntricos */
.rings-pattern {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.85;
}

/* Elemento Damero (Checkerboard) */
.checkerboard {
  width: 36px;
  height: 80px;
  background-image: 
    linear-gradient(45deg, var(--accent-color) 25%, transparent 25%), 
    linear-gradient(-45deg, var(--accent-color) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, var(--accent-color) 75%), 
    linear-gradient(-45deg, transparent 75%, var(--accent-color) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
  opacity: 0.85;
}

/* Elemento Líneas Verticales */
.vertical-lines {
  display: flex;
  gap: 5px;
  height: 70px;
}

.vertical-lines span {
  width: 1px;
  height: 100%;
  background-color: var(--accent-color);
  opacity: 0.7;
}

/* Flyer Borde Recuadro */
.flyer-frame {
  position: relative;
  border: 1px solid var(--accent-color);
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.flyer-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px var(--accent-glow);
  border-color: var(--accent-color);
}

.flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.zoom-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.zoom-badge svg {
  width: 14px;
  height: 14px;
}

.flyer-frame:hover .zoom-badge {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
}

.flyer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  width: 100%;
}

.dl-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.dl-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-gray);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  transition: all 0.3s ease;
}

.dl-btn:hover {
  color: var(--text-white);
  border-color: var(--text-white);
}

/* Content Column */
.content-col {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  height: 100%;
  padding-left: 20px;
}

.class-number-bg {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  font-family: 'Oswald', sans-serif;
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.section-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.class-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: var(--text-white);
  z-index: 2;
}

.class-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  margin-bottom: 30px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  width: 100%;
  max-width: 450px;
  z-index: 2;
}

.meta-item {
  display: flex;
  gap: 8px;
}

.meta-label {
  color: var(--accent-color);
  font-weight: 700;
}

.meta-value {
  color: var(--text-white);
}

.meta-divider {
  color: rgba(255, 255, 255, 0.2);
}

.class-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 25px;
  max-width: 500px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.class-desc:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.04);
}

.class-highlights {
  list-style: none;
  margin-bottom: 30px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-gray);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
  width: 100%;
}

.class-highlights li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 12px;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.class-highlights li:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.06);
  transform: translateY(-2px);
}

.class-highlights li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.class-highlights li strong {
  color: var(--accent-color);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  display: block;
}

.class-highlights li br {
  display: none;
}

.class-highlights li span {
  color: var(--accent-color);
  font-weight: 700;
}

/* Botones CTA */
.action-wrapper {
  z-index: 2;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--accent-color);
  background: transparent;
  color: var(--accent-color);
  padding: 12px 26px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-button:hover {
  background: var(--accent-color);
  color: #000000;
  box-shadow: 0 0 25px var(--accent-glow);
}

.cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* Separadores de Sección */
.section-divider-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-divider-lines span {
  height: 1px;
  background-color: var(--accent-color);
  width: 100%;
  opacity: 0.35;
}

.section-divider-lines span:nth-child(1) { opacity: 0.5; }
.section-divider-lines span:nth-child(2) { opacity: 0.3; }
.section-divider-lines span:nth-child(3) { opacity: 0.15; }

/* --------------------------------------------------------------------------
   8. SECCIÓN FINAL: COMPRA ARTEFACTO & MAPA
   -------------------------------------------------------------------------- */
.section-gold {
  position: relative;
}

.final-layout {
  padding-bottom: 50px;
}

/* =============================================
   SECTION: PROYECTOS ACOMPAÑADOS
   ============================================= */
.section-projects .content-col {
  flex: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.project-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.04);
  z-index: 2;
}

.project-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  inset: 0;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent-color);
  margin-bottom: 3px;
  letter-spacing: 0.1em;
}

.project-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  line-height: 1.2;
}

.project-card-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  color: var(--text-gray);
  margin-bottom: 4px;
  display: none;
}

.project-card-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-link {
  opacity: 1;
}

.projects-desc {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.projects-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 500px;
}

.ph-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.ph-item:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
}

.ph-icon {
  color: var(--accent-color);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* =============================================
   END: PROYECTOS ACOMPAÑADOS
   ============================================= */

/* =============================================
   SECTION: FONDOS DE LA COMUNIDAD
   ============================================= */
.section-funds .content-col {
  flex: 1;
}

.fund-card-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.fund-card-img-link {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 380px;
  width: 100%;
}

.fund-card-img-link:hover {
  border-color: var(--accent-color);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(var(--accent-color-rgb), 0.15);
}

.fund-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.funds-desc {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.funds-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 500px;
}

.fh-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  transition: all 0.3s ease;
}

.fh-item:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.04);
}

.fh-icon {
  color: var(--accent-color);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* =============================================
   END: FONDOS DE LA COMUNIDAD
   ============================================= */

.final-visual {
  flex: 1.1;
}

.map-frame {
  border-color: var(--accent-color);
}

.map-img {
  /* Filtro vintage dorado */
  filter: contrast(1.05) brightness(0.95);
}

.final-content {
  flex: 0.9;
}

.final-content .class-desc strong {
  color: var(--accent-color);
}

.artefacto-cta-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  border-color: var(--accent-color) !important;
  background: rgba(var(--accent-color-rgb), 0.06) !important;
  margin-top: 10px;
}

.buy-button {
  padding: 16px 36px;
  font-size: 0.9rem;
  border-width: 2px;
  animation: buttonPulse 3s infinite;
}

/* --------------------------------------------------------------------------
   9. MINIMALIST FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  position: relative;
  width: 100%;
  background-color: #000000;
  z-index: 10;
  padding: 30px 50px;
}

.footer-divider-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 20px;
  width: 100%;
}

.footer-divider-lines span {
  height: 1px;
  background-color: var(--color-gold);
  width: 100%;
}

.footer-divider-lines span:nth-child(1) { opacity: 0.5; }
.footer-divider-lines span:nth-child(2) { opacity: 0.2; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
}

.footer-credits {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  text-align: right;
}

/* --------------------------------------------------------------------------
   10. LIGHTBOX / VENTANA MODAL DE EXPANSIÓN
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: var(--text-white);
  cursor: pointer;
  z-index: 10010;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.lightbox-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 85%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 1px solid var(--accent-color);
  padding: 10px;
  background: #000000;
  object-fit: contain;
  box-shadow: 0 0 50px var(--accent-glow);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-top: 20px;
  text-transform: uppercase;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. ANIMACIONES & EFECTOS SUTILES
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 rgba(204, 164, 59, 0); }
  50% { box-shadow: 0 0 20px rgba(204, 164, 59, 0.4); }
  100% { box-shadow: 0 0 0 rgba(204, 164, 59, 0); }
}

/* Clases de Entrada al Scroll (Controladas por JS) */
.snap-section .content-col,
.snap-section .visual-col,
.snap-section .intro-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.snap-section.in-view .content-col,
.snap-section.in-view .intro-content {
  opacity: 1;
  transform: translateY(0);
}

.snap-section.in-view .visual-col {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
/* Estilos de Registro por Cohortes (Julio/Agosto) */
.sessions-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
  margin-bottom: 20px;
  z-index: 2;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.session-row:hover {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.04);
}

.session-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.session-badge-mini {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
  border-radius: 1px;
}

.session-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-white);
}

.session-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  font-weight: 700;
  color: #000000;
  background-color: var(--accent-color);
  padding: 6px 14px;
  border-radius: 1px;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-color);
}

.session-btn:hover {
  background-color: transparent;
  color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.session-btn-soon {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-gray);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 1px;
  opacity: 0.6;
  cursor: default;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE DESIGN (MOBILE-FIRST & TABLET INTERMEDIATE)
   -------------------------------------------------------------------------- */

/* Tablet & Pantallas Medianas (max-width: 1024px) */
@media (max-width: 1024px) {
  .main-header {
    padding: 0 30px;
  }
  
  .header-nav {
    display: none; /* Ocultar menú en mobile/tablet para priorizar minimalismo */
  }
  
  .side-indicator-nav {
    right: 20px;
  }
  
  .section-layout {
    flex-direction: column;
    gap: 40px;
    padding: 100px 30px 40px 30px;
  }
  
  .section-layout--col {
    gap: 30px;
  }
  
  .visual-col {
    order: 1;
    width: 100%;
    gap: 20px;
  }
  
  .content-col {
    order: 2;
    width: 100%;
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  
  .class-number-bg {
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 10rem;
  }
  
  .class-meta {
    justify-content: center;
    margin: 0 auto 20px auto;
  }
  
  .class-desc {
    margin: 0 auto 25px auto;
  }
  
  .patterns-sidebar {
    display: none; /* Ocultar lateral de patrones en mobile */
  }
  
  .flyer-frame {
  max-width: 500px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-width: 100%;
  }

  .intro-title {
    font-size: 4rem;
  }
  
  .intro-tagline-large {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
  }
  
  .intro-decorations-left, .intro-decorations-right {
    display: none;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    overflow: visible !important;
    overflow-y: scroll !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100%;
    position: static;
    -webkit-overflow-scrolling: touch;
  }

  .snap-container {
    overflow: visible !important;
    height: auto !important;
    position: static;
    scroll-snap-type: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
  }

  .snap-section {
    min-height: auto !important;
    height: auto;
    padding: 80px 0;
    scroll-snap-align: none;
    scroll-snap-stop: none;
    justify-content: flex-start;
  }

  main {
    overflow: visible !important;
  }
  
  .section-layout {
    padding: 40px 20px;
    gap: 30px;
  }
  
  .main-header {
    height: 70px;
    padding: 0 20px;
  }

  .header-nav-center {
    gap: 20px;
  }

  .header-nav-btn {
    font-size: 0.55rem;
  }

  .lang-toggle {
    font-size: 0.5rem;
    padding: 3px 6px;
  }

  .header-logo {
    font-size: 1.4rem;
  }
  
  
  .side-indicator-nav {
    display: none; /* Ocultar en mobile */
  }
  
  .intro-title {
    font-size: 3rem;
  }
  
  .intro-paragraph {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .flyer-frame {
    max-width: 100%;
  }
  
  .class-title {
    font-size: 2rem;
  }
  
  .class-meta {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  
  .class-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    max-width: 100%;
  }

  .project-card-title {
    font-size: 0.85rem;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .main-footer {
    padding: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-copy {
    text-align: center;
  }
}

/* CLASE CARDS */
.class-cards-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.month-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-color);
  text-align: center;
  width: 100%;
  margin-bottom: 25px;
}

.class-card {
  display: flex;
  flex-direction: column;
  border: 1px solid;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  position: relative;
}

.class-card:hover {
  transform: translateY(-6px);
}

.class-card.past {
  filter: grayscale(1);
  opacity: 0.65;
}

.class-card.past:hover {
  transform: none;
  cursor: default;
}

.class-card.past .class-card-btn {
  pointer-events: none;
}

.class-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.class-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  pointer-events: none;
}

.class-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.class-card:hover .class-card-img img {
  transform: scale(1.1);
}

.class-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.class-card-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.class-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.class-card-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.class-card-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid;
  padding: 6px 14px;
  display: inline-block;
  align-self: flex-start;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.class-card-btn:hover {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 1024px) {
  .class-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .class-cards-row {
    flex-direction: column;
    align-items: center;
  }
  .class-card {
    min-width: 100%;
    max-width: 100%;
  }
}
