:root {
  color-scheme: dark;
  --bg: #0b0d0d;
  --text: #ffffff;
  --muted: #e8e8e8;
  --line: #3d4a48;
  --teal: #4ecdc4;
  --gold: #e4ba16;
  --curriculum: #151c1b;
  --header-bg: #121717;
  --kicker: #cfcfcf;
  --bar: #4ecdc4;
  --input-bg: #1a2221;
  --input-text: #ffffff;
  --input-border: #6f8380;
  --button-text: #000000;
  --surface: #101515;
  --surface-2: #171e1d;
  --surface-3: #1f2827;
  --glow: rgba(78, 205, 196, 0.14);
  --font: "Rajdhani", "Atkinson Hyperlegible", sans-serif;
  --display: "Barlow Condensed", "Atkinson Hyperlegible", sans-serif;
  --space: 1.45;
  --content-max: 1100px;
  --page-gutter: clamp(1rem, 3.5vw, 1.5rem);
}

/* Single content rail: same left/right edges across sections.
   Use this on blocks that sit in full-bleed parents (no horizontal padding).
   Sections with full-bleed backgrounds should use padding-inline with the
   same formula instead, and keep children at width: 100%. */
.wrap,
.curriculum-shell,
.footer__inner {
  width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}


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

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 4.5rem) + var(--a11y-offset, 0px) + 0.75rem);
  overflow-x: clip;
}

html[data-font-scale="0"] { font-size: 100%; }
html[data-font-scale="1"] { font-size: 112.5%; }
html[data-font-scale="2"] { font-size: 137.5%; }
html[data-font-scale="3"] { font-size: 168.75%; }

@media (max-width: 700px) {
  html {
    font-size: 100%;
  }

  html[data-font-scale="0"] { font-size: 93.75%; }
  html[data-font-scale="1"] { font-size: 100%; }
  html[data-font-scale="2"] { font-size: 118.75%; }
  html[data-font-scale="3"] { font-size: 143.75%; }
}

html[data-spacing="on"] {
  letter-spacing: 0.06em;
  word-spacing: 0.08em;
}

html[data-underline="on"] a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: var(--space);
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 50% -8%, var(--glow), transparent 58%),
    linear-gradient(180deg, var(--header-bg) 0%, var(--bg) 28%, var(--surface) 72%, var(--bg) 100%);
}

@media (max-width: 700px) {
  body {
    font-size: 1.05rem;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--muted);
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 40;
  background: #000;
  color: #fff;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 0.6rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.wrap {
  /* width set by shared rail */
}

.header {
  position: sticky;
  top: var(--a11y-offset, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--header-bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.7rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  border-bottom: 1px solid var(--line);
  box-shadow:
    inset 0 -1px 0 rgba(78, 205, 196, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.22);
  transition:
    padding 0.22s ease,
    box-shadow 0.22s ease,
    top 0.22s ease;
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.2rem;
  width: 100%;
}

.header__ghost {
  background: none;
  border: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.98rem;
  transition: min-height 0.22s ease, font-size 0.22s ease;
}

.header__ghost--strong {
  color: var(--text);
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-left: auto;
}

.logo {
  text-decoration: none;
  color: #fff;
  flex: none;
}

.logo__mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--surface-3);
  outline: 1px solid var(--line);
  transition: width 0.22s ease, height 0.22s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.header__links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.98rem;
  transition:
    color 0.18s ease,
    min-height 0.22s ease,
    font-size 0.22s ease;
}

.header__link:hover,
.header__link:focus-visible {
  color: var(--text);
}

.header__nav-a11y {
  margin-left: auto;
}

.header__menu-btn {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.header__menu-icon {
  position: relative;
}

.header__menu-icon::before,
.header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.header__menu-icon::before {
  top: -6px;
}

.header__menu-icon::after {
  top: 6px;
}

.header.is-nav-open .header__menu-icon {
  background: transparent;
}

.header.is-nav-open .header__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header.is-nav-open .header__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.header--compact {
  padding: 0.28rem 1rem;
  box-shadow:
    inset 0 -1px 0 rgba(78, 205, 196, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.28);
}

.header--compact .logo__mark {
  width: 36px;
  height: 36px;
}

.header--compact .header__ghost,
.header--compact .header__link {
  min-height: 2rem;
  font-size: 0.9rem;
}

.header--compact .header__menu-btn {
  width: 2.25rem;
  height: 2.25rem;
}

.header--compact .header__bar {
  gap: 0.45rem 0.85rem;
}

html[data-motion="reduce"] .header,
html[data-motion="reduce"] .logo__mark,
html[data-motion="reduce"] .header__ghost,
html[data-motion="reduce"] .tab {
  transition: none;
}

.a11y-panel {
  background: #0e1313;
  color: #fff;
  padding: 0.55rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2)) 0.65rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel__inner {
  width: 100%;
}

