/* ===========================================================
   Game Time Continuum — shared stylesheet
   Brand system: warm-light base, carbón dark contrast bands,
   coral primary / azul secondary accents. Oswald + Quicksand.
   =========================================================== */

:root {
  /* Official palette */
  --carbon:  #292B31;
  --coral:   #EF6175;
  --azul:    #44469B;
  --marfil:  #EFE8E3;
  --gris:    #B9B9B9;
  --white:   #FFFFFF;
  --coral-text: #B53048;

  /* Derived warm tints (kept inside brand hues) */
  --marfil-deep: #E7DED7;
  --carbon-soft: #34373F;
  --carbon-700:  #1F2126;
  --coral-soft:  #F8E3E7;
  --azul-soft:   #E5E5F1;
  --ink-60: rgba(41, 43, 49, 0.70);
  --ink-45: rgba(41, 43, 49, 0.45);
  --line:   rgba(41, 43, 49, 0.12);
  --line-on-dark: rgba(239, 232, 227, 0.16);

  /* Type */
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Quicksand", "Trebuchet MS", sans-serif;

  /* Radii — soft, to echo the rounded logo */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadow — subtle, warm */
  --sh-1: 0 1px 2px rgba(41,43,49,.05), 0 4px 14px rgba(41,43,49,.06);
  --sh-2: 0 2px 6px rgba(41,43,49,.06), 0 18px 40px rgba(41,43,49,.10);
  --sh-coral: 0 10px 28px rgba(239,97,117,.34);
  --sh-azul: 0 10px 28px rgba(68,70,155,.30);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  color: var(--carbon);
  background: var(--marfil);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(239,97,117,.26); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap,
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
/* Collapse the seam between two sections that share the same background */
.section--flush-bottom { padding-bottom: clamp(24px, 3vw, 40px); }
.section--flush-top { padding-top: clamp(24px, 3vw, 40px); }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; border-radius: 2px;
  background: var(--coral);
  opacity: 1;
}
.eyebrow--center::before { display: none; }

.kicker { /* small label, neutral */
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-60);
  font-weight: 500;
  max-width: 56ch;
}

.h-display { font-size: clamp(44px, 7vw, 96px); line-height: .96; }
.h-1 { font-size: clamp(38px, 5.2vw, 68px); }
.h-2 { font-size: clamp(30px, 3.6vw, 46px); }
.h-3 { font-size: clamp(22px, 2.2vw, 30px); }

.text-coral { color: var(--coral); }
.text-azul  { color: var(--azul); }
.text-muted { color: var(--ink-60); }
.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  color: var(--azul);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--coral-text); }
.on-dark .text-link { color: var(--marfil); }
.on-dark .text-link:hover { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn .arr { width: 1.15em; height: 1.15em; flex: 0 0 auto; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn--coral { background: var(--coral); color: var(--white); box-shadow: var(--sh-coral); }
.btn--coral:hover { background: #ed4f66; box-shadow: 0 14px 34px rgba(239,97,117,.42); transform: translateY(-2px); }

.btn--azul { background: var(--azul); color: var(--white); box-shadow: var(--sh-azul); }
.btn--azul:hover { background: #3c3e8e; transform: translateY(-2px); }

.btn--carbon { background: var(--carbon); color: var(--marfil); }
.btn--carbon:hover { background: var(--carbon-soft); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--carbon); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--carbon); background: rgba(41,43,49,.04); }

.btn--ghost-light { background: transparent; color: var(--marfil); border-color: var(--line-on-dark); }
.btn--ghost-light:hover { border-color: var(--marfil); background: rgba(239,232,227,.08); }

.btn--lg { padding: 17px 32px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(239,232,227,.94);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.nav.is-stuck {
  background: rgba(239,232,227,.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 30px; width: auto; }
.nav__logo .fallback { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: .04em; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--carbon);
  padding: 9px 15px;
  border-radius: var(--r-pill);
  position: relative;
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover { background: rgba(41,43,49,.05); }
.nav__link.is-active { color: var(--coral); }
.nav__link.is-active::after {
  content:""; position:absolute; left:15px; right:15px; bottom:3px; height:2px;
  background: var(--coral); border-radius: 2px;
}
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--white);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--carbon); border-radius: 2px; transition: .25s ease; }
.nav__burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2){ opacity: 0; }
.nav__burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: 76px 0 auto 0; z-index: 55;
  background: var(--marfil); border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter) 26px;
  display: none; flex-direction: column; gap: 4px;
  box-shadow: var(--sh-2);
  transform: translateY(-8px); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__mobile.is-open { display: flex; transform: translateY(0); opacity: 1; }
.nav__mobile a { font-family: var(--body); font-weight: 600; font-size: 18px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.nav__mobile a:last-of-type { border-bottom: 0; }
.nav__mobile .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--carbon-700); color: var(--marfil); padding-block: clamp(56px, 7vw, 88px) 28px; border-top: 1px solid var(--line-on-dark); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px 40px; align-items: start; }
.footer__brand img { height: 88px; width: auto; margin-bottom: 18px; }
.footer__tag { color: rgba(239,232,227,.66); max-width: 34ch; font-size: 15px; }
.footer__news h4 { font-size: 19px; letter-spacing: .02em; margin-bottom: 6px; }
.footer__news p { color: rgba(239,232,227,.6); font-size: 14px; margin-bottom: 16px; }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid var(--line-on-dark);
  display: grid; place-items: center; color: var(--marfil);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__social a:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-on-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(239,232,227,.5);
}
.footer__bottom a:hover { color: var(--coral); }

/* ---------- Cards & surfaces ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(41,43,49,.18); }

/* Catalog/bundle grids: cards stretch to equal height, so pin the price +
   action to the bottom. This lines every "Ver clase" button up on a common
   baseline regardless of how much copy each card carries. */
.card-grid .card { display: flex; flex-direction: column; }
.card-grid .card .price-line { margin-top: auto; }
.card-grid .card > .btn { align-self: flex-start; }

.badge-icon { width: 56px; height: 56px; border-radius: var(--r-pill); display: block; }
.badge-icon--sm { width: 44px; height: 44px; }

