/* academy/home.css — Academy home (hero, continue learning, learning path). Loaded after alphaLearning.css. */

/* Real Inter weights (the site only shipped Light, so bold text was synthesized) */
@font-face { font-family: 'Inter'; font-weight: 300; font-display: swap; src: url('../paquetesDescargados/Inter/static/Inter_18pt-Light.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../paquetesDescargados/Inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../paquetesDescargados/Inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../paquetesDescargados/Inter/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../paquetesDescargados/Inter/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('../paquetesDescargados/Inter/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 900; font-display: swap; src: url('../paquetesDescargados/Inter/inter-latin-900-normal.woff2') format('woff2'); }

:root {
  --ac-ink: #16242a;
  --ac-muted: rgba(22, 36, 42, 0.62);
  --ac-faint: rgba(22, 36, 42, 0.42);
  --ac-line: rgba(22, 36, 42, 0.09);
  --ac-teal: #548C92;
  --ac-teal-dark: #285260;
  --ac-tint: #EAF3F3;
  --ac-sand: #AB9072;
  --ac-radius: 18px;
}

.al-main { overflow-x: clip; }

/* ===== Shared ===== */
.ac-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ac-teal);
}
.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.ac-btn--primary {
  background: var(--ac-teal-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(40, 82, 96, 0.22);
}
.ac-btn--primary:hover { transform: translateY(-1px); background: #1f4450; box-shadow: 0 14px 30px rgba(40, 82, 96, 0.28); }
.ac-btn--primary i { font-size: 13px; transition: transform .18s ease; }
.ac-btn--primary:hover i { transform: translateX(3px); }
.ac-btn--ghost {
  background: #fff;
  color: var(--ac-teal-dark);
  border: 1.5px solid rgba(40, 82, 96, 0.18);
}
.ac-btn--ghost:hover { border-color: var(--ac-teal); transform: translateY(-1px); }
.ac-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 36, 42, 0.08);
  overflow: hidden;
}
.ac-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ac-teal), var(--ac-teal-dark));
}

/* ===== Hero ===== */
.ac-hero {
  position: relative;
  padding: 64px 56px 56px;
  border: 1px solid var(--ac-line);
  border-radius: 28px;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(84, 140, 146, 0.16), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(84, 140, 146, 0.08), transparent 70%),
    #fbfdfd;
  overflow: hidden;
}
.ac-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(84, 140, 146, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 140, 146, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.ac-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.ac-hero__title {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ac-ink);
}
.ac-hero__title span { display: block; color: var(--ac-teal); font-weight: 900; }
.ac-hero__sub {
  margin-top: 20px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ac-muted);
}
.ac-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ac-hero__cta .ac-btn--primary { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ac-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--ac-line);
}
.ac-stats li { display: flex; flex-direction: column; gap: 2px; }
.ac-stats b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ac-ink); }
.ac-stats span { font-size: 13px; font-weight: 500; color: var(--ac-muted); }

/* stacked module covers */
.ac-hero__art { position: relative; aspect-ratio: 16 / 11; }
.ac-stack {
  position: absolute;
  width: 86%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(22, 36, 42, 0.08);
  box-shadow: 0 30px 60px rgba(40, 82, 96, 0.18), 0 6px 16px rgba(40, 82, 96, 0.08);
  background: #fff;
  opacity: 0;
  animation: acStackIn .8s cubic-bezier(.2, .8, .2, 1) forwards;
}
.ac-stack--1 { left: 0;   top: 18%; z-index: 3; animation-delay: .35s; }
.ac-stack--2 { left: 9%;  top: 9%;  z-index: 2; transform: rotate(2.5deg); filter: saturate(.85); animation-delay: .2s; }
.ac-stack--3 { left: 16%; top: 0;   z-index: 1; transform: rotate(5deg); filter: saturate(.7); animation-delay: .05s; }
@keyframes acStackIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ===== Sections ===== */
.ac-section { max-width: 1200px; margin: 0 auto; padding: 56px 0 8px; }
.ac-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ac-h2 {
  margin-top: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ac-ink);
}
.ac-section__sub { margin-top: 10px; max-width: 620px; font-size: 15.5px; line-height: 1.55; color: var(--ac-muted); }

/* ===== Continue learning ===== */
.ac-continue { padding-top: 40px; }
.ac-continue .ac-section__head { margin-bottom: 14px; }
.ac-continue__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.ac-resume {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  box-shadow: 0 10px 30px rgba(22, 36, 42, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .5s ease, translate .5s ease;
}
.ac-resume:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(22, 36, 42, 0.09); border-color: rgba(84, 140, 146, 0.3); }
.ac-resume__thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ac-tint); }
.ac-resume__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-resume__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(22, 36, 42, 0.7);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(4px);
  transition: transform .2s ease, background .2s ease;
}
.ac-resume:hover .ac-resume__play { transform: scale(1.08); background: var(--ac-teal-dark); }
.ac-resume__eyebrow { font-size: 12px; font-weight: 700; color: var(--ac-teal); }
.ac-resume__title { margin-top: 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ac-ink); line-height: 1.25; }
.ac-resume__module { margin-top: 2px; font-size: 13px; color: var(--ac-muted); }
.ac-resume .ac-bar { margin-top: 12px; max-width: 320px; }
.ac-resume__pct { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ac-faint); }
.ac-resume__go { height: 40px; padding: 0 18px; font-size: 14px; }

