:root {
  --font-sans: "Libre Franklin";
  --font-hand: "Caveat";
  --brand: #00d2b7;
  --brand-deep: #008979;
  --brand-deeper: #006f62;
  --cta: #4fdbc4;
  --cta-hover: #38ccb3;
  --cta-ink: #093b33;
  --ink: #2a2926;
  --gray-800: #3d3b37;
  --gray-700: #555049;
  --gray-600: #6b655c;
  --gray-500: #8a847a;
  --gray-400: #aaa498;
  --cream: #edf8f5;
  --cream-deep: #ddf1ec;
  --line: #d6e8e3;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(42, 41, 38, 0.05);
  --shadow: 0 14px 40px -18px rgba(42, 41, 38, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans), -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: var(--cta-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn:hover {
  background: var(--cta-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 18px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Nav */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--brand-deep);
}

/* Hero */
.hero {
  padding: 80px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 48ch;
  margin: 24px 0 32px;
}

/* Hero figure */
.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 16px -20px -16px 0;
  background: var(--cream-deep);
  border-radius: 22px;
  z-index: 0;
}

.hero-photo,
.portrait-ph {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.portrait-ph {
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  background: linear-gradient(160deg, var(--cream), var(--cream-deep));
  border: 1px solid var(--line);
  box-shadow: none;
}

/* Anotaciones a marcador, tipo profesor */
.hand-note {
  position: absolute;
  z-index: 2;
  top: -26px;
  left: -14px;
  font-family: var(--font-hand), cursive;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--brand-deep);
  transform: rotate(-7deg);
  pointer-events: none;
  user-select: none;
}

.hand-arrow {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 58px;
  width: 86px;
  height: auto;
  color: var(--brand-deep);
  pointer-events: none;
}

/* Resaltado tipo resaltador sobre el nombre */
.hl {
  color: #1c1b19;
  background-image: linear-gradient(
    100deg,
    rgba(255, 224, 51, 0.95),
    rgba(255, 224, 51, 0.95)
  );
  background-repeat: no-repeat;
  background-size: 100% 72%;
  background-position: 0 72%;
  padding: 0 4px;
  border-radius: 1px;
}

.portrait-ph span {
  font-size: 56px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.portrait-ph small {
  font-size: 13px;
  color: var(--gray-500);
}

.hero-figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  text-align: center;
}

.hero-figure figcaption strong {
  position: relative;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.hero-figure figcaption span {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
}

/* Events */
.events {
  padding: 8px 0 88px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.event {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.event-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-price-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-price {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.event-access {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.event-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
}

.event-meta li {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.event-info {
  padding: 32px;
}

.event-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 14px;
}

.event-info h3 {
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.event-desc {
  font-size: 16px;
  color: var(--gray-600);
  margin: 14px 0 24px;
  max-width: 60ch;
}

.event-agenda {
  list-style: none;
  max-width: 58ch;
  margin-bottom: 28px;
}

.event-agenda li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--gray-800);
}

.event-agenda li:last-child {
  border-bottom: 1px solid var(--line);
}

.event-agenda li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.event-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.event-foot .btn {
  padding: 15px 40px;
}

.event-when {
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
}

.event-note {
  font-size: 13px;
  color: var(--gray-500);
}

.empty {
  font-size: 16px;
  color: var(--gray-500);
  padding: 24px 0;
}

/* About */
.about {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid--solo {
  display: block;
  max-width: 640px;
}

.about-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.about-text h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about-text p {
  font-size: 17px;
  color: var(--gray-700);
  margin-bottom: 16px;
  max-width: 56ch;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Reservation page */
.reservar {
  padding: 64px 0 90px;
}

.reservar-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}

.reservar-info .event-live {
  margin-bottom: 18px;
}

.reservar-info h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.reservar-desc {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 50ch;
  margin-bottom: 32px;
}

.facts {
  display: flex;
  flex-direction: column;
}

.facts > div {
  display: flex;
  gap: 22px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt {
  flex: 0 0 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
}

.facts dd {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* Form */
.reservar-form-wrap {
  position: sticky;
  top: 28px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.form-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin: 8px 0 24px;
}

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

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

.field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.field span em {
  font-style: normal;
  font-weight: 500;
  color: var(--gray-400);
}

.field input {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.field input::placeholder {
  color: var(--gray-400);
}

.field input:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(0, 137, 121, 0.14);
}

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

.form-error {
  font-size: 14px;
  color: #a8331f;
  background: #fbf0ed;
  border: 1px solid #e9b8ac;
  padding: 11px 13px;
  border-radius: 10px;
}

.form-legal {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 6px 0;
}

.form-success .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 137, 121, 0.12);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.form-success h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-success p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 22px;
}

.form-success .btn {
  width: 100%;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 42ch;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  color: var(--brand-deep);
  border-color: var(--brand-deep);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--gray-800);
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray-500);
}

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .reservar-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-figure {
    max-width: 420px;
  }
  .about-grid {
    gap: 32px;
  }
  .about-photo {
    max-width: 360px;
  }
  .reservar-form-wrap {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 56px 0 60px;
  }
  .event {
    grid-template-columns: 1fr;
  }
  .event-side {
    flex-direction: row;
    gap: 12px;
    align-items: baseline;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
  }
  .event-price {
    font-size: 24px;
  }
  .event-info {
    padding: 24px;
  }
}

/* ===== Landing de curso ===== */
.curso-hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.curso-hero-grid {
  display: grid;
  grid-template-columns: 1fr 352px;
  gap: 56px;
  align-items: center;
}

.curso-hero-text h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  max-width: 20ch;
}

.curso-hero-text .lede {
  margin: 18px 0 22px;
}

.curso-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.curso-cta-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.curso-hero-figure {
  position: relative;
  margin: 0;
}

.curso-hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.curso-hero-figure figcaption {
  margin-top: 16px;
}

.curso-hero-figure figcaption strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.curso-hero-figure figcaption span {
  font-size: 14px;
  color: var(--gray-500);
}

.curso-section {
  padding: 64px 0;
}

.curso-section--cream {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.curso-two {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.curso-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 60ch;
}

.curso-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.curso-panel h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
}

.curso-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.curso-check li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-800);
}