/* Image placeholder — labeled, brand striped */
.ph {
  position: relative;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(41,43,49,.045) 0 12px, rgba(41,43,49,0) 12px 24px),
    var(--marfil-deep);
  border: 1.5px dashed rgba(41,43,49,.2);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--ink-60);
}
.ph__tag {
  font-family: "Courier New", monospace;
  font-size: 12.5px; letter-spacing: .02em;
  background: rgba(255,255,255,.7);
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px;
}
.ph__tag::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(239,232,227,.06) 0 12px, rgba(239,232,227,0) 12px 24px),
    var(--carbon-soft);
  border-color: rgba(239,232,227,.22);
  color: rgba(239,232,227,.7);
}
.ph--dark .ph__tag { background: rgba(41,43,49,.55); border-color: var(--line-on-dark); color: var(--marfil); }
.ph--large { min-height: 430px; padding: 28px; text-align: center; }

/* ---------- Pills / chips ---------- */
.chip {
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line); color: var(--carbon);
  display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.chip::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--azul); opacity: .8; }
.chip:hover { transform: translateY(-2px); border-color: var(--azul); }

/* ---------- Section heading block ---------- */
.shead { max-width: 64ch; }
.shead .h-2 { margin-top: 16px; }
.shead .lead { margin-top: 18px; }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .eyebrow { justify-content: center; }
.shead--center .lead { margin-inline: auto; }
.section__head { max-width: 66ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { margin-top: 16px; }
.section__head p:not(.eyebrow) { margin-top: 18px; color: var(--ink-60); }
.on-dark .section__head p:not(.eyebrow) { color: rgba(239,232,227,.72); }

/* ---------- Dark section base ---------- */
.on-dark { background: var(--carbon); color: var(--marfil); }
.on-dark .lead { color: rgba(239,232,227,.72); }
.on-dark .kicker { color: rgba(239,232,227,.5); }
.on-dark .card { background: var(--carbon-soft); border-color: var(--line-on-dark); color: var(--marfil); box-shadow: none; }

/* Coral / azul accent bands */
.on-coral { background: var(--coral); color: var(--white); }
.on-azul  { background: var(--azul); color: var(--white); }
.on-coral .lead, .on-azul .lead { color: rgba(255,255,255,.86); }

/* ---------- Decorative watermark infinity ---------- */
.wm {
  position: absolute; pointer-events: none; user-select: none;
  opacity: .06; z-index: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .07s; }
.reveal[data-d="2"]{ transition-delay: .14s; }
.reveal[data-d="3"]{ transition-delay: .21s; }
.reveal[data-d="4"]{ transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.flexwrap { flex-wrap: wrap; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.center { text-align: center; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta, .nav__account, .nav__login { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Django public pages ---------------------------------------------------- */
.hero,
.phero {
  background: var(--carbon);
  color: var(--marfil);
  overflow: hidden;
  position: relative;
}

.heroA {
  min-height: min(760px, 92vh);
  padding-block: 148px 80px;
  position: relative;
}

.heroA__grid,
.phero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.heroA__wm {
  position: absolute;
  right: -8vw;
  top: 120px;
  width: min(620px, 62vw);
  opacity: .045;
  pointer-events: none;
}

.heroA__copy,
.phero .reveal:first-child {
  position: relative;
  z-index: 1;
}

.heroA h1 {
  max-width: 11ch;
  color: var(--marfil);
}
.phero h1 {
  max-width: 15ch;
  color: var(--marfil);
}

.heroA .lead,
.phero .lead {
  max-width: 58ch;
  color: rgba(239,232,227,.78);
  margin-top: 22px;
}

.heroA__actions,
.phero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.heroA__form {
  max-width: 460px;
  margin-top: 30px;
}

.heroA__form + .heroA__actions {
  margin-top: 20px;
}

/* Masterclasses hero: one prominent primary CTA, then the two secondary
   links as a tidy equal-width pair so the stack reads as intentional. */
.phero__actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.phero__actions-row {
  display: flex;
  gap: 12px;
  align-self: stretch;
  max-width: 440px;
}

.phero__actions-row .btn {
  flex: 1 1 0;
  min-width: 150px;
}

.heroA__mobile-proof {
  display: none;
  margin-top: 16px;
  color: rgba(239,232,227,.86);
  font-weight: 700;
  font-size: 14px;
}

.heroA__media,
.phero__panel {
  position: relative;
}

.heroA__film-card {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-xl);
  background:
    linear-gradient(145deg, rgba(239,97,117,.18), rgba(239,97,117,0) 34%),
    linear-gradient(315deg, rgba(68,70,155,.28), rgba(68,70,155,0) 40%),
    radial-gradient(circle at 50% 42%, rgba(239,232,227,.12), rgba(239,232,227,0) 48%),
    var(--carbon-soft);
  box-shadow: 0 26px 80px rgba(0,0,0,.24);
  overflow: hidden;
}

.heroA__film-card::before,
.heroA__film-card::after {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
}

.heroA__film-card::before {
  border: 1px solid rgba(239,232,227,.11);
  border-radius: calc(var(--r-xl) - 10px);
}

.heroA__film-card::after {
  background:
    linear-gradient(90deg, rgba(239,232,227,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(239,232,227,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 72%, transparent);
  opacity: .42;
}

/* Photo variant: a real image fills the framed film-card edge-to-edge.
   Drop the centred padding and grid overlay so the photo reads cleanly;
   the ::before inner hairline stays as a subtle frame. */
.heroA__film-card--photo {
  padding: 0;
}

.heroA__film-card--photo::after {
  display: none;
}

.heroA__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: inherit;
}

/* Event-photo rotator: stacked slides crossfading inside the film card.
   site.js cycles .is-active; reduced-motion users keep the first slide. */
.heroA__slide {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.heroA__slide.is-active {
  opacity: 1;
}

.heroA__slide-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(41,43,49,.78);
  color: var(--marfil);
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}

.heroA__logo-film {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  aspect-ratio: 379 / 182;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.32));
}

.heroA__logo-video,
.heroA__logo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask: url("../brand/icon-infinity-mask.c5a7d5a83a31.png") center / contain no-repeat;
  mask: url("../brand/icon-infinity-mask.c5a7d5a83a31.png") center / contain no-repeat;
}

.heroA__logo-video {
  z-index: 2;
}

.heroA__logo-fallback {
  z-index: 1;
}

.heroA__logo-static {
  display: none;
  position: absolute;
  z-index: 3;
  width: 76%;
  opacity: .92;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.28));
}

.heroA__film-lockup {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 2;
  width: min(190px, 42%);
  height: auto;
}