.a11y-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.a11y-panel__title {
  font-weight: 700;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.a11y-label {
  font-weight: 700;
  margin: 0;
  font-size: 0.86rem;
}

.a11y-close {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-close:hover,
.a11y-close:focus-visible {
  background: var(--gold);
}

.a11y-bar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: end;
}

.a11y-group,
.a11y-field {
  display: grid;
  gap: 0.28rem;
}

.a11y-font-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.a11y-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
}

.a11y-btn,
.a11y-select {
  min-height: 2.35rem;
  font: inherit;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

.a11y-select {
  min-width: 12.5rem;
  max-width: 100%;
}

.a11y-btn[aria-pressed="true"] {
  background: var(--gold);
}

.a11y-btn--reset {
  font-weight: 700;
}

.a11y-check {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 600;
  min-height: 2.2rem;
  font-size: 0.92rem;
}

.a11y-check input {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

/* Tablet */
@media (min-width: 701px) and (max-width: 999px) {
  .a11y-panel {
    padding: 0.55rem 1rem 0.7rem;
  }

  .a11y-bar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: end;
  }

  .a11y-font-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(2.4rem, 1fr));
  }

  .a11y-select {
    min-width: 0;
    width: min(100%, 18rem);
  }

  .a11y-checks {
    flex-wrap: wrap;
  }
}

/* Desktop / large */
@media (min-width: 1000px) {
  .a11y-panel {
    padding: 0.45rem 1.25rem;
  }

  .a11y-panel__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem 1rem;
  }

  .a11y-panel__top {
    display: contents;
  }

  .a11y-panel__title {
    grid-column: 1;
    align-self: center;
  }

  .a11y-close {
    grid-column: 3;
    grid-row: 1;
    width: 2.25rem;
    height: 2.25rem;
  }

  .a11y-bar__controls {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.75rem;
    min-width: 0;
  }

  .a11y-group,
  .a11y-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }

  .a11y-select {
    min-width: 0;
    width: min(100%, 16rem);
  }

  .a11y-checks {
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
  }

  .a11y-check {
    min-height: 2.1rem;
    font-size: 0.88rem;
  }

  .a11y-btn,
  .a11y-select {
    min-height: 2.2rem;
  }
}

@media (max-width: 700px) {
  .a11y-panel {
    padding: 0.55rem 0.7rem 0.7rem;
    max-height: none;
    overflow: visible;
  }

  .a11y-panel__top {
    margin-bottom: 0.45rem;
    gap: 0.5rem;
  }

  .a11y-panel__title {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .a11y-bar__controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.55rem;
    align-items: end;
  }

  .a11y-group,
  .a11y-field,
  .a11y-checks,
  .a11y-btn--reset {
    grid-column: 1 / -1;
  }

  .a11y-font-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .a11y-font-row .a11y-btn {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.2rem 0.15rem;
    font-weight: 700;
    font-size: 0.95rem;
  }

  .a11y-select {
    width: 100%;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.25rem 0.45rem;
    font-size: 0.9rem;
  }

  .a11y-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.55rem;
  }

  .a11y-check {
    display: inline-flex;
    width: auto;
    flex: 1 1 auto;
    min-height: 2.1rem;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.84rem;
  }

  .a11y-btn--reset {
    width: 100%;
    min-height: 2.35rem;
    font-weight: 700;
    font-size: 0.92rem;
  }
}

.panel[hidden] {
  display: none;
}

.media-hero {
  margin: 0;
  padding: 0;
  background: var(--surface);
}

.media-hero img {
  width: 100%;
  height: auto;
  max-height: min(32vh, 280px);
  display: block;
  object-fit: contain;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .media-hero img {
    max-height: min(30vh, 300px);
  }
}

@media (min-width: 1400px) {
  .media-hero img {
    max-height: min(28vh, 320px);
  }
}

.intro,
.promo {
  text-align: center;
  width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
  padding: 4.2rem 0 3.6rem;
}

