* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary-color: #7833FF;
    --secondary-color: #FC2E6A;
    --accent-color: #14DE95;
    --background-dark: #060703;
    --background-variant: #191919;
    --background-light: #1e1e1e;
    --background-disabled: #434343;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(136deg, #7833FF 0%, #FC2E6A 100%);
    --gradient-accent: linear-gradient(45deg, #14DE95 0%, #2FB2FF 100%);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    /* Spring-like timing function (ease-out-back) */
    --spring: cubic-bezier(.34,1.56,.64,1);
    
    /* Global section spacing */
    --section-spacing-mobile: 60px;
    --section-spacing-desktop: 120px;

    /* Dynamic navbar height for sticky offsets */
    --navbar-sticky-offset: 72px;
  }

  /* Prevent horizontal overflow globally */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
    color: var(--text-primary);
    background-color: var(--background-dark);
  }

  /* Global container styles */
  .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  @media (min-width: 576px) {
    .container {
      max-width: 540px;
      padding-left: 20px;
      padding-right: 20px;
    }
  }

  @media (min-width: 768px) {
    .container {
      max-width: 720px;
      padding-left: 24px;
      padding-right: 24px;
    }
  }

  @media (min-width: 992px) {
    .container {
      max-width: 960px;
      padding-left: 32px;
      padding-right: 32px;
    }
  }

  @media (min-width: 1200px) {
    .container {
      max-width: 1140px;
      padding-left: 40px;
      padding-right: 40px;
    }
  }

  /* Spacing between consecutive sections */
  section + section {
    margin-top: var(--section-spacing-mobile);
  }

  @media (min-width: 992px) {
    section + section {
      margin-top: var(--section-spacing-desktop);
    }
  }

  /* En mobile, asegurar espacio superior del body para navbar fijo */
  @media (max-width: 991.98px) {
    body { padding-top: var(--navbar-sticky-offset); }
  }

  /* Eyebrow (web/section label) */
  .section-eyebrow {
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--primary-color);
    text-align: center;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
  }

  /* Reveal on view: animación de entrada global */
  .reveal {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition:
      transform 0.4s cubic-bezier(0.12, 0.23, 0.5, 1),
      opacity 0.4s cubic-bezier(0.12, 0.23, 0.5, 1);
    transition-delay: var(--reveal-delay, 0.2s);
    will-change: transform, opacity;
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

/* Footer simple con redes */
.footer-simple {
  background: var(--background-dark);
  padding: 56px 0 72px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-simple .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-simple .brand img { height: 26px; width: auto; display: block; }
.footer-simple .title {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.15;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}
.footer-simple .subtitle {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--text-secondary);
  text-align: center;
  margin-left: auto; margin-right: auto;
  max-width: 720px;
  margin-bottom: 24px;
}
.footer-simple .cta {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.footer-simple .cta .btn-cta { padding: 12px 16px; border-radius: 24px; font-size: 16px; }
.footer-simple .socials {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary); text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}
.social-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
.social-icon { width: 18px; height: 18px; display: block; }

/* Icono dentro de CTA */
.btn-cta .icon { width: 18px; height: 18px; display: inline-block; color: #000000; }


.hero-navbar {
  background: transparent;
  padding-top: 18px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Glassy container navbar with border and blur */
.hero-navbar .container {
  background: rgba(6, 7, 3, 0.38);
  border: 1px solid rgba(156, 243, 91, 0.1);
  border-radius: 16px;
  padding: 20px;
  overflow: visible; /* permitir que el menú colapsado no se corte en mobile */
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: var(--shadow-subtle);
  transition: background-color 400ms var(--spring),
              transform 400ms var(--spring),
              border-color 400ms var(--spring),
              box-shadow 400ms var(--spring);
  width: min(96%, 980px);
  margin-left: auto;
  margin-right: auto;
}

.hero-navbar .navbar-nav { gap: 6px; }

.navbar-brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  text-decoration: none; 
}

.navbar-brand img { display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.nav-link {
  color: #ffffff !important;
  padding: 0.5rem 0.75rem;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  transition: color 320ms var(--spring), transform 320ms var(--spring);
  will-change: transform;
}
.nav-link:hover { color: var(--primary-color) !important; transform: translateY(-1px); }

/* Toggler hamburguesa de dos líneas para mobile */
.two-line-toggler {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(156, 243, 91, 0.10);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  transition: transform 320ms var(--spring), border-color 320ms var(--spring), background-color 320ms var(--spring);
}
.two-line-toggler:focus { box-shadow: none; }
.two-line-toggler:hover { transform: translateY(-1px); }
.two-line-toggler .line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  display: block;
}
@media (max-width: 991.98px) {
  /* asegurar que el toggler no se recorte en mobile */
  .hero-navbar { overflow: visible; }
}



/* Suavizar transición del dropdown (colapso) con efecto spring */
.navbar .collapsing {
  transition: height 360ms var(--spring);
}
.navbar .collapse {
  transition: height 360ms var(--spring);
}

/* Mobile: brand y toggler separados, menú despliega hacia abajo */
@media (max-width: 991.98px) {
  .hero-navbar .container {
    justify-content: space-between;
  }
  .hero-navbar .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
  }
  .hero-navbar .navbar-nav {
    width: 100%;
    padding: 8px 0;
  }
}



/* El navbar solo "existe" en el hero; fuera del hero será transparente por defecto */
body > .navbar:not(.hero-navbar) { display: none; }

/* Correcciones responsive */
@media (min-width: 992px) {
  .navbar-nav .nav-link { padding: 0.5rem 1rem; }
}



/* Botón primario del navbar */
.btn.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 12px 16px;
  border-radius: 24px;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: background-color 220ms ease-out, color 220ms ease-out, transform 220ms ease-out, box-shadow 220ms ease-out;
  color: #000000;
  text-decoration: none;
}
.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus-visible {   
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  text-decoration: none; 
}

/* Blog Tag Styles */
.blog-tag {
  background: var(--background-disabled);
  border-radius: 4px;
  padding: 6px 6px;
  color: var(--text-primary);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background: var(--primary-color);
  color: #000000;
  text-decoration: none;
}

/* Blog Navbar Styles */
.blog-hero .hero-navbar {
  background: transparent;
  padding-top: 18px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.blog-hero .hero-navbar .container {
  background: rgba(6, 7, 3, 0.38);
  border: 1px solid rgba(156, 243, 91, 0.1);
  border-radius: 16px;
  padding: 20px;
  overflow: visible;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: var(--shadow-subtle);
  transition: background-color 400ms var(--spring),
              transform 400ms var(--spring),
              border-color 400ms var(--spring),
              box-shadow 400ms var(--spring);
  width: min(96%, 980px);
  margin-left: auto;
  margin-right: auto;
}

/* Blog navbar scrolled state */
.blog-hero .hero-navbar.scrolled .container {
  background: rgba(6, 7, 3, 0.95);
}