@supports not ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .heroA__logo-video,
  .heroA__logo-fallback {
    border-radius: var(--r-lg);
    -webkit-mask: none;
    mask: none;
  }

  .heroA__logo-static {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroA__logo-video {
    display: none;
  }
}

@media (max-width: 900px) {
  .heroA__film-card {
    min-height: clamp(320px, 82vw, 430px);
    padding: clamp(24px, 8vw, 42px);
  }

  .heroA__logo-film {
    width: min(100%, 340px);
  }

  .heroA__film-lockup {
    left: 22px;
    top: 22px;
    width: min(164px, 48%);
  }
}

.heroA__badge {
  position: absolute;
  width: 74px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.2));
}

.heroA__badge--1 { left: -22px; top: -20px; }
.heroA__badge--2 { right: -14px; bottom: 22px; }

.heroA__note {
  display: grid;
  gap: 2px;
  position: absolute;
  left: 28px;
  bottom: 26px;
  max-width: 260px;
  padding: 16px 18px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-md);
  background: rgba(41,43,49,.78);
  backdrop-filter: blur(12px);
  color: var(--marfil);
}

.heroA__note span { color: rgba(239,232,227,.72); font-size: 14px; }

.phero {
  padding-block: 148px 88px;
}

.phero__panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  background: var(--carbon-soft);
}
/* Panel sits on a dark hero, so its label needs a light tone (the default
   .kicker ink is dark and disappears against the panel). */
.phero .kicker { color: rgba(239, 232, 227, 0.62); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.58);
}

.on-dark .steps article {
  border-color: var(--line-on-dark);
  background: rgba(255,255,255,.06);
}

.steps b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--head);
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: rgba(239,232,227,.76);
  list-style: none;
}

.check-list li {
  padding-left: 26px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.team-card,
.consultant-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.benefit-grid .card {
  padding: 28px;
}

.mini-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.45;
}

.mini-list li {
  position: relative;
  padding-left: 18px;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.on-dark .mini-list {
  color: rgba(239,232,227,.72);
}

.price-line {
  margin-top: 20px;
  color: var(--azul);
  font-family: var(--head);
  font-size: 22px;
  font-weight: 600;
}

.calendar-agenda {
  display: grid;
  gap: clamp(26px, 4vw, 42px);
}

.calendar-month h2,
.calendar-month h3 {
  margin-bottom: 16px;
  color: var(--carbon);
}

.calendar-list {
  display: grid;
  gap: 14px;
}

.calendar-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.calendar-date {
  display: grid;
  place-items: center;
  min-height: 82px;
  border-radius: var(--r-sm);
  background: var(--coral-soft);
  color: var(--carbon);
  text-align: center;
}

.calendar-date span {
  font-family: var(--head);
  font-size: 36px;
  line-height: 1;
}

.calendar-date b {
  color: var(--coral);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.calendar-main h3,
.calendar-main h4 {
  margin-top: 6px;
  color: var(--carbon);
}

.calendar-main p:not(.kicker) {
  margin-top: 8px;
  color: var(--ink-60);
}

.calendar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  align-items: center;
}

.calendar-empty {
  max-width: 680px;
  padding: 28px;
}

.calendar-empty p { margin: 10px 0 20px; }

/* ---------- Filterable masterclass agenda ---------- */
.phero--compact { padding-block: 132px 64px; }
.phero--compact h1 { max-width: 18ch; }

.agenda-stats {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
}
.agenda-stats li { display: flex; flex-direction: column; }
.agenda-stats b {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  color: var(--coral);
}
.agenda-stats span {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(239, 232, 227, 0.72);
}

.agenda { display: grid; gap: clamp(22px, 3vw, 34px); }

.agenda-filters {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 22px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

.agenda-search { position: relative; }
.agenda-search__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-45);
  pointer-events: none;
}
.agenda-search input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--carbon);
  background: var(--marfil);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, background .15s ease;
}
.agenda-search input::placeholder { color: var(--ink-45); }
.agenda-search input:hover { border-color: var(--ink-45); }
.agenda-search input:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
  background: var(--white);
}
/* Hide the browser's native search clear; we render our own consistent one. */
.agenda-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.agenda-search__clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  padding: 0;
  color: var(--ink-60);
  background: var(--marfil-deep);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.agenda-search__clear:hover { color: var(--white); background: var(--coral); }
.agenda-search__clear:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

/* Labelled chip groups (Mes, Tema) — mirror the select fields below them. */
.agenda-group { display: grid; gap: 8px; }
.agenda-group__label {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.agenda-segment { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-chip {
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 8px 16px;
  color: var(--carbon);
  background: var(--marfil);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.agenda-chip:hover { border-color: var(--coral); }
.agenda-chip.is-active {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: var(--sh-coral);
}
.agenda-chip:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

.agenda-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.agenda-field { display: grid; gap: 6px; }
.agenda-field > span {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.agenda-field select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  color: var(--carbon);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2344469B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.agenda-field select:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

.agenda-filters__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.agenda-count {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  color: var(--carbon);
}
.agenda-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;
  padding: 8px 14px;
  color: var(--coral);
  background: var(--coral-soft, var(--marfil));
  border: 1px solid var(--coral);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.agenda-reset:hover { color: var(--white); background: var(--coral); }
.agenda-reset:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.agenda-reset svg { flex: none; }
.agenda [hidden] { display: none !important; }

.agenda-results { display: grid; gap: clamp(26px, 4vw, 40px); }
.agenda-month { display: grid; gap: 14px; }
.agenda-month__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--carbon);
  font-size: clamp(22px, 3vw, 30px);
}
.agenda-month__head span { color: var(--ink-45); font-size: .62em; font-weight: 600; }

.agenda-list { display: grid; gap: 12px; }

.agenda-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: clamp(16px, 2.4vw, 24px);
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.agenda-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: rgba(239, 97, 117, 0.4);
}

.agenda-date {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-height: 84px;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  background: var(--coral-soft);
  text-align: center;
}
.agenda-date b {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-text);
}
.agenda-date span {
  font-family: var(--head);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--carbon);
}
.agenda-date em {
  font-style: normal;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.agenda-card__body { min-width: 0; }
.agenda-card__body h3 {
  margin: 6px 0 2px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--carbon);
}
.agenda-teacher { color: var(--ink-60); font-size: 14px; }

.agenda-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.agenda-time {
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink-60);
}
.agenda-time b {
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  color: var(--carbon);
}