.curso-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #093b33;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.curso-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.curso-outcome {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}

.curso-outcome-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.curso-outcome p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-800);
}

.curso-modules {
  list-style: none;
  counter-reset: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
}

.curso-modules li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  font-size: 16px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.curso-modules li:first-child {
  border-top: none;
}

.curso-module-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.curso-module-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.curso-module-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  background: rgba(0, 210, 183, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
}

.curso-module-dur {
  font-size: 14px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.curso-includes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  margin-top: 12px;
  max-width: 820px;
}

.curso-includes li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--gray-800);
}

.curso-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #093b33;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.curso-price-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.curso-price-big {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.curso-price-note {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.curso-faq-wrap {
  max-width: 780px;
}

.curso-faq {
  margin-top: 8px;
}

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

.curso-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}

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

.curso-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-deep);
}

.curso-faq details[open] summary::after {
  content: "–";
}

.curso-faq details p {
  padding: 0 40px 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
}

@media (max-width: 860px) {
  .curso-hero-grid,
  .curso-two {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .curso-hero-figure {
    max-width: 380px;
  }
  .curso-outcomes,
  .curso-includes {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== Aula (LMS) ===== */
.aula-nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Gate de clave */
.aula-gate {
  max-width: 440px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}

.aula-gate-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Layout del aula */
.aula-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 74px);
}

.aula-sidebar {
  border-right: 1px solid var(--line);
  background: var(--cream);
  padding: 26px 22px;
  overflow-y: auto;
}

.aula-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
}

.aula-back:hover {
  color: var(--brand-deep);
}

.aula-course-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 14px 0 20px;
}

.aula-progress {
  margin-bottom: 22px;
}

.aula-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}

.aula-progress-bar span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 0.35s ease;
}

.aula-progress-label {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 8px;
  min-height: 18px;
}

.aula-lessons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aula-lesson {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.aula-lesson:hover {
  background: var(--white);
}

.aula-lesson.is-active {
  background: var(--white);
  border-color: var(--line);
}

.aula-lesson-check {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--cream-deep);
  border: 1px solid var(--line);
}

.aula-lesson-check.done {
  background: var(--brand);
  color: #093b33;
  border-color: var(--brand);
}

.aula-lesson-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aula-lesson-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.aula-lesson-dur {
  font-size: 12px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

/* Área principal */
.aula-main {
  padding: 28px 34px 60px;
  max-width: 1000px;
}

.aula-video {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #14322d;
  box-shadow: var(--shadow);
}

.aula-video video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.aula-video-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 20px;
}

.aula-video-empty span {
  font-size: 40px;
}

.aula-video-empty p {
  font-size: 15px;
  max-width: 28ch;
}

.aula-lesson-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 26px 0 8px;
}

.aula-lesson-index {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aula-lesson-head h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 6px;
}

.aula-complete {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--white);
  border: 1px solid var(--brand-deep);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.aula-complete:hover {
  background: rgba(0, 210, 183, 0.1);
}

.aula-complete.is-done {
  background: var(--brand-deep);
  color: var(--white);
}

