/* ============================================================
   CognitiaTech Landing — Estilos principales
   ============================================================
   Tokens de diseño al inicio: cambia colores, fuentes y
   espaciado aquí y se aplican en toda la web.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --accent:        #BCCF0D;              /* Lima corporativo */
  --accent-glow:   rgba(188,207,13,0.5);
  --bg:            #070808;              /* Fondo base oscuro */
  --fg:            #f1f3ee;             /* Texto principal */
  --fg-muted:      rgba(241,243,238,0.65);
  --fg-subtle:     rgba(241,243,238,0.45);
  --border:        rgba(255,255,255,0.08);
  --glass-bg:      rgba(255,255,255,0.04);

  --font-heading:  'Unbounded', sans-serif;     /* ≈ Spotnik */
  --font-body:     'Space Grotesk', sans-serif; /* ≈ Polymath */
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;

  --radius-sm:     10px;
  --radius-md:     18px;
  --radius-lg:     24px;
  --radius-xl:     28px;
  --radius-pill:   999px;

  --max-w:         1180px;
  --pad-x:         56px;
  --section-y:     140px;
  --anchor-offset: 65px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { user-select: none; -webkit-user-drag: none; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
[id] { scroll-margin-top: var(--anchor-offset); }

/* ── Aurora canvas ───────────────────────────────────────── */
#aurora-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main { position: relative; z-index: 1; }

/* ── Sticky nav ──────────────────────────────────────────── */
.sticky-nav {
  display: none;
}
.sticky-nav.visible { opacity: 1; pointer-events: auto; }
.sticky-nav a {
  font-size: 13.5px; font-weight: 500;
  color: rgba(241,243,238,0.75);
  transition: color 0.15s;
}
.sticky-nav a:hover { color: var(--fg); }
.sticky-nav .cta {
  background: var(--accent); color: #0a0a0a;
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sticky-nav .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; min-height: 760px; color: var(--fg); }

.hero-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(24px, 3vw, 48px) 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 34px; height: 34px; }
.logo-full { width: clamp(176px, 13vw, 196px); height: auto; display: block; }
.logo-footer .logo-full { width: 180px; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hero-nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.hero-nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.logo-word {
  font-family: var(--font-heading); font-size: 21px; font-weight: 400;
  letter-spacing: 0.04em; color: var(--fg); line-height: 1;
}
.hero-nav-links {
  display: flex; gap: 2px; padding: 5px 6px;
  border-radius: var(--radius-pill); background: var(--glass-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  justify-self: center;
}
.hero-nav-links a {
  padding: 8px 14px; font-size: 12.5px; font-weight: 500;
  color: rgba(241,243,238,0.75); border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
}
.hero-nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--fg); }
.hero-nav > .btn-accent { justify-self: end; }
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
  padding: 14px;
  border-radius: 24px;
  background: rgba(9,12,10,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.38);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mobile-menu a,
.mobile-menu .mobile-menu-cta {
  width: 100%;
}
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu a:hover {
  background: rgba(255,255,255,0.05);
}
.mobile-menu .mobile-menu-cta {
  margin-top: 8px;
  padding: 14px 18px;
  justify-content: center;
}
.hero-nav.menu-open .mobile-menu { display: grid; gap: 4px; }
body.menu-open { overflow: hidden; }