.agenda-pill {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.agenda-pill--session { color: var(--azul); background: var(--azul-soft); }

.agenda-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.agenda-tag {
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  color: var(--carbon);
  background: var(--marfil-deep);
}
.agenda-tag--area { color: var(--azul); background: var(--azul-soft); }
.agenda-tag--muted { color: var(--ink-60); background: transparent; border: 1px solid var(--line); }

.agenda-card__cta { display: flex; justify-content: flex-end; }

.agenda-noresults {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 52px) 20px;
}
.agenda-noresults h2 { color: var(--carbon); }
.agenda-noresults p { margin: 12px 0 22px; color: var(--ink-60); }

@media (max-width: 720px) {
  .agenda-filters { top: 70px; }
  .agenda-card {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }
  .agenda-date { min-height: 64px; }
  .agenda-date span { font-size: 28px; }
  .agenda-card__cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .agenda-card__cta .btn { width: 100%; text-align: center; }
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  border: 1px solid rgba(239,97,117,.24);
  font-family: var(--head);
  font-size: 24px;
  font-weight: 600;
}

.avatar-placeholder--large {
  width: 96px;
  height: 96px;
  font-size: 30px;
}

.on-dark .avatar-placeholder {
  background: rgba(239,97,117,.16);
  color: var(--marfil);
  border-color: rgba(239,232,227,.18);
}

/* Real team photos on /equipo/ (replace the avatar-placeholder) */
.team-card { text-align: center; }
.team-photo {
  display: block;
  margin: 0 auto;
  width: 168px;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.team-photo--lg { width: 188px; height: 188px; }
.on-dark .team-photo { border-color: var(--line-on-dark); }
/* Initials placeholder used until a real photo is dropped in */
.team-photo--ph {
  display: grid;
  place-items: center;
  background: var(--coral-soft);
  color: var(--coral);
  font-family: var(--head);
  font-size: 44px;
  font-weight: 600;
}
.on-dark .team-photo--ph { background: rgba(239,97,117,.16); color: var(--marfil); }
/* /equipo/ secondary team: 3 per row, with the final row centered so a
   leftover card never dangles alone at the bottom. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.team-grid > * {
  flex: 0 1 calc((100% - 44px) / 3);
  min-width: 220px;
}
.team-grid--2col > * { flex-basis: calc((100% - 22px) / 2); max-width: 420px; }
@media (max-width: 900px) {
  .team-grid > * { flex-basis: 100%; }
}
.team-card__role {
  color: var(--azul);
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
}
.on-dark .team-card__role { color: var(--coral); }
.team-card__note { color: var(--ink-60); font-size: 13.5px; }
.on-dark .team-card__note { color: rgba(239, 232, 227, 0.66); }

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.path-grid .card,
.route-card,
.faq-item,
.offer-card {
  height: 100%;
}

.path-card h3,
.route-card h3,
.faq-item h3,
.offer-card h3 {
  margin-top: 10px;
}

.path-card p:not(.kicker),
.route-card p:not(.kicker),
.faq-item p,
.offer-card p:not(.kicker) {
  margin-top: 12px;
  color: var(--ink-60);
}

.route-strip,
.faq-grid,
.consulting-offers {
  display: grid;
  gap: 18px;
}

.route-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card,
.faq-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.58);
}

.route-card--accent {
  background: var(--azul-soft);
  border-color: rgba(68,70,155,.18);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  background: var(--white);
  box-shadow: var(--sh-1);
}

/* Servicios: 3 per row, with the trailing row centered so the last two
   cards sit balanced instead of leaving one stranded (matches .team-grid). */
.consulting-offers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.consulting-offers > * {
  flex: 0 1 calc((100% - 36px) / 3);
  min-width: 220px;
}
@media (max-width: 900px) {
  .consulting-offers > * { flex-basis: 100%; }
}

.offer-card .mini-list {
  margin-top: 16px;
}

.offer-note {
  max-width: 74ch;
  margin-top: 24px;
  color: rgba(239,232,227,.72);
}

.on-dark .offer-card p:not(.kicker),
.on-dark .offer-card .mini-list {
  color: rgba(239,232,227,.74);
}

.on-coral .eyebrow,
.on-azul .eyebrow,
.on-dark .eyebrow {
  color: var(--marfil);
}

.on-coral .eyebrow::before,
.on-azul .eyebrow::before,
.on-dark .eyebrow::before {
  background: rgba(239,232,227,.74);
}

.waitlist-box {
  max-width: 460px;
  width: 100%;
}

.field-row {
  display: flex;
  gap: 8px;
}

.field-row input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--carbon);
  font-family: var(--body);
  font-size: 15px;
}

.field-row input[type="email"]:focus {
  outline: 3px solid rgba(68,70,155,.24);
  border-color: var(--azul);
}

.field-row button {
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--carbon);
  color: var(--marfil);
  cursor: pointer;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.on-dark .field-row input[type="email"],
.heroA .field-row input[type="email"],
.footer .field-row input[type="email"] {
  border-color: var(--line-on-dark);
  background: var(--carbon-700);
  color: var(--marfil);
}

.on-coral .field-row button,
.on-azul .field-row button {
  background: var(--white);
  color: var(--carbon);
}

.on-dark .field-row button,
.heroA .field-row button,
.footer .field-row button {
  background: var(--coral);
  color: var(--white);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(41,43,49,.78);
}

.on-dark .consent,
.on-coral .consent,
.on-azul .consent,
.heroA .consent,
.footer .consent {
  color: rgba(239,232,227,.72);
}

.consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--coral);
}
.consent input:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

.err {
  margin-top: 8px;
  color: var(--coral);
  font-size: 13px;
}

.waitlist-success {
  padding: 20px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.1);
}

.success-eyebrow {
  margin-bottom: 6px;
  color: var(--marfil);
  font-family: var(--head);
  font-size: 22px;
  font-weight: 600;
}

.waitlist-form input[name="website"] {
  display: none !important;
}

@media (max-width: 900px) {
  .heroA,
  .phero {
    padding-block: 118px 64px;
  }

  .heroA__grid,
  .phero__grid,
  .grid-3,
  .grid-4,
  .grid-5,
  .split,
  .route-strip,
  .faq-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .heroA h1,
  .phero h1 {
    max-width: 12ch;
  }

  .field-row {
    flex-direction: column;
  }

  .field-row button {
    width: 100%;
  }

  .heroA__mobile-proof {
    display: block;
  }

}

