/* ───────────────────────────────────────────────
   Lucía Medina Dance School — On Stage
   Editorial / Variant-inspired stylesheet
   ─────────────────────────────────────────────── */

:root {
  --ink:        #0E0D0B;
  --ink-2:     #15130F;
  --ink-3:     #1F1B15;
  --line:       #2A251D;
  --cream:      #F2EBDD;
  --cream-2:    #E9DFCB;
  --cream-3:    #DCCFB4;
  --paper:      #FBF7EE;

  --text:       #EFE8DA;
  --text-soft:  #C9C0AE;
  --text-mute:  #8A8270;

  --brand:      #DD6E0D;   /* Verified On Stage primary */
  --brand-2:    #C25C00;
  --gold:       #D4A752;
  --peach:      #E8B89A;
  --green:      #6FA77B;
  --plum:       #7E1E2A;
  --indigo:     #2A3A6B;

  /* Verified Kydemy level color tokens (color-coded levels) */
  --lv-0:        #6BD4D4;  /* 0 Patatero — turquoise */
  --lv-morado:   #8E5BC2;  /* purple */
  --lv-verde:    #5CC07A;  /* green */
  --lv-azul:     #3B7CD8;  /* blue */
  --lv-amarillo: #F2C84A;  /* yellow */
  --lv-naranja:  #E07A2B;  /* orange */
  --lv-rojo:     #C8392A;  /* red */
  --lv-cc:       #B061B4;  /* Celia Cruz — performance team */
  --lv-unico:    #C9C0AE;  /* Nivel único */

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --max:    1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-med:  360ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 720ms cubic-bezier(.2,.7,.2,1);

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─────────────  RESET  ───────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
section[id], header[id] { scroll-margin-top: 130px; }
body, h1, h2, h3, h4, h5, p, ul, ol, dl, dt, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ─────────────  GLOBAL  ───────────── */
html, body { background: var(--ink); color: var(--text); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--ink); }

