/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f5f8fd;
  color: #0f1a2e;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Top nav
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3vw, 24px) clamp(16px, 4vw, 40px);
  padding-top: max(clamp(14px, 3vw, 24px), env(safe-area-inset-top));
  background: rgba(37, 99, 235, 0.05);
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s ease;
}

/* Solid blue fill that crossfades in once the page scrolls — kept as its
   own layer so the color transition can animate smoothly (gradients can't
   interpolate via a plain background transition). */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 24px rgba(15, 26, 46, 0.18);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav.is-scrolled {
  border-bottom-color: transparent;
}

.nav.is-scrolled::before {
  opacity: 1;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(15, 26, 46, 0.15));
}

.nav__name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: #0f1a2e;
  transition: color 0.3s ease;
}

.nav.is-scrolled .nav__name {
  color: #ffffff;
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.nav__links a {
  color: #48546b;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: #1d4ed8;
}

.nav.is-scrolled .nav__links a {
  color: rgba(255, 255, 255, 0.78);
}

.nav.is-scrolled .nav__links a:hover {
  color: #ffffff;
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
}

.nav__login {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #48546b;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 26, 46, 0.14);
  background: rgba(255, 255, 255, 0.6);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nav__login:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
}

.nav.is-scrolled .nav__login {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.nav.is-scrolled .nav__login:hover {
  color: #1d4ed8;
  border-color: #ffffff;
  background: #ffffff;
}

@media (max-width: 400px) {
  .nav__login { padding: 8px 11px; font-size: 0.72rem; }
}

/* ==========================================================================
   Mobile hamburger + dropdown menu
   ========================================================================== */
.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 26, 46, 0.14);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav.is-scrolled .nav__toggle {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.nav__toggle-bar {
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: #0f1a2e;
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.nav.is-scrolled .nav__toggle-bar {
  background: #ffffff;
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
}

.nav__mobile {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 26, 46, 0.08);
  box-shadow: 0 20px 40px -12px rgba(15, 26, 46, 0.25);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__mobile a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #37415a;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__mobile a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

@media (min-width: 900px) {
  .nav__mobile { display: none; }
}

/* ==========================================================================
   Hero shell
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f5f8fd;
  isolation: isolate;
}

#mycelium-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Soft radial vignette so the network fades into the white page at the edges */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 50%, rgba(245, 248, 253, 0) 0%, rgba(245, 248, 253, 0.25) 55%, rgba(245, 248, 253, 0.85) 100%),
    linear-gradient(180deg, rgba(245, 248, 253, 0.55) 0%, rgba(245, 248, 253, 0) 18%, rgba(245, 248, 253, 0) 78%, rgba(245, 248, 253, 0.75) 100%);
}

/* ==========================================================================
   City tooltip (follows hovered/touched network node)
   ========================================================================== */
.city-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 26, 46, 0.1);
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #0f1a2e;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0 100%;
  translate: -50% -140%;
  transition: opacity 0.18s ease;
  will-change: transform;
}

.city-tooltip.is-visible {
  opacity: 1;
}

.city-tooltip__flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #ffd633 0%, #ffd633 50%,
    #2563eb 50%, #2563eb 75%,
    #e11d2e 75%, #e11d2e 100%
  );
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

/* ==========================================================================
   Hero content
   ========================================================================== */
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2vw, 20px);
  padding: 96px 22px 40px;
  max-width: 620px;
  margin: 0 auto;

  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
  border-radius: 28px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1d4ed8;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.07);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.04) inset;
}

.hero__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 8px 2px rgba(37, 99, 235, 0.55);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

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

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #0f1a2e 0%, #1e3a6e 32%, #2563eb 50%, #0ea5e9 68%, #0f1a2e 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__subtitle {
  margin: 0;
  max-width: 46ch;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
  line-height: 1.65;
  color: #4b5875;
}

/* ==========================================================================
   CTAs
   ========================================================================== */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  color: #ffffff;
  background: linear-gradient(120deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.25),
    0 10px 24px -8px rgba(37, 99, 235, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.4),
    0 14px 30px -6px rgba(37, 99, 235, 0.65);
}

.btn--ghost {
  color: #0f1a2e;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 26, 46, 0.14);
}

.btn--ghost:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.14);
}

/* ==========================================================================
   Scroll cue
   ========================================================================== */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7583a0;
  pointer-events: none;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.8), transparent);
  animation: scroll-flow 1.8s ease-in-out infinite;
}

@keyframes scroll-flow {
  0%   { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50%  { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
  100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
}

@media (max-width: 640px) {
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Larger viewports: text drifts left, layout opens up
   ========================================================================== */
@media (min-width: 900px) {
  .hero__content {
    align-items: flex-start;
    text-align: left;
    max-width: 640px;
    margin: 0;
    margin-left: clamp(48px, 8vw, 130px);
    padding: 40px 48px;
    background: rgba(255, 255, 255, 0.42);
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  .btn { padding: 15px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__tag::before,
  .hero__scroll-line {
    animation: none;
  }
}

/* ==========================================================================
   Shared section chrome
   ========================================================================== */
section {
  position: relative;
  padding: clamp(56px, 9vw, 108px) clamp(20px, 6vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin: 0 0 clamp(32px, 5vw, 52px);
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1d4ed8;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.06);
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f1a2e;
  line-height: 1.15;
}

.section-subtitle {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #4b5875;
}

/* ==========================================================================
   Herramientas — carrusel
   ========================================================================== */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel__track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  list-style: none;
  margin: 0;
  padding: 12px 4px 20px;
  cursor: grab;
  scrollbar-width: none;
}

.carousel__track::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 1px;
  background: #e2e8f0;
  pointer-events: none;
}

.carousel__track:active { cursor: grabbing; }
.carousel__track::-webkit-scrollbar { display: none; }

.tool-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(280px, 78vw);
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 22px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: #1d4ed8;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.tool-card__node {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 28px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.tool-card__node::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0));
}

.tool-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

.tool-card__icon svg {
  width: 20px;
  height: 20px;
}

.tool-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1a2e;
}

.tool-card__desc {
  margin: 0 0 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #4b5875;
  font-family: 'JetBrains Mono', monospace;
}

.tool-card__link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.carousel__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 26, 46, 0.12);
  background: #ffffff;
  color: #1d4ed8;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel__arrow:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
  transform: scale(1.06);
}

