/* Visual component patterns shared across pages. Structural/responsive
   utility classes (.r-row, .r-grid-*, .container, nav, footer) live in
   layout.css — components here compose with those.

   Type roles: --font-display (headlines, buttons, brand marks),
   --font-body (paragraphs, reading content), --font-mono (labels, meta,
   schedule data — the "counting the beat" register). Base.css already
   points h1/h2/h3 at --font-display and body copy at --font-body; classes
   below only need an explicit font-family where the element isn't a
   heading tag (spans, buttons, form labels, etc). */

/* ---------- Color utility (accent spans within headings) ---------- */

.text-brand { color: var(--color-brand); }

/* Reusable translucent surface for future editorial compositions. */
.surface-glass {
  background: var(--gradient-paper);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

/* ---------- Section spacing ---------- */

.section { padding: 90px 0; }
.section--tight { padding: 60px 0; }
.section--band {
  background: var(--color-card-light);
}

/* ---------- Eyebrow labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-ink);
}

/* A tape label stuck onto the page, not a rounded pill: solid fill,
   a slight rotation, a soft "peeling off the floor" shadow. */
.eyebrow--pill {
  background: var(--color-text);
  color: var(--color-offwhite);
  border-radius: 2px 8px 2px 8px;
  padding: 7px 14px;
  transform: rotate(-1.4deg);
  box-shadow: 0 3px 8px rgba(24, 17, 25, 0.2);
}

.eyebrow--on-dark {
  background: var(--color-offwhite);
  color: var(--color-text);
}

.eyebrow--muted {
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- Page header ("Cabecera" pattern) ---------- */

.page-header {
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding: 90px 0 60px;
}

.page-header__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-header h1 {
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: clamp(64px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  overflow-wrap: normal;
}

.page-header__lead {
  max-width: 460px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-wrap: pretty;
  flex-shrink: 0;
}

/* ---------- Section header (mid-page heading + link/text) ---------- */

.section-header {
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 90px;
  padding-bottom: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2% -3% 4%;
  pointer-events: none;
  background: radial-gradient(ellipse at 28% 38%, rgba(248, 16, 144, 0.11), transparent 44%),
              radial-gradient(ellipse at 78% 58%, rgba(0, 200, 208, 0.09), transparent 38%);
  filter: blur(18px);
}

.hero__badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero__title > span {
  white-space: nowrap;
}

.hero__title-line--outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--color-text);
}

/* Signature moment: the brand word gets an ink-stroke reveal, then a
   hand-drawn underline traces itself in underneath (a real SVG path with
   pathLength="1", animated via stroke-dashoffset — an actual pen-stroke
   draw, not a rectangle scaling into shape). Reduced-motion users get the
   finished state immediately — the animation is additive, not load-bearing
   for content. */
.hero__title .text-brand {
  position: relative;
  display: inline-block;
}

.hero__brand-stroke {
  position: absolute;
  left: 0.03em;
  width: calc(100% - 0.06em);
  bottom: 0.08em;
  height: 0.09em;
  overflow: visible;
}

.hero__brand-stroke path {
  fill: none;
  stroke: var(--color-accent-teal);
  stroke-width: 4.5;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title .text-brand {
    clip-path: inset(0 100% 0 0);
    animation: ink-reveal 0.85s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
  }

  .hero__brand-stroke path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ink-draw 0.6s cubic-bezier(0.45, 0, 0.4, 1) 0.9s forwards;
  }

  @keyframes ink-reveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }

  @keyframes ink-draw {
    to { stroke-dashoffset: 0; }
  }
}

.hero__mono {
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.hero__bottom {
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-top: 52px;
}

.hero__lead {
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--gradient-dark);
  overflow: hidden;
  padding: 22px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 30px 0;
}

/* Deliberately NOT gated behind prefers-reduced-motion, unlike the hero's
   one-time ink-stroke reveal: this is a slow, continuous, low-amplitude
   horizontal drift (no flashing/zooming/parallax), and it's part of the
   page's content (the style list), not a decorative flourish. */
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee__group {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--color-bg);
}

.marquee__item {
  padding: 0 18px;
}

.marquee__dot--brand { color: var(--color-brand); }
.marquee__dot--pink { color: var(--color-accent-pink); }
.marquee__dot--teal { color: var(--color-accent-teal); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Card ---------- */

.card {
  background: var(--gradient-paper);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(24, 17, 25, 0.14);
}

.card__media.placeholder-media {
  border-radius: 0;
}

.card__media--event,
.card__media--style {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-offwhite);
}

.card__media--style {
  aspect-ratio: 3 / 2;
}

