/* CSS Global Variables */
:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Chillax', sans-serif;

  /* Brand Colors Exactos */
  --c-teal: #1B998B;
  --c-tierra: #804E49;
  --c-ocre: #EA8C55;
  --c-bg-dark: #FDFBF7; /* Fondo base claro y cálido */
  --c-text-dark: #2C363F; /* Texto oscuro para legibilidad */
  --c-white: #ffffff;

  /* Glassmorphism Variables para Light Theme */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
  --glass-blur: blur(20px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg-dark);
  color: var(--c-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Tipografía */
.font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.text-gradient-accent {
  background: linear-gradient(90deg, var(--c-ocre), var(--c-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-white { color: var(--c-text-dark); }
.text-tierra { color: var(--c-tierra); }
.text-teal { color: var(--c-teal); }
.text-ocre { color: var(--c-ocre); }

/* Background Dinámico de Colores Animados (Mesh Gradient) */
.mesh-bg {
  position: fixed;
  top: 0; left: 0; 
  width: 100vw; height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--c-bg-dark);
}

.mesh-blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  animation: floatFluid 25s infinite ease-in-out alternate;
  opacity: 0.8;
}

.blob-1 {
  background: var(--c-teal);
  width: 55vw; height: 55vw;
  top: -15%; left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  background: var(--c-tierra);
  width: 65vw; height: 65vw;
  bottom: -20%; right: -15%;
  animation-delay: -7s;
}

.blob-3 {
  background: var(--c-ocre);
  width: 45vw; height: 45vw;
  top: 30%; left: 35%;
  animation-delay: -14s;
}

@keyframes floatFluid {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(12vw, -12vh) scale(1.1) rotate(15deg); }
  66% { transform: translate(-8vw, 15vh) scale(0.9) rotate(-5deg); }
  100% { transform: translate(5vw, 5vh) scale(1.2) rotate(10deg); }
}

/* Contenedor Responsivo */
.app-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Glass UI Component Base */
.glass-panel, .glass-card, .glass-nav, .glass-footer {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Navbar */
.glass-nav {
  position: sticky;
  top: 1.5rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  margin-top: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-nuble { color: var(--c-teal); }
.logo-territorio { color: var(--c-text-dark); font-weight: 500;}
.logo-vivo { color: var(--c-ocre); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--c-text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.nav-links a.btn-primary { color: white; }
.nav-links a:not(.btn-primary):hover { opacity: 0.6; }

/* Botones */
.btn-primary {
  background: linear-gradient(135deg, var(--c-teal), #16aa99);
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 153, 139, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text-dark);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 1px solid var(--c-ocre);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-secondary:hover { 
  background: var(--c-ocre); 
  box-shadow: 0 8px 25px rgba(234, 140, 85, 0.4);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.hero-content {
  text-align: center;
  max-width: 900px;
  border-radius: 30px;
  padding: 4rem 3rem;
}
.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  background: linear-gradient(180deg, var(--c-teal), #0E4E47);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.35rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Pilares */
.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.glass-card { 
  padding: 3rem 2.5rem; 
  text-align: left; 
  border-radius: 20px;
}
.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: rgba(255,255,255,0.5);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}
.glass-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.glass-card p { color: #4a5568; font-size: 1rem; }

/* Viraliza Section */
.ecosystem-section .glass-panel {
  border-radius: 30px;
  padding: 4rem;
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-content h2 {
  font-size: 3.2rem;
  margin-bottom: 1.8rem;
  line-height: 1.1;
}
.split-content p { 
  margin-bottom: 1.5rem; 
  color: #4a5568; 
  font-size: 1.1rem;
}
.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.placeholder-text {
  color: #4a5568;
  font-style: italic;
}

/* Footer & Sponsors */
.glass-footer {
  margin-bottom: 2rem;
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  border-radius: 30px;
}
.footer-top h3 { 
  margin-bottom: 3rem; 
  font-size: 1.8rem;
  opacity: 0.9;
}
.sponsors-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.sponsor-logo svg {
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.sponsor-logo svg:hover {
  opacity: 1;
  transform: translateY(-5px);
}
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 2rem;
  color: #4a5568;
  font-size: 0.95rem;
}

/* JS Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}
.hover-tilt {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.hover-tilt:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.5);
  border-color: rgba(255,255,255,0.15);
}
.hover-scale { transition: transform 0.5s ease; }
.hover-scale:hover { transform: scale(1.02); }

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-content h1 { font-size: 3rem; }
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links { display: none; }
  .glass-nav { justify-content: center; }
  .app-container { gap: 4rem; padding: 0 1rem; }
  .ecosystem-section .glass-panel { padding: 2rem; }
  .hero-content { padding: 3rem 1.5rem; }
}
