/* ============================================================
   Seven Brains — Landing page
   ============================================================ */

:root {
  --bg:            #070b1e;
  --bg-alt:        #0b1030;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-hover:  rgba(120, 170, 255, 0.45);

  --text:          #eef1ff;
  --text-muted:    #a2a9c9;
  --text-dim:      #6f7799;

  --brand:         #4f7cff;
  --brand-2:       #22d3ee;
  --brand-3:       #a855f7;
  --gradient:      linear-gradient(120deg, #4f7cff 0%, #22d3ee 50%, #a855f7 100%);

  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --maxw:          1160px;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg  { padding: 16px 32px; font-size: 1.02rem; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(79, 124, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(79, 124, 255, 0.9); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 30, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; height: 34px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-accent { color: var(--brand-2); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.94rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav a.btn-primary { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, #4f7cff, transparent 70%); top: -140px; left: -120px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, #a855f7, transparent 70%); bottom: -160px; right: -100px; animation: float 18s ease-in-out infinite reverse; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -30px); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 22px; }
.lead { font-size: 1.14rem; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--text); }
.hero-stats span { font-size: 0.85rem; color: var(--text-dim); }

.hero-visual img { width: 100%; height: auto; animation: float 20s ease-in-out infinite; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ===== Cards ===== */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-hover); background: var(--surface-2); }

.card-icon { font-size: 1.8rem; margin-bottom: 16px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.process-card .card-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.10);
}

/* Product cards */
.product-card { display: flex; flex-direction: column; padding-top: 34px; }
.product-badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.product-card h3 { font-size: 1.7rem; margin-bottom: 12px; }
.product-card.featured { background: linear-gradient(160deg, rgba(79,124,255,0.16), rgba(168,85,247,0.10)); border-color: rgba(120,170,255,0.35); }
.product-card.featured::after {
  content: "Destacado"; position: absolute; top: 16px; right: -34px;
  transform: rotate(45deg); background: var(--gradient); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; padding: 5px 40px;
}

.feature-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; font-size: 0.93rem; color: var(--text-muted); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand-2); font-weight: 700;
  background: rgba(34,211,238,0.12); width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem;
}

/* ===== Clients ===== */
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 70px; }
.client-chip {
  display: flex; flex-direction: column; gap: 4px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 14px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.client-chip span { font-family: var(--font-body); font-weight: 400; font-size: 0.76rem; color: var(--text-dim); }
.client-chip:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--surface-2); }

/* ===== Testimonials ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; position: relative;
}
.testimonial::before { content: "\201C"; font-family: var(--font-head); font-size: 4rem; color: var(--brand); line-height: 1; opacity: 0.4; }
.testimonial blockquote { font-size: 1rem; color: var(--text); margin: -14px 0 20px; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption strong { font-family: var(--font-head); }
.testimonial figcaption span { font-size: 0.83rem; color: var(--text-dim); }

/* ===== Mapa de presencia ===== */
.map-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: center; }
.mx-map { width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.4)); }
.map-legend { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.map-legend li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--text); }
.map-legend .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(34,211,238,0.18); flex-shrink: 0; }
.map-legend small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--text-dim); }
@media (max-width: 760px) {
  .map-wrap { grid-template-columns: 1fr; gap: 24px; }
  .map-legend { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
}

/* ===== Talent ===== */
.talent-panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center;
  background: linear-gradient(150deg, rgba(79,124,255,0.14), rgba(34,211,238,0.06));
  border: 1px solid var(--border); border-radius: 26px; padding: 54px 48px;
}
.talent-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.talent-copy p { color: var(--text-muted); margin-bottom: 26px; }
.talent-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.talent-tags span {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-family: var(--font-head); font-weight: 500; font-size: 0.9rem;
}

/* ===== CTA ===== */
.section-cta { text-align: center; background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(79,124,255,0.16), transparent 70%); }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-inner p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 16px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.93rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand-2); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text-dim); font-size: 0.86rem; }
.attribution { opacity: 0.7; }
.social { display: flex; gap: 12px; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social a:hover { color: #fff; border-color: var(--border-hover); transform: translateY(-3px); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200; width: min(92%, 680px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: rgba(11, 16, 48, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-muted); flex: 1; min-width: 220px; }
.cookie-actions { display: flex; gap: 10px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .talent-panel { grid-template-columns: 1fr; padding: 40px 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .nav {
    position: fixed; top: 74px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(7, 11, 30, 0.97); backdrop-filter: blur(14px);
    padding: 18px 24px 26px; border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform 0.35s ease; pointer-events: none;
  }
  .nav.open { transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 12px 4px; font-size: 1rem; }
  .nav a.btn-primary { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