@media (max-width: 520px) {
  .btn {
    white-space: normal;
  }
}

/* ===========================================================
   Auth pages (django-allauth) — styles allauth's plain {% element %}
   markup inside a centered brand card. Scoped under .auth so it
   never leaks into the rest of the site.
   =========================================================== */
.auth {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: clamp(96px, 14vh, 160px) clamp(48px, 8vh, 96px);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(68,70,155,.07), transparent 70%),
    var(--marfil);
}

.auth__inner {
  display: flex;
  justify-content: center;
}

.auth__card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: clamp(28px, 4vw, 44px);
}

.auth__card h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
}

.auth__card > p,
.auth__card form + p {
  color: var(--ink-60);
  font-size: 15px;
  margin-bottom: 20px;
}

.auth__card a { color: var(--azul); font-weight: 600; }
.auth__card a:hover { color: var(--coral); }

/* allauth form fields */
.auth__card form { display: block; }

.auth__card label {
  display: block;
  font-family: var(--head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 14px 0 6px;
}

.auth__card input[type="email"],
.auth__card input[type="password"],
.auth__card input[type="text"],
.auth__card select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--carbon);
  font-family: var(--body);
  font-size: 15px;
}

.auth__card input:focus,
.auth__card select:focus {
  outline: 3px solid rgba(68,70,155,.24);
  border-color: var(--azul);
}

.auth__card input[type="checkbox"] { margin-right: 8px; }

/* allauth button elements render as plain <button>/<a> — make primary coral */
.auth__card button[type="submit"],
.auth__card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--sh-coral);
  cursor: pointer;
  font-family: var(--head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
}

.auth__card button[type="submit"]:hover,
.auth__card .button:hover {
  background: #ed4f66;
  transform: translateY(-2px);
}

/* secondary / social buttons (outline) */
.auth__card .button.outline,
.auth__card .socialaccount_providers .button,
.auth__card a.button[data-provider] {
  background: transparent;
  color: var(--carbon);
  border-color: var(--line);
  box-shadow: none;
}
.auth__card .button.outline:hover,
.auth__card .socialaccount_providers .button:hover {
  border-color: var(--carbon);
  background: rgba(41,43,49,.04);
  transform: none;
}

.auth__card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.auth__card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.auth__card .socialaccount_providers { display: flex; flex-direction: column; gap: 10px; }

/* error + help text */
.auth__card .errorlist,
.auth__card .text-danger {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  color: var(--coral);
  font-size: 13px;
}
.auth__card .helptext,
.auth__card [class*="help"] {
  display: block;
  color: var(--ink-45);
  font-size: 12px;
  margin-top: 6px;
}

.auth__messages { list-style: none; padding: 0; margin: 0 0 18px; }
.auth__message {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 8px;
  background: var(--azul-soft);
  color: var(--azul);
}
.auth__message--error { background: var(--coral-soft); color: #b3293f; }
.auth__message--success { background: rgba(68,70,155,.10); color: var(--azul); }

.nav__login { margin-left: auto; }

.auth__field { margin-bottom: 4px; }

.auth__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-60);
}
.auth__consent input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; }

/* Social login (Google) button on the auth card */
.auth__social { margin-top: 24px; }
.auth__social-divider {
  display: flex;
  align-items: center;
  margin: 4px 0 16px;
  color: var(--ink-60);
  font-size: 13px;
}
.auth__social-divider::before,
.auth__social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth__social-divider span { padding: 0 12px; }

/* Override the card's coral primary-button style for the white Google button.
   Scoped to .auth__social to outrank `.auth__card button[type="submit"]`. */
.auth__card .auth__social .btn-social {
  width: 100%;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--carbon);
  box-shadow: none;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.auth__card .auth__social .btn-social:hover {
  background: #f7f7f8;
  transform: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.auth__card .auth__social .btn-social:focus-visible {
  outline: 3px solid rgba(68, 70, 155, .24);
  border-color: var(--azul);
}
.btn-social__icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Inline notice / banner (e.g. verify-your-email on My Classes) */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  margin-bottom: 32px;
  background: var(--azul-soft);
  border: 1px solid var(--line);
}
.notice--warn { background: var(--coral-soft); border-color: rgba(239,97,117,.3); }
.notice p { font-size: 15px; }

/* Legal pages (terms / privacy) — readable long-form text */
.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 32px 0 10px;
}
.legal p, .legal ul { margin-bottom: 14px; color: var(--ink-60); }
.legal a { color: var(--azul); font-weight: 600; }
.legal a:hover { color: var(--coral); }

/* Gated recording page (Phase 4) */
.recording__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--carbon, #292B31);
  border-radius: var(--r-md);
  overflow: hidden;
}
.recording__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.recording__description {
  max-width: 760px;
  margin-top: 32px;
  color: var(--ink-60);
}

/* Bundle card on My Classes: included classes, each linked to its recording */
.bundle__classes { list-style: none; padding: 0; margin: 10px 0 0; }
.bundle__classes li { padding: 6px 0; font-size: 15px; border-top: 1px solid var(--line); }
.bundle__classes li:first-child { border-top: 0; }
.bundle__classes a { color: var(--azul); font-weight: 600; }
.bundle__classes a:hover { color: var(--coral); }
.bundle__status { color: var(--ink-45); font-size: 13px; }

/* ---------- Fichas (class & bundle detail pages, launch Jun 2026) ---------- */
.phero--ficha { padding-block: 132px 72px; }
.phero--ficha h1 { max-width: 18ch; font-size: clamp(34px, 4.6vw, 58px); }

.ficha-facts {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.ficha-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: 14.5px;
}
.ficha-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.ficha-facts span {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(239,232,227,.55);
  white-space: nowrap;
}
.ficha-facts strong { color: var(--marfil); font-weight: 600; text-align: right; }

.ficha-tags { margin-top: 16px; }

.ficha-copy p { color: var(--ink-60); margin-top: 16px; max-width: 58ch; }
.ficha-copy--dark p { color: rgba(239,232,227,.78); }

/* Docente card — large portrait so the professor is showcased, not a footnote. */
.ficha-teacher__photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.ficha-teacher h3 { margin-top: 16px; }
.ficha-teacher__credit { color: var(--azul); font-weight: 600; margin-top: 6px; }
.ficha-teacher p { margin-top: 10px; }
.ficha-reqs { margin-top: 18px; border-left: 4px solid var(--coral); }

