@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FBFBF8;
  --panel: #FFFFFF;
  --ink: #16181D;
  --muted: #6B6A63;
  --line: #E4E1D8;
  --azul: #1F3A93;
  --azul-fuerte: #16297A;
  --azul-suave: #EEF1FB;
  --oro: #B9812A;
  --oro-suave: #FBF2E1;
  --vivo: #2E9E5B;
  --err: #C0392B;
  --fuente-display: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fuente: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--azul);
  color: #fff;
}

body {
  font-family: var(--fuente);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(31, 58, 147, 0.035) 43px 44px);
}

.contenedor {
  width: min(920px, 92%);
  margin: 0 auto;
}

/* ---------- header / nav ---------- */

.barra {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 248, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.barra.activa {
  border-bottom-color: var(--line);
}

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

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--fuente-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.marca-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.inicio-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 40px -18px rgba(22, 24, 29, 0.35);
  border: 1px solid var(--line);
}

.nav-enlaces {
  display: flex;
  gap: 30px;
}

.nav-enlaces a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-enlaces a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--oro);
  transition: width 0.25s;
}

.nav-enlaces a:hover,
.nav-enlaces a.activo {
  color: var(--ink);
}

.nav-enlaces a:hover::after,
.nav-enlaces a.activo::after {
  width: 100%;
}

.nav-acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--fuente-display);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.icono {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.curso-icono {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--azul-suave);
  margin-bottom: 16px;
}

.curso-icono .icono {
  width: 20px;
  height: 20px;
  color: var(--azul);
}

.pie-rejilla a.pie-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pie-link .icono {
  width: 15px;
  height: 15px;
}

.boton:active {
  transform: scale(0.98);
}

.boton-principal {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}

.boton-principal:hover {
  transform: translateY(-2px);
  background: var(--azul-fuerte);
  border-color: var(--azul-fuerte);
}

.boton-secundario {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}

.boton-secundario:hover {
  transform: translateY(-2px);
  border-color: var(--azul);
  color: var(--azul);
}

.boton-pequeno {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.menu-boton {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-boton span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ---------- hero ---------- */

.inicio {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}

.inicio::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 40px;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(185, 129, 42, 0.12), transparent 70%);
  pointer-events: none;
}

.inicio-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
  text-align: left;
}

.inicio-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--azul);
  font-family: var(--fuente-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.inicio-etiqueta::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--oro);
  display: inline-block;
  flex-shrink: 0;
}

.inicio-etiqueta:has(.vivo)::before {
  display: none;
}

.vivo {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vivo);
  animation: pulso 2s infinite;
  flex-shrink: 0;
}

@keyframes pulso {
  50% { opacity: 0.35; }
}

