/* ==========================================================================
   LAYOUT Y ESTRUCTURA (Header, Footer, Grid)
   ========================================================================== */

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }

/* 1. TEXTURA Y FONDOS (El WOW Factor visual) */
.noise-overlay {
  transform: translateZ(0);
  will-change: transform;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

.mesh-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100vh;
  overflow: hidden; z-index: -1;
}
.mesh-blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: floatMesh 12s ease-in-out infinite alternate;
}
.mesh-1 { width: 40vw; height: 40vw; background: #DBEAFE; top: -10%; right: -5%; }
.mesh-2 { width: 35vw; height: 35vw; background: #E0E7FF; bottom: 10%; left: -10%; animation-delay: -4s; }
.mesh-3 { width: 25vw; height: 25vw; background: #F3E8FF; top: 40%; left: 40%; animation-delay: -8s; opacity: 0.7; }

@keyframes floatMesh {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  100% { transform: translateY(40px) scale(1.1) rotate(15deg); }
}

/* 2. HEADER */
.header-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; }
.header { width: 100%; transition: all 0.4s ease; border-bottom: 1px solid transparent; }
.header__inner { max-width: 1200px; margin: 0 auto; padding: 1.5rem; display: flex; justify-content: flex-end; align-items: center; transition: padding 0.4s ease; position: relative; }
.header.scrolled { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.header.scrolled .header__inner { padding: 1rem 1.5rem; }

.header__inner .logo {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-main);
  font-weight: 800; font-size: 2.5rem;
  text-decoration: none; letter-spacing: -0.06em;
  z-index: 1001;
}
@media (min-width: 1024px) {
  .header__inner .logo { left: 4rem; font-size: 3.2rem; }
}

.logo-text {
  background: linear-gradient(110deg, #09090b 30%, #a1a1aa 50%, #09090b 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineLogo 5s linear infinite;
}
.logo-dot {
  color: var(--c-accent-blue);
  -webkit-text-fill-color: var(--c-accent-blue);
  text-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
}
@keyframes shineLogo { to { background-position: 200% center; } }

/* Navegación Móvil/Desktop */
.menu-btn {
  display: block; width: 28px; height: 18px; position: relative;
  z-index: 1001; background: transparent; border: none; cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--c-text-dark); transition: var(--t-smooth); border-radius: 2px;
}
.menu-btn span:nth-child(1) { top: 0%; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0%; }
.menu-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (min-width: 768px) { .menu-btn { display: none; } }

.nav {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  opacity: 0; pointer-events: none; visibility: hidden;
}
.nav.active { right: 0; opacity: 1; pointer-events: auto; visibility: visible; }
.nav-link { font-size: 1.5rem; font-weight: 600; color: var(--c-text-dark); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; }

@media (min-width: 768px) {
  .nav {
    position: static; width: auto; height: auto; background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    flex-direction: row; gap: 2.5rem; right: 0; transition: none; display: flex; align-items: center; opacity: 1; pointer-events: auto; visibility: visible;
  }
  .nav-link { font-size: 0.95rem; font-weight: 600; text-transform: none; color: var(--c-text-muted); letter-spacing: normal; }
  .nav-link:hover { color: var(--c-text-dark); }
}

/* 3. FOOTER PREMIUM */
.footer { background: #09090b; padding: 6rem 0 3rem; position: relative; overflow: hidden; color: #fff; }
.footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 1px; background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.4), transparent); }
.footer-grid { display: grid; gap: 4rem; justify-content: space-between; position: relative; z-index: 1; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo {
  font-family: var(--font-main);
  font-weight: 800; font-size: 2.2rem; color: #fff;
  text-decoration: none; letter-spacing: -0.05em;
  display: inline-block; margin-bottom: 0.5rem;
}
.footer-desc { color: #a1a1aa; font-size: 1.05rem; max-width: 350px; line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); font-weight: 700; margin-bottom: 1rem; }
.footer-col a { color: #e4e4e7; font-weight: 500; text-decoration: none; transition: all 0.3s; display: inline-block; }
.footer-col a:hover { color: var(--c-accent-blue); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4rem; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.9rem; color: #71717a; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

.form-label-premium { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--c-text-dark); }
.form-input-premium { width: 100%; padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.8); font-family: inherit; font-size: 1rem; transition: all 0.3s; }
.form-input-premium:focus { outline: none; border-color: var(--c-accent-blue); background: var(--c-white); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }
  