/* =========================================================
   Gabinete Estratégico Digital — estilos (mobile-first)
   ========================================================= */
:root {
  --dark: #0F1F3D;        /* Azul tinta */
  --dark-2: #152B52;
  --teal: #1D9E75;        /* Verde datos */
  --teal-2: #17805F;
  --arena: #F6F5F2;
  --carbon: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --yellow: #FACC15;

  --font-heading: 'Archivo', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --shadow: 0 10px 25px rgba(15, 31, 61, 0.08);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--carbon);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--teal); text-decoration: none; transition: color .2s, background .2s, transform .2s; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 3.5rem 0; }
.bg-light { background: var(--arena); }
.bg-dark { background: var(--dark); }
.text-white { color: #fff !important; }
.text-teal { color: var(--teal); }
.text-soft { color: rgba(255,255,255,.75); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.25rem; }

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  position: relative;
  display: inline-block;
  padding-bottom: .9rem;
  margin-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
}
.section-title.left::after { left: 0; transform: none; }

.subtitle { color: var(--muted); font-size: 1rem; }
.lead { font-size: 1.05rem; margin-bottom: 1rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-2); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--arena); color: var(--dark); transform: translateY(-2px); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--dark); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  background: var(--dark);
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.25); }

.nav-container { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }

.logo img { height: 42px; width: auto; filter: brightness(0) invert(1); }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

.nav-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  box-shadow: 0 12px 20px rgba(0,0,0,.25);
}
.nav-menu.active { max-height: 80vh; }
.nav-menu ul { display: flex; flex-direction: column; padding: .5rem 1.25rem 1.25rem; }
.nav-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-menu li:last-child { border-bottom: none; padding-top: .9rem; }
.nav-menu a { display: block; padding: .85rem 0; color: #fff; font-weight: 500; }
.nav-menu a:hover { color: var(--teal); }
.nav-menu a.btn { display: flex; padding: .75rem 1rem; }
.nav-menu a.btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  overflow: hidden;
}
.hero-background {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(29,158,117,.18), transparent 55%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, 32px 32px;
}
.hero-layout { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--yellow);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: 1rem;
}
.hero-lead { color: rgba(255,255,255,.82); font-size: 1.02rem; margin-bottom: 1.25rem; max-width: 560px; }

.hero-features { margin-bottom: 1.5rem; }
.hero-features li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .5rem; font-size: .95rem; }
.hero-features i { color: var(--teal); font-size: 1.15rem; margin-top: .2rem; }

.hero-actions { display: flex; flex-direction: column; gap: .75rem; }
.hero-actions .btn { width: 100%; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero-video-wrapper { position: relative; width: min(320px, 85%); }
.hero-video-wrapper::before {
  content: ''; position: absolute; inset: -8%;
  background: radial-gradient(circle, rgba(29,158,117,.28), transparent 70%);
  border-radius: 50%; z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}
.hero-video-wrapper video { width: 100%; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }

.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hero-chips span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem;
  border-radius: 50px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  font-size: .85rem;
}
.hero-chips i { color: var(--teal); }

@keyframes pulseGlow { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* ---------- Nosotros ---------- */
.about-grid, .split { display: grid; gap: 2rem; align-items: center; }
.diff-card h3 { color: var(--teal); margin-bottom: 1rem; font-size: 1.3rem; }

.check-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; }
.check-list li + li { border-top: 1px dashed var(--line); }
.check-list i { color: var(--teal); width: 22px; text-align: center; margin-top: .25rem; flex-shrink: 0; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(29,158,117,.12);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; }
.service-card .for { margin-top: auto; padding-top: 1rem; color: var(--dark); font-weight: 600; font-size: .88rem; }
.service-card .for i { color: var(--teal); margin-right: .35rem; }
.service-card .how {
  margin-top: .6rem;
  background: var(--arena);
  border-radius: 8px;
  padding: .55rem .8rem;
  font-size: .85rem;
  color: var(--muted);
}

.flow {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
}
.flow-step {
  display: flex; align-items: center; gap: .8rem;
  background: var(--dark); color: #fff;
  border-radius: 12px; padding: .9rem 1.1rem;
}
.flow-step i { color: var(--teal); font-size: 1.2rem; width: 24px; text-align: center; }
.flow-step strong { color: var(--teal); }
.flow-arrow { color: var(--teal); align-self: center; transform: rotate(90deg); }

