/*
 * Original Academia — public landing ("cuaderno").
 * Built on the OA-2026-01 identity: ivory paper, black ink, brand blue #008FB5,
 * orange highlighter, graph-paper grid and a blue notebook margin.
 * Hand-written on purpose: the landing does not load the Tailwind bundle.
 */

:root {
  --paper: #F5F0E6;
  --paper-2: #EFE8DA;
  --paper-3: #FBF8F2;
  --ink: #111110;
  --ink-2: #3F3C37;
  --ink-3: #6B665D;
  --rule: rgb(17 17 16 / 0.14);
  --rule-strong: rgb(17 17 16 / 0.85);
  --blue: #008FB5;
  --blue-ink: #006D8A;
  --blue-grid: rgb(0 143 181 / 0.11);
  --orange: #FF3C00;
  --orange-soft: #F28A5E;
  --sun: #F2D22E;
  --wa: #128C4B;

  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --margin-col: clamp(3.25rem, 7vw, 5.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body.lp {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.lp img { max-width: 100%; height: auto; display: block; }
.lp a { color: inherit; }
:where(.lp) :where(h1, h2, h3, p, dl, dd, figure, blockquote, ol, ul) { margin: 0; }
.lp ::selection { background: var(--orange); color: #fff; }
.lp :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.lp-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.lp-skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--paper) !important; padding: 0.6rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.lp-skip:focus { top: 1rem; }

.lp-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.lp-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 0.9rem;
}
.lp-eyebrow--light { color: #6FD0EA; }

.lp-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lp-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.lp-head__lead { margin-top: 1.1rem; font-size: 1.125rem; color: var(--ink-2); max-width: 38rem; text-wrap: pretty; }
.lp-head__lead a { color: var(--blue-ink); font-weight: 600; }

.lp-head--split {
  max-width: none;
  display: grid;
  gap: 1rem 3rem;
  align-items: end;
}
@media (min-width: 900px) {
  .lp-head--split { grid-template-columns: 1.1fr 1fr; }
  .lp-head--split .lp-head__lead { margin-top: 0; }
}

.lp-mark {
  color: inherit;
  background: linear-gradient(transparent 12%, var(--orange) 12%, var(--orange) 88%, transparent 88%);
  padding: 0 0.12em;
  margin: 0 -0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lp-hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--blue-ink);
}

/* ---------- Buttons ---------- */

.lp-ico { width: 1.15em; height: 1.15em; flex: none; }

.lp-btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.lp-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.lp-btn:active { transform: none; box-shadow: none; }
.lp-btn .lp-ico[aria-hidden] { transition: transform 0.2s var(--ease); }
.lp-btn:hover use[href="#i-arrow"] { transform: translateX(2px); }

.lp-btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.lp-btn--ink:hover { box-shadow: 4px 4px 0 var(--orange); }
.lp-btn--ghost { --btn-bg: transparent; }
.lp-btn--ghost:hover { --btn-bg: var(--paper-3); }
.lp-btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); }
.lp-btn--wa:hover { box-shadow: 4px 4px 0 var(--ink); }
.lp-btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; }
.lp-btn--lg { min-height: 56px; padding: 0.95rem 1.6rem; font-size: 1.05rem; }

/* ---------- Navigation ---------- */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(245 240 230 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.lp-nav.is-scrolled { border-bottom-color: var(--rule); }

.lp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lp-nav__brand { display: block; }
.lp-nav__brand img { height: 40px; width: auto; }

.lp-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.lp-nav__menu > a { text-decoration: none; padding: 0.4rem 0; position: relative; }
.lp-nav__menu > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.lp-nav__menu > a:hover::after { transform: scaleX(1); }
.lp-nav__actions { display: flex; gap: 0.6rem; margin-left: 0.5rem; }

.lp-nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.lp-nav__burger, .lp-nav__burger::before, .lp-nav__burger::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.lp-nav__burger { position: relative; }
.lp-nav__burger::before, .lp-nav__burger::after { content: ""; position: absolute; left: 0; }
.lp-nav__burger::before { top: -6px; }
.lp-nav__burger::after { top: 6px; }
.lp-nav__toggle[aria-expanded="true"] .lp-nav__burger { background: transparent; }
.lp-nav__toggle[aria-expanded="true"] .lp-nav__burger::before { transform: translateY(6px) rotate(45deg); }
.lp-nav__toggle[aria-expanded="true"] .lp-nav__burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  :root { --nav-h: 64px; }
  .lp-nav__brand img { height: 34px; }
  .lp-nav__toggle { display: inline-flex; }
  .lp-nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -18px rgb(17 17 16 / 0.25);
    font-size: 1.05rem;
    display: none;
  }
  .lp-nav.is-open .lp-nav__menu { display: flex; }
  .lp-nav__menu > a { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
  .lp-nav__menu > a::after { display: none; }
  .lp-nav__actions { margin: 1rem 0 0; }
  .lp-nav__actions .lp-btn { flex: 1; min-height: 48px; }
}