.promo {
  width: 100%;
  max-width: none;
  padding-inline: max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  box-sizing: border-box;
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.intro .lead,
.promo .lead,
.promo h2,
.promo .kicker {
  max-width: 40rem;
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--kicker);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
}

.kicker--left {
  text-align: left;
}

h1,
h2,
.form-title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.15rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
}

.ornament {
  display: block;
  width: 42px;
  height: 3px;
  background: var(--teal);
  margin: 1.1rem auto 1.4rem;
}

.lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.8rem;
}

.button,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 18px 36px;
  background: var(--teal);
  color: var(--button-text);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
}

.button:hover,
.button-primary:hover {
  color: var(--button-text);
  filter: brightness(0.95);
}

.intro-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: var(--surface-2);
  border-color: var(--teal);
  color: var(--text);
  filter: none;
}

.banner {
  position: relative;
  margin: 0;
  min-height: 140px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-3);
}

.banner img {
  width: min(100%, 320px);
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-inline: auto;
  filter: brightness(0.5);
}

.banner h2 {
  position: absolute;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  margin: 0;
  background: rgba(0, 0, 0, 0.78);
  padding: 0.45rem 1.1rem;
  text-shadow: 0 1px 2px #000;
  z-index: 1;
}

.split {
  display: grid;
  gap: 0;
  background: var(--surface);
  /* Keep full-bleed background; pin the 2-col grid to the shared rail */
  padding-inline: max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  box-sizing: border-box;
}

.split--reverse {
  background: var(--surface-2);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .split--reverse {
    direction: rtl;
  }

  .split--reverse > * {
    direction: ltr;
  }
}

.split img {
  width: auto;
  max-width: min(100%, 260px);
  height: auto;
  max-height: 260px;
  min-height: 0;
  object-fit: contain;
  justify-self: center;
  margin-inline: auto;
  background: transparent;
}

.split__copy {
  padding: 3rem clamp(1rem, 2.5vw, 1.5rem);
}

.split__copy h2 {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.split__copy h2::before {
  content: "";
  width: 5px;
  height: 1.15em;
  background: var(--bar);
  flex: none;
  margin-top: 0.08em;
}

.split__copy p {
  color: var(--muted);
  max-width: 32rem;
}

.curriculum-block {
  background:
    linear-gradient(180deg, rgba(78, 205, 196, 0.06), transparent 28%),
    var(--curriculum);
  padding: 3.5rem 0 2.5rem;
  border-block: 1px solid var(--line);
}

.curriculum-block h2 {
  text-align: center;
  margin-bottom: 1.6rem;
}

.curriculum-shell {
  /* width set by shared rail */
  margin-block: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.curriculum-shell__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}

.curriculum-shell__summary::-webkit-details-marker {
  display: none;
}

.curriculum-shell__hint {
  color: var(--muted);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
}

.curriculum-shell__hint::after {
  content: " ⌄";
}

.curriculum-shell[open] .curriculum-shell__hint::after {
  content: " ⌃";
}

.curriculum-shell .curriculum {
  padding: 0;
  max-width: none;
}

.curriculum {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  max-width: none;
}

.curriculum details {
  border-bottom: 1px solid var(--line);
}

.curriculum li:nth-child(even) details {
  background: var(--surface-2);
}

.curriculum details[open] {
  background: var(--surface-3);
}

.curriculum summary,
.curriculum ul {
  padding-inline: 0.8rem;
}

.curriculum summary {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  min-height: 4.4rem;
  font-family: var(--display);
  font-weight: 700;
  list-style: none;
}

.curriculum summary::-webkit-details-marker {
  display: none;
}

.curriculum__num {
  color: var(--kicker);
  font-size: 1.05rem;
}

.curriculum__title {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.curriculum__toggle {
  color: var(--muted);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
}

.curriculum__toggle::after {
  content: " ⌄";
}

.curriculum details[open] .curriculum__toggle::after {
  content: " ⌃";
}

.curriculum ul {
  margin: 0 0 1.2rem 3.4rem;
  padding: 0;
  color: var(--muted);
}

.price {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  width: 100%;
  padding: 3rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  margin: 0;
  background: var(--surface);
  box-sizing: border-box;
}

@media (min-width: 800px) {
  .price {
    grid-template-columns: 1.3fr 0.8fr auto;
  }
}

.price__value p {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
}

.price__value span {
  color: var(--kicker);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

#ropa-perros,
#otros-cursos,
#temario,
#contacto {
  scroll-margin-top: calc(var(--header-height, 4rem) + var(--a11y-offset, 0px) + 1.2rem);
}

.other-courses {
  padding: 3.5rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
}

.other-courses__header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
}

.other-courses__header h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.35rem 0 0.85rem;
  color: var(--text);
}

