/* Dyseé — eBook web (estilo landing Paloma + tipografía Apple) */

:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --gold: #c9a962;
  --gold-hover: #b8944f;
  --gold-muted: rgba(201, 169, 98, 0.15);
  --ivory: #f9f6f1;
  --ivory-deep: #f0ebe3;
  --white: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #1f5f5b;
  --accent-soft: #e8f2f1;
  --accent-text: #134842;
  /* Rosa bebé: descomentar y comentar teal
  --accent: #c9959a;
  --accent-soft: #fdf2f4;
  --accent-text: #7a4a50;
  */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-pill: 980px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: #000;
  border-bottom: 1px solid rgba(201, 169, 98, 0.18);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 22px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}

.site-nav a:not(.btn) {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.72);
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--gold {
  background: linear-gradient(180deg, #d4b978 0%, var(--gold) 100%);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.35);
}

.btn--gold:hover {
  transform: scale(1.02);
  text-decoration: none;
  background: linear-gradient(180deg, #dfc788 0%, var(--gold-hover) 100%);
}

.btn--dark {
  background: var(--black);
  color: var(--gold-light, #e8d5a3);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--text);
}

/* —— Hero media —— */
.hero-media {
  position: relative;
  min-height: 52vh;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.18) 0%,
    rgba(10, 10, 10, 0.22) 40%,
    rgba(10, 10, 10, 0.82) 100%
  );
}

.hero-media__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-media__placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  padding: 48px 22px 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
}

.hero-media__cta-float {
  position: absolute;
  right: 22px;
  bottom: 24px;
  z-index: 2;
}

@media (max-width: 734px) {
  .hero-media__cta-float {
    position: static;
    padding: 16px 22px 24px;
    text-align: center;
    width: 100%;
  }
}

/* —— Main shell —— */
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 28px 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.back-link:hover {
  color: var(--text);
}

/* Highlight pill */
.lead-pill {
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.016em;
  margin-bottom: 24px;
  border: 1px solid rgba(31, 95, 91, 0.12);
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 16px;
}

.hero-desc {
  font-size: 19px;
  line-height: 1.4211;
  letter-spacing: -0.021em;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 0 24px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.hero-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 17px;
  color: var(--text);
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}

.hero-actions {
  margin-bottom: 40px;
}

/* Meta cards row */
.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.meta-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.meta-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.meta-card__value {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Stats */
.stats-section {
  padding: 56px 0;
  border-top: 1px solid var(--ivory-deep);
  border-bottom: 1px solid var(--ivory-deep);
  margin-bottom: 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 24px;
  text-align: center;
}

.stat__num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold-hover);
  margin-bottom: 8px;
}

.stat__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  max-width: 180px;
  margin: 0 auto;
}

/* Section typography */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}

.section-title--split span {
  display: block;
}

.section-lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
  letter-spacing: -0.021em;
}

.section-block {
  margin-bottom: 72px;
}

/* Benefits */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.benefits-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.benefit-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-muted);
  color: var(--gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.022em;
}

.benefit-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Quote */
.quote-block {
  background: var(--black-soft);
  color: #f5f5f7;
  border-radius: var(--radius-md);
  padding: 40px 36px;
  margin: 48px 0;
}

.quote-block p {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.35;
  margin: 0 0 20px;
}

.quote-block cite {
  font-style: normal;
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
}

/* Program modules */
.module-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.module-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ivory-deep);
  align-items: start;
}

.module-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1;
}

.module-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.module-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Chapter cards (ebook content) */
.chapter-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.chapter-card h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}

.chapter-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.022em;
}

.chapter-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-text);
  margin: 20px 0 8px;
}

.chapter-card p,
.chapter-card li {
  font-size: 15px;
  color: var(--text-secondary);
}

.chapter-card ul {
  padding-left: 1.2em;
}

.chapter-num-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-hover);
  margin-bottom: 8px;
}

.tip-box {
  background: var(--ivory);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.tip-box strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-hover);
  margin-bottom: 8px;
}

.callout-box {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 20px 0;
  border: 1px solid rgba(31, 95, 91, 0.1);
}

/* Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ivory-deep);
}

.compare-table th {
  background: var(--black-soft);
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-list details {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.02em;
}

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

.faq-list details[open] summary {
  border-bottom: 1px solid var(--ivory-deep);
}

.faq-list details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Video block */
.video-panel {
  border: 1px solid rgba(31, 95, 91, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  background: linear-gradient(180deg, var(--white) 0%, var(--accent-soft) 100%);
}

.video-embed {
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  margin: 16px 0;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #a1a1a6;
  padding: 48px 22px;
  text-align: center;
}

.site-footer img {
  height: 56px;
  margin: 0 auto 16px;
}

.site-footer p {
  font-size: 12px;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Dark band sections */
.band-dark {
  background: var(--black);
  color: #f5f5f7;
  padding: 64px 22px;
  margin: 0 -22px 56px;
}

.band-dark .section-eyebrow {
  color: var(--gold);
}

.band-dark .section-title {
  color: #fff;
}

.band-dark .section-lead {
  color: #a1a1a6;
}

@media (min-width: 735px) {
  .band-dark {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(22px, calc(50vw - var(--max) / 2));
    padding-right: max(22px, calc(50vw - var(--max) / 2));
  }
}

@media (max-width: 734px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .site-header__logo img {
    height: 38px;
  }

  .chapter-card {
    padding: 24px 20px;
  }

  .module-item {
    grid-template-columns: 56px 1fr;
  }
}

/* —— Catálogo de cursos —— */
.page-catalog {
  background: #050505;
  color: #f5f5f7;
}

.page-catalog .catalog-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42vh;
  padding: 72px 24px 56px;
  background: #050505;
}

.page-catalog .catalog-hero--landing {
  display: block;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3344 / 1882;
  padding: 0;
  background: #6a5346;
}

.page-catalog .catalog-hero--landing::before {
  display: none;
}

.catalog-hero--landing picture,
.catalog-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalog-hero__photo {
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

.catalog-hero__copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: min(50%, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  padding: 5.5% 4% 5.5% 6.2%;
}

.page-catalog .catalog-hero .catalog-kicker {
  position: relative;
  margin: 0 0 16px;
}

.page-catalog .catalog-hero h1 {
  position: relative;
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #f7f1e4;
}

.page-catalog .catalog-hero--landing h1 {
  max-width: 14em;
  margin: 0;
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.page-catalog .catalog-hero--landing h1 span {
  display: block;
}

.catalog-hero__lead {
  position: relative;
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(247, 241, 228, 0.68);
}

.catalog-hero__copy p {
  margin: 0;
  max-width: none;
  text-shadow: none;
}

.catalog-hero__intro {
  margin: 0;
  font-size: clamp(14.5px, 1.12vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.014em;
  color: rgba(255, 248, 238, 0.96);
}

.catalog-hero__body {
  margin: 0;
  max-width: 42em;
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.7;
  letter-spacing: -0.012em;
  color: rgba(255, 248, 238, 0.84);
}

.catalog-hero__copy p strong {
  color: #fff8ee;
  font-weight: 600;
}

.catalog-hero__close {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: -0.016em;
  color: #e8d5a3;
}

.catalog-hero__cta {
  align-self: flex-start;
  margin-top: 4px;
  padding: 13px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-catalog .catalog-hero .btn {
  position: relative;
}

.page-catalog .catalog-main {
  padding-top: 24px;
  padding-bottom: 96px;
}

.access-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.access-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.access-card {
  width: min(440px, 100%);
  padding: 36px 32px 32px;
  background: #111111;
  border: 1px solid rgba(201, 169, 98, 0.32);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(28px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.access-overlay.is-open .access-card {
  transform: none;
}

.access-overlay.is-shake .access-card {
  animation: accessShake 0.42s ease;
}

.access-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.access-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #f7f1e4;
}

.access-card > p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(247, 241, 228, 0.7);
}

.access-card input {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff8ee;
  font-size: 16px;
  font-family: inherit;
}

.access-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.18);
}

.access-error {
  margin: -4px 0 14px;
  font-size: 13px;
  color: #e8b4b4;
}

.access-card .btn {
  width: 100%;
}

@keyframes accessShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  75% {
    transform: translateX(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .access-overlay,
  .access-card {
    transition: none;
    animation: none;
  }
}

.page-catalog .catalog-intro {
  margin: 0 0 36px;
  max-width: 640px;
  padding: 0;
  background: none;
  border: none;
}

.catalog-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-catalog .catalog-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #f7f1e4;
}

.page-catalog .catalog-intro p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.016em;
  color: rgba(247, 241, 228, 0.72);
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
}

@media (min-width: 735px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-catalog .course-card {
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 16, 0.72);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 169, 98, 0.28);
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-catalog .course-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 98, 0.18);
}