/* ---------- Juegos ---------- */
.games-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.game-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: background .25s, border-color .25s, transform .25s;
}
.game-card:hover { background: rgba(255,255,255,.09); border-color: var(--teal); transform: translateY(-4px); }
.game-card > i { font-size: 1.8rem; color: var(--teal); margin-bottom: .9rem; }
.game-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: .5rem; }
.game-card p { color: rgba(255,255,255,.75); font-size: .93rem; margin-bottom: 1rem; }
.game-tag {
  margin-top: auto; align-self: flex-start;
  font-size: .78rem; font-weight: 600;
  color: var(--yellow);
  border: 1px solid rgba(250,204,21,.4);
  border-radius: 50px; padding: .3rem .75rem;
}

/* ---------- Catálogo ---------- */
.catalog-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.catalog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s;
}
.catalog-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.catalog-card.free { border-color: var(--teal); background: rgba(29,158,117,.05); }
.badge {
  align-self: flex-start;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--teal);
  background: rgba(29,158,117,.1);
  border-radius: 50px; padding: .25rem .7rem;
  margin-bottom: .8rem;
}
.catalog-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.catalog-card p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.meta { margin-top: auto; border-top: 1px solid var(--line); padding-top: .8rem; }
.meta li { font-size: .87rem; display: flex; gap: .55rem; align-items: center; padding: .15rem 0; }
.meta i { color: var(--teal); width: 18px; text-align: center; }

/* ---------- Concursos ---------- */
.steps-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.step {
  position: relative;
  background: var(--arena);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.6rem;
}
.step-num {
  position: absolute; left: 1.3rem; top: 1.4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800;
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .93rem; }

/* ---------- Público ---------- */
.audience-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.audience-card {
  text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  transition: transform .25s, border-color .25s;
}
.audience-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.audience-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.audience-card p { font-size: .93rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; padding: 3rem 0; }
.cta-inner { display: grid; gap: 1.5rem; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: .4rem; }
.cta p { color: rgba(255,255,255,.9); }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; }
.cta-actions .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding-top: 3rem; }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; }
.footer-logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.slogan { font-family: var(--font-mono); color: var(--teal); font-size: .9rem; margin-bottom: .3rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-list li { padding: .3rem 0; color: rgba(255,255,255,.75); font-size: .93rem; word-break: break-word; }
.footer-list i { color: var(--teal); width: 20px; }
.footer-list a { color: rgba(255,255,255,.85); }
.footer-list a:hover { color: var(--teal); }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover { background: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 1.25rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.6); }

.whatsapp-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Animaciones ---------- */
.animate-up { opacity: 0; transform: translateY(24px); animation: fadeUp .8s ease forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animate-up, .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet (≥ 600px)
   ========================================================= */
@media (min-width: 600px) {
  .container { padding: 0 2rem; }
  .hero-actions, .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn, .cta-actions .btn { width: auto; }
  .services-grid, .games-grid, .catalog-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =========================================================
   Escritorio pequeño (≥ 900px)
   ========================================================= */
@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .section { padding: 5rem 0; }

  .mobile-menu-toggle { display: none; }
  .nav-menu {
    position: static; max-height: none; overflow: visible;
    background: none; box-shadow: none;
  }
  .nav-menu ul { flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; }
  .nav-menu li, .nav-menu li:last-child { border: none; padding: 0; }
  .nav-menu a { padding: .4rem 0; font-size: .95rem; }
  .logo img { height: 48px; }

  .hero { padding: calc(var(--header-h) + 3.5rem) 0 4.5rem; min-height: 88vh; display: flex; align-items: center; }
  .hero-layout { grid-template-columns: 1.1fr .9fr; gap: 3rem; }

  .about-grid, .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }

  .services-grid, .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .games-grid { grid-template-columns: repeat(6, 1fr); }
  .games-grid .game-card { grid-column: span 2; }
  .games-grid .game-card:nth-child(4) { grid-column: 2 / span 2; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 4.4rem 1.5rem 1.5rem; }
  .step-num { top: 1.4rem; left: 1.5rem; }
  .audience-grid { grid-template-columns: repeat(4, 1fr); }

  .flow { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; }
  .flow-arrow { transform: none; }

  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1100px) {
  .nav-menu ul { gap: 2rem; }
}