.other-courses-shell {
  width: 100%;
  margin-block: 0;
  border: 1px solid var(--line);
  background: var(--surface-1, var(--surface));
}

.other-courses-shell__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}

.other-courses-shell__summary::-webkit-details-marker {
  display: none;
}

.other-courses-shell__hint {
  color: var(--muted);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
}

.other-courses-shell__hint::after {
  content: " ⌄";
}

.other-courses-shell[open] .other-courses-shell__hint::after {
  content: " ⌃";
}

.other-courses-shell__body {
  padding: 0 1.2rem 1.5rem;
  border-top: 1px solid var(--line);
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 960px;
  margin: 1.25rem auto 2.2rem;
}

.course-filter-btn {
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--muted);
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.course-filter-btn:hover {
  color: var(--text);
  border-color: var(--teal);
}

.course-filter-btn.is-active,
.course-filter-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--teal);
  box-shadow: inset 0 -2px 0 var(--teal);
  font-weight: 700;
  background: var(--surface-1, var(--surface));
}

.course-filter-btn__count {
  font-size: 0.82em;
  opacity: 0.75;
}

.other-courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  width: 100%;
  margin: 0 auto;
}

.course-card {
  background: var(--surface-1, var(--surface));
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  border-color: var(--teal);
}

.course-card[hidden] {
  display: none !important;
}

.course-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.course-card__category {
  flex-shrink: 0;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  background: var(--surface-2);
  color: var(--teal);
  border: 1px solid var(--line);
  max-width: 5.5rem;
  text-align: center;
  line-height: 1.2;
}

.course-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  color: var(--teal);
  border: 1px solid var(--line);
  margin-bottom: 0;
}

.course-card__title {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.02em;
}

.course-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.course-card__action {
  margin-top: auto;
}