.card__media--event .card__image,
.card__media--style .card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px 28px;
  flex: 1;
}

.card__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: normal;
}

.card__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- Style index (home styles list + preview panel) ----------
   A typographic index instead of a grid of near-identical tiles: hovering
   or focusing a name swaps the sticky panel's badge/title/description and
   background tint. Every row is a real link to /clases/#slug, so the
   section is fully functional with zero JS — the preview is enhancement,
   not the only path to the content. */

.style-index {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.style-index__list {
  display: flex;
  flex-direction: column;
}

.style-index__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-top: 1px solid var(--color-border-subtle);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: color 0.15s ease, padding-left 0.2s ease;
}

.style-index__list li:last-child .style-index__item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.style-index__item:hover,
.style-index__item:focus-visible,
.style-index__item.is-active {
  color: var(--color-brand);
  padding-left: 14px;
}

.style-index__badge {
  flex-shrink: 0;
}

.style-index__preview {
  position: sticky;
  top: 104px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 0;
  padding: 40px;
  background-color: var(--preview-tint, var(--color-card-light));
  background-image: linear-gradient(145deg, rgba(255, 253, 249, 0.58), rgba(255, 253, 249, 0.08));
  box-shadow: var(--shadow-card);
  transition: background-color 0.25s ease;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.style-index__preview-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.05;
}

.style-index__preview-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.style-index__preview-link {
  margin-top: auto;
}

/* ---------- Instructor portraits ---------- */

.instructor-photo-frame {
  overflow: hidden;
}

.instructor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.instructor-photo--top {
  object-position: center top;
}

.instructor-photo--contain {
  object-fit: contain;
}

.instructor-photo--wong {
  object-position: 52% 78%;
}

