/* ══════════════════════════════════════════════
   Rivera's Cursos
   Mismos tokens y componentes que riverasweb
   ══════════════════════════════════════════════ */

:root {
  --black: #05070a;
  --ink: #0b1220;
  --blue: #0a84ff;
  --blue-2: #37b7ff;
  --mint: #33d6a6;
  --white: #ffffff;
  --soft: #f5f7fb;
  --line: rgba(255, 255, 255, 0.18);
  --muted: rgba(255, 255, 255, 0.72);
  --text-muted: #637083;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* las secciones ancladas no quedan bajo la nav fija */
section[id] {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

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

/* ── Shell ── */
.site-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #05070a 0 34rem, #f5f7fb 34rem 100%);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 28px));
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 12, 21, 0.68);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  transition: background 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 96px;
  height: 46px;
  justify-content: center;
}

.brand img {
  width: 78px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

/* hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Botones ── */
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
  white-space: nowrap;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.34);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.button.secondary.light {
  color: var(--ink);
  border-color: rgba(11, 18, 32, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.button.whatsapp {
  color: var(--white);
  background: linear-gradient(135deg, #1ebc59, #25d366);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

/* reveal de la nav */
.js .nav[data-reveal] {
  transform: translateX(-50%) translateY(16px);
}
.js .nav[data-reveal].is-visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 128px max(22px, calc((100vw - 1120px) / 2)) 8svh;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

/* degradado de marca: oscurece la izquierda (donde va el texto) y deja
   ver los circuitos a la derecha */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.97) 0%, rgba(5, 7, 10, 0.86) 42%, rgba(5, 7, 10, 0.42) 78%, rgba(5, 7, 10, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.28) 0%, rgba(5, 7, 10, 0.72) 100%);
}

.hero-content {
  width: min(760px, 100%);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

/* typewriter */
.hero-type {
  margin: 14px 0 0;
  min-height: 1.6em;
  color: var(--blue-2);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 800;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--blue-2);
  animation: caretBlink 1s steps(2) infinite;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.55;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics span {
  display: grid;
  gap: 3px;
  min-width: 154px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  backdrop-filter: blur(14px);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: 1.18rem;
}

/* ── Sección compartida ── */
.section-pad {
  padding: 96px max(22px, calc((100vw - 1120px) / 2));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.section-heading h2 {
  max-width: 760px;
}

.section-lead {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Qué aprendes ── */
.learn {
  background: var(--soft);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.learn-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 26px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(11, 18, 32, 0.05);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.learn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 132, 255, 0.28);
  box-shadow: 0 22px 60px rgba(11, 18, 32, 0.1);
}

.learn-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
}

.learn-icon svg {
  width: 23px;
  height: 23px;
}

.learn-card h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
}

.learn-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

/* ── Temario ── */
.syllabus {
  color: var(--white);
  background: var(--black);
}

.syllabus .section-heading h2 {
  color: var(--white);
}

.syllabus .section-lead {
  color: rgba(255, 255, 255, 0.66);
}

.syllabus-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: start;
  gap: 46px;
}

.syllabus-list {
  display: grid;
  gap: 0;
}

.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.module:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.module-num {
  color: var(--blue-2);
  font-size: 0.95rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.module-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.module h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.3;
}

.module-time {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.module p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.62;
}

.syllabus-visual {
  position: relative;
  position: sticky;
  top: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.syllabus-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.syllabus-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.1) 40%, rgba(5, 7, 10, 0.88) 100%);
}

.syllabus-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 12, 21, 0.72);
  backdrop-filter: blur(18px);
}

