/* ============================================================
   Finnegans Academia — landing (Propuesta A "Claro").
   Todo scopeado bajo .acad para no filtrar al resto del site.
   Rama Academia → teal como color de acción primario.
   ============================================================ */
.acad {
  /* paleta teal */
  --teal: #008584;
  --teal-deep: #006b6a;
  --teal-700: #00514f;
  --teal-100: #e3f1f0;
  --teal-50: #f0f8f7;
  --ink: #04102d;

  /* texto / superficies (subset del DS de Finnegans) */
  --text-strong: #04102d;
  --text-body: #2a3354;
  --text-muted: #6b7490;
  --text-subtle: #9aa1b4;
  --surface-page: #ffffff;
  --surface-sunken: #f6f7fb;
  --border-subtle: #e2e5ee;
  --border-strong: #bfbfc1;

  /* layout / efectos */
  --container-max: 1200px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-lg: 0 16px 40px rgba(4, 16, 45, 0.16);
  --font-display: 'Poppins', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color: var(--text-body);
  font-family: 'Poppins', system-ui, sans-serif;
  overflow-x: hidden;
}

.acad *,
.acad *::before,
.acad *::after { box-sizing: border-box; }

.acad .container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}
.acad section { position: relative; }
.acad .sec-pad { padding: 92px 0; }

/* Hero: fondo teal suave que llega hasta arriba (bajo el header flotante), con espacio
   extra para que el header no tape el contenido → se lee como toolbar (igual que la home). */
.acad > section:first-of-type { background: var(--teal-100); padding-top: clamp(40px, 5vw, 62px); }
.acad h1, .acad h2, .acad h3 { color: var(--text-strong); font-family: var(--font-display); font-weight: 500; }
.acad .lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); }
.acad a { color: inherit; }

/* entrada: solo transform, el estado en reposo siempre es visible */
@keyframes acRise { from { transform: translateY(16px); } to { transform: none; } }
.acad .ac-rise { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .acad .ac-rise { animation: acRise 0.6s var(--ease-out) both; }
}

/* aurora del hero */
.acad .aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.acad .aurora i { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.45; }

/* botones (recrea el Button del DS: primary teal / secondary outline / inverse) */
.acad .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-family: var(--font-display); font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.acad .btn-sm { padding: 9px 16px; font-size: 14px; }
.acad .btn-lg { padding: 14px 26px; font-size: 16px; }
.acad .btn-primary { background: var(--teal); color: #fff; }
.acad .btn-primary:hover { background: var(--teal-deep); }
.acad .btn-secondary { background: transparent; color: var(--_fg, var(--text-strong)); border-color: var(--_bd, var(--border-strong)); }
.acad .btn-secondary:hover { border-color: var(--_fg, var(--teal)); color: var(--_fg, var(--teal)); }
.acad .btn-inverse { background: #fff; color: var(--teal-700); }
.acad .btn-inverse:hover { background: rgba(255, 255, 255, 0.9); }
.acad .btn svg { flex: 0 0 auto; }

/* eyebrow / overline */
.acad .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--teal);
}
.acad .eyebrow.on-dark { color: rgba(255, 255, 255, 0.9); }

/* card de curso (sección dinámica) */
.acad .curso-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.acad a.curso-card:hover { transform: translateY(-3px); box-shadow: 0 28px 60px rgba(4, 16, 45, 0.12); }

/* ---------- grids de sección ---------- */
.acad .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.acad .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.acad .split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .acad .container { padding: 0 20px; }
  .acad .sec-pad { padding: 64px 0; }
  .acad .grid-3 { grid-template-columns: 1fr; }
  .acad .grid-4 { grid-template-columns: 1fr 1fr; }
  .acad .split { grid-template-columns: 1fr; gap: 36px; }
  .acad .tools-panel { grid-template-columns: 1fr !important; gap: 18px !important; justify-items: center; text-align: center; }
  .acad .tools-panel > div { display: flex; flex-direction: column; align-items: center; }
  .acad .tools-panel p { margin-left: auto !important; margin-right: auto !important; }
  .acad .panel-box { height: auto !important; min-height: 0 !important; padding: 28px !important; }
}
@media (max-width: 560px) {
  .acad .grid-4 { grid-template-columns: 1fr; }
  .acad .sec-pad { padding: 52px 0; }
}