.ficha-buy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.ficha-buy h2 { color: var(--marfil); }
.ficha-buy__note { margin-top: 14px; font-size: 13.5px; color: var(--ink-45); max-width: 40ch; }
.on-dark .ficha-buy__note { color: rgba(239,232,227,.55); }

.ficha-price {
  margin-top: 18px;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--coral);
}
.ficha-price span { font-size: .45em; letter-spacing: .08em; color: var(--ink-45); }
.on-dark .ficha-price span { color: rgba(239,232,227,.55); }
.price-strike {
  position: relative;
  margin-right: 10px;
  font-size: .62em;
  font-weight: 500;
  color: var(--ink-45);
  text-decoration: none;
}
/* Own strike line (instead of text-decoration) so it can draw in on reveal. */
.price-strike::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
}
.on-dark .price-strike { color: rgba(239,232,227,.5); }

.seats {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--azul);
}
.seats::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--azul);
}
.on-dark .seats { color: var(--marfil); }
.seats--out, .seats--out::before { color: var(--coral); background: var(--coral); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.tier-card .btn { margin-top: 22px; }
.tier-card--guided { border-color: var(--azul); box-shadow: 0 18px 40px rgba(68,70,155,.16); }

@media (max-width: 900px) {
  .ficha-buy, .tier-grid { grid-template-columns: 1fr; }
  .ficha-facts strong { text-align: left; }
  .ficha-facts li { flex-direction: column; gap: 4px; }
  .calendar-row { grid-template-columns: 70px minmax(0, 1fr); }
  .calendar-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .calendar-date { min-height: 70px; }
  .calendar-date span { font-size: 30px; }
}

.catalog-area { margin-top: clamp(34px, 5vw, 56px); scroll-margin-top: 90px; }
.catalog-area:first-of-type { margin-top: 0; }
.catalog-area__title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--carbon);
}

/* ---- Promo claim (Phase 8) ---- */
.promo-code {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 14px 26px;
  font-family: "Consolas", "Menlo", monospace;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--azul);
  background: rgba(68, 70, 155, .07);
  border: 2px dashed var(--azul);
  border-radius: 12px;
  user-select: all;
}

/* ---- Cookie consent banner (Phase 10, GA4) ---- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 22px;
  background: var(--carbon);
  color: var(--marfil);
  border: 1px solid var(--carbon-soft);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.cookie-banner__text a {
  color: var(--coral);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
}

/* ---- Consulting form (Phase 10) ---- */
.consulting-box {
  max-width: 520px;
  width: 100%;
}
.consulting-form__row {
  display: flex;
  gap: 10px;
}
.consulting-form__row > div { flex: 1 1 0; min-width: 0; }
.consulting-form input[type="text"],
.consulting-form input[type="email"],
.consulting-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-sm);
  background: var(--carbon-700);
  color: var(--marfil);
  font-family: var(--body);
  font-size: 15px;
}
.consulting-form input:focus,
.consulting-form textarea:focus {
  outline: 3px solid rgba(68,70,155,.24);
  border-color: var(--azul);
}
.consulting-form textarea { resize: vertical; min-height: 120px; }
.consulting-form .btn { margin-top: 16px; }
.consulting-form__notice {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(239,232,227,.72);
}
.consulting-form__notice a { color: var(--marfil); text-decoration: underline; }
.consulting-form input[name="website"] { display: none !important; }
.consulting-success {
  padding: 20px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.1);
}
@media (max-width: 700px) {
  .consulting-form__row { flex-direction: column; gap: 0; }
}
/* display:flex above beats the UA's [hidden] rule - restate it stronger. */
.cookie-banner[hidden] { display: none; }

/* ---------- Account area (logged-in) ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.account-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
}
.account-nav__title {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding: 6px 13px 10px;
}
/* Cards live in the narrower content column, so let them wrap instead of
   forcing three cramped columns at in-between widths. */
.account-main .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
/* Equal-height cards stretch in the grid; pin each card's action to the
   bottom and center it so the buttons line up at a common baseline. */
.account-main .card { display: flex; flex-direction: column; }
.account-main .card .btn,
.account-main .card form { margin-top: auto; align-self: center; }
.account-main .card form .btn { margin-top: 0; }
.account-nav__links { display: grid; gap: 2px; }
.account-nav__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--carbon);
  transition: background .18s ease, color .18s ease;
}
.account-nav__link svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .75; }
.account-nav__link:hover { background: rgba(41,43,49,.05); }
.account-nav__link.is-active { background: var(--coral-soft); color: var(--coral); }
.account-nav__link.is-active svg { opacity: 1; }
.account-nav__link--logout {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-60);
}
.account-nav__link--logout:hover { color: var(--coral); background: transparent; }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav {
    position: static;
    grid-auto-flow: column;
    justify-content: start;
    gap: 6px;
    overflow-x: auto;
  }
  .account-nav__title { display: none; }
  .account-nav__links { grid-auto-flow: column; gap: 6px; }
  .account-nav__link { white-space: nowrap; }
  .account-nav__link--logout {
    margin-top: 0;
    padding-top: 11px;
    border-top: 0;
  }
}

/* ===========================================================
   Ficha conversion polish (Jun 2026) — stronger buy panels,
   ordered route classes, aligned tiers, social proof, sticky CTA.
   =========================================================== */

/* ---- "La más pedida" social-proof flag in the ficha hero ---- */
.ficha-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(239, 97, 117, .16);
  border: 1px solid rgba(239, 97, 117, .42);
  color: var(--marfil);
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .03em;
}
.ficha-flag::before { content: "★"; color: var(--coral); font-size: 14px; }

/* ---- Buy panel: value recap (left) + checkout card (right) ---- */
.ficha-buy__incl { margin-top: 18px; }
.ficha-buy__cta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  background: var(--carbon-soft);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.ficha-buy__cta .btn { width: 100%; }
.ficha-buy__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ficha-buy__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(239, 232, 227, .66);
}
.ficha-buy__trust li::before { content: "✓"; color: var(--coral); font-weight: 800; }
/* Few-seats urgency — coral, slight pulse so it reads as "act now". */
.seats--low { color: var(--coral); }
.seats--low::before { background: var(--coral); animation: seat-pulse 1.8s ease-in-out infinite; }
@keyframes seat-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .seats--low::before { animation: none; } }