.instructor-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.instructor-card .card__desc,
.instructor-lead .feature-dark__text {
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  -webkit-hyphens: none;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ---------- Weekly schedule ---------- */

.schedule-help {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.schedule-grid {
  border-block: 1px solid var(--color-border-divider);
  background: var(--gradient-paper);
  scrollbar-color: var(--color-brand) var(--color-card-light);
  scrollbar-width: thin;
}

.schedule-table {
  width: 100%;
  min-width: 1160px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.schedule-table__time-column { width: 80px; }

.schedule-table th,
.schedule-table td {
  border-right: 1px solid var(--color-border-divider);
  border-bottom: 1px solid var(--color-border-divider);
}

.schedule-table tr > :last-child { border-right: 0; }

.schedule-day__header {
  height: 68px;
  padding: 15px 14px 12px;
  border-top: 5px solid var(--color-panel-dark);
  font-family: var(--font-display);
  font-size: 22px;
  font-stretch: var(--font-stretch-display);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.schedule-day__header:nth-child(3n) { border-top-color: var(--color-brand); }
.schedule-day__header:nth-child(3n + 1) { border-top-color: var(--color-accent-teal); }

.schedule-table__hour {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 18px 12px;
  vertical-align: top;
  background: var(--color-card-light);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.schedule-table__hour time { font-family: var(--font-display); }

.schedule-table thead .schedule-table__hour { vertical-align: middle; }

.schedule-table__period th {
  padding: 12px 14px;
  background: var(--color-panel-dark);
  color: var(--color-offwhite);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-table__empty {
  padding: 18px 14px;
  vertical-align: top;
  color: var(--color-text-muted);
  background: rgba(24, 17, 25, 0.025);
}

.schedule-slot {
  --schedule-color: var(--color-brand);
  padding: 14px;
  vertical-align: top;
  box-shadow: inset 3px 0 0 var(--schedule-color);
  transition: background-color 0.18s ease;
}

.schedule-slot:hover {
  background-color: color-mix(in srgb, var(--schedule-color) 10%, transparent);
}

.schedule-slot__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 90px;
}

.schedule-slot__time {
  margin-bottom: 3px;
  padding: 5px 8px;
  color: var(--color-text-secondary);
  background-color: color-mix(in srgb, var(--schedule-color) 15%, transparent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.schedule-slot--hiphop { --schedule-color: #F81090; }
.schedule-slot--commercial { --schedule-color: #9830C8; }
.schedule-slot--contemporaneo { --schedule-color: #008D95; }
.schedule-slot--danceup { --schedule-color: #F0643B; }
.schedule-slot--caribenos { --schedule-color: #D97706; }
.schedule-slot--lindy { --schedule-color: #8A5A44; }
.schedule-slot--kpop { --schedule-color: #E64980; }
.schedule-slot--salon { --schedule-color: #5F3DC4; }
.schedule-slot--pilates { --schedule-color: #2B8A3E; }
.schedule-slot--hipopresivos { --schedule-color: #087F5B; }
.schedule-slot--sevillanas { --schedule-color: #C2255C; }
.schedule-slot--reggaeton { --schedule-color: #D6336C; }
.schedule-slot--oriental { --schedule-color: #9C36B5; }
.schedule-slot--competicion { --schedule-color: #364FC7; }
.schedule-slot--musical { --schedule-color: #7048E8; }

.schedule-slot--oficina,
.schedule-slot--evolucion { --schedule-color: var(--color-text-muted); }

.schedule-slot strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.schedule-slot span {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.3;
}

.schedule-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-divider);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .style-index {
    grid-template-columns: 1fr;
  }
  .style-index__preview {
    display: none;
  }
  /* .is-active only means something next to the preview panel it drives —
     without it, a permanently-highlighted first row reads as a stray/buggy
     state rather than a selection. */
  .style-index__item.is-active {
    color: var(--color-text);
    padding-left: 4px;
  }
}

@media (max-width: 640px) {
  .style-index__item {
    padding: 16px 2px;
  }
  .style-index__item:hover,
  .style-index__item:focus-visible,
  .style-index__item.is-active {
    padding-left: 10px;
  }
}

/* ---------- Dark feature split panel (Tour 3D / Directora) ---------- */

.feature-dark {
  background: var(--gradient-dark);
  border-radius: 0;
  overflow: hidden;
  color: var(--color-bg);
}

.feature-dark--alt {
  background: linear-gradient(145deg, #241923 0%, #38203A 60%, #18363A 125%);
}

.feature-dark__content {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-dark__content .eyebrow {
  color: var(--color-accent-pink-on-dark);
}

.feature-dark__title {
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.1;
}

.feature-dark__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #C9BEC3;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  border-radius: 0;
  padding: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.cta-banner__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: 54px;
  line-height: 1;
  overflow-wrap: normal;
}

.cta-banner__text {
  font-family: var(--font-body);
  font-size: 18px;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.cta-banner--brand {
  background: var(--gradient-cta);
  color: var(--color-text);
}

.cta-banner--brand .cta-banner__text {
  color: var(--color-panel-dark-alt);
}

.cta-banner--dark {
  background: var(--gradient-dark);
  color: var(--color-bg);
}

.cta-banner--dark .cta-banner__text {
  color: #C9BEC3;
}

.cta-banner--teal {
  background: var(--gradient-teal);
  color: var(--color-panel-dark);
}

@media (max-width: 640px) {
  .page-header h1 { font-size: clamp(40px, 13vw, 60px); }
  .card__title { font-size: clamp(18px, 5.5vw, 22px); }
  .feature-dark__title { font-size: clamp(24px, 8vw, 32px); }
  .cta-banner__title { font-size: clamp(28px, 9vw, 40px); }
}

/* ---------- Placeholder media ---------- */

.placeholder-media {
  --stripe-a: #EDE6DA;
  --stripe-b: #F3EEE5;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(45deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-media__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
  background: rgba(255, 253, 249, 0.75);
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
}

.placeholder-media--16x10 { aspect-ratio: 16 / 10; }
.placeholder-media--16x9 { aspect-ratio: 16 / 9; }
.placeholder-media--4x3 { aspect-ratio: 4 / 3; }
.placeholder-media--1x1 { aspect-ratio: 1 / 1; }
.placeholder-media--portrait { aspect-ratio: 4 / 4.4; }

.placeholder-media--dark {
  --stripe-a: #241A26;
  --stripe-b: #2C2030;
}
.placeholder-media--dark .placeholder-media__label {
  background: rgba(0, 0, 0, 0.3);
  color: #D9CFD5;
}

.placeholder-media--teal { --stripe-a: #DCEEEB; --stripe-b: #E7F4F1; }
.placeholder-media--rose { --stripe-a: #F7E3D3; --stripe-b: #FAECE0; }
.placeholder-media--lavender { --stripe-a: #EEE3EA; --stripe-b: #F5ECF1; }

/* ---------- Map ---------- */

.map-embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed iframe:focus-visible,
.tour-embed iframe:focus-visible {
  outline-offset: -4px;
}

.tour-embed {
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  margin-right: 52px;
  border-radius: 0;
  background: var(--color-panel-dark);
}

.tour-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 3px 15px 3px 15px;
  border: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--sm {
  padding: 12px 22px;
  font-size: 13px;
}

.btn--primary { background: var(--color-brand); color: var(--color-text); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--color-panel-dark-alt); color: var(--color-bg); }

.btn--dark { background: var(--color-panel-dark-alt); color: var(--color-bg); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--color-brand); color: var(--color-text); }

.btn--outline {
  background: var(--color-panel-tint-08);
  border: 0;
  color: var(--color-panel-dark-alt);
  padding: 18px 32px;
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-panel-dark-alt);
  color: var(--color-bg);
}

.btn--light { background: var(--color-offwhite); color: var(--color-panel-dark-alt); }
.btn--light:hover, .btn--light:focus-visible { background: var(--color-panel-dark); color: var(--color-bg); }

.btn--teal { background: var(--color-accent-teal); color: var(--color-panel-dark); }
.btn--teal:hover, .btn--teal:focus-visible { background: var(--color-panel-dark); color: var(--color-accent-teal); }

/* ---------- Link with hand-drawn underline ---------- */

.link-underline {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand-ink);
  padding-bottom: 7px;
  width: fit-content;
  flex-shrink: 0;
  min-height: 24px;
  transition: color 0.15s ease;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: currentColor;
  mask-image: var(--stroke-squiggle);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
.link-underline:hover, .link-underline:focus-visible {
  color: var(--color-text);
}
.link-underline--light {
  color: var(--color-bg);
}

/* ---------- Badge (category tag) — a brush mark, not a pill ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px 9px 2px 9px;
  padding: 4px 10px;
  transform: rotate(-1deg);
}

.badge--pink { color: var(--color-brand-ink); background: var(--color-brand-tint-12); }
.badge--muted { color: var(--color-text-secondary); background: var(--color-panel-tint-08); }
.badge--lightpink { color: #581C73; background: var(--color-accent-pink-tint-22); }
.badge--teal { color: #005E62; background: var(--color-accent-teal-tint-30); }

/* ---------- Outlined pill tag — stays quiet on purpose ---------- */

.pill-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  border: 0;
  background: var(--color-panel-tint-08);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.pill-tag--light {
  color: var(--color-bg);
  background: rgba(255, 253, 249, 0.14);
}

/* ---------- Dot list ---------- */

.dot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dot-list__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-list__dot--brand { background: var(--color-brand); }
.dot-list__dot--pink { background: var(--color-accent-pink); }
.dot-list__dot--teal { background: var(--color-accent-teal); }

.dot-list__text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Generic layout helpers ---------- */

.media-frame {
  position: relative;
}

.media-frame__image {
  width: 100%;
  height: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack--lg { gap: 28px; }

.text-lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.mt-lg { margin-top: 64px; }

/* ---------- Instagram feed ---------- */

.instagram-grid[hidden],
.instagram-grid__item[hidden] { display: none; }

.instagram-grid__item {
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: var(--radius-md);
}

.instagram-grid__link {
  position: relative;
  display: block;
  height: 100%;
  background: var(--color-offwhite);
}

.instagram-grid__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.instagram-grid__type {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  background: var(--color-text);
  color: var(--color-offwhite);
  font-family: var(--font-mono);
  font-size: 10px;
}

.instagram-grid__link:hover .instagram-grid__image { opacity: 0.85; }

/* ---------- Tag row ("Y cada curso:") ---------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.tag-row__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* ---------- Info card (contacto side column) ---------- */

.info-card {
  border-radius: 0;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-card--dark {
  background: var(--gradient-dark);
  color: var(--color-bg);
}

.info-card--light {
  background: var(--gradient-paper);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.info-card__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-pink-on-dark);
}
.info-card--light .info-card__label { color: var(--color-brand-ink); }

.info-card__value {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
}
.info-card--dark .info-card__value { color: var(--color-bg); }
.info-card--light .info-card__value { color: var(--color-text); }

.info-card__hint {
  font-family: var(--font-body);
  font-size: 16px;
  color: #C9BEC3;
}

.info-card__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card__links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.15s ease;
}
.info-card__links a:hover, .info-card__links a:focus-visible {
  color: var(--color-brand-ink);
}

/* ---------- Contact form ---------- */

.form-card {
  background: var(--gradient-paper);
  border-radius: 0;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-card__title {
  font-weight: 900;
  font-stretch: var(--font-stretch-display);
  text-transform: uppercase;
  font-size: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  border: 1px solid #756975;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font-size: 16px;
  background: var(--color-offwhite);
  color: var(--color-text);
  appearance: none;
  transition: border-color 0.15s ease;
}

.form-textarea { resize: vertical; }

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  border-color: #00767A;
}

.form-help {
  margin-top: -12px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-success {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #00767A;
}

.form-success[hidden],
.form-error[hidden],
.form-progress:empty { display: none; }

.form-error,
.form-progress {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.form-error { color: #9b174f; }
.form-progress { color: var(--color-text-secondary); }
.form-actions .btn:disabled { cursor: wait; opacity: 0.7; }