.aula-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.aula-nav-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.aula-nav-btn:hover:not(:disabled) {
  border-color: var(--brand-deep);
  color: var(--brand-deep);
}

.aula-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .aula-shell {
    grid-template-columns: 1fr;
  }
  .aula-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 320px;
  }
  .aula-main {
    padding: 22px 20px 48px;
  }
}

/* ===== Página de resultado /gracias ===== */
.gracias {
  padding: 90px 0 110px;
}

.gracias-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.gracias-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}

.gracias-icon--ok {
  background: rgba(0, 137, 121, 0.12);
  color: var(--brand-deep);
}

.gracias-icon--wait {
  background: rgba(230, 168, 0, 0.14);
  color: #a9791a;
}

.gracias-icon--error {
  background: #fbf0ed;
  color: #a8331f;
}

.gracias-inner h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.gracias-inner p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 30px;
}

/* ===== Páginas legales ===== */
.legal {
  padding: 64px 0 90px;
}

.legal-wrap {
  max-width: 760px;
}

.legal-wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-updated {
  font-size: 14px;
  color: var(--gray-500);
  margin: 10px 0 32px;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}

.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
}

.legal-body p {
  margin-bottom: 14px;
}

.legal-body ul {
  margin: 0 0 14px 22px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--brand-deep);
  text-decoration: underline;
}

.legal-body strong {
  color: var(--ink);
}

/* ===== Landing de venta — mejoras ===== */

/* Botón grande */
.btn-lg {
  font-size: 17px;
  padding: 17px 34px;
  border-radius: 12px;
  box-shadow: 0 10px 22px -10px rgba(0, 137, 121, 0.6);
}

/* Hero: fondo con más vida */
.curso-hero {
  background:
    radial-gradient(80% 120% at 88% 0%, rgba(0, 210, 183, 0.12), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

/* Beneficios con check */
.curso-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin: 22px 0 4px;
}

.curso-benefits li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
}

.curso-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--brand);
  color: #093b33;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* CTA del hero */
.curso-cta {
  align-items: stretch;
  gap: 20px 32px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.curso-cta-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.curso-cta-note {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
}

/* Sello de garantía sobre la foto */
.curso-hero-figure { overflow: visible; }

.curso-seal {
  position: absolute;
  z-index: 3;
  top: -14px;
  left: -14px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 10px 24px -8px rgba(0, 137, 121, 0.7);
  transform: rotate(-8deg);
}

.curso-seal b {
  font-size: 22px;
  font-weight: 800;
}

/* Franja de confianza */
.trust {
  background: var(--ink);
  color: #fff;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--brand);
}

.trust-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.trust-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

/* Barra de compra fija (solo móvil) */
.mobile-buy {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -12px rgba(42, 41, 38, 0.35);
}

.mobile-buy-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mobile-buy-price span {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-buy-price strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-buy .btn {
  flex: 1;
  max-width: 220px;
}

@media (max-width: 860px) {
  .curso-benefits {
    grid-template-columns: 1fr;
  }
  .curso-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .curso-cta-action .btn {
    width: 100%;
  }
  .trust-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }
  .curso-hero-figure {
    width: 340px;
    max-width: 100%;
    justify-self: center;
    margin: 0;
  }
  /* Barra fija visible en móvil + espacio para que no tape el footer */
  .has-mobile-buy .mobile-buy {
    display: flex;
  }
  .has-mobile-buy .footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 480px) {
  .trust-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Fixes móvil landing (overflow) ===== */
/* Evita el "grid blowout" SOLO en móvil (en escritorio no debe encoger columnas) */
@media (max-width: 860px) {
  .curso-hero-grid > *,
  .curso-two > *,
  .about-grid > *,
  .curso-hero-text {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .curso-hero-text h1 {
    font-size: 27px;
    max-width: none;
  }
  .curso-hero {
    padding: 40px 0 48px;
  }
  .curso-section {
    padding: 44px 0;
  }
  .curso-hero-text .lede,
  .curso-lead {
    max-width: none;
  }
}

/* Barra de compra móvil: que precio y botón siempre quepan */
.mobile-buy {
  gap: 12px;
}
.mobile-buy-price {
  min-width: 0;
}
.mobile-buy .btn {
  flex: 0 0 auto;
  max-width: none;
  white-space: nowrap;
  padding: 14px 22px;
}

/* ===== Video vertical del hero (landing curso) ===== */
/* La figura llena su columna del grid (no usar margin:auto: encoge el item) */
.curso-hero-figure {
  width: auto;
}

.curso-hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.curso-hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Medios de pago bajo el CTA */
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}

.pay-badge svg {
  width: 13px;
  height: 13px;
  color: var(--brand-deep);
}

/* CTA: precio | bloque del botón lado a lado (grid, no se envuelve) */
.curso-cta {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.curso-cta-top {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 20px 36px;
}
/* Botón, nota y medios de pago con el mismo ancho (el del elemento más ancho) */
.curso-cta-action {
  align-items: stretch;
}
.curso-cta-action .btn {
  width: 100%;
}
.pay-methods {
  justify-content: space-between;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .curso-cta-top {
    grid-template-columns: 1fr;
  }
  /* En móvil no separar los medios de pago; agruparlos centrados */
  .pay-methods {
    justify-content: center;
    gap: 8px;
  }
}

/* Medios de pago en el CTA inferior: siempre agrupados y centrados */
.pay-methods--center {
  justify-content: center;
}
.curso-price-block .curso-cta-note {
  margin-top: 2px;
}

/* Checkout: resumen del total */
.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px;
}
.checkout-total span {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}
.checkout-total strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Campo de cupón (checkout) */
.coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.coupon-row input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.coupon-row input:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px rgba(0, 137, 121, 0.14);
}
.coupon-row button {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--white);
  border: 1px solid var(--brand-deep);
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.coupon-row button:hover:not(:disabled) { background: rgba(0, 210, 183, 0.1); }
.coupon-row button:disabled { opacity: 0.6; cursor: default; }
.coupon-msg {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}
.coupon-msg--ok { color: var(--brand-deep); font-weight: 600; }
.coupon-msg--err { color: #a8331f; }

/* Bono destacado (Contatool) */
.bonus-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-deeper));
  color: #fff;
  border-radius: 18px;
  padding: 26px 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.bonus-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
}
.bonus-badge b {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.bonus-badge span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.bonus-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}
.bonus-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.bonus-body p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 62ch;
}
@media (max-width: 560px) {
  .bonus-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
  }
}