.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

@media (max-width: 640px) {
  .carousel__arrow { display: none; }
}

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

.carousel__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(15, 26, 46, 0.16);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dots button.is-active {
  background: #2563eb;
  transform: scale(1.3);
}

/* ==========================================================================
   Presencia Nacional
   ========================================================================== */
.presence__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 700px) {
  .presence__grid { grid-template-columns: repeat(3, 1fr); }
}

.presence__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: linear-gradient(150deg, var(--accent-a) 0%, var(--accent-b) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  isolation: isolate;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.presence__item:hover,
.presence__item:focus-visible {
  border-color: #1d4ed8;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}

.presence__glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.presence__glyph svg {
  width: 40px;
  height: 40px;
}

.presence__city {
  position: relative;
  z-index: 1;
  margin: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease;
}

.presence__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(6, 12, 30, 0) 0%, rgba(6, 12, 30, 0.88) 62%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.presence__overlay strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
}

.presence__overlay span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.presence__item:hover .presence__overlay,
.presence__item:focus-visible .presence__overlay,
.presence__item.is-active .presence__overlay {
  opacity: 1;
  transform: translateY(0);
}

.presence__item:hover .presence__glyph,
.presence__item:focus-visible .presence__glyph,
.presence__item.is-active .presence__glyph,
.presence__item:hover .presence__city,
.presence__item:focus-visible .presence__city,
.presence__item.is-active .presence__city {
  opacity: 0;
}

/* ==========================================================================
   Blog + Newsletter
   ========================================================================== */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-within {
  border-color: #1d4ed8;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.blog-card__thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
  margin-bottom: 16px;
}

.blog-card__thumb svg {
  width: 20px;
  height: 20px;
}

.blog-card__date {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7583a0;
  margin-bottom: 8px;
}

.blog-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f1a2e;
}

.blog-card__excerpt {
  margin: 0 0 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #4b5875;
  font-family: 'JetBrains Mono', monospace;
}

.blog-card__link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.newsletter__copy {
  flex: 1 1 260px;
}

.newsletter__copy h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #0f1a2e;
}

.newsletter__copy p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #4b5875;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 320px;
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 26, 46, 0.14);
  background: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #0f1a2e;
}

.newsletter__input:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  background: linear-gradient(120deg, #22c55e, #16a34a);
  box-shadow: 0 10px 24px -10px rgba(22, 163, 74, 0.55);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(22, 163, 74, 0.65);
}

.newsletter__status,
.join-form__status {
  flex: 1 0 100%;
  width: 100%;
  margin: 4px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #1d4ed8;
  min-height: 1.2em;
}

/* ==========================================================================
   Participa — formulario final
   ========================================================================== */
.join-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
}

.join-form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.join-option {
  position: relative;
  cursor: pointer;
}

.join-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.join-option span {
  display: inline-flex;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15, 26, 46, 0.14);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5875;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.join-option input:checked + span {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.join-option input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.join-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.join-form__input {
  grid-column: span 1;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 26, 46, 0.14);
  background: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #0f1a2e;
}

.join-form__input:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.join-form__input--area {
  grid-column: 1 / -1;
  resize: vertical;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 560px) {
  .join-form__fields { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .newsletter__form { flex-direction: column; }
  .newsletter__input { width: 100%; }
  .newsletter__form .btn--primary { width: 100%; }
}

.join-form__submit {
  align-self: flex-start;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(15, 26, 46, 0.08);
  background: rgba(37, 99, 235, 0.03);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 6vw, 64px) 0;
}

.site-footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-footer__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.site-footer__brand-row span {
  font-weight: 600;
  color: #0f1a2e;
}

.site-footer__tagline {
  margin: 0;
  max-width: 34ch;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #4b5875;
}

.site-footer__social {
  display: flex;
  gap: 10px;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 26, 46, 0.12);
  color: #4b5875;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-footer__social a:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
}

.site-footer__col h3 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7583a0;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #37415a;
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: #1d4ed8;
}

.site-footer__bottom {
  border-top: 1px solid rgba(15, 26, 46, 0.08);
  padding: 18px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer__bottom p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #8592ac;
}

.site-footer__bottom-links {
  display: flex;
  gap: 18px;
}

.site-footer__bottom-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #8592ac;
}

.site-footer__bottom-links a:hover { color: #1d4ed8; }

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Standalone legal / info pages (privacidad, términos, contacto, etc.)
   ========================================================================== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(120px, 14vw, 160px) clamp(20px, 6vw, 64px) 40px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #1d4ed8;
  margin-bottom: 28px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #0f1a2e;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.legal__updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #8592ac;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 1.15rem;
  color: #0f1a2e;
  margin: 36px 0 12px;
}

.legal p,
.legal li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #37415a;
}

.legal ul, .legal ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.legal li { margin-bottom: 8px; }

.legal a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }

.legal__note {
  margin-top: 40px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #37415a;
}

.faq-item {
  margin-bottom: 22px;
}

.faq-item h2 { margin-top: 0; }