/* Buttons */
.btn-accent {
  background: var(--accent); border: none; color: #0a0a0a;
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-lg { padding: 15px 26px !important; font-size: 15px !important; }
.btn-accent.btn-lg {
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(188,207,13,0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--fg); border-radius: var(--radius-pill);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.15s, transform 0.15s;
  font-size: 15px; font-weight: 500; padding: 15px 24px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--fg);
  padding: 17px 28px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500;
  transition: background 0.15s, transform 0.15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: 100px var(--pad-x) 96px;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px; color: rgba(241,243,238,0.82); margin-bottom: 36px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent); flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 0.98; letter-spacing: -0.015em; font-weight: 400;
  max-width: 100%; text-wrap: balance;
}
.hero h1 em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--accent) 0%, #e8f54a 50%, #8cd926 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block; white-space: nowrap;
  line-height: 1.06;
  padding-right: 0.08em;
}
.hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--fg-muted);
  max-width: 620px; margin-top: 20px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.metrics-strip {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 8px; border-radius: var(--radius-lg);
  background: var(--glass-bg); border: 1px solid var(--border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.metric { padding: 4px 28px; border-left: 1px solid var(--border); }
.metric:first-child { border-left: none; }
.metric-n {
  font-family: var(--font-heading); font-size: 34px;
  font-weight: 300; letter-spacing: -0.03em; line-height: 1;
}
.metric-label { margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--fg-subtle); }

/* ── Sections ────────────────────────────────────────────── */
.section { background: transparent; padding: var(--section-y) var(--pad-x); position: relative; }
.section-compact { padding-top: 0; }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-grid-bg {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.kicker {
  font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; max-width: 720px;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 72px; flex-wrap: wrap; gap: 32px;
}
.link-accent {
  color: var(--accent); font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.15s;
}
.link-accent:hover { gap: 10px; }

/* ── Glass card ──────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-md);
  padding: 36px; position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s;
}
.card:hover { border-color: rgba(255,255,255,0.13); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* ── Capacidades ─────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { min-height: 280px; }
.feature-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(188,207,13,0.09), transparent 70%);
  pointer-events: none;
}
.feature-tag {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.feature-card h3 {
  font-family: var(--font-heading); font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.15;
}
.feature-card p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin-bottom: 22px; }
.bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(241,243,238,0.8); margin-bottom: 8px;
}
.bullets li::before {
  content: ''; display: inline-block; width: 4px; height: 4px;
  border-radius: 999px; background: var(--accent); flex-shrink: 0;
}

/* ── Sectores ────────────────────────────────────────────── */
.container#sectores h2 { margin-bottom: 56px; }
.sectors-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.sector-cell {
  padding: 32px 28px; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.sector-cell:nth-child(3n) { border-right: none; }
.sector-cell:hover { background: rgba(255,255,255,0.02); }
.sector-n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); letter-spacing: 0.05em; margin-bottom: 20px; }
.sector-cell h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 8px; }
.sector-cell p { font-size: 14px; line-height: 1.55; color: var(--fg-muted); }

/* ── Casos ───────────────────────────────────────────────── */
.cases-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 56px; flex-wrap: wrap; gap: 16px;
}
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md); padding: 28px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s;
}
.case-card:hover { border-color: rgba(255,255,255,0.13); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.case-img {
  height: 120px; border-radius: 12px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(188,207,13,0.13), transparent),
              radial-gradient(circle at 30% 70%, rgba(188,207,13,0.18), transparent 60%);
  border: 1px solid rgba(255,255,255,0.06); position: relative; overflow: hidden;
}
.case-img::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 12px);
}
.case-sector { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 10px; }
.case-card h3 {
  font-family: var(--font-heading); font-size: 18px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 14px;
}
.case-result { font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.tech-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); color: rgba(241,243,238,0.75);
}

