/* ========================================
   MAIN STYLES
   ======================================== */

/* === PARTICLES BACKGROUND === */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
}

/* === INTERACTIVE ELEMENTS PRIORITY === */
/* Elementos que necesitan estar por encima de las partículas para ser clickeables */
button, 
a, 
input, 
select, 
textarea,
.btn,
.nav-link,
.interactive-link,
.patreon-link,
[onclick],
[href] {
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

/* Contenedores que necesitan preservar la interactividad */
.navigation,
.nav-menu,
.footer-links {
  position: relative;
  z-index: 100;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-6xl) var(--space-md);
}

.hero-content {
  max-width: var(--container-6xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: 100%;
}

.hero-text {
  z-index: var(--z-10);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: var(--font-primary-weight-black);
  line-height: var(--leading-none);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-white), var(--color-neural-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--color-neural-glow);
}

.hero-logo {
  height: clamp(2rem, 5vw, 5rem);
  width: auto;
  margin-bottom: var(--space-lg);
  filter: brightness(0) invert(1);
  text-shadow: 0 0 30px var(--color-neural-glow);
}

@media (max-width: 768px) {
  .hero-logo {
    height: clamp(4rem, 8vw, 8rem); /* Make hero logo much larger on mobile */
  }
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-weight: var(--font-secondary-weight-regular);
  font-size: var(--text-3xl);
  color: var(--color-neural-primary);
  margin-bottom: var(--space-xl);
  text-transform: none;
  font-style: italic;
  letter-spacing: 0.05em;
}

.hero-description {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  line-height: var(--leading-relaxed);
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-circle {
  width: 400px;
  height: 400px;
  border: 2px solid var(--color-neural-primary);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite;
}

.hero-circle::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--color-neural-dim);
  border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
}

.hero-circle::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--color-neural-subtle);
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}

.pulse-animation {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--color-neural-primary), transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  
  .hero-circle {
    width: 300px;
    height: 300px;
  }
  
  .hero-circle::before {
    width: 220px;
    height: 220px;
  }
  
  .hero-circle::after {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-6xl) var(--space-md) var(--space-4xl) var(--space-md); /* Más espacio arriba en móvil */
    padding-top: calc(80px + var(--space-6xl)); /* Añadir espacio para navbar + padding extra */
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-circle {
    width: 250px;
    height: 250px;
  }
}

/* === FILM SECTION === */
.film-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

.film-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin-top: var(--space-2xl);
}

.film-story h3,
.film-impact h3 {
  color: var(--color-neural-primary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-3xl);
}

.impact-goals {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.goal-item {
  padding: var(--space-lg);
  border-left: 3px solid var(--color-neural-primary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.goal-item h4 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
}

.goal-item p {
  margin: 0;
  font-size: var(--text-base);
}

@media (max-width: 768px) {
  .film-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* === CREATOR SECTION === */
.creator-section {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.creator-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-4xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.creator-image .creator-photo {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-neural-primary);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3);
  transition: var(--transition-all);
}

.creator-image .creator-photo:hover {
  transform: scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 255, 255, 0.5);
}

.creator-bio h3 {
  color: var(--color-neural-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--text-2xl);
}

.creator-origin {
  font-family: var(--font-secondary);
  font-weight: var(--font-secondary-weight-regular);
  color: var(--color-neural-accent);
  margin-bottom: var(--space-xl);
  font-size: var(--text-lg);
}

.bio-content p {
  margin-bottom: var(--space-lg);
}

.bio-content strong {
  color: var(--color-white);
}

@media (max-width: 768px) {
  .creator-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .creator-image .creator-photo {
    width: 250px;
    height: 300px;
    margin: 0 auto;
  }
  
  .nav-cta {
    margin-left: 0 !important;
    margin-top: var(--space-sm) !important;
  }
}

/* === COLLABORATORS SECTION === */
.collaborators-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  padding-top: 0; /* No top padding */
}

.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.collaborator-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.collaborator-logo {
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: var(--transition-all);
}

.collaborator-logo:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* === SPONSORS SECTION === */
.sponsors-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  padding-top: 0; /* No top padding */
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo {
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: var(--transition-all);
}

.sponsor-logo:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Loaded state animation */
.collaborator-item, .sponsor-item {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-all);
}