.skip-link {
  position: absolute; top: -100px; left: 12px;
  background: var(--brand); color: var(--ink); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 600; z-index: 1000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ─────────────  TYPOGRAPHY UTILS  ───────────── */
.section-title {
  font-family: var(--serif);
  font-weight: 380;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-size: clamp(2.4rem, 5.6vw, 5.2rem);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  font-weight: 360;
  color: var(--brand);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

/* ─────────────  BUTTONS  ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn span[aria-hidden] { transition: transform var(--t-fast); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

.btn--primary  { background: var(--brand); color: var(--ink); }
.btn--primary:hover { background: var(--gold); }
.btn--ghost    { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }
.btn--block    { display: flex; justify-content: center; width: 100%; }

/* ─────────────  TICKER  ───────────── */
.ticker {
  position: sticky; top: 0; z-index: 30;
  background: var(--brand); color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 9px 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ticker__track {
  display: inline-flex; gap: 30px; padding-left: 30px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.ticker__track > span { display: inline-block; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────  NAV  ───────────── */
.nav {
  position: sticky; top: 33px; z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(14,13,11,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__mark {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  flex: none;
}
.nav__monogram {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--brand); color: var(--ink);
  border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.2rem; line-height: 1;
  font-variation-settings: "opsz" 144;
}
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.nav__brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__brand-text em {
  font-family: var(--mono); font-style: normal;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); margin-top: 2px;
}

.nav__menu { display: flex; gap: 4px; align-items: center; }
.nav__menu a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--cream); color: var(--ink);
  border-radius: 999px;
  font-weight: 600; font-size: 0.88rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__cta:hover { background: var(--brand); }

.nav__toggle { display: none; }

@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav__menu { display: none; }
  .nav__toggle {
    display: grid; gap: 4px; padding: 8px;
    place-items: center;
  }
  .nav__toggle span { width: 22px; height: 2px; background: var(--text); transition: transform var(--t-fast), opacity var(--t-fast); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 95px 0 0 0;
    background: var(--ink-2);
    padding: 20px var(--gutter);
    align-items: stretch;
    overflow-y: auto;
  }
  .nav.is-open .nav__menu a {
    padding: 18px 12px;
    font-size: 1.5rem;
    font-family: var(--serif); font-weight: 380;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
}
@media (max-width: 600px) {
  .nav__cta { display: none; }
}

/* ─────────────  HERO  ───────────── */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) var(--gutter) clamp(44px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(221,110,13,0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 80%, rgba(212,167,82,0.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero__signature {
  position: absolute;
  right: clamp(-40px, -2vw, 8px);
  bottom: clamp(-30px, -1vw, 20px);
  width: clamp(280px, 38vw, 520px);
  height: auto;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: brightness(1.3) contrast(1.1);
}
@media (max-width: 760px) {
  .hero__signature { display: none; }
}

.hero__meta {
  display: flex; gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  align-items: center;
}
.hero__meta > span { display: inline-flex; align-items: center; gap: 10px; }
.hero__rating { color: var(--gold); }
.meta-row { display: inline-flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(221,110,13,0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(221,110,13,0.15); }
  50%      { box-shadow: 0 0 0 9px rgba(221,110,13,0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-size: clamp(3rem, 9vw, 8rem);
  font-variation-settings: "opsz" 144, "SOFT" 20;
  color: var(--text);
}
.hero__line { display: block; }
.hero__line--italic {
  font-style: italic;
  font-weight: 320;
  color: var(--text-soft);
  padding-left: clamp(40px, 8vw, 120px);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.hero__line--accent {
  color: var(--brand);
  font-style: italic;
  font-weight: 360;
  position: relative;
  padding-left: clamp(80px, 16vw, 240px);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero__line--accent .ast {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--gold);
  margin-left: 0.3em;
  display: inline-block;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__lede {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-soft);
  margin-top: 12px;
}
.hero__lede em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 460;
  color: var(--text);
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero__stats > div {
  padding: 22px clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
}
.hero__stats > div:last-child { border-right: 0; }
.hero__stats dt {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.hero__stats dd {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.3;
  color: var(--text-soft);
  font-weight: 420;
  letter-spacing: -0.01em;
}
.hero__stats .num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  font-weight: 420;
  font-style: italic;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats > div:nth-child(2) { border-right: 0; }
  .hero__stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vw, 40px);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mute);
}
.hero__scroll svg {
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ─────────────  SECTION HEAD  ───────────── */
.section-head {
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head--row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}
.section-head__note {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 440px;
  line-height: 1.5;
}
.section-head__note strong { color: var(--text); font-weight: 600; }
.section-head__note a { color: var(--brand); border-bottom: 1px solid currentColor; }
@media (max-width: 800px) {
  .section-head--row { grid-template-columns: 1fr; }
}

/* ─────────────  DISCIPLINES (compact table)  ───────────── */
.disciplines {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.disc-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.disc-table th, .disc-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.95rem;
}
.disc-table thead th {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  padding-bottom: 14px;
  padding-top: 14px;
}
.disc-table tbody th {
  font-family: var(--serif); font-weight: 460;
  font-size: 1.1rem; letter-spacing: -0.01em;
  color: var(--text);
  width: 32%;
}
.disc-table tbody td {
  color: var(--text-soft);
}
.disc-table td:first-of-type { width: 44%; }
.disc-table td .lvchip { margin-right: 4px; margin-bottom: 2px; }
.disc-table__when {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  white-space: nowrap;
  text-align: right;
}
.disc-table__when a { color: var(--brand); border-bottom: 1px solid currentColor; }
.disc-table__sep th { padding-top: 26px; border-top: 1px dashed var(--line); }
.disc-table__sep td { padding-top: 26px; border-top: 1px dashed var(--line); }
.disc-table tbody td em { color: var(--text-soft); font-style: italic; }
.disc-table tbody tr { transition: background var(--t-fast); }
.disc-table tbody tr:hover { background: rgba(255,255,255,0.02); }

@media (max-width: 720px) {
  .disc-table thead { display: none; }
  .disc-table tbody tr { display: grid; grid-template-columns: 1fr; padding: 14px 0; gap: 4px; }
  .disc-table tbody th, .disc-table tbody td { display: block; padding: 4px 0; border: 0; width: 100%; }
  .disc-table tbody tr + tr { border-top: 1px solid var(--line); }
  .disc-table__when { text-align: left; }
}

/* ─────────────  SCHEDULE  ───────────── */
.schedule {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.schedule__legend {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--text-soft);
}
.schedule__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg {
  width: 12px; height: 12px; border-radius: 3px; display: inline-block;
}
.lg--salsa       { background: var(--brand); }
.lg--bachata     { background: var(--plum); }
.lg--bachatasens { background: var(--lv-cc); }
.lg--mambo       { background: var(--lv-rojo); }
.lg--ladies      { background: var(--gold); }
.lg--team        { background: var(--cream); border: 1px solid var(--line); }
.lg--social      { background: var(--green); }

.schedule__levels {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin: 14px 0 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  align-items: center;
}
.schedule__levels strong {
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-right: 6px;
}
.lvchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}
.lvchip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-mute);
}
.lvchip--0::before        { background: var(--lv-0); }
.lvchip--morado::before   { background: var(--lv-morado); }
.lvchip--verde::before    { background: var(--lv-verde); }
.lvchip--azul::before     { background: var(--lv-azul); }
.lvchip--amarillo::before { background: var(--lv-amarillo); }
.lvchip--naranja::before  { background: var(--lv-naranja); }
.lvchip--rojo::before     { background: var(--lv-rojo); }
.lvchip--cc::before       { background: var(--lv-cc); }

/* ─────────────  TIMETABLE — events as cards inside cells  ───────────── */
.timetable {
  display: grid;
  grid-template-columns: 0.7fr repeat(5, 1fr);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  position: relative;
}

.timetable__head,
.timetable__row { display: contents; }

.timetable__head > span {
  padding: 14px 16px;
  background: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}

.timetable__row > * {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.timetable__row:last-child > * { border-bottom: 0; }
.timetable__row > *:last-child { border-right: 0; }

/* time-of-day rowheader */
.timetable__row > .time {
  background: linear-gradient(180deg, var(--ink-3), color-mix(in srgb, var(--ink-3) 92%, var(--ink) 8%));
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 18px 16px;
  font-family: var(--serif);
  position: relative;
}
.timetable__row > .time b {
  font-weight: 380;
  font-style: italic;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.timetable__row > .time i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}

/* day cell — flex column of events */
.timetable__row > .cell {
  display: flex; flex-direction: column; gap: 6px;
  min-height: 60px;
  position: relative;
}
.timetable__row > .cell:not(.cell--quiet):not(:has(> .ev))::before {
  content: "·";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 1.2rem;
  color: var(--text-mute); opacity: 0.25;
}

/* friday "quiet" cell — Privadas / Eventos / event pointers */
.cell--quiet {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 5px,
      rgba(255,255,255,0.018) 5px 11px);
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  font-weight: 500;
}
.cell--quiet i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--gold);
}

/* ── EVENT CARD ── */
.ev {
  position: relative;
  display: flex; flex-direction: column;
  gap: 1px;
  padding: 9px 14px 9px 12px;
  border-radius: 7px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.035),
      rgba(255,255,255,0.012) 40%,
      transparent);
  border-left: 3px solid currentColor;
  transition: background var(--t-fast), transform var(--t-fast), padding-left var(--t-fast);
  cursor: default;
  overflow: hidden;
}
.ev::before {
  content: "";
  position: absolute; inset: 0 0 0 0;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, currentColor 18%, transparent),
      transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}