.syllabus-card span {
  color: var(--blue-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.syllabus-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

/* ── Cómo funciona ── */
.process {
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(11, 18, 32, 0.05);
}

.step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 900;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

/* ── Precio ── */
.pricing {
  background: var(--soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 38px 34px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 8%, rgba(55, 183, 255, 0.32), transparent 46%),
    linear-gradient(160deg, #0b1220, #05070a);
  box-shadow: var(--shadow);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-tag strong {
  font-size: clamp(3.4rem, 8vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-tag small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 700;
}

.price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-meta span {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.83rem;
  font-weight: 700;
}

.price-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.87rem;
  line-height: 1.55;
}

.price-card .button {
  justify-self: start;
}

.includes {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 38px 34px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(11, 18, 32, 0.05);
}

.includes h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.check-list svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 auto;
  color: var(--mint);
}

.check-list.is-out svg {
  color: #b4bdcb;
}

.check-list.is-out li {
  color: var(--text-muted);
}

.includes-split {
  padding-top: 20px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

.includes-split h4 {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* ── Para quién ── */
.audience {
  color: var(--white);
  background: var(--ink);
}

.audience .section-heading h2 {
  color: var(--white);
}

.audience .section-lead {
  color: rgba(255, 255, 255, 0.66);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.audience-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 300ms ease, border-color 300ms ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(55, 183, 255, 0.5);
}

.audience-card strong {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
}

.audience-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq {
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid rgba(11, 18, 32, 0.09);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}

.faq-item[open] {
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 14px 40px rgba(11, 18, 32, 0.07);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.03rem;
  font-weight: 800;
  list-style: none;
}

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

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2.4px solid var(--blue);
  border-bottom: 2.4px solid var(--blue);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 260ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.99rem;
  line-height: 1.68;
}

/* ── Contacto ── */
.contact {
  color: var(--white);
  background: var(--black);
}

.contact-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.contact-inner > img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.contact p {
  margin: 0 0 22px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

a.contact-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.chip-icon svg {
  width: 18px;
  height: 18px;
}

.chip-icon--wa {
  background: #25d366;
}

.chip-icon--ig {
  background: linear-gradient(135deg, #833ab4 0%, #e1306c 52%, #fd8d32 100%);
}

.contact-chip small {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 600;
}

.contact-chip strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
}

/* ── Marquesina ── */
.marquee {
  overflow: hidden;
  padding: 26px 0;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeMove 38s linear infinite;
}

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

.marquee-track span {
  display: block;
  white-space: nowrap;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42);
}

.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(22px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.62);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer a {
  color: var(--white);
  font-weight: 800;
}

/* ── Barra de progreso ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--mint));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ── Volver arriba ── */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 14px 34px rgba(10, 132, 255, 0.38);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* ── Reveal ──
   solo se oculta si hay JS (html.js), para que el contenido
   siga visible si el script no carga */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal="left"] {
  transform: translateX(-30px);
}

.js [data-reveal="right"] {
  transform: translateX(30px);
}

.js [data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].is-visible,
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Título letra a letra ── */
.js .hero-letters .t-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.38em);
  animation: letterIn 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 42ms);
}

/* ── Seguridad de desbordamiento ── */
h1, h2, h3, h4, p, a, span, strong {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p {
  overflow-wrap: break-word;
}

/* ── keyframes ── */
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.4%, -1.2%, 0); }
}

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* ── Banner de cookies ── */
.cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  transform: translateX(-50%) translateY(0);
  width: min(720px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 50%, rgba(10, 132, 255, 0.18), transparent 48%),
    rgba(7, 12, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(1.4);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(10, 132, 255, 0.1) inset;
  animation: cookieSlideUp 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 600ms;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.cookie-banner p a {
  color: var(--blue-2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner.is-leaving {
  animation: cookieSlideDown 460ms cubic-bezier(0.55, 0, 0.55, 0.2) forwards;
  pointer-events: none;
}

@keyframes cookieSlideUp {
  0%   { opacity: 0; transform: translateX(-50%) translateY(32px) scale(0.97); filter: blur(4px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
}

@keyframes cookieSlideDown {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(40px) scale(0.95); filter: blur(6px); }
}

/* ══════════════════════════════════════
   Responsive — tablet (≤ 980px)
   ══════════════════════════════════════ */
@media (max-width: 980px) {
  .syllabus-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .syllabus-visual {
    position: relative;
    top: auto;
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-inner > img {
    width: 72px;
    height: 72px;
  }
}

/* ══════════════════════════════════════
   Responsive — móvil (≤ 760px)
   ══════════════════════════════════════ */
@media (max-width: 760px) {
  .nav {
    grid-template-columns: auto 1fr auto;
    top: 10px;
    padding: 8px 10px 8px 12px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-cta {
    order: 2;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .nav-links {
    order: 4;
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 4px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
    padding: 132px 22px 64px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-metrics span {
    flex: 1 1 100%;
  }

  .section-pad {
    padding: 66px 22px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-lead {
    max-width: none;
  }

  .module {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .module-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .price-card,
  .includes {
    padding: 30px 24px;
  }

  .price-card .button {
    justify-self: stretch;
  }

  .contact-details {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-chip {
    justify-content: flex-start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  .marquee {
    padding: 18px 0;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    bottom: 16px;
    padding: 22px 20px;
    border-radius: 16px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    flex: 1;
    justify-content: center;
    min-height: 48px;
  }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