/* ===== Toolbar: search + level ===== */
.ac-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.ac-search { position: relative; flex: 1 1 340px; max-width: 460px; }
.ac-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ac-faint); }
.ac-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border-radius: 12px;
  border: 1.5px solid var(--ac-line);
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ac-ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ac-search input::placeholder { color: var(--ac-faint); }
.ac-search input:focus { border-color: var(--ac-teal); box-shadow: 0 0 0 4px rgba(84, 140, 146, 0.14); }
.ac-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  z-index: 50;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(22, 36, 42, 0.14);
}
.ac-suggest__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.ac-suggest__item:hover, .ac-suggest__item:focus { background: var(--ac-tint); outline: none; }
.ac-suggest__title { font-size: 14px; font-weight: 700; color: var(--ac-ink); }
.ac-suggest__meta { font-size: 12px; color: var(--ac-muted); }
.ac-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ac-line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ac-muted);
  cursor: pointer;
  transition: all .15s ease;
}
.ac-filter:hover { border-color: rgba(84, 140, 146, 0.35); color: var(--ac-ink); }
.ac-filter.is-active { background: var(--ac-ink); border-color: var(--ac-ink); color: #fff; }
.ac-dot { width: 8px; height: 8px; border-radius: 50%; }
.ac-dot--beginner { background: #1E7A46; }
.ac-dot--intermediate { background: #D98A00; }
.ac-dot--advanced { background: #7B2CBF; }

/* ===== Module cards ===== */
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ac-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 36, 42, 0.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .5s ease, translate .5s ease;
}
.ac-card[hidden] { display: none; }
.ac-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(22, 36, 42, 0.11); border-color: rgba(84, 140, 146, 0.28); }
.ac-card, .ac-resume { opacity: 0; translate: 0 16px; }
.ac-card.is-in, .ac-resume.is-in { opacity: 1; translate: 0 0; }
.ac-card__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ac-tint); border-bottom: 1px solid var(--ac-line); }
.ac-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ac-card:hover .ac-card__cover img { transform: scale(1.04); }
.ac-status {
  position: absolute;
  right: 12px; top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(22, 36, 42, 0.14);
  font-size: 12px;
  font-weight: 700;
  color: var(--ac-teal-dark);
}
.ac-status--done { background: var(--ac-teal-dark); color: #fff; }
.ac-card__body { padding: 18px 20px 0; flex: 1; }
.ac-card__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ac-faint); }
.ac-level { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; }
.ac-level--beginner { background: var(--level-beginner-bg); color: var(--level-beginner-text); border-color: var(--level-beginner-border); }
.ac-level--intermediate { background: var(--level-intermediate-bg); color: var(--level-intermediate-text); border-color: var(--level-intermediate-border); }
.ac-level--advanced { background: var(--level-advanced-bg); color: var(--level-advanced-text); border-color: var(--level-advanced-border); }
.ac-card__title { margin-top: 10px; font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; color: var(--ac-ink); }
.ac-card__sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ac-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-card__topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ac-card__topics span {
  padding: 4px 10px;
  border-radius: 8px;
  background: #F3F6F7;
  font-size: 12px;
  font-weight: 600;
  color: rgba(22, 36, 42, 0.72);
}
.ac-card__topics .ac-more { background: transparent; color: var(--ac-faint); padding-left: 2px; }
.ac-card__foot { padding: 16px 20px 18px; margin-top: 16px; border-top: 1px solid var(--ac-line); }
.ac-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; font-weight: 600; color: var(--ac-muted); }
.ac-card__meta i { color: var(--ac-teal); margin-right: 3px; }
.ac-card__cases { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ac-card__logos { display: flex; }
.ac-card__logos > * + * { margin-left: -8px; }
.ac-logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ac-line);
  object-fit: contain;
  padding: 3px;
}
.ac-logo--initial { display: grid; place-items: center; padding: 0; background: var(--ac-teal-dark); color: #fff; font-size: 12px; font-weight: 800; }
.ac-card__cta { font-size: 14px; font-weight: 700; color: var(--ac-teal-dark); }
.ac-card__cta i { font-size: 12px; margin-left: 4px; transition: transform .18s ease; }
.ac-card:hover .ac-card__cta i { transform: translateX(4px); }
.ac-bar--card { margin-top: 14px; height: 5px; }
.ac-empty { padding: 40px 0; text-align: center; font-size: 15px; color: var(--ac-muted); }

/* the metric reference sits under the path with the same width */
.al-metrics-section { margin-top: 48px; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ac-hero__art { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 700px) {
  .ac-hero { padding: 36px 20px 32px; border-radius: 20px; }
  .ac-section { padding: 40px 0 8px; }
  .ac-grid { grid-template-columns: 1fr; }
  .ac-continue__list { grid-template-columns: 1fr; }
  .ac-resume { grid-template-columns: 120px minmax(0, 1fr); }
  .ac-resume__go { display: none; }
  .ac-stats { gap: 20px; }
  .ac-hero__cta .ac-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; height: auto; min-height: 48px; padding: 12px 18px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-stack { animation: none; opacity: 1; }
  .ac-card, .ac-resume { opacity: 1; translate: none; transition: none; }
}