/* ---- Tier cards: equal height, pinned CTA, "Recomendado" badge ---- */
.tier-card { position: relative; display: flex; flex-direction: column; }
.tier-card .mini-list { margin-bottom: 28px; }
.tier-card .btn { margin-top: auto; }
.tier-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--azul);
  color: var(--white);
  font-family: var(--head);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  box-shadow: var(--sh-azul);
}

/* ---- Included-class cards: ordered, value-first, no repeated bio ---- */
.route-classes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route-classes > li {
  flex: 0 1 calc((100% - 44px) / 3);
  min-width: 260px;
}
.route-class {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.route-class:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(41, 43, 49, .18); }
.route-class__num {
  position: absolute;
  top: -16px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  box-shadow: var(--sh-coral);
}
.route-class .kicker { margin-top: 4px; }
.route-class h3 { margin-top: 9px; font-size: 20px; }
.route-class__sub { margin-top: 10px; color: var(--ink-60); font-size: 14.5px; line-height: 1.5; }
.route-class__teacher {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-45);
  line-height: 1.45;
}
.route-class__teacher strong { color: var(--carbon); font-weight: 600; }
.route-class__link {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--azul);
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.route-class__link .arr { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.route-class__link:hover { color: var(--coral-text); }
.route-class__link:hover .arr { transform: translateX(3px); }

/* ---- Suggested routes (on a class ficha): equal height, pinned CTA ---- */
.route-suggested {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.route-suggested > * {
  flex: 0 1 calc((100% - 44px) / 3);
  min-width: 260px;
  display: flex;
  flex-direction: column;
}
.route-suggested .price-line { margin-top: auto; }
.route-suggested .btn { margin-top: 18px; align-self: flex-start; }

/* ---- Mobile sticky buy bar ---- */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(31, 33, 38, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-on-dark);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.buybar.is-in { transform: none; }
.buybar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.buybar__price { color: var(--marfil); font-family: var(--head); line-height: 1; }
.buybar__price strong { color: var(--coral); font-size: 24px; font-weight: 600; }
.buybar__price s { color: rgba(239, 232, 227, .45); font-size: 14px; font-weight: 500; margin-right: 6px; }
.buybar__price span { display: block; margin-top: 3px; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(239, 232, 227, .55); }
.buybar .btn { padding: 13px 26px; flex: 0 0 auto; }
@media (min-width: 901px) { .buybar { display: none; } }

@media (max-width: 900px) {
  .route-classes > li,
  .route-suggested > * { flex-basis: 100%; }
}

/* ===========================================================
   Clases Maestras endorsed sub-brand
   Scoped to the public catalog funnel; GTC remains the shell.
   =========================================================== */
body.theme-masterclasses {
  --cm-orange: #F3AA52;
  --cm-orange-dark: #CE632E;
  --cm-teal: #5AAEB7;
  --cm-gray: #747474;
  --cm-head: "Bitter", Georgia, serif;
  --cm-shadow-orange: 0 10px 28px rgba(206, 99, 46, .28);
  --cm-shadow-teal: 0 10px 28px rgba(90, 174, 183, .26);
}

.theme-masterclasses .phero h1,
.theme-masterclasses .section h2,
.theme-masterclasses .section h3,
.theme-masterclasses .section h4 {
  font-family: var(--cm-head);
  letter-spacing: -.02em;
}

.theme-masterclasses .phero {
  isolation: isolate;
}
.theme-masterclasses .phero::before,
.theme-masterclasses .phero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transform: rotate(-12deg);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 78%);
}
.theme-masterclasses .phero::before {
  top: -70px;
  right: -80px;
  width: 270px;
  height: 170px;
  background: var(--cm-orange);
}
.theme-masterclasses .phero::after {
  right: 8%;
  bottom: -54px;
  width: 180px;
  height: 92px;
  background: var(--cm-teal);
}
.theme-masterclasses .phero > .container {
  position: relative;
  z-index: 1;
}
.theme-masterclasses .phero__panel {
  border-color: rgba(243, 170, 82, .34);
}
.theme-masterclasses .cm-brandmark {
  width: clamp(180px, 20vw, 220px);
  height: auto;
  margin: 0 auto 22px;
}

.theme-masterclasses .nav__link.is-active {
  color: var(--cm-orange-dark);
}
.theme-masterclasses .nav__link.is-active::after {
  background: var(--cm-orange-dark);
}

.theme-masterclasses .eyebrow {
  color: var(--cm-orange-dark);
}
.theme-masterclasses .eyebrow::before,
.theme-masterclasses .check-list li::before,
.theme-masterclasses .mini-list li::before,
.theme-masterclasses .steps b {
  background: var(--cm-orange);
}
.theme-masterclasses .phero .eyebrow,
.theme-masterclasses .on-dark .eyebrow {
  color: var(--cm-orange);
}
.theme-masterclasses .phero .eyebrow::before,
.theme-masterclasses .on-dark .eyebrow::before {
  background: var(--cm-orange);
}

.theme-masterclasses .btn--coral {
  background: var(--cm-orange);
  color: var(--carbon);
  box-shadow: var(--cm-shadow-orange);
}
.theme-masterclasses .btn--coral:hover {
  background: var(--cm-orange);
  color: var(--carbon);
  border-color: var(--cm-orange-dark);
  box-shadow: 0 14px 34px rgba(206, 99, 46, .38);
}
.theme-masterclasses .btn--azul {
  background: var(--cm-teal);
  color: var(--carbon);
  box-shadow: var(--cm-shadow-teal);
}
.theme-masterclasses .btn--azul:hover {
  background: var(--cm-teal);
  color: var(--carbon);
  border-color: var(--carbon);
}

/* Teal bands use dark copy: white on this teal does not meet text contrast. */
.theme-masterclasses .on-azul {
  background: var(--cm-teal);
  color: var(--carbon);
}
.theme-masterclasses .on-azul .eyebrow,
.theme-masterclasses .on-azul .consent {
  color: rgba(41, 43, 49, .8);
}
.theme-masterclasses .on-azul .eyebrow::before {
  background: var(--carbon);
}
.theme-masterclasses .on-azul .field-row input[type="email"]:focus,
.theme-masterclasses .on-azul :focus-visible {
  outline-color: var(--carbon);
  border-color: var(--carbon);
}