.collaborator-item.loaded, .sponsor-item.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* === SUPPORT SECTION === */
.support-section {
  background: #ffffff !important; /* White background with !important */
  border-top: 2px solid #cccccc;
  border-bottom: 2px solid #cccccc;
  position: relative;
  color: #000000; /* Black text */
  z-index: 300 !important; /* Above particles (z-index: 200) */
  overflow: hidden; /* Clip neural effect to section */
}

/* Invert section title and subtitle colors in support section */
.support-section .section-title {
  background: linear-gradient(135deg, #000000, #333333); /* Black gradient instead of white */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.support-section .section-subtitle {
  color: #333333; /* Dark gray instead of light gray */
}

/* Neural network effect overlay for white background support section */
.support-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.06) 3px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.07) 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 70% 20%, rgba(0, 0, 0, 0.055) 2.5px, transparent 2.5px),
    linear-gradient(45deg, transparent 49.5%, rgba(0, 0, 0, 0.025) 50%, transparent 50%),
    linear-gradient(-45deg, transparent 49.5%, rgba(0, 0, 0, 0.02) 50%, transparent 50%);
  background-size:
    140px 140px,
    220px 220px,
    110px 110px,
    180px 180px,
    40px 40px,
    80px 80px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  animation: neuralPulseBlack 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes neuralPulseBlack {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.25;
    transform: scale(0.98);
  }
}

.support-content {
  display: flex;
  justify-content: center;
  margin-top: var(--space-2xl);
  position: relative;
  z-index: 5; /* ensure content sits above neural effect */
}

/* Particles canvas for support section */
.particles-section-bg,
#particles-apoyo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* behind content but above section bg */
  pointer-events: none;
}

/* Ensure the global particles don't overlap local section when in view */
.support-section {
  isolation: isolate; /* create stacking context so local particles stay within section */
}

.support-text-center {
  max-width: 800px;
  text-align: center;
}

.support-intro {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.support-goals-title {
  color: #000000; /* Black instead of neural primary */
  margin: var(--space-2xl) 0 var(--space-lg) 0;
  font-size: var(--text-2xl);
  text-align: center;
}

.patreon-link {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: var(--font-secondary-weight-regular);
  font-size: var(--text-xl);
  color: #ffffff; /* White text */
  background: #000000; /* Black background (inverted) */
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  font-style: italic;
  transition: var(--transition-all);
  z-index: 100;
  position: relative;
}

.patreon-link:hover {
  background: #333333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.support-goals {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 var(--space-2xl) 0;
  text-align: left;
  display: inline-block;
}

.support-goals li {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: rgba(0, 0, 0, 0.1); /* Light black background on white section */
  border-left: 3px solid #000000; /* Black border */
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #000000; /* Black text */
}

.support-goals li:before {
  content: '→';
  color: #000000; /* Black arrow */
  font-weight: bold;
  margin-right: var(--space-sm);
}

.cta-final {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid var(--color-neural-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  margin-top: var(--space-3xl);
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-neural-primary), var(--color-neural-accent), var(--color-neural-primary));
  border-radius: var(--radius-2xl);
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    opacity: 0.5;
    filter: blur(2px);
  }
  100% {
    opacity: 0.8;
    filter: blur(4px);
  }
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-primary-weight-black);
  color: var(--color-neural-primary);
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 10px var(--color-neural-glow);
}

.cta-description {
  font-size: var(--text-lg);
  color: var(--color-gray-200);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-subtitle {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  font-style: italic;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s ease;
}

.btn-glow:hover::before {
  left: 100%;
}

@media (max-width: 768px) {
  .support-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* === FOOTER === */
.footer {
  background: var(--color-gray-900);
  border-top: 1px solid var(--color-gray-800);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: var(--space-5xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-xl);
}

.footer-info h3 {
  color: var(--color-neural-primary);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xl);
}

.footer-logo {
  height: 24px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
  transition: var(--transition-all);
}

.footer-logo:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.footer-info p {
  color: var(--color-gray-400);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  font-family: var(--font-secondary);
  font-weight: var(--font-secondary-weight-regular);
  color: var(--color-gray-300);
  transition: var(--transition-all);
}

.footer-links a:hover {
  color: var(--color-neural-primary);
}

.footer-links .instagram-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-links .instagram-link svg {
  transition: var(--transition-all);
}

.footer-links .instagram-link:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
}

.footer-bottom p {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  margin: 0;
}

.footer-bottom a {
  color: var(--color-gray-500);
  text-decoration: none;
  transition: var(--transition-all);
}

.footer-bottom a:hover {
  color: var(--color-neural-primary);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
    align-items: center;
  }
  
  .footer-info {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}