/* ---------- Hero shared bits ---------- */

.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.lp-hero__note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--ink-3); }
.lp-promo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem; border-radius: 8px;
  background: var(--sun); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
}
.lp-promo:hover { box-shadow: 3px 3px 0 var(--ink); }
.hxa__summer { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--blue-ink); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.lp-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1.5px solid var(--ink);
}
.lp-facts > div { padding: 1.1rem 1rem 0 0; }
.lp-facts > div + div { border-left: 1px solid var(--rule); padding-left: 1rem; }
.lp-facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
.lp-facts dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lp-facts dd { margin-top: 0.3rem; font-size: 0.92rem; color: var(--ink-3); }
@media (min-width: 820px) {
  .lp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-facts > div:nth-child(3) { border-left: 1px solid var(--rule); padding-left: 1rem; }
  .lp-facts > div { padding-right: 1.5rem; }
}
@media (max-width: 819px) {
  .lp-facts > div:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 1.1rem; }
}

/* ---------- Notebook sections ---------- */

.lp-section { padding-block: var(--section-y); position: relative; }
.lp-section--alt { background: var(--paper-2); }
.lp-section--ink { background: var(--ink); color: var(--paper); }

.lp-sheet {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
}
.lp-num {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--orange);
  padding-top: 0.2rem;
  position: relative;
}
.lp-num::after {
  /* the notebook margin: runs the full height of the section */
  content: "";
  position: absolute;
  right: 0;
  top: calc(var(--section-y) * -1);
  bottom: calc(var(--section-y) * -1);
  width: 2px;
  background: rgb(0 143 181 / 0.5);
}
.lp-section--ink .lp-num { color: var(--orange-soft); }
.lp-section--ink .lp-num::after { background: rgb(111 208 234 / 0.3); }
.lp-sheet__body { padding-left: clamp(1.25rem, 4vw, 3.5rem); min-width: 0; }

@media (max-width: 699px) {
  .lp-sheet { grid-template-columns: 1fr; }
  .lp-num { margin: 0 0 0.25rem; padding: 0; }
  .lp-num::after { display: none; }
  .lp-sheet__body { padding-left: 0; }
}

/* ---------- 01 · Turno ---------- */

.lp-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.lp-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-bottom: 2rem;
}
.lp-step::before {
  content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: 0.25rem;
  border-left: 2px dashed rgb(17 17 16 / 0.22);
}
.lp-step:last-child::before { display: none; }
.lp-step__n {
  grid-row: span 2;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.lp-step:nth-child(4) .lp-step__n { background: var(--ink); color: var(--paper); }
.lp-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  padding-top: 0.6rem;
}
.lp-step p { margin-top: 0.35rem; color: var(--ink-2); max-width: 36rem; }

@media (min-width: 1000px) {
  .lp-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem; }
  .lp-step { grid-template-columns: 1fr; padding-bottom: 0; }
  .lp-step__n { grid-row: auto; margin-bottom: 1.1rem; }
  .lp-step::before {
    left: 3.25rem; right: -1.5rem; top: 1.5rem; bottom: auto;
    border-left: 0; border-top: 2px dashed rgb(17 17 16 / 0.22);
  }
  .lp-step h3 { padding-top: 0; }
  .lp-step p { font-size: 0.98rem; }
}

.lp-turno__note { margin-top: clamp(1.5rem, 3vw, 2.5rem); transform: rotate(-1.5deg); display: inline-block; }

/* ---------- 02 · Método ---------- */