/* Contenido del curso: resumen, play e hover */
.curso-modules-summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-deep);
  margin: -8px 0 16px;
}
.curso-modules li {
  transition: background 0.15s ease;
}
.curso-modules li:hover {
  background: var(--cream);
}
.curso-module-play {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 210, 183, 0.14);
  color: var(--brand-deep);
}
.curso-module-play svg {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

/* Lo que vas a lograr: ícono en vez de número */
.curso-outcome-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 210, 183, 0.14);
  color: var(--brand-deep);
}
.curso-outcome-ico svg {
  width: 22px;
  height: 22px;
}

/* CTA final de cierre */
.final-cta {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-deeper));
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.final-cta-inner {
  max-width: 620px;
}
.final-cta h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.final-cta p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 14px auto 28px;
  max-width: 52ch;
}
.final-cta-btn {
  background: #fff;
  color: var(--brand-deeper);
}
.final-cta-btn:hover {
  background: #eafaf7;
}
.final-cta-note {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 14px;
}

/* Aula: mejoras visuales */
.aula-lesson-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 68ch;
  margin-top: 6px;
}

/* Lección activa: acento a la izquierda */
.aula-lesson.is-active {
  position: relative;
  background: var(--white);
  border-color: var(--line);
}
.aula-lesson.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand);
}

/* "Siguiente" como acción primaria */
.aula-nav-next {
  background: var(--cta);
  color: var(--cta-ink);
  border-color: var(--cta);
  font-weight: 700;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aula-nav-next:hover:not(:disabled) {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--cta-ink);
}
.aula-nav-next:disabled {
  background: var(--white);
  color: var(--gray-500);
  border-color: var(--line);
}

/* Aula: material adjunto de la lección */
.aula-resources {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.aula-resources h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.aula-resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aula-resource {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.aula-resource:hover {
  border-color: var(--brand-deep);
  background: var(--cream);
}
.aula-resource-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(0, 210, 183, 0.14);
  color: var(--brand-deep);
}
.aula-resource-ico svg { width: 18px; height: 18px; }
.aula-resource-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.aula-resource-dl {
  flex: 0 0 auto;
  color: var(--gray-500);
}
.aula-resource-dl svg { width: 18px; height: 18px; display: block; }
.aula-resource:hover .aula-resource-dl { color: var(--brand-deep); }

/* Nav con varios enlaces + botón de acceso al aula */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  border: 1px solid var(--brand-deep);
  border-radius: 9px;
  padding: 8px 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-cta:hover {
  background: var(--brand-deep);
  color: #fff;
}
@media (max-width: 480px) {
  .nav-links { gap: 12px; }
  .nav-links .nav-link { display: none; }
}