.ev:hover {
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.07),
      rgba(255,255,255,0.02) 50%,
      transparent);
  padding-left: 14px;
}
.ev > * { position: relative; z-index: 1; }

.ev strong {
  font-family: var(--serif); font-weight: 460;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.ev em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--text-mute);
  margin-top: 2px;
}

/* level dot, top-right of each event */
.ev[data-lvl]::after {
  content: "";
  position: absolute;
  right: 9px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-mute);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink-2) 90%, transparent);
  z-index: 2;
}
.ev[data-lvl="0"]::after        { background: var(--lv-0); }
.ev[data-lvl="morado"]::after   { background: var(--lv-morado); }
.ev[data-lvl="verde"]::after    { background: var(--lv-verde); }
.ev[data-lvl="azul"]::after     { background: var(--lv-azul); }
.ev[data-lvl="amarillo"]::after { background: var(--lv-amarillo); }
.ev[data-lvl="naranja"]::after  { background: var(--lv-naranja); }
.ev[data-lvl="rojo"]::after     { background: var(--lv-rojo); }
.ev[data-lvl="cc"]::after       { background: var(--lv-cc); }
.ev[data-lvl="unico"]::after    { background: var(--lv-unico); }

/* discipline tints — drive the left border, gradient and accents */
.ev--salsa       { color: var(--brand); }
.ev--bachata     { color: var(--plum); }
.ev--bachatasens { color: var(--lv-cc); }
.ev--mambo       { color: var(--lv-rojo); }
.ev--ladies      { color: var(--gold); }
.ev--team        { color: var(--cream); }
.ev--team strong {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--cream);
}