.lp-principles {
  display: grid;
  border-top: 1.5px solid var(--ink);
}
.lp-principle { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.lp-principle__icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 1rem; --paper: var(--paper-2); }
.lp-principle h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.lp-principle p { margin-top: 0.6rem; color: var(--ink-2); }
@media (min-width: 860px) {
  .lp-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .lp-principle { padding: 2rem 2rem 2.25rem; border-bottom: 0; }
  .lp-principle:first-child { padding-left: 0; }
  .lp-principle + .lp-principle { border-left: 1px solid var(--rule); }
}

.lp-subjects { margin-top: clamp(3rem, 6vw, 4.5rem); }
.lp-subjects__title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.5rem;
}
.lp-subjects__list > div {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.lp-subjects__list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.lp-subjects__list dd { color: var(--ink-2); }
@media (min-width: 760px) {
  .lp-subjects__list > div { grid-template-columns: 17rem minmax(0, 1fr); align-items: baseline; }
}

/* ---------- 03 · Planes ---------- */

.lp-plans {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .lp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.lp-plan__art {
  order: 2;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: 0.5rem 0 0.75rem;
}
.lp-plan__head { order: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.lp-plan h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; text-transform: uppercase; }
.lp-plan__hours { font-size: 0.95rem; color: var(--blue-ink); }
.lp-plan__hours strong { font-family: var(--font-display); font-size: 1.05rem; }

.lp-plan__fit strong { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.lp-plan__fit { order: 3; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.98rem; }

@media (max-width: 899px) {
  .lp-plan { display: grid; grid-template-columns: minmax(0, 1fr) 110px; column-gap: 1rem; }
  .lp-plan__head, .lp-plan__fit { grid-column: 1 / -1; }
  .lp-plan__head { grid-column: 1; grid-row: 1; align-self: center; flex-direction: column; gap: 0.2rem; }
  .lp-plan__art { grid-column: 2; grid-row: 1; max-height: 120px; margin: 0; }
}

.lp-plan-ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2rem; padding: 1.25rem 1.5rem;
  border: 1.5px dashed rgb(17 17 16 / 0.35); border-radius: var(--radius);
}
.lp-plan-ask p { max-width: 44rem; color: var(--ink-2); }
.lp-plan-ask strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- 04 · Horario ---------- */

.lp-week {
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  overflow-x: auto;
}
.lp-week__table { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; min-width: 520px; }
.lp-week__table th {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; text-align: center; padding: 0.3rem;
}
.lp-week__table thead th:first-child, .lp-week__table tbody th { width: 5.2rem; }
.lp-week__table tbody th { text-align: left; font-size: 0.95rem; white-space: nowrap; }
.lp-week__table abbr { text-decoration: none; }
.lp-week__table td {
  height: 4.6rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px dashed rgb(17 17 16 / 0.25);
  text-align: center;
  vertical-align: middle;
  padding: 0.4rem;
  transition: background 0.3s var(--ease);
}
.lp-slot { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.lp-slot b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.1; }

.lp-week__table td[data-state="ok"] { background: rgb(0 143 181 / 0.1); border: 1px solid rgb(0 143 181 / 0.45); }
.lp-week__table td[data-state="ok"] .lp-slot { color: var(--blue-ink); }
.lp-week__table td[data-state="tight"] { background: rgb(242 138 94 / 0.18); border: 1px solid var(--orange-soft); }
.lp-week__table td[data-state="tight"] .lp-slot { color: #9A3A12; }
.lp-week__table td[data-state="full"] {
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgb(17 17 16 / 0.05) 6px 12px), var(--paper-2);
  border: 1px solid var(--rule);
}
.lp-week__table td[data-state="full"] .lp-slot { color: var(--ink-3); }

.lp-week__table td:has(> a.lp-slot, > button.lp-slot) { padding: 0; }
a.lp-slot, button.lp-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 4.6rem; padding: 0.4rem;
  border: 0; border-radius: 10px; background: transparent; color: inherit;
  font: inherit; font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
a.lp-slot:hover, button.lp-slot:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.lp-slot__cta {
  display: block; margin-top: 0.15rem; font-family: var(--font-hand); font-size: 1.05rem; font-weight: 600; color: var(--blue-ink);
}

/* ---------- Waitlist dialog ---------- */

.lp-wl {
  width: min(100% - 2rem, 36rem);
  max-height: min(100svh - 2rem, 52rem);
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--blue);
}
.lp-wl::backdrop { background: rgb(17 17 16 / 0.45); backdrop-filter: blur(2px); }
.lp-wl > div { padding: clamp(1.25rem, 4vw, 2rem); }
.lp-wl__x { position: absolute; top: 0.6rem; right: 0.6rem; }
.lp-wl__x button {
  width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50%;
  background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lp-wl__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; padding-right: 2.5rem; }
.lp-wl__now {
  margin-top: 1.1rem; padding: 0.9rem 1rem;
  border-radius: 10px; background: rgb(0 143 181 / 0.1); border: 1px solid rgb(0 143 181 / 0.4);
  font-size: 0.95rem;
}
.lp-wl__free { list-style: none; padding: 0; margin: 0.5rem 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lp-wl__free li { padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--paper-3); font-weight: 600; font-size: 0.85rem; }
.lp-wl__form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.lp-wl__turns { border: 0; padding: 0; margin: 0; }
.lp-wl__turns legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.lp-wl__turns legend small { font-weight: 400; color: var(--ink-3); }
.lp-wl__turns > div { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lp-wl__turns label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; border: 1.5px solid var(--rule-strong); border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.lp-wl__turns label:has(input:checked) { background: var(--ink); color: var(--paper); }
.lp-wl__turns label:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.lp-wl__grid { display: grid; gap: 0.8rem; }
@media (min-width: 560px) { .lp-wl__grid { grid-template-columns: 1fr 1fr; } }
.lp-wl__field { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.lp-wl__field input, .lp-wl__field select {
  width: 100%; min-height: 46px; padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; font-weight: 500;
}
.lp-wl__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-wl__check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.lp-wl__check input { margin-top: 0.2rem; width: 18px; height: 18px; }
.lp-wl__form .lp-btn { justify-self: start; }
.lp-wl__status:empty { display: none; }
.lp-wl__status { font-size: 0.92rem; font-weight: 600; color: #9A3A12; }
.lp-wl__done p:not(.lp-eyebrow) { margin: 0.8rem 0 1.2rem; color: var(--ink-2); }

@media (max-width: 599px) {
  .lp-week { padding: 0.5rem; }
  .lp-week__table { min-width: 0; border-spacing: 3px; }
  .lp-week__table thead th:first-child, .lp-week__table tbody th { width: 3.1rem; }
  .lp-week__table th { font-size: 0.78rem; padding: 0.2rem 0; }
  .lp-week__table tbody th { font-size: 0.7rem; white-space: nowrap; }
  .lp-week__table td { height: 3.6rem; padding: 0.2rem; border-radius: 8px; }
  a.lp-slot, button.lp-slot { min-height: 3.6rem; padding: 0.2rem; font-size: 0.66rem; }
  .lp-slot__cta { font-size: 0.8rem; }
  .lp-slot { font-size: 0.66rem; }
  .lp-slot span:not(.lp-slot__cta) { display: none; }
  .lp-slot b { font-size: 1.2rem; }
}

.lp-week__status { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-3); min-height: 1.4em; padding-left: 6px; }
.lp-week__status:empty { display: none; }
.lp-week__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.75rem; }
.lp-week__closed { width: 100%; font-weight: 600; }

/* ---------- 05 · Profesor ---------- */

.lp-section--ink .lp-h2 { color: var(--paper); font-size: clamp(2.4rem, 6vw, 4.4rem); }
.lp-mentor { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .lp-mentor { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
}
.lp-mentor__role { margin-top: 0.9rem; color: rgb(245 240 230 / 0.7); font-size: 1.02rem; }
.lp-mentor__owl { width: 96px; margin-top: 2.25rem; opacity: 0.95; }
.lp-mentor__quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: pretty;
}
.lp-mentor__text > p { margin-top: 1.2rem; color: rgb(245 240 230 / 0.78); max-width: 36rem; }
.lp-mentor__text > p:first-of-type { margin-top: 2rem; }

/* ---------- 06 · Opiniones ---------- */

.lp-reviews { columns: 1; column-gap: 1.25rem; }
@media (min-width: 700px) { .lp-reviews { columns: 2; } }
@media (min-width: 1050px) { .lp-reviews { columns: 3; } }

.lp-review {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.4rem 1.2rem;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.lp-review blockquote { margin: 0; }
.lp-review p { color: var(--ink-2); font-size: 1rem; }
.lp-review figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.lp-review figcaption::before { content: ""; width: 1.5rem; height: 2px; background: var(--blue); }

.lp-review--lead { background: var(--ink); border-color: var(--ink); }
.lp-review--lead p {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.35;
}
.lp-review--lead .lp-mark { color: var(--ink); }
.lp-review--lead figcaption { color: var(--paper); }

/* ---------- 07 · Preguntas ---------- */

.lp-faq { display: grid; gap: 0 4rem; }
@media (min-width: 960px) {
  .lp-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .lp-faq .lp-head { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
}
.lp-faq__list { border-top: 1.5px solid var(--ink); }
.lp-faq__item { border-bottom: 1px solid var(--rule); }
.lp-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.35;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.lp-faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
.lp-faq__item summary:hover { color: var(--blue-ink); }
.lp-faq__item p { padding: 0 3rem 1.4rem 0; color: var(--ink-2); max-width: 40rem; }

/* ---------- 08 · Visita ---------- */

.lp-visit { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .lp-visit { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 4rem; } }
.lp-visit__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.lp-card {
  font-style: normal;
  position: relative;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--blue);
  overflow: hidden;
}
.lp-card::before {
  /* the notebook-card margin */
  content: ""; position: absolute; top: 0; bottom: 0; left: 2.1rem; width: 1.5px; background: rgb(0 143 181 / 0.55);
}
.lp-card__top {
  padding: 1.25rem 1.5rem 1rem 3.2rem;
  background-image:
    linear-gradient(var(--blue-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-grid) 1px, transparent 1px);
  background-size: 18px 18px;
  border-bottom: 1px solid var(--rule);
}
.lp-card__top img { height: 42px; width: auto; }
.lp-card__top .lp-hand { margin-top: 0.1rem; font-size: 1.35rem; }
.lp-card__rows { list-style: none; padding: 0.4rem 1.5rem 0.4rem 3.2rem; }
.lp-card__rows li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.9rem 0; border-bottom: 1px solid var(--rule);
  font-size: 0.98rem; color: var(--ink-2); line-height: 1.45;
}
.lp-card__rows li:last-child { border-bottom: 0; }
.lp-card__rows .lp-ico { margin-top: 0.15rem; color: var(--blue-ink); }
.lp-card__rows strong { color: var(--ink); font-weight: 600; }
.lp-card__rows a { color: var(--ink); text-decoration-color: rgb(0 143 181 / 0.6); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lp-card__rows a:hover { color: var(--blue-ink); }
.lp-card__hours { padding: 1rem 1.5rem 1.1rem 3.2rem; background: var(--ink); color: var(--paper); font-size: 0.95rem; }

/* ---------- Footer ---------- */

.lp-footer { background: var(--ink); color: rgb(245 240 230 / 0.7); padding: 2.5rem 0 2.75rem; border-top: 1px solid rgb(245 240 230 / 0.12); }
.lp-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.lp-footer img { height: 38px; width: auto; }
.lp-footer__meta { margin-top: 0.4rem; font-size: 0.88rem; }
.lp-footer__links { display: flex; gap: 1.5rem; font-size: 0.92rem; }
.lp-footer__links a { text-decoration: none; }
.lp-footer__links a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- Mobile contact bar ---------- */

.lp-mobilebar { display: none; }
@media (max-width: 759px) {
  body.lp { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .lp-mobilebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgb(245 240 230 / 0.94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
  }
  .lp-mobilebar a {
    flex: 1; min-height: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border: 1.5px solid var(--ink); border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; text-decoration: none;
    padding: 0 0.5rem; white-space: nowrap;
  }
  .lp-mobilebar a:first-child { background: var(--wa); border-color: var(--wa); color: #fff; }
  .lp-mobilebar .lp-mobilebar__primary { background: var(--ink); color: var(--paper); flex: 1.3; }
}

/* ---------- Seasonal floating actions (shared class names) ---------- */

.lp .oa-landing-floating-actions {
  position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 45;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.lp .oa-landing-floating-action {
  display: grid; min-width: 10rem; padding: 0.75rem 1rem;
  background: var(--paper-3); color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lp .oa-landing-floating-action:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--orange); }
.lp .oa-landing-floating-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.lp .oa-landing-floating-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
@media (max-width: 759px) {
  .lp .oa-landing-floating-actions { bottom: calc(80px + env(safe-area-inset-bottom)); flex-direction: row; left: var(--gutter); right: var(--gutter); }
  .lp .oa-landing-floating-action { flex: 1; min-width: 0; padding: 0.55rem 0.8rem; box-shadow: 3px 3px 0 var(--ink); }
  .lp .oa-landing-floating-actions--evergreen,
  .lp .oa-landing-floating-action--prematriculation { display: none; }
}

/* ---------- Reveal (only when JS is running) ---------- */

.lp-js [data-reveal] { opacity: 0; transition: opacity 0.8s var(--ease); }
.lp-js [data-reveal].is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { transition: none !important; animation: none !important; }
  .lp-js [data-reveal] { opacity: 1; }
}

@media print {
  .lp-nav, .lp-mobilebar, .oa-landing-floating-actions { display: none !important; }
  .lp-section--ink, .lp-footer { background: #fff; color: #000; }
}

/* =====================================================================
 * Hero · Búho 3D, and the "del caos al orden" interlude.
 * ===================================================================== */

.hxa, .lpo {
  --paper-grid:
    linear-gradient(var(--blue-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-grid) 1px, transparent 1px);
  position: relative;
  border-bottom: 1.5px solid var(--ink);
}

/* ---------- Hero · Búho 3D ---------- */

.hxa {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
  background-color: var(--paper);
  background-image: var(--paper-grid);
  background-size: 28px 28px;
}
.hxa__scene {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 72% 42%;
  pointer-events: none;
}
.hxa__floor {
  position: absolute;
  left: -40%; right: -40%; bottom: -8%;
  height: 70%;
  transform-origin: 50% 100%;
  transform: rotateX(74deg);
  background-image:
    linear-gradient(rgb(0 143 181 / 0.35) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgb(0 143 181 / 0.35) 1.5px, transparent 1.5px);
  background-size: 64px 64px;
  background-position: 0 calc(var(--hxa-scroll, 0) * 520px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.hxa__rig {
  --size: min(27vw, 370px);
  position: absolute;
  right: 9%;
  top: 46%;
  width: var(--size);
  aspect-ratio: 1262 / 1570;
  margin-top: calc(var(--size) * -0.62);
  transform-style: preserve-3d;
  will-change: transform;
}
.hxa__owl { position: absolute; inset: 0; transform-style: preserve-3d; }
.hxa__layer { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; }
.hxa__owl::after {
  /* soft contact shadow on the grid floor */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -9%; height: 12%;
  background: radial-gradient(closest-side, rgb(17 17 16 / 0.28), transparent);
  transform: rotateX(90deg);
}
.hxa__chip {
  position: absolute;
  left: calc(50% + var(--x) * 0.5);
  top: calc(50% + var(--y) * 0.5);
  transform: translate(-50%, -50%) translateZ(var(--z)) rotate(-4deg);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  color: var(--ink-2);
  white-space: nowrap;
}
.hxa__chip--blue { color: var(--blue-ink); }
.hxa__chip--orange { color: var(--orange); }

.hxa__copy {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 7vh, 5rem) 2rem;
}
.hxa__copy > * { max-width: 40rem; }
.hxa__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.2vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 11ch;
}
.hxa__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hxa__line > span { display: inline-block; animation: hx-rise 0.9s var(--ease) both; }
.hxa__line:nth-child(2) > span { animation-delay: 0.08s; }
.hxa__line:nth-child(3) > span { animation-delay: 0.16s; }
.hxa__line--soft { font-size: 0.42em; letter-spacing: -0.02em; color: var(--ink-3); margin-top: 0.35em; }
.hxa__copy .lp-hero__cta { margin-top: 2.25rem; }
.hxa__facts { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.hxa__facts .lp-facts { margin-top: 0; background: rgb(245 240 230 / 0.82); backdrop-filter: blur(4px); }

@keyframes hx-rise { from { transform: translateY(105%); } to { transform: none; } }

@media (max-width: 959px) {
  .hxa__scene { position: relative; order: 2; height: 360px; perspective-origin: 50% 40%; margin-top: -1rem; }
  .hxa__copy { order: 1; flex: none; padding-bottom: 0; }
  .hxa__facts { order: 3; }
  .hxa__rig { --size: min(50vw, 230px); right: auto; left: 50%; top: 48%; margin-left: calc(var(--size) * -0.5); }
  .hxa__chip { font-size: 1.15rem; }
}

/* ---------- Interlude · Del caos al orden ---------- */

.lpo { background-color: var(--paper); background-image: var(--paper-grid); background-size: 28px 28px; border-top: 1.5px solid var(--ink); }
.lpo.is-ready .lpo__track { height: 190vh; }
.lpo__sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  min-height: 540px;
  overflow: hidden;
}
.lpo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lpo__copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lpo__copy > * { max-width: 34rem; }
.lpo__before {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.3vw, 1.9rem);
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.lpo__before::after {
  content: ""; position: absolute; left: 0; top: 54%; height: 3px; border-radius: 2px;
  background: var(--orange);
  width: calc(min(var(--lpo-p, 0) * 2.4, 1) * 100%);
}
.lpo__before em { font-style: normal; color: var(--ink-2); }
.lpo__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lpo__title .lp-mark { white-space: nowrap; }
.lpo__lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
  max-width: 30rem;
  opacity: clamp(0, (var(--lpo-p, 0) - 0.35) * 4, 1);
}
.lpo__photo {
  --show: clamp(0, (var(--lpo-p, 0) - 0.5) * 3.4, 1);
  position: absolute;
  z-index: 1;
  right: 13%;
  top: 50%;
  width: min(21vw, 290px);
  padding: 10px 10px 12px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 24px 40px -22px rgb(17 17 16 / 0.5);
  opacity: var(--show);
  transform: translateY(-50%) translateY(calc((1 - var(--show)) * 40px)) rotate(calc(3deg - var(--show) * 1deg)) scale(calc(0.9 + var(--show) * 0.1));
}
.lpo__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }

@media (max-width: 959px) {
  .lpo__copy { justify-content: flex-start; padding-top: 2rem; }
  .lpo__lead { font-size: 1rem; }
  .lpo__photo { right: 50%; top: auto; bottom: 88px; width: min(36vw, 170px); transform: translateX(50%) translateY(calc((1 - var(--show)) * 40px)) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lpo.is-ready .lpo__track { height: auto; }
  .lpo__sticky { position: relative; top: 0; }
  .lpo__lead { opacity: 1; }
  .hxa__line > span { animation: none; }
}

/* ---------- Closed-season page (rendered by renderSeasonalClosedPageHtml) ---------- */

.lp-closed {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(var(--blue-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.lp-closed__top { padding: 1rem var(--gutter); }
.lp-closed__top img { height: 40px; width: auto; }
.lp-closed__main { flex: 1; display: grid; place-items: center; padding: 2rem var(--gutter) 3rem; }
.lp-closed__card {
  position: relative;
  width: min(100%, 40rem);
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--blue);
}
.lp-closed__owl { position: absolute; right: 1.5rem; top: -2.6rem; width: 70px; height: auto; transform: rotate(6deg); }
.lp-closed__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.lp-closed__message { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-2); }
.lp-closed__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.lp-closed__foot { padding: 1.25rem var(--gutter) 1.75rem; text-align: center; font-size: 0.85rem; color: var(--ink-3); }

/* Biblioteca de apuntes: a window onto the hand-drawn library */
.lp-library { background: var(--paper-3); border-block: 1px solid var(--rule); }
.lp-library__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lp-library__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.lp-library__alt { font-family: var(--font-hand); font-size: 1.5rem; color: var(--blue-ink); }
.lp-library__window { display: block; transform: rotate(-1.5deg); transition: transform .35s var(--ease); filter: drop-shadow(8px 10px 0 rgb(17 17 16 / .12)); }
.lp-library__window:hover, .lp-library__window:focus-visible { transform: rotate(0) translateY(-4px); }
.lp-library__window svg { width: 100%; height: auto; display: block; }
.lp-library__glow { animation: lp-library-glow 2.6s ease-in-out infinite; }
@keyframes lp-library-glow { 50% { opacity: .2; } }
.lp-library__wanderer { animation: lp-library-sway 4s ease-in-out infinite; transform-origin: 350px 264px; }
@keyframes lp-library-sway { 50% { transform: rotate(-2deg); } }
@media (max-width: 860px) { .lp-library__inner { grid-template-columns: 1fr; } .lp-library__window { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .lp-library__glow, .lp-library__wanderer { animation: none; } .lp-library__window { transition: none; } }