.inicio h1 {
  font-family: var(--fuente-display);
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.inicio h1 code {
  font-family: var(--fuente-mono);
  font-weight: 500;
  font-size: 0.86em;
}

.inicio-texto {
  color: var(--muted);
  max-width: 500px;
  margin: 18px 0 30px;
  font-size: 1.06rem;
}

.inicio-botones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inicio-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.inicio-mini i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

/* code-window hero visual */

.ventana-codigo {
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(22, 24, 29, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ventana-barra {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
}

.ventana-barra span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.ventana-barra span:nth-child(1) { background: #E0605A; }
.ventana-barra span:nth-child(2) { background: #E0A93B; }
.ventana-barra span:nth-child(3) { background: #3FAE64; }

.ventana-codigo-cuerpo {
  padding: 22px 22px 26px;
  font-family: var(--fuente-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: #EDEAE0;
  overflow-x: auto;
  white-space: pre;
}

.tok-com { color: #82868F; }
.tok-key { color: #8FB3FF; }
.tok-str { color: #E3B25C; }
.tok-fn  { color: #7FD1A0; }
.tok-attr { color: #E3B25C; }

.patrocinado-por {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 7px 14px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.83rem;
}

.patrocinado-por a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.patrocinado-por img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* ---------- cursos (course cards) ---------- */

.cursos {
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.cursos h2 {
  font-family: var(--fuente-display);
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cursos-sub {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 0.97rem;
}

.curso-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.curso {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px;
  position: relative;
  scroll-margin-top: 90px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  align-items: center;
  display: grid;
}

.curso:hover {
  transform: translateY(-4px);
  border-color: var(--azul);
  box-shadow: 0 16px 32px -20px rgba(31, 58, 147, 0.4);
}

.curso-nivel {
  display: inline-block;
  font-family: var(--fuente-mono);
  font-size: 0.74rem;
  color: var(--oro);
  background: var(--oro-suave);
  border: 1px solid rgba(185, 129, 42, 0.25);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

.curso h3 {
  font-family: var(--fuente-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.curso p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.curso-link {
  color: var(--azul);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.curso-link span {
  display: inline-block;
  transition: transform 0.25s;
}

.curso-info {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--fuente-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.curso-info:hover {
  border-color: var(--azul);
  background: var(--azul);
  color: #fff;
}

.bloque-titulo {
  font-family: var(--fuente-display);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}

.bloque-titulo:first-child {
  margin-top: 0;
}

.detalle-puntos {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detalle-puntos li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
}

.detalle-puntos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--oro);
}

.profe-vacio {
  text-align: center;
  border-style: dashed;
}

.profe-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 50%;
  font-family: var(--fuente-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
}

.profe-vacio p {
  margin-bottom: 0;
}

.moneda {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.25s;
}

.moneda:hover,
.moneda:focus-within {
  border-color: var(--azul);
}

.moneda > .icono {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.moneda-texto {
  display: grid;
  gap: 1px;
}

.moneda label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.moneda select {
  color: var(--ink);
  width: 178px;
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.moneda select option {
  background: #fff;
  color: var(--ink);
}

.moneda-flecha {
  width: 16px;
  height: 16px;
  margin-left: -4px;
  color: var(--muted);
  pointer-events: none;
}

.curso:hover .curso-link span {
  transform: translateX(4px);
}

.precios {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.precio {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 8px;
  text-align: center;
  background: var(--bg);
}

.precio span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.precio strong {
  font-family: var(--fuente-mono);
  font-size: 1.02rem;
}

.detalle {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 18px;
}

.detalle summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul);
}

.detalle h4 {
  font-family: var(--fuente-display);
  font-size: 0.85rem;
  margin: 16px 0 8px;
}

.detalle ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.detalle li {
  color: var(--muted);
  font-size: 0.88rem;
}

.detalle li strong {
  color: var(--ink);
}

.detalle p {
  margin-bottom: 0;
  color: var(--muted);
}

.boton-comprar {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.packs {
  margin-top: 72px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.packs-cabeza {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  margin-bottom: 28px;
}

.packs-cabeza .inicio-etiqueta {
  margin-bottom: 12px;
}

.packs-cabeza h3 {
  font-family: var(--fuente-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.packs-cabeza > p {
  max-width: 340px;
  color: var(--muted);
  font-size: 0.93rem;
}

.packs-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--oro-suave), var(--panel) 60%);
  transition: transform 0.25s, border-color 0.25s;
}

.pack:hover {
  transform: translateY(-4px);
  border-color: var(--oro);
}

.pack-ahorro {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--oro);
  color: #fff;
  font-family: var(--fuente-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.pack h4 {
  margin-top: 18px;
  font-family: var(--fuente-display);
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.pack > p {
  min-height: 46px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pack-precio {
  margin: 22px 0 18px;
}

.pack-precio span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.pack-precio strong {
  font-family: var(--fuente-mono);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.pack .boton-comprar {
  margin-top: auto;
}

/* ---------- faq ---------- */

.faq {
  max-width: 760px;
  margin: 72px auto 0;
  padding-top: 58px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.faq-cabeza {
  margin-bottom: 24px;
}

.faq-cabeza .inicio-etiqueta {
  margin-bottom: 12px;
}

.faq-cabeza h3 {
  font-family: var(--fuente-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.faq-cabeza > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.faq-lista {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.faq-item:hover {
  border-color: var(--azul);
}

.faq-item[open] {
  background: var(--azul-suave);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--azul);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-item[open] p {
  animation: faqAbrir 0.3s ease;
}

.faq-item:nth-of-type(1) { transition-delay: 0.05s; }
.faq-item:nth-of-type(2) { transition-delay: 0.1s; }
.faq-item:nth-of-type(3) { transition-delay: 0.15s; }
.faq-item:nth-of-type(4) { transition-delay: 0.2s; }

@keyframes faqAbrir {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.faq .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.faq .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- footer ---------- */

.pie {
  border-top: 1px solid var(--line);
  padding: 44px 0 0;
  margin-top: auto;
  background: var(--panel);
}

.pie-rejilla {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}

.pie-titulo {
  font-family: var(--fuente-display);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.pie-texto {
  color: var(--muted);
  font-size: 0.9rem;
}

.pie-rejilla a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.25s, transform 0.25s;
}

.pie-rejilla a:hover {
  color: var(--azul);
  transform: translateX(3px);
}

.pie-base {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.pie-rejilla a.patrocinador-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 14px 8px 8px;
  margin-bottom: 8px;
  transition: transform 0.25s, border-color 0.25s;
}

.pie-rejilla a.patrocinador-link:hover {
  transform: translateY(-2px);
  border-color: var(--azul);
}

.patrocinador-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.patrocinador-link span {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}

.patrocinador-sub {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ---------- soporte / sobre-nosotros ---------- */

.soporte-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
  text-align: left;
}

.sobre-hero {
  padding: 70px 0 28px;
  text-align: left;
}

.sobre-hero h1 {
  font-family: var(--fuente-display);
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  letter-spacing: -0.02em;
}

.sobre-hero > p:last-child {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
}

.sobre-bloque {
  max-width: 760px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}

.sobre-bloque p {
  color: var(--muted);
  margin-bottom: 14px;
}

.sobre-puntos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.sobre-puntos div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--panel);
}

.sobre-puntos strong {
  display: block;
  font-family: var(--fuente-display);
  font-size: 0.95rem;
}

.sobre-puntos span {
  color: var(--muted);
  font-size: 0.85rem;
}

.sobre-empresa {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 72px;
  border-top: 1px solid var(--line);
}

.sobre-empresa h2 {
  font-family: var(--fuente-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.sobre-carta {
  border: 1px solid var(--line);
  border-left: 3px solid var(--oro);
  border-radius: 6px;
  padding: 28px;
  background: var(--panel);
}

.sobre-carta p {
  color: var(--muted);
  margin-bottom: 14px;
}

.sobre-carta h3 {
  font-family: var(--fuente-display);
  margin: 22px 0 10px;
  font-size: 1rem;
  color: var(--ink);
}

.sobre-carta ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.sobre-carta li {
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.sobre-carta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--oro);
}

.sobre-carta p.sobre-firma {
  font-family: var(--fuente-display);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- legal ---------- */

.legal {
  max-width: 680px;
  padding: 70px 0;
}

.legal h1 {
  font-family: var(--fuente-display);
  font-size: 1.9rem;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
}

.legal h2 {
  font-family: var(--fuente-display);
  font-size: 1.1rem;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.96rem;
}

.legal ul {
  padding-left: 20px;
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.volver {
  margin-top: 32px;
}

/* ---------- formulario de soporte ---------- */

.formulario {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  background: var(--panel);
  text-align: left;
}

.formulario h2 {
  font-family: var(--fuente-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.formulario > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.campo {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.campo label {
  font-size: 0.83rem;
  font-weight: 600;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px var(--azul-suave);
}

.campo select option {
  background: #fff;
}

.campo textarea {
  min-height: 130px;
  resize: vertical;
}

.form-aviso {
  font-size: 0.9rem;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.form-aviso.ok {
  color: var(--vivo);
  background: rgba(46, 158, 91, 0.06);
  border-color: rgba(46, 158, 91, 0.3);
}

.form-aviso.error {
  color: var(--err);
  background: rgba(192, 57, 43, 0.06);
  border-color: rgba(192, 57, 43, 0.3);
}

.formulario button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- reveal / entrance motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes entrada {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.barra {
  animation: entrada 0.6s ease both;
}

.inicio-col-texto > * {
  animation: entrada 0.7s ease both;
}

.inicio-col-texto > *:nth-child(2) { animation-delay: 0.08s; }
.inicio-col-texto > *:nth-child(3) { animation-delay: 0.16s; }
.inicio-col-texto > *:nth-child(4) { animation-delay: 0.24s; }
.inicio-col-texto > *:nth-child(5) { animation-delay: 0.32s; }
.inicio-col-texto > *:nth-child(6) { animation-delay: 0.4s; }

.inicio-col-visual {
  animation: entrada 0.8s ease both 0.2s;
}

.curso:nth-child(2) { transition-delay: 0.1s; }
.curso:nth-child(3) { transition-delay: 0.2s; }

/* ---------- cookie banner ---------- */

.aviso-cookies {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  width: min(920px, 94%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 40;
}

.aviso-cookies[hidden] {
  display: none;
}

.aviso-cookies.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.aviso-cookies p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.aviso-cookies a {
  color: #fff;
}

.aviso-cookies div {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.aviso-cookies .boton-secundario {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.aviso-cookies .boton-secundario:hover {
  border-color: #fff;
}

.aviso-cookies .boton-principal {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.aviso-cookies .boton-principal:hover {
  background: var(--oro-suave);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #D8D4C8;
  border-radius: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .inicio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .nav-enlaces {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 4%;
    gap: 14px;
  }

  .nav-enlaces.abierto {
    display: flex;
  }

  .menu-boton {
    display: flex;
  }

  .inicio {
    padding: 80px 0 56px;
  }

  .inicio-logo {
    width: 84px;
    height: 84px;
  }

  .inicio-mini {
    flex-wrap: wrap;
    gap: 10px;
  }

  .curso {
    padding: 20px 18px;
  }

  .moneda {
    flex-wrap: wrap;
  }

  .moneda select {
    font-size: 16px;
  }

  .curso-lista {
    grid-template-columns: 1fr;
  }

  .packs-cabeza {
    display: block;
  }

  .packs-cabeza > p {
    margin-top: 12px;
    max-width: none;
  }

  .packs-lista {
    grid-template-columns: 1fr;
  }

  .pack > p {
    min-height: 0;
  }

  .sobre-puntos {
    grid-template-columns: 1fr;
  }

  .soporte-lista {
    grid-template-columns: 1fr;
  }

  .sobre-carta {
    padding: 20px 18px;
  }

  .pie-rejilla {
    grid-template-columns: 1fr;
  }

  .aviso-cookies {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
  }

  .aviso-cookies div {
    width: 100%;
  }

  .aviso-cookies .boton {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 440px) {
  .marca {
    font-size: 0.88rem;
  }

  .marca-logo {
    width: 30px;
    height: 30px;
  }

  .nav-acciones .boton {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .inicio-botones {
    flex-direction: column;
    align-items: stretch;
  }

  .inicio-botones .boton {
    justify-content: center;
    text-align: center;
  }

  .inicio-texto {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}