.course-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--teal);
  color: var(--button-text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.course-card__btn:hover {
  filter: brightness(0.92);
  color: var(--button-text);
}

.course-card__wa-icon {
  flex-shrink: 0;
}

.contact {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.6rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-shell {
    border: 0;
    background: transparent;
  }

  .contact-form-shell__summary {
    display: none;
  }

  .contact-form-shell form {
    padding: 0;
    border-top: 0;
  }
}

.contact-form-shell {
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-form-shell__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.contact-form-shell__summary::-webkit-details-marker {
  display: none;
}

.contact-form-shell__hint {
  color: var(--muted);
  font-weight: 500;
  font-size: 0;
  flex: none;
}

.contact-form-shell__hint::before {
  content: "Mostrar";
  font-size: 0.92rem;
}

.contact-form-shell__hint::after {
  content: " ⌄";
  font-size: 0.92rem;
}

.contact-form-shell[open] .contact-form-shell__hint::before {
  content: "Ocultar";
}

.contact-form-shell[open] .contact-form-shell__hint::after {
  content: " ⌃";
}

.contact-form-shell form {
  padding: 0 1rem 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

address {
  font-style: normal;
}

form {
  display: grid;
  gap: 0.85rem;
}

form label,
form fieldset {
  display: grid;
  gap: 0.3rem;
  border: 0;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

form input[type="text"],
form textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: var(--input-bg);
  color: var(--input-text);
}

.footer {
  padding: 1.75rem 0 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, transparent), var(--bg) 55%),
    var(--bg);
}

.footer__inner {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
}

.footer__brand {
  display: grid;
  gap: 0.2rem;
}

.footer__names {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.footer__place {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.footer__fb {
  display: inline-flex;
  gap: 0.55rem;
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.footer__icon:hover,
.footer__icon:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 12%, var(--surface-2));
}

.footer__meta {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.footer__credit {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__credit a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  color: var(--teal);
}

.footer__links {
  margin: 0;
}

.footer__links a {
  color: var(--teal);
  font-weight: 600;
}

@media (min-width: 860px) {
  .footer {
    padding: 2.4rem 0 2.6rem;
    text-align: left;
  }

  .footer__inner {
    grid-template-columns: 1.3fr auto 1fr;
    align-items: center;
    gap: 2rem;
    justify-items: stretch;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__meta {
    justify-items: end;
    text-align: right;
  }

  .footer__names {
    font-size: 1.15rem;
  }

  .footer__icon {
    width: 3rem;
    height: 3rem;
  }
}

.privacy {
  padding: 2.5rem 1.25rem 3rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.privacy .wrap {
  width: min(720px, calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.privacy h2 {
  margin-top: 0;
}

.privacy p {
  color: var(--muted);
  line-height: 1.5;
}

.storage-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  /* px on purpose: keep consent bar compact even with a11y font-scale */
  padding: 10px 12px;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}

.storage-banner__inner {
  width: min(900px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 6px;
}

.storage-banner__title {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
}

.storage-banner__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.storage-banner__text a {
  color: var(--teal);
  font-weight: 600;
}

.storage-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.storage-banner__actions .button,
.storage-banner__actions .button-primary {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .storage-banner {
    padding: 8px 10px;
  }

  .storage-banner__inner {
    gap: 4px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title title"
      "text actions";
    align-items: center;
  }

  .storage-banner__title {
    grid-area: title;
    font-size: 12px;
  }

  .storage-banner__text {
    grid-area: text;
    font-size: 11px;
    line-height: 1.3;
  }

  .storage-banner__actions {
    grid-area: actions;
    flex-direction: column;
    gap: 4px;
    justify-self: end;
  }

  .storage-banner__actions .button,
  .storage-banner__actions .button-primary {
    flex: 0 0 auto;
    width: max-content;
    min-width: 7.5rem;
    min-height: 26px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .storage-banner__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "text"
      "actions";
  }

  .storage-banner__actions {
    flex-direction: row;
    justify-self: stretch;
  }

  .storage-banner__actions .button,
  .storage-banner__actions .button-primary {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

.dvd-catalog {
  text-align: center;
  padding: 2.5rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.dvd-catalog__lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  line-height: 1.45;
}

.dvd-catalog__note {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.dvd-catalog__note a {
  color: var(--teal);
  font-weight: 700;
}

.dvd-genre-tabs-wrap {
  width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto 1.35rem;
}

.dvd-genre-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.dvd-genre-tab {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface-2, var(--surface-3));
  color: var(--muted);
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
  border-radius: 0;
}

.dvd-genre-tab[aria-selected="true"] {
  color: var(--text);
  border-color: var(--teal);
  box-shadow: inset 0 -2px 0 var(--teal);
  font-weight: 700;
}

.dvd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.55rem;
  width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto 1.4rem;
}

.dvd-gallery figure {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.dvd-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--surface-3);
}

.dvd-gallery figcaption {
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#dvd-ver-mas {
  margin-inline: auto;
  display: block;
}

html[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #000;
  --text: #ffff00;
  --muted: #fff59d;
  --line: #ffff00;
  --curriculum: #000;
  --teal: #ffff00;
  --header-bg: #000;
  --kicker: #fff59d;
  --bar: #ffff00;
  --input-bg: #000;
  --input-text: #ffff00;
  --input-border: #ffff00;
  --button-text: #000;
  --surface: #000;
  --surface-2: #000;
  --surface-3: #000;
  --glow: transparent;
}

html[data-theme="contrast"] body,
html[data-theme="contrast"] .header,
html[data-theme="contrast"] .a11y-panel,
html[data-theme="contrast"] .banner h2 {
  background: #000;
  color: #ffff00;
}

html[data-theme="contrast"] .button-primary,
html[data-theme="contrast"] .course-card__btn,
html[data-theme="contrast"] .a11y-btn[aria-pressed="true"],
html[data-theme="contrast"] .course-filter-btn.is-active,
html[data-theme="contrast"] .course-filter-btn[aria-pressed="true"] {
  background: #ffff00;
  color: #000;
}

html[data-theme="contrast"] .button-secondary {
  border-color: #ffff00;
  color: #ffff00;
  background: #000;
}

html[data-theme="contrast"] .course-card {
  border-color: #ffff00;
  background: #000;
}

html[data-theme="contrast"] .course-card__category,
html[data-theme="contrast"] .course-card__icon {
  color: #ffff00;
  border-color: #ffff00;
  background: #000;
}

html[data-theme="contrast"] .course-filter-btn {
  background: #000;
  color: #ffff00;
  border-color: #ffff00;
}

html[data-theme="dark"],
html[data-theme="default"] {
  color-scheme: dark;
  --bg: #0b0d0d;
  --text: #ffffff;
  --muted: #e8e8e8;
  --line: #3d4a48;
  --teal: #4ecdc4;
  --curriculum: #151c1b;
  --header-bg: #121717;
  --kicker: #cfcfcf;
  --bar: #4ecdc4;
  --input-bg: #1a2221;
  --input-text: #ffffff;
  --input-border: #6f8380;
  --button-text: #000000;
  --surface: #101515;
  --surface-2: #171e1d;
  --surface-3: #1f2827;
  --glow: rgba(78, 205, 196, 0.14);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --text: #000;
  --muted: #4a4a4a;
  --line: #d0d0d0;
  --teal: #3ea7a0;
  --curriculum: #f2f2f2;
  --header-bg: #fff;
  --kicker: #8a8a8a;
  --bar: #000;
  --input-bg: #fff;
  --input-text: #000;
  --input-border: #000;
  --button-text: #ffffff;
  --surface: #fff;
  --surface-2: #f5f5f5;
  --surface-3: #ececec;
  --glow: transparent;
}

html[data-theme="light"] body,
html[data-theme="blue"] body,
html[data-theme="contrast"] body {
  background: var(--bg);
}

html[data-theme="blue"] {
  color-scheme: light;
  --bg: #dbeafe;
  --text: #0f172a;
  --muted: #1e3a8a;
  --line: #93c5fd;
  --curriculum: #eff6ff;
  --teal: #1d4ed8;
  --header-bg: #dbeafe;
  --kicker: #1e3a8a;
  --bar: #1d4ed8;
  --input-bg: #fff;
  --input-text: #0f172a;
  --input-border: #1e3a8a;
  --button-text: #ffffff;
  --surface: #dbeafe;
  --surface-2: #bfdbfe;
  --surface-3: #93c5fd;
  --glow: transparent;
}

@media (max-width: 700px) {
  .header {
    padding: 0.55rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  }

  .a11y-panel {
    z-index: 55;
  }

  .header__bar {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem 0.6rem;
    text-align: left;
  }

  .logo__mark {
    width: 52px;
    height: 52px;
  }

  .header__menu-btn {
    display: inline-flex;
  }

  .header__nav {
    display: none;
    width: 100%;
    order: 3;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid var(--line);
  }

  .header.is-nav-open .header__nav {
    display: flex;
  }

  .header__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__link {
    min-height: 2.75rem;
    padding: 0.35rem 0.15rem;
    font-size: 1.05rem;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

  .header__nav-a11y {
    margin-left: 0;
    justify-content: flex-start;
    min-height: 2.75rem;
    padding: 0.35rem 0.15rem;
    font-size: 1.05rem;
  }

  .header__actions {
    margin-left: auto;
    order: 2;
    gap: 0.3rem 0.55rem;
  }

  .header__ghost {
    min-height: 2.15rem;
    font-size: 0.9rem;
  }

  .header--compact {
    padding: 0.22rem max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  }

  .header--compact .logo__mark {
    width: 32px;
    height: 32px;
  }

  .header--compact .header__ghost,
  .header--compact .header__link {
    min-height: 1.85rem;
    font-size: 0.84rem;
  }

  .header--compact .header__bar {
    gap: 0.2rem 0.45rem;
  }

  .dvd-catalog {
    padding: 1.75rem 0.75rem 2.25rem;
    text-align: left;
  }

  .dvd-catalog h2 {
    text-align: center;
  }

  .dvd-catalog__lead,
  .dvd-catalog__note {
    text-align: center;
    font-size: 0.95rem;
    padding-inline: 0.25rem;
  }

  .dvd-genre-tabs-wrap {
    margin: 0 auto 1rem;
    padding-inline: 0;
    overflow: visible;
  }

  .dvd-genre-tabs {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-bottom: 0;
    gap: 0.4rem;
  }

  .dvd-genre-tab {
    min-height: 2.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.88rem;
  }

  .dvd-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.4rem;
    margin-bottom: 1.1rem;
  }

  .dvd-gallery figcaption {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }

  #dvd-ver-mas {
    width: min(100%, 20rem);
  }

  .curriculum summary {
    grid-template-columns: 2rem 1fr;
  }

  .curriculum__toggle {
    grid-column: 2;
  }

  .contact-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 420px) {
  .dvd-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.45rem;
  }

  .dvd-gallery figcaption {
    font-size: 0.72rem;
  }

  .header__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.contact-tema {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