.theme-masterclasses .card,
.theme-masterclasses .route-card,
.theme-masterclasses .route-class,
.theme-masterclasses .agenda-card,
.theme-masterclasses .calendar-row {
  border-color: rgba(206, 99, 46, .22);
}
.theme-masterclasses .card--hover:hover,
.theme-masterclasses .route-class:hover,
.theme-masterclasses .agenda-card:hover {
  border-color: var(--cm-orange-dark);
}
.theme-masterclasses .route-card--accent,
.theme-masterclasses .notice {
  background: rgba(90, 174, 183, .16);
  border-color: rgba(90, 174, 183, .54);
}
.theme-masterclasses .text-link,
.theme-masterclasses .route-class__link {
  color: var(--carbon);
  text-decoration-color: var(--cm-teal);
}
.theme-masterclasses .text-link:hover,
.theme-masterclasses .route-class__link:hover {
  color: var(--cm-orange-dark);
}

.theme-masterclasses .price-line,
.theme-masterclasses .ficha-price,
.theme-masterclasses .buybar__price strong {
  color: var(--cm-orange-dark);
}
.theme-masterclasses .on-dark .ficha-price,
.theme-masterclasses .buybar__price strong {
  color: var(--cm-orange);
}
.theme-masterclasses .price-strike::after {
  background: var(--cm-orange-dark);
}
.theme-masterclasses .ficha-reqs {
  border-left-color: var(--cm-orange-dark);
}
.theme-masterclasses .ficha-teacher__credit {
  color: var(--carbon);
  border-left: 3px solid var(--cm-teal);
  padding-left: 10px;
}
.theme-masterclasses .ficha-flag {
  background: rgba(243, 170, 82, .14);
  border-color: rgba(243, 170, 82, .48);
}
.theme-masterclasses .ficha-flag::before,
.theme-masterclasses .ficha-buy__trust li::before {
  color: var(--cm-orange);
}

.theme-masterclasses .agenda-chip:hover,
.theme-masterclasses .agenda-reset {
  border-color: var(--cm-orange-dark);
}
.theme-masterclasses .agenda-chip.is-active,
.theme-masterclasses .agenda-reset:hover {
  color: var(--carbon);
  background: var(--cm-orange);
  border-color: var(--cm-orange-dark);
  box-shadow: var(--cm-shadow-orange);
}
.theme-masterclasses .agenda-reset {
  color: var(--carbon);
  background: rgba(243, 170, 82, .18);
}
.theme-masterclasses .agenda-date,
.theme-masterclasses .calendar-date {
  background: rgba(243, 170, 82, .2);
}
.theme-masterclasses .agenda-date b,
.theme-masterclasses .calendar-date b {
  color: var(--cm-orange-dark);
}
.theme-masterclasses .agenda-pill--session,
.theme-masterclasses .agenda-tag--area {
  color: var(--carbon);
  background: rgba(90, 174, 183, .24);
}
.theme-masterclasses .agenda-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23292B31' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.theme-masterclasses .agenda-search input:focus-visible,
.theme-masterclasses .agenda-chip:focus-visible,
.theme-masterclasses .agenda-field select:focus-visible,
.theme-masterclasses .agenda-reset:focus-visible {
  outline-color: var(--cm-orange-dark);
  border-color: var(--cm-orange-dark);
}

.theme-masterclasses .seats {
  color: var(--carbon);
}
.theme-masterclasses .seats::before {
  background: var(--cm-teal);
}
.theme-masterclasses .on-dark .seats,
.theme-masterclasses .on-dark .seats--low,
.theme-masterclasses .on-dark .seats--out {
  color: var(--cm-orange);
}
.theme-masterclasses .seats--low::before,
.theme-masterclasses .seats--out::before {
  background: var(--cm-orange);
}
.theme-masterclasses .tier-card--guided {
  border-color: var(--cm-teal);
  box-shadow: 0 18px 40px rgba(90, 174, 183, .2);
}
.theme-masterclasses .tier-badge {
  background: var(--cm-teal);
  color: var(--carbon);
  box-shadow: var(--cm-shadow-teal);
}
.theme-masterclasses .route-class__num {
  background: var(--cm-orange);
  color: var(--carbon);
  box-shadow: var(--cm-shadow-orange);
}

/* Focus rings adapt to each surface instead of relying on low-contrast teal. */
.theme-masterclasses :focus-visible {
  outline: 3px solid var(--cm-orange-dark);
  outline-offset: 2px;
}
.theme-masterclasses .phero :focus-visible,
.theme-masterclasses .on-dark :focus-visible,
.theme-masterclasses .buybar :focus-visible {
  outline-color: var(--cm-orange);
}

/* Cookie consent belongs to the parent GTC shell. */
.theme-masterclasses .cookie-banner .btn--coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--sh-coral);
}
.theme-masterclasses .cookie-banner .btn--coral:hover {
  background: #ed4f66;
  border-color: transparent;
}

@media (max-width: 720px) {
  .theme-masterclasses .phero::before {
    width: 180px;
    height: 120px;
  }
  .theme-masterclasses .phero::after {
    right: -28px;
    width: 130px;
  }
  .theme-masterclasses .cm-brandmark {
    width: 180px;
  }
}

/* ===========================================================
   Motion layer (Jul 2026) — subtle life on scroll and load.
   Everything below is gated on prefers-reduced-motion.
   =========================================================== */

/* Soft cross-fade between page navigations (progressive enhancement:
   Chromium-only today, silently ignored elsewhere). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Eyebrow rule draws in when its section reveals. */
  .eyebrow::before { transition: width .55s cubic-bezier(.2, .7, .2, 1) .12s; }
  .reveal:not(.is-in) .eyebrow::before { width: 0; }

  /* Ken Burns: the active hero slide slowly breathes while it's on screen;
     deactivated slides ease back invisibly, so there's never a snap.
     site.js kicks slide one so the very first paint zooms too. */
  .heroA__photo { transition: transform 6.5s ease-out; }
  .heroA__slide.is-active .heroA__photo { transform: scale(1.06); }

  /* Hero watermark drifts, echoing the infinity mark. */
  .heroA__wm { animation: wm-drift 46s ease-in-out infinite alternate; }

  /* Old price gets struck through as the buy panel reveals. */
  .reveal .price-strike::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease .5s;
  }
  .reveal.is-in .price-strike::after { transform: scaleX(1); }
}

@keyframes wm-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-30px, 22px, 0) rotate(-1.5deg); }
}