/* longer sessions get a small clock badge appended to <em> via attr */
.ev--long {
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.018) 60%,
      transparent);
}
.ev--long::after {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink-2) 90%, transparent),
              0 0 0 5px color-mix(in srgb, currentColor 22%, transparent);
}

/* ── responsive ── */
@media (max-width: 1100px) {
  .timetable {
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
  }
  .timetable__head { display: none; }
  .timetable__row {
    display: flex; flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
  }
  .timetable__row > * {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }
  .timetable__row > *:last-child { border-bottom: 0; }
  .timetable__row > .time {
    background: var(--ink-3);
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 14px;
  }
  .timetable__row > .time b { font-size: 1.5rem; }
  .timetable__row > .cell {
    min-height: 0;
  }
  /* hide empty cells on mobile completely */
  .timetable__row > .cell:not(.cell--quiet):not(:has(> .ev)) { display: none; }

  /* prefix each visible cell with the day name */
  .timetable__row > .cell:has(> .ev)::before,
  .timetable__row > .cell--quiet::before {
    position: static; transform: none;
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 8px;
    opacity: 1;
  }
  .timetable__row > .cell:nth-child(2):has(> .ev)::before { content: "Lunes"; }
  .timetable__row > .cell:nth-child(3):has(> .ev)::before { content: "Martes"; }
  .timetable__row > .cell:nth-child(4):has(> .ev)::before { content: "Miércoles"; }
  .timetable__row > .cell:nth-child(5):has(> .ev)::before { content: "Jueves"; }
  .timetable__row > .cell--quiet::before { content: "Viernes"; }
  .cell--quiet { padding: 14px; min-height: 0; align-items: flex-start; text-align: left; }
}

.schedule__intro { display: flex; flex-direction: column; gap: 14px; }
.schedule__intro p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 460px;
}
.schedule__intro a { color: var(--brand); border-bottom: 1px solid currentColor; }
.schedule__intro strong { color: var(--text); font-weight: 600; }
.schedule__levels-label {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  font-family: var(--mono);
  align-items: center;
  margin: 0;
}
.schedule__levels-label strong {
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  margin-right: 4px;
}