/* ── Testimonios ─────────────────────────────────────────── */
.testimonials-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 56px; flex-wrap: wrap; gap: 16px;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  padding: 36px 32px; background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 280px;
  transition: border-color 0.2s;
}
.testimonial-card.featured { background: linear-gradient(160deg, rgba(188,207,13,0.08), rgba(255,255,255,0.02)); }
.testimonial-card:hover { border-color: rgba(255,255,255,0.14); }
.quote-icon { margin-bottom: 24px; opacity: 0.85; }
.testimonial-card blockquote {
  font-size: 18px; line-height: 1.4; letter-spacing: -0.01em;
  color: rgba(241,243,238,0.92); font-weight: 400; flex: 1;
}
.testimonial-meta { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.testimonial-author { font-size: 14px; font-weight: 500; }
.testimonial-org { font-size: 13px; color: var(--fg-subtle); margin-top: 2px; }

/* ── Equipo ──────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card {
  padding: 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; display: flex; align-items: center; gap: 18px;
  transition: border-color 0.2s, background 0.2s;
}
.team-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(188,207,13,0.18), rgba(188,207,13,0.05));
  border: 1px solid rgba(188,207,13,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--font-mono);
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em; flex-shrink: 0;
}
.team-name { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.team-role { font-size: 13px; color: var(--fg-subtle); margin-top: 3px; }

/* ── Comunidad ───────────────────────────────────────────── */
.community-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end; margin-bottom: 72px;
}
.community-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.8vw, 64px); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.0; max-width: 560px;
}
.community-header h2 em { font-style: italic; color: var(--accent); }
.community-header p {
  font-size: 17px; line-height: 1.55; color: var(--fg-muted);
  max-width: 480px; justify-self: end;
}
.community-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 32px 0; margin-bottom: 56px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.community-stat { padding: 4px 32px; border-left: 1px solid var(--border); }
.community-stat:first-child { border-left: none; }
.community-stat-n {
  font-family: var(--font-heading); font-size: 48px;
  font-weight: 300; letter-spacing: -0.04em; line-height: 1;
}
.community-stat-label { margin-top: 12px; font-size: 13.5px; line-height: 1.4; color: var(--fg-muted); max-width: 240px; }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card {
  border-radius: 22px; padding: 28px; display: flex; flex-direction: column;
  cursor: pointer; transition: transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.event-card.featured { grid-row: span 2; min-height: 640px; }
.event-card:not(.featured) { min-height: 310px; }
.tone-dark { background: linear-gradient(135deg, #0a0a0a 0%, #161a1a 70%, rgba(188,207,13,0.1) 110%); border: 1px solid rgba(255,255,255,0.08); color: var(--fg); }
.tone-light { background: linear-gradient(135deg, #f4f3ec 0%, #e8ebd9 100%); border: 1px solid rgba(0,0,0,0.06); color: #0a0a0a; }
.tone-accent { background: linear-gradient(135deg, var(--accent) 0%, #8cd926 100%); border: 1px solid rgba(0,0,0,0.1); color: #0a0a0a; }
.event-photo {
  border-radius: 14px; margin-bottom: 22px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.event-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.event-card.featured .event-photo { flex: 1; }
.event-card:not(.featured) .event-photo { height: 140px; flex-shrink: 0; }
.tone-dark .event-photo { background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px), rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.08); }
.tone-light .event-photo { background: repeating-linear-gradient(45deg, rgba(10,10,10,0.05) 0 2px, transparent 2px 14px), rgba(10,10,10,0.03); border: 1px dashed rgba(0,0,0,0.06); }
.tone-accent .event-photo { background: repeating-linear-gradient(45deg, rgba(10,10,10,0.06) 0 2px, transparent 2px 14px), rgba(10,10,10,0.04); border: 1px dashed rgba(0,0,0,0.1); }
.photo-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.tone-dark .photo-label { color: rgba(241,243,238,0.55); border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.3); }
.tone-light .photo-label, .tone-accent .photo-label { color: rgba(10,10,10,0.6); border: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.3); }
.event-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.event-type-badge { padding: 4px 10px; border-radius: var(--radius-pill); font-weight: 500; }
.tone-dark .event-type-badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--accent); }
.tone-light .event-type-badge, .tone-accent .event-type-badge { background: rgba(10,10,10,0.06); border: 1px solid rgba(0,0,0,0.08); color: #0a0a0a; }
.event-date { opacity: 0.6; }
.event-card h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.event-card.featured h3 { font-size: clamp(24px, 2.6vw, 34px); }
.event-card:not(.featured) h3 { font-size: 19px; }
.event-venue { font-size: 14px; line-height: 1.45; margin-bottom: 12px; opacity: 0.65; }
.event-footer {
  margin-top: auto; padding-top: 18px; display: flex;
  align-items: center; justify-content: space-between; font-size: 13px;
}
.tone-dark .event-footer { border-top: 1px solid rgba(255,255,255,0.08); }
.tone-light .event-footer, .tone-accent .event-footer { border-top: 1px solid rgba(0,0,0,0.08); }
.event-role { opacity: 0.6; }
.event-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.tone-dark .event-cta { color: var(--accent); }
.community-cta-bar {
  margin-top: 40px; padding: 24px 32px; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.community-cta-bar p { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.community-cta-bar span { font-size: 13.5px; color: var(--fg-muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--border); max-width: 880px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%; background: transparent; border: none; color: var(--fg);
  padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
}
.faq-trigger span:first-child { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(241,243,238,0.7); flex-shrink: 0;
  transition: transform 0.25s, color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.open .faq-body { max-height: 300px; padding-bottom: 24px; }
.faq-body p { font-size: 15.5px; line-height: 1.6; color: var(--fg-muted); max-width: 680px; }

/* ── CTA final ───────────────────────────────────────────── */
.cta-section {
  padding: var(--section-y) var(--pad-x); text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 60%, rgba(188,207,13,0.12), transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-heading); font-size: clamp(44px, 6vw, 80px);
  font-weight: 400; letter-spacing: -0.035em; line-height: 1.0; margin-bottom: 28px; position: relative;
}
.cta-section h2 em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--accent) 0%, #e8f54a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-section > p { font-size: 18px; line-height: 1.5; color: var(--fg-muted); max-width: 560px; margin: 0 auto 40px; position: relative; }
.cta-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }
.btn-cta-lg { padding: 17px 32px; font-size: 15px; font-weight: 600; box-shadow: 0 8px 40px rgba(188,207,13,0.3); }

/* ── Contacto ────────────────────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; padding: 48px;
  border-radius: var(--radius-xl); background: rgba(8,10,10,0.55); border: 1px solid var(--border);
  backdrop-filter: blur(28px) saturate(1.2); -webkit-backdrop-filter: blur(28px) saturate(1.2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.contact-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; font-family: var(--font-heading); }
.contact-info h2 {
  font-family: var(--font-heading); font-size: clamp(32px, 4.2vw, 52px); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 24px; max-width: none;
}
.contact-info h2 span { color: var(--accent); }
.contact-info > p { font-size: 16px; line-height: 1.55; color: var(--fg-muted); margin-bottom: 32px; }
.contact-rows { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; align-items: center; gap: 14px; font-size: 14.5px; }
.contact-icon {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(188,207,13,0.12);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.contact-compliance { margin-top: 36px; padding: 20px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.compliance-label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 10px; }
.compliance-items { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.compliance-item { display: flex; align-items: center; gap: 6px; color: rgba(241,243,238,0.85); }
.compliance-item::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start;
}
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.form-footer small {
  max-width: 420px;
  line-height: 1.6;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--fg);
  font-family: inherit; outline: none; transition: border-color 0.15s, background 0.15s;
}
.field input:focus, .field textarea:focus { border-color: rgba(188,207,13,0.5); background: rgba(255,255,255,0.06); }
.field input::placeholder, .field textarea::placeholder { color: rgba(241,243,238,0.35); }
.field textarea { resize: vertical; min-height: 100px; }
.interest-group { display: flex; gap: 8px; flex-wrap: wrap; }
.interest-btn {
  padding: 10px 16px; border-radius: var(--radius-pill); font-size: 13.5px;
  background: rgba(255,255,255,0.04); color: var(--fg); border: 1px solid rgba(255,255,255,0.1); font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.interest-btn.active { background: var(--accent); color: #0a0a0a; border-color: var(--accent); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: rgba(6,7,7,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px var(--pad-x); color: var(--fg-muted); font-size: 13.5px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand p { margin-top: 20px; line-height: 1.6; max-width: 300px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer-col-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: var(--max-w); margin: 56px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; font-size: 12.5px;
}
.footer-mono { font-family: var(--font-mono); }

/* ── Legal pages ────────────────────────────────────────── */
body.legal-page main {
  min-height: 100vh;
}
.legal-nav {
  margin-bottom: 24px;
}
.legal-nav .hero-nav-links {
  justify-self: center;
}
.legal-nav .btn-accent {
  justify-self: end;
  display: inline-flex;
  align-items: center;
}
.legal-hero {
  padding-top: 72px;
  padding-bottom: 48px;
}
.legal-hero .container {
  display: grid;
  gap: 28px;
}
.legal-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-hero h1 {
  max-width: 900px;
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.legal-lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-muted);
}
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.legal-sidebar,
.legal-article {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.legal-sidebar {
  position: sticky;
  top: 92px;
  padding: 22px;
}
.legal-sidebar-title {
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.legal-sidebar ul {
  display: grid;
  gap: 10px;
}
.legal-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}
.legal-sidebar a:hover,
.legal-sidebar a:focus-visible {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  outline: none;
}
.legal-article {
  padding: clamp(24px, 4vw, 40px);
}
.legal-section + .legal-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.legal-section h2 {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}
.legal-section h3 {
  margin: 20px 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}
.legal-section p,
.legal-section li {
  color: var(--fg-muted);
  line-height: 1.8;
}
.legal-section p + p,
.legal-section ul,
.legal-section ol {
  margin-top: 14px;
}
.legal-section ul,
.legal-section ol {
  padding-left: 20px;
}
.legal-section li + li {
  margin-top: 8px;
}
.legal-section strong {
  color: var(--fg);
}
.legal-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(188,207,13,0.22);
  background: rgba(188,207,13,0.08);
  color: var(--fg);
}
.legal-contact-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(188,207,13,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(188,207,13,0.18);
}
.legal-contact-card p {
  color: rgba(241,243,238,0.82);
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; --section-y: 100px; }
  .hero-nav-links { display: none; }
  .hero-nav {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding-inline: 32px;
  }
  .menu-toggle { display: inline-flex; }
  .features-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .community-header { grid-template-columns: 1fr; gap: 32px; }
  .community-header p { justify-self: start; }
  .community-stats { grid-template-columns: 1fr; }
  .community-stat { border-left: none !important; border-top: 1px solid var(--border); padding: 20px 0; }
  .community-stat:first-child { border-top: none; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sticky-nav { gap: 18px; }
  .sticky-nav a:not(.cta) { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
}
@media (max-height: 860px) {
  .hero { min-height: 700px; }
  .hero-content { padding-top: 100px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(40px, 5vw, 68px); }
  .hero-sub { margin-top: 16px; margin-bottom: 24px; font-size: 17px; }
  .metrics-strip { margin-top: 36px; padding-top: 18px; padding-bottom: 18px; }
  .metric { padding-inline: 20px; }
  .metric-n { font-size: 30px; }
}
@media (max-width: 720px) {
  :root { --pad-x: 20px; --section-y: 72px; }
  .hero-nav {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 8px;
  }
  .logo-full { width: clamp(140px, 42vw, 176px); }
  .nav-cta { display: none; }
  .menu-toggle { justify-self: end; }
  .mobile-menu {
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
  }
  .hero h1 { font-size: clamp(38px, 10vw, 52px) !important; }
  .section h2 { font-size: clamp(28px, 7vw, 40px) !important; }
  .sectors-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .event-card.featured { grid-row: auto; min-height: 420px; }
  .metrics-strip { grid-template-columns: 1fr; }
  .metric { border-left: none !important; border-top: 1px solid var(--border); }
  .metric:first-child { border-top: none; }
  .contact-wrap { padding: 28px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .footer-col-title { font-size: 11px; }
  .footer-col ul { gap: 8px; }
  .footer-col a,
  .footer-col li { font-size: 13px; line-height: 1.35; }
  .footer-bottom {
    margin-top: 32px;
    gap: 8px;
    flex-direction: column;
  }
  .hero-content { padding: 18px var(--pad-x) 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-accent,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .legal-hero { padding-top: 48px; }
  .legal-hero h1 { font-size: clamp(32px, 10vw, 46px); }
  .legal-lead { font-size: 16px; }
}

/* ── Banner de Cookies ──────────────────────────────────── */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 8, 8, 0.6);
  z-index: 9998;
  display: none;
  pointer-events: auto;
}

.cookie-overlay.visible {
  display: block;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(7, 8, 8, 0.95) 0%, rgba(20, 22, 22, 0.95) 100%);
  border-top: 1px solid var(--border);
  padding: 20px var(--pad-x);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(10px);
}

.cookie-banner.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  font-size: 14px;
  color: var(--fg-muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.cookie-text a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.cookie-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 16px 20px;
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }

  .btn-ghost,
  .btn-accent {
    width: 100%;
    justify-content: center;
  }
}
