/* ============================================================
   Konecta Academy — landing
   Brand: Navy #22264F · Morado #8453A6 · 120° gradient
   Type: Manrope
   ============================================================ */

:root {
  /* Brand */
  --navy: #22264F;
  --navy-700: #2C3163;
  --navy-600: #363c78;
  --purple: #8453A6;
  --purple-600: #7a4b9b;
  --purple-100: #efe9f4;
  --purple-50: #f6f2f9;
  --grad: linear-gradient(120deg, #22264F 0%, #8453A6 100%);
  --grad-soft: linear-gradient(135deg, #2a2e5c 0%, #6d4a92 60%, #8453A6 100%);

  /* Neutrals (cool) */
  --bg: #f4f4f8;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --line: #eceaf1;
  --line-2: #e2e0ea;

  /* Text */
  --ink: #1f2143;
  --ink-2: #4b4d6b;
  --muted: #7d7d92;
  --faint: #a3a2b4;

  /* Service accents */
  --c-martial: #2e3164;
  --c-psico: #8453A6;
  --c-fisio: #18a890;
  --c-refuerzo: #e0962a;
  --c-camp: #e1564b;
  --c-train: #9a73c4;

  --shadow-sm: 0 1px 2px rgba(34,38,79,.05), 0 1px 3px rgba(34,38,79,.04);
  --shadow: 0 4px 16px rgba(34,38,79,.06), 0 1px 4px rgba(34,38,79,.04);
  --shadow-md: 0 10px 30px rgba(34,38,79,.10), 0 2px 8px rgba(34,38,79,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Inline SVG icon wrapper */
.ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; line-height: 0; flex: none;
  vertical-align: -0.135em; font-size: 20px;
}
.ic svg { width: 1em; height: 1em; display: block; }

/* ===== nav ===== */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.nav .brand { display: inline-flex; align-items: center; }
.nav img { height: 38px; }
.nav .links { display: flex; align-items: center; gap: 34px; }
.nav .links a { font-size: 15px; font-weight: 600; color: #4a4d6b; }
.nav .links a:first-child { color: var(--navy); }
.nav .links a:not(.cta):hover { color: var(--purple); }
.nav .links a.cta { background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px; padding: 11px 22px; border-radius: 12px; }
.nav .links a.cta:hover { background: var(--navy-700); }

/* hamburger toggle (mobile) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav panel */
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 32px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a { color: var(--navy); font-weight: 600; font-size: 15px; padding: 11px 4px; }
.mobile-nav a.cta {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: 12px; text-align: center; margin-top: 8px;
}

/* ===== hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 56px 0 80px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--purple-600);
  background: var(--purple-50); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.hero h1 { font-size: clamp(34px, 5.5vw, 53px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; margin: 22px 0 20px; }
.hero p.lead { font-size: 17.5px; line-height: 1.6; color: #56586f; max-width: 440px; margin: 0 0 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { font-family: inherit; border: none; cursor: pointer; font-weight: 700; border-radius: 13px; font-size: 15.5px;
  padding: 15px 26px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { background: #fff; color: var(--navy); border: 1.6px solid var(--line-2); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple-600); }
.hero-img { width: 100%; height: auto; aspect-ratio: 5/4.4; object-fit: cover; border-radius: 26px;
  background-color: #322c54; box-shadow: var(--shadow-md); }

/* ===== section base ===== */
section { padding: 86px 0; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--purple-600);
  background: var(--purple-50); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.center { text-align: center; }
h2.big { font-size: clamp(28px, 4.5vw, 39px); font-weight: 800; letter-spacing: -.02em; margin: 18px 0 12px; }
.sub { font-size: 17px; color: #62647c; max-width: 480px; margin: 0 auto; line-height: 1.55; }

/* ===== services ===== */
.services { background: linear-gradient(180deg, #faf9fc, #f4f2f8); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; text-align: left; }
.svc { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid #f0eef5; }
.svc .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.svc .ico .ic { font-size: 26px; }
.svc h3 { font-size: 20px; font-weight: 800; margin: 0 0 9px; letter-spacing: -.01em; }
.svc p { font-size: 14.5px; color: #63657d; line-height: 1.55; margin: 0; }

/* ===== equipo ===== */
.equipo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.equipo-img { width: 100%; height: auto; aspect-ratio: 1/0.82; object-fit: cover; border-radius: 24px;
  background-color: #5a4a3a; box-shadow: var(--shadow-md); }
.equipo h2 { font-size: clamp(27px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 18px 0 18px; line-height: 1.1; }
.equipo p { font-size: 16px; color: #5a5c74; line-height: 1.65; margin: 0 0 24px; }
.team-cards { display: flex; gap: 14px; }
.team-card { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; }
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.team-card .avatar { width: 40px; height: 40px; }
.team-card .team-name { font-weight: 800; font-size: 15px; }
.team-card .team-role { color: var(--muted); font-size: 13px; }

/* ===== CTA ===== */
.cta-band { background: var(--grad); color: #fff; text-align: center; border-radius: 30px; padding: 64px 32px; margin: 40px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-band h2 { font-size: clamp(27px, 4.5vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; position: relative; }
.cta-band p { font-size: 17px; opacity: .88; margin: 0 0 30px; position: relative; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost-w { background: transparent; color: #fff; border: 1.6px solid rgba(255,255,255,.45); }
.btn-ghost-w:hover { background: rgba(255,255,255,.1); }

/* ===== footer ===== */
footer { background: var(--navy); color: #fff; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 30px; margin-bottom: 18px; }
.foot-brand p { font-size: 14px; color: #b9bad4; line-height: 1.6; max-width: 250px; margin: 0; }
.foot-brand p.foot-app { margin-top: 10px; color: #9a9cc0; }
.foot-col h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #8688b0; margin: 4px 0 18px; }
.foot-col a { display: block; font-size: 14.5px; color: #c8c9e0; margin-bottom: 12px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 50px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.foot-bottom span { font-size: 13.5px; color: #9a9cc0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #cfd0ea; }
.socials a:hover { background: rgba(255,255,255,.16); color: #fff; }
.socials .ic { font-size: 19px; }

/* ===== responsive (current landing breakpoints: 960 / 760) ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 56px; }
  .equipo { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav .links { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 56px 0; }
  .svc-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .team-cards { flex-direction: column; }
  .cta-band { padding: 48px 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* keyboard focus visibility */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px;
}

/* ── Horarios (weekly schedule, fed by /api/public/schedule) ─────────────── */
.horarios { padding: 72px 0; background: linear-gradient(180deg, #faf9fc, #f4f2f8); }
.sched-msg { color: #62647c; margin-top: 26px; }
.tt-card { background: #fff; border: 1px solid #f0eef5; border-radius: 24px; box-shadow: var(--shadow);
  margin-top: 52px; padding: 8px 20px 20px; overflow-x: auto; text-align: left; }
.tt { display: grid; grid-template-columns: 88px repeat(7, 1fr); min-width: 980px; }
.tt-head { padding: 20px 8px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em;
  color: var(--navy); text-align: center; }
.tt-head.we { color: var(--purple-600); }
.tt-time, .tt-cell { border-top: 1px solid var(--line); }
.tt-time { padding: 16px 12px; display: flex; flex-direction: column; gap: 1px; justify-content: center; }
.tt-time .t1 { font-size: 14.5px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.tt-time .t2 { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.tt-cell { padding: 8px 5px; display: flex; flex-direction: column; gap: 6px; }
.ev { flex: 1; position: relative; border-radius: 12px; padding: 10px 10px 10px 19px; min-height: 58px;
  background: #f4f2f8;
  background: color-mix(in srgb, var(--c, #8453A6) 8%, #fff);
  display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.ev::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 3.5px;
  border-radius: 99px; background: var(--c, #8453A6); }
.ev b { font-size: 13px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
  color: var(--navy);
  color: color-mix(in srgb, var(--c, #8453A6) 55%, var(--navy)); }
.ev span { font-size: 11.5px; font-weight: 600; color: #82839b; }
.tt-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px;
  font-size: 14px; font-weight: 600; color: var(--muted); }
.tt-note .ic { color: var(--purple-600); display: inline-flex; }
.tt-note .ic svg { width: 17px; height: 17px; }