/* ─────────────  NOCHE (compact event list)  ───────────── */
.noche {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.noche .section-head { max-width: var(--max); margin-left: auto; margin-right: auto; }
.noche__list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.noche__list li {
  display: grid;
  grid-template-columns: minmax(130px, 160px) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.noche__list li:hover { background: linear-gradient(90deg, rgba(221,110,13,0.04), transparent 60%); }
.noche__when {
  font-family: var(--mono);
  font-size: 0.85rem; letter-spacing: 0.04em;
  color: var(--text-mute);
}
.noche__when b {
  font-family: var(--serif); font-style: italic; font-weight: 460;
  font-size: 1.4rem; color: var(--brand);
  margin-right: 10px;
  font-variation-settings: "opsz" 144;
}
.noche__title {
  font-family: var(--serif); font-weight: 460;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color var(--t-fast);
}
.noche__title span { color: var(--text-mute); margin-left: 6px; transition: transform var(--t-fast); display: inline-block; }
.noche__title:hover { color: var(--brand); }
.noche__title:hover span { transform: translate(2px, -2px); }
.noche__where {
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: right;
}
@media (max-width: 720px) {
  .noche__list li { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .noche__where { text-align: left; }
}

/* ─────────────  JOIN / KYDEMY  ───────────── */
.join {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(56px, 7vw, 100px) var(--gutter);
}
.join .section-head { max-width: var(--max); margin-left: auto; margin-right: auto; }
.join .eyebrow { color: rgba(14,13,11,0.55); border-color: rgba(14,13,11,0.18); }
.join .section-title { color: var(--ink); }
.join .section-title em { color: var(--brand-2); }
.join .section-head__note { color: rgba(14,13,11,0.7); }

.join { background: var(--cream); color: var(--ink); }
.join .eyebrow { color: rgba(14,13,11,0.55); border-color: rgba(14,13,11,0.18); }
.join .section-title { color: var(--ink); }
.join .section-title em { color: var(--brand-2); }
.join .section-head__note { color: rgba(14,13,11,0.75); }
.join .section-head__note a { color: var(--brand-2); }
.join .section-head { max-width: var(--max); margin-left: auto; margin-right: auto; }

.prep {
  max-width: var(--max);
  margin: 0 auto 22px;
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.prep__label {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.prep ul {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  flex: 1;
}
.prep li {
  font-size: 0.88rem;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
}
.prep li + li::before {
  content: "·";
  position: absolute; left: -10px;
  color: var(--text-mute);
}
.prep em { font-style: italic; color: var(--text-mute); font-weight: 400; }

.wizard {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.wstep {
  background: var(--paper);
  border: 1px solid rgba(14,13,11,0.10);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.wstep__num {
  font-family: var(--serif); font-style: italic; font-weight: 380;
  font-size: 2rem; line-height: 1;
  color: var(--brand-2);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.wstep h3 {
  font-family: var(--serif); font-weight: 460;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.wstep p { font-size: 0.92rem; line-height: 1.5; color: rgba(14,13,11,0.78); }
.wstep strong { font-weight: 600; color: var(--ink); }
.wstep em { font-style: italic; color: var(--brand-2); font-weight: 500; }
.wstep a { color: var(--brand-2); border-bottom: 1px solid currentColor; }
.wstep kbd {
  font-family: var(--mono); font-size: 0.75rem;
  padding: 2px 7px;
  background: var(--ink); color: var(--cream);
  border-radius: 4px;
  border: 0;
}

.wfields { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.wfields li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(14,13,11,0.72);
  border-top: 1px dashed rgba(14,13,11,0.12);
  padding-top: 4px;
}
.wfields li:first-child { border-top: 0; padding-top: 0; }
.wfields li > span { display: inline-flex; align-items: center; gap: 5px; }
.wfields li > span:empty { display: none; }
.wfields li > span:empty + span { grid-column: span 2; }
.wfields kbd {
  font-family: var(--mono); font-size: 0.7rem;
  padding: 1px 5px;
  background: rgba(14,13,11,0.08); color: var(--ink);
  border-radius: 3px;
  border: 0;
}

.wstep__stores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.store {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px;
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--t-fast);
}
.store:hover { background: var(--brand-2); }
.store__lbl {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}
.store strong {
  font-family: var(--serif); font-weight: 460;
  font-size: 0.85rem;
  color: var(--cream);
}

.join__cta {
  display: flex; flex-direction: column; gap: 4px;
  max-width: var(--max);
  margin: 22px auto 0;
  padding: 22px 26px;
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.join__cta:hover { background: var(--brand); color: var(--ink); transform: translateY(-2px); }
.join__cta:hover strong { color: var(--ink); }
.join__cta span {
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.join__cta:hover span { color: var(--ink); }
.join__cta strong {
  font-family: var(--serif); font-weight: 460; font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.join__note {
  max-width: var(--max);
  margin: 14px auto 0;
  font-size: 0.88rem;
  color: rgba(14,13,11,0.7);
  line-height: 1.5;
}
.join__note strong { color: var(--ink); font-weight: 600; }

@media (max-width: 1000px) { .wizard { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .wizard { grid-template-columns: 1fr; }
  .prep { flex-direction: column; align-items: flex-start; }
}

/* ─────────────  FAQ  ───────────── */
.faq {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.faq__list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item details {
  padding: 0;
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--t-fast);
}
.faq__item summary:hover { color: var(--brand); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.4rem; line-height: 1;
  color: var(--text-soft);
  transition: transform var(--t-med), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.faq__item details[open] .faq__chev {
  transform: rotate(45deg);
  background: var(--brand); color: var(--ink); border-color: var(--brand);
}
.faq__item details > p {
  padding: 0 60px 26px 0;
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  animation: faqIn var(--t-med) ease both;
}
.faq__item details > p em { font-style: italic; color: var(--text); }
.faq__item details > p a { color: var(--brand); border-bottom: 1px solid currentColor; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────  VISIT (compact contact)  ───────────── */
.visit {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.visit__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.visit__card {
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 12px;
}
.visit__card h3 {
  font-family: var(--serif); font-weight: 460;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.visit__card--addr     { grid-column: span 4; }
.visit__card--contact  { grid-column: span 4; }
.visit__card--social   { grid-column: span 4; }
.visit__card--map      { grid-column: span 12; padding: 0; min-height: 160px; max-height: 220px; overflow: hidden; }
.visit__card--map svg  { width: 100%; height: 100%; display: block; min-height: 160px; }

.visit__addr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.hours { display: flex; flex-direction: column; gap: 4px; }
.hours div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--text-soft); }
.hours dd { color: var(--text); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; }
.visit__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.visit__cta .btn { padding: 9px 16px; font-size: 0.85rem; }

.visit__line {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: padding var(--t-fast);
}
.visit__line:last-child { border-bottom: 0; }
.visit__line:hover { padding-left: 6px; }
.visit__lbl {
  font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
}
.visit__line strong {
  font-family: var(--serif); font-weight: 460;
  font-size: 0.98rem;
  color: var(--text);
  word-break: break-word;
  letter-spacing: -0.005em;
}
.visit__line:hover strong { color: var(--brand); }

.socials { display: flex; flex-direction: column; gap: 0; }
.socials li { border-bottom: 1px solid var(--line); }
.socials li:last-child { border-bottom: 0; }
.socials a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  transition: padding var(--t-fast);
}
.socials a:hover { padding-left: 6px; }
.socials img, .socials .ig-avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  object-fit: contain;
  background: var(--ink-3);
}
.socials div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.socials strong {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.82rem;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis;
}
.socials span { font-size: 0.78rem; color: var(--text-mute); }
.socials a:hover strong { color: var(--brand); }

.ig-avatar {
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 0.88rem; letter-spacing: -0.01em;
}
.ig-avatar--lms  { background: linear-gradient(135deg, #DD6E0D, #7A2A06); color: #FFF6E6; }
.ig-avatar--pal  { background: #F2C730; color: #A60E12; }
.ig-avatar--casa { background: #0F3F1A; color: #F2EBDD; }
.ig-avatar--jya  { background: linear-gradient(135deg, #7E1E2A, #1A0E10); color: #E8B89A; }

@media (max-width: 1000px) {
  .visit__card--addr,
  .visit__card--contact,
  .visit__card--social { grid-column: span 6; }
}
@media (max-width: 640px) {
  .visit__card--addr,
  .visit__card--contact,
  .visit__card--social { grid-column: span 12; }
}

/* ─────────────  FOOTER  ───────────── */
.footer {
  padding: clamp(60px, 8vw, 100px) var(--gutter) 28px;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 60px;
  padding-bottom: 60px;
}
.footer__brand { display: flex; gap: 18px; align-items: center; }
.footer__mark {
  flex-shrink: 0;
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.footer__monogram {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 50%;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 1.8rem;
  font-variation-settings: "opsz" 144;
}
.footer__brand p {
  font-family: var(--serif); font-weight: 360;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-soft);
}
.footer__brand strong { color: var(--text); font-weight: 500; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__cols h5 {
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color var(--t-fast), padding var(--t-fast);
}
.footer__cols a:hover { color: var(--brand); padding-left: 6px; }

.footer__legal {
  max-width: var(--max);
  margin: 0 auto 22px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.02);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-mute);
}
.footer__legal strong { color: var(--text-soft); font-weight: 500; }
.footer__legal a { color: var(--text-soft); border-bottom: 1px dotted var(--text-mute); }
.footer__legal a:hover { color: var(--brand); border-color: var(--brand); }

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--text-mute);
}

@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ─────────────  REVEAL ANIMATIONS  ───────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────  ACCESSIBILITY  ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