.course-card__visual {
  position: relative;
  min-height: 240px;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.course-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 12%;
}

.course-card__visual--lash img {
  object-position: 42% 46%;
}

.course-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.08) 0%,
    rgba(10, 10, 10, 0.12) 48%,
    rgba(10, 10, 10, 0.55) 100%
  );
}

.course-card__visual span {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.82);
}

.course-card__body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.course-card__body h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-catalog .course-card__body h2 {
  color: #f7f1e4;
}

.course-card__body p {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.page-catalog .course-card__body p {
  color: rgba(247, 241, 228, 0.68);
}

.page-catalog .chapter-num-tag {
  color: var(--gold);
}

.page-catalog .course-card .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .page-catalog .catalog-hero--landing {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 0;
  }

  .catalog-hero--landing picture {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 52vw;
    min-height: 280px;
    max-height: 420px;
  }

  .catalog-hero--landing .catalog-hero__photo {
    position: absolute;
    object-position: 78% 16%;
  }

  .catalog-hero__copy {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    gap: 28px;
    padding: 36px 22px 44px;
    background: #050505;
  }

  .page-catalog .catalog-hero--landing h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .catalog-hero__intro,
  .catalog-hero__body,
  .catalog-hero__close {
    font-size: 15px;
  }

  .page-catalog .catalog-hero--landing .btn {
    width: 100%;
  }
}

@media (max-width: 734px) {
  .page-catalog .catalog-hero {
    min-height: 0;
    padding: 48px 20px 40px;
  }

  .page-catalog .catalog-hero--landing {
    padding: 0;
  }
}

/* —— Figuras de referencia (cursos) —— */
.ref-figure {
  margin: 24px 0;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 20px 16px 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
}

.ref-figure img {
  margin: 0 auto;
  max-height: 460px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.ref-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.ref-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.ref-gallery .ref-figure {
  margin: 0;
  height: 100%;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.param-card {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.param-card strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-hover);
  margin-bottom: 6px;
}

.param-card span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.param-card p {
  margin: 8px 0 0;
  font-size: 13px;
}

.consent-block {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0;
}

.consent-block h4 {
  margin-top: 0;
}

.consent-line {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 8px 0;
  letter-spacing: 0.02em;
}

.hero-media--course {
  min-height: 200px;
  align-items: center;
}

.hero-media--course::before {
  background: radial-gradient(
    ellipse 70% 80% at 50% 120%,
    rgba(201, 169, 98, 0.16),
    transparent 70%
  );
}

.hero-media--course .hero-media__placeholder {
  color: #f7f1e4;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  text-transform: none;
  font-weight: 600;
  width: 100%;
  max-width: var(--max);
  padding: 36px 22px;
  background: none;
}

.hero-media--course .hero-media__cta-float {
  bottom: 28px;
}

@media (max-width: 734px) {
  .hero-media--course .hero-media__cta-float {
    bottom: auto;
  }
}

/* —— Curso con barra lateral —— */
.page-shell--course {
  max-width: 1280px;
}

.course-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.course-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}

.course-sidebar__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin: 0 6px 6px;
}

.course-sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 6px 16px;
}

.course-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-sidebar a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.016em;
}

.course-sidebar a:hover {
  background: var(--ivory);
  text-decoration: none;
}

.course-sidebar a.is-active {
  background: var(--black);
  color: #f5f5f7;
}

.course-sidebar a .nav-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-hover);
  padding-top: 1px;
}

.course-sidebar a.is-active .nav-num {
  color: var(--gold);
}

.course-main .chapter-card {
  margin-bottom: 0;
}

.lesson-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.lesson-pager a {
  text-decoration: none;
}

.lesson-pager .btn {
  min-width: 140px;
}

a.module-item {
  color: inherit;
  text-decoration: none;
}

a.module-item:hover {
  text-decoration: none;
}

a.module-item:hover h3 {
  color: var(--accent-text);
}

@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
    max-height: none;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 10px 4px;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 4px;
  }

  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-catalog .site-header__inner {
    flex-direction: row;
    align-items: center;
  }

  .page-catalog .site-nav {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .page-catalog .site-nav a:not(.btn) {
    padding: 0;
  }

  .page-catalog .site-nav .btn {
    display: none;
  }

  .lesson-pager {
    flex-direction: column;
  }

  .lesson-pager .btn {
    width: 100%;
    min-width: 0;
  }
}
