  :root {
    --font-inter: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Helvetica, Arial, sans-serif;
    --fs-display: 2.5rem; --fs-title-md: 1.25rem; --fs-title-sm: 1.0625rem; --fs-subtitle: 0.9375rem;
    --fs-ui: 0.875rem; --fs-secondary: 0.8125rem; --fs-caption: 0.75rem; --fs-micro: 0.6875rem;
    --fw-regular: 400; --fw-medium: 510; --fw-semibold: 560; --fw-title: 620;
    --ls-display: -0.026em; --ls-title: -0.017em; --ls-subtitle: -0.015em; --ls-body: -0.011em;
    --paper: #0a0a0a; --mist: #2a2c30; --fog: #6b7078; --ash: #9a9fa6;
    --carbon: #f4f5f6; --graphite: #e8e9ec; --error: #eb5757; --ok: #1e8e3e;
    --bg: #fff; --on-paper: #fff; --line: #ccc;
    color-scheme: light;
  }
  [data-tema="oscuro"] {
    --paper: #fff; --mist: #d0d6e0; --fog: #8a8f98; --ash: #62666d;
    --bg: #08090a; --carbon: #0f1011; --graphite: #23252a; --on-paper: #08090a; --line: #3a3d44;
    --ok: #27a644; color-scheme: dark;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  [hidden] { display: none !important; }
  body { background: var(--bg); color: var(--paper); font-family: var(--font-inter); font-size: var(--fs-ui); line-height: 1.5;
    letter-spacing: var(--ls-body); font-feature-settings: "cv01" on, "ss03" on, "zero" on; }
  button, input, textarea { font-family: inherit; letter-spacing: inherit; }
  h1, h2 { font-size: var(--fs-title-sm); font-weight: var(--fw-title); letter-spacing: var(--ls-title); }
  h3 { font-size: var(--fs-title-md); font-weight: var(--fw-title); letter-spacing: var(--ls-title); }
  h4 { font-size: var(--fs-subtitle); font-weight: var(--fw-title); letter-spacing: var(--ls-subtitle); }
  b { font-weight: var(--fw-semibold); }
  header { padding: 20px 16px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
  .wrap { max-width: 1100px; margin: 0 auto; }
  .top { display: flex; gap: 10px; align-items: center; }
  .top button { white-space: nowrap; flex: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  #buscador { min-width: 0; }
  .marca { display: flex; align-items: center; gap: 12px; flex: none; color: var(--paper); text-decoration: none; font-weight: var(--fw-semibold); }
  .marca img { width: 44px; height: 44px; display: block; }
  .marca span { font-size: 30px; line-height: 1; font-weight: var(--fw-title); letter-spacing: -0.04em; }
  .logo-oscuro { display: none !important; }
  [data-tema="oscuro"] .logo-claro { display: none !important; }
  [data-tema="oscuro"] .logo-oscuro { display: block !important; }
  #buscador { flex: 1 1 auto; }
  @media (max-width: 600px) { header { padding: 12px 12px; } .top { gap: 8px; } .marca span { display: none; } .marca img { width: 32px; height: 32px; } #buscador { padding: 10px 12px; } .top button { padding: 10px 14px; } }
  #buscador, #buscadorM { width: 100%; padding: 12px 14px; font-size: var(--fs-ui); border: 1px solid var(--line); border-radius: 6px; outline: none; }
  #buscador:focus, #buscadorM:focus { border-color: var(--paper); }
  main { padding: 24px 16px; }
  button { background: var(--paper); color: var(--on-paper); border: 0; padding: 9px 16px; border-radius: 6px; font-size: var(--fs-ui); font-weight: var(--fw-medium); cursor: pointer; }
  button:hover { background: var(--mist); }
  .sec { background: var(--bg); color: var(--paper); border: 1px solid var(--line); }
  .sec:hover { background: var(--carbon); }
  input { font-size: var(--fs-ui); background: var(--bg); color: var(--paper); }
  @media (max-width: 800px) { input { font-size: 16px; } }

  /* Lista de cursos */
  #grid, #misGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 16px; }
  .card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
  .card img, .card .ph { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--carbon); display: block; border-radius: 12px; }
  .info { padding: 10px 2px; }
  .titulo { font-size: var(--fs-subtitle); font-weight: var(--fw-title); letter-spacing: var(--ls-subtitle); line-height: 1.3; }
  .cat { font-size: var(--fs-secondary); color: var(--fog); margin-top: 4px; }
  #vacio { text-align: center; color: var(--fog); padding: 40px 0; }

  /* Vistas */
  .cab { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 16px; }
  .cab h1 { margin: 0; margin-right: -4px; }
  .volver, .icono { padding: 8px; display: flex; flex: none; }
  #autor:empty { display: none; }

  /* Perfil */

  /* Visualizador */
  #visor { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: stretch; }
  #resto .bloque:first-child { margin-top: 32px; }
  .video { width: 100%; aspect-ratio: 16/9; background: #000; border: 0; display: block; border-radius: 8px; }
  #lecTit { margin-top: 12px; }
  #autor { text-decoration: none; color: var(--fog); font-size: var(--fs-title-sm); letter-spacing: var(--ls-title); }
  /* Índice del curso: sin bordes ni líneas, módulos plegables */
  .mod svg { flex: none; transition: transform .15s; }
  .modulo.abierto > .mod svg { transform: rotate(90deg); }
  .lecs { display: none; }
  .modulo.abierto > .lecs { display: block; }
  .chk { flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ash); color: #fff; display: flex; align-items: center; justify-content: center; }
  .chk:hover { background: var(--bg); border-color: var(--fog); }
  .chk svg { opacity: 0; }
  .hecha .chk { background: var(--ok); border-color: var(--ok); }
  .hecha .chk svg { opacity: 1; }
  .acc { display: flex; gap: 8px; margin-top: 12px; }
  .acc button { display: flex; align-items: center; gap: 8px; background: var(--carbon); color: var(--paper); padding: 9px 14px; border-radius: 8px; }
  .acc button:hover { background: var(--graphite); }
  #bHecho.hecha svg { color: var(--ok); }
  #video[hidden] { display: none; }
  #bloq { aspect-ratio: 16/9; background: var(--carbon); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; color: var(--mist); }
  #bloq b { color: var(--paper); font-size: var(--fs-title-md); font-weight: var(--fw-medium); letter-spacing: var(--ls-title); }
  #oferta { border: 1px solid var(--graphite); border-radius: 5px; padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(10,10,10,.06); }
  #oNom { font-weight: var(--fw-title); font-size: 1.5rem; letter-spacing: var(--ls-display); line-height: 1.2; }
  .op { display: flex; align-items: baseline; gap: 4px 10px; margin: 14px 0; flex-wrap: wrap; }
  #oAnt { color: var(--ash); font-size: 1.25rem; font-weight: var(--fw-title); letter-spacing: var(--ls-title); }
  #oAct { font-size: var(--fs-display); font-weight: var(--fw-title); letter-spacing: var(--ls-display); line-height: 1.1; }
  #oDto { background: var(--paper); color: var(--on-paper); font-size: var(--fs-micro); font-weight: var(--fw-medium); padding: 2px 8px; border-radius: 10px; align-self: center; }
  #oLista { list-style: none; margin-bottom: 18px; }
  #oLista li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-ui); color: var(--fog); padding: 5px 0; line-height: 1.4; }
  #oLista li b { color: var(--paper); font-weight: var(--fw-semibold); }
  #oLista svg { color: var(--paper); flex: none; margin-top: 1px; }
  .buy { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; position: relative; overflow: hidden;
    background: #2563eb; color: #fff; font-size: 1rem; font-weight: var(--fw-semibold); padding: 15px 20px; border-radius: 5px;
    box-shadow: 0 6px 16px rgba(37,99,235,.35); animation: buyPulse 2.4s infinite; transition: transform .15s, background .15s; }
  .buy:hover { background: #1d4ed8; transform: translateY(-2px) scale(1.02); }
  .buy:active { transform: scale(.98); }
  .buy::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: buyShine 3.2s infinite; }
  .buy svg { animation: buyCart 2.4s infinite; }
  .buy:disabled { animation: none; opacity: .7; cursor: default; transform: none; }
  .buy:disabled::after, .buy:disabled svg:not(.giro) { display: none; }
  @keyframes buyPulse { 0% { box-shadow: 0 6px 16px rgba(37,99,235,.35), 0 0 0 0 rgba(37,99,235,.5); } 70%, 100% { box-shadow: 0 6px 16px rgba(37,99,235,.35), 0 0 0 14px rgba(37,99,235,0); } }
  @keyframes buyShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
  @keyframes buyCart { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }
  @media (prefers-reduced-motion: reduce) { .buy, .buy::after, .buy svg { animation: none; } }
  .seguro { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: var(--fs-secondary); font-weight: var(--fw-medium); color: var(--fog); }
  .pagos { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
  .pagos img { background: #fff; height: 28px; width: 42px; object-fit: contain; border: 1px solid var(--graphite); border-radius: 5px; background: #fff; padding: 2px; }
  #oErr { color: var(--error); font-size: var(--fs-secondary); margin-top: 8px; }
  #descVenta { margin-top: 20px; }
  /* Móvil: video, compra, descripción, índice */
  @media (max-width: 800px) {
    #visor { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
    .col-a, .col-b { display: contents; }
    #bVideo { order: 1; } #oferta { order: 2; } #descVenta { order: 3; margin-top: 0; } #indice { order: 4; }
  }

  /* Popup login */
  dialog { background: var(--bg); color: var(--paper); margin: auto; border: 1px solid var(--line); border-radius: 8px; padding: 20px; width: 320px; max-width: 92vw; }
  dialog::backdrop { background: rgba(0,0,0,.5); }
  dialog h3 { margin-bottom: 12px; }
  dialog button { width: 100%; }
  #msg { font-size: var(--fs-secondary); color: var(--error); min-height: 18px; margin-bottom: 8px; }
  #alt { display: block; margin-top: 10px; font-size: var(--fs-secondary); color: var(--mist); text-align: center; cursor: pointer; text-decoration: underline; }

/* Portada de la lista */
.hero { margin-bottom: 24px; }
.hero h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: var(--ls-display); }
.hero p { color: var(--fog); margin-top: 4px; }

/* Descripción del curso */
#desc, #descAbajo { color: var(--mist); max-width: 70ch; white-space: pre-line; }
#descVenta h2, .bloque h2 { font-size: var(--fs-title-md); margin-bottom: 8px; }

/* Secciones bajo el visor: descripción y valoraciones */
.bloque { margin-top: 48px; max-width: 760px; }
#rResumen { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin: 12px 0 20px; }
.r-media { font-size: var(--fs-display); font-weight: var(--fw-title); letter-spacing: var(--ls-display); line-height: 1; }
.r-cuenta { color: var(--fog); font-size: var(--fs-secondary); margin-top: 4px; }
.r-barras { flex: 1; min-width: 200px; display: grid; gap: 4px; }
.r-barra { display: flex; align-items: center; gap: 8px; font-size: var(--fs-caption); color: var(--fog); }
.r-barra i { flex: 1; height: 6px; border-radius: 0; background: var(--graphite); overflow: hidden; }
.r-barra i b { display: block; height: 100%; background: #FFC300; }
.star-fila { display: inline-flex; gap: 2px; color: var(--ash); }
.star-fila svg, .est svg { fill: var(--line); stroke: none; }
.star-fila svg.on, .est.on svg { fill: #FFC300; }
#rEditor { display: grid; gap: 12px; }
#rEditor .ests { display: flex; justify-content: center; gap: 4px; margin: 4px 0; }
#rEditor .est svg { width: 40px; height: 40px; }
#rEditor .fila { display: grid; }
#rAbrir { margin-bottom: 24px; }
#dRes { width: 380px; }
.dlg-logo { display: block; margin: 0 auto 12px; width: 44px; height: 44px; }
dialog #tit, dialog #sub, #dRes h3, #dRes .nota { text-align: center; margin-bottom: 6px; }
#sub { margin-bottom: 16px !important; }
.pie-marca { display: flex !important; align-items: center; gap: 12px; font-size: 30px !important; line-height: 1; letter-spacing: -0.04em !important; margin-bottom: 14px !important; }
.pie-marca img { width: 44px; height: 44px; }
.ests { display: flex; gap: 2px; margin: 8px 0; }
.est { background: none; padding: 2px; color: var(--ash); border-radius: 6px; }
.est:hover { background: none; }
#rEditor textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--paper); font-family: inherit; font-size: var(--fs-ui); letter-spacing: inherit; resize: vertical; }
#rEditor .msg { min-height: 20px; font-size: var(--fs-secondary); margin-top: 8px; }
#rAviso { color: var(--fog); margin-bottom: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.resena { display: flex; gap: 14px; padding: 14px 0; }
.resena .avatar { width: 40px; height: 40px; font-size: var(--fs-ui); }
.resena .rh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.resena small { color: var(--fog); }
.resena p { margin-top: 4px; color: var(--mist); white-space: pre-line; overflow-wrap: anywhere; }
#rMas { margin-top: 8px; }

/* Contenido prerenderizado (solo se ve mientras carga la app o sin JavaScript) */
#seo ~ #vLista { display: none; }
#seo img { width: 100%; max-width: 480px; height: auto; border-radius: 8px; display: block; margin: 12px 0; }
#seo h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: var(--ls-display); }
#seo h2 { margin: 20px 0 8px; }
#seo p, #seo li { color: var(--mist); margin-bottom: 4px; }
#seo ol { padding-left: 20px; }
#seo nav { color: var(--fog); margin-bottom: 12px; }

/* Pie de página */
footer { background: var(--bg); margin-top: 64px; padding: 48px 16px 24px; }
.pie { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.pie h3 { font-size: var(--fs-ui); font-weight: var(--fw-title); margin-bottom: 12px; }
.pie p { color: var(--fog); font-size: var(--fs-secondary); max-width: 34ch; }
.pie nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pie a, .pie button.enlace { color: var(--fog); font-size: var(--fs-secondary); text-decoration: none; }
.pie a:hover, .pie button.enlace:hover { color: var(--paper); }
button.enlace { background: none; color: var(--fog); padding: 0; border-radius: 0; font-weight: var(--fw-regular); text-align: left; }
button.enlace:hover { background: none; }
.pie-marca { font-size: var(--fs-title-sm); font-weight: var(--fw-title); letter-spacing: var(--ls-title); margin-bottom: 8px; display: block; }
.pie .pagos { justify-content: flex-start; margin-top: 0; }
.pie .pagos img { height: 26px; width: 39px; }
.pie-fin { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--graphite); color: var(--ash); font-size: var(--fs-caption); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
@media (max-width: 800px) { .pie { grid-template-columns: 1fr 1fr; } .pie > :first-child { grid-column: 1 / -1; } }

/* Popup de acceso */
dialog input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; }
dialog { width: 340px; }
.prov { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; background: var(--bg); color: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.prov:hover { background: var(--carbon); }
.o { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--fog); font-size: var(--fs-secondary); }
.o::before, .o::after { content: ""; flex: 1; height: 1px; background: var(--graphite); }
#gErr { color: var(--error); font-size: var(--fs-secondary); margin-top: 10px; min-height: 0; }
#bAtras { display: block; margin: 12px auto 0; color: var(--fog); font-size: var(--fs-secondary); }
#alt { display: block; }

/* Mi cuenta */
#vPerfil { max-width: 720px; margin: 0; }
.pcab { display: flex; align-items: center; gap: 16px; margin: 8px 0 20px; }
.avatar { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--graphite); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: var(--fw-title); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
#pNom { font-size: var(--fs-title-md); font-weight: var(--fw-title); letter-spacing: var(--ls-title); }
#pCorreo { color: var(--fog); }
.plista { display: flex; flex-direction: column; gap: 2px; }
.plista button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; background: none; color: var(--paper); border-radius: 10px; font-size: var(--fs-subtitle); text-align: left; }
.plista button:hover { background: var(--carbon); }
.plista button span { flex: 1; }
.plista button > svg:last-child { color: var(--ash); }
.plista .salir { color: var(--error); margin-top: 8px; }
.plista .salir svg { color: var(--error); }
#pSec label:not(.fila-sw):not(.btn-suave) { display: block; font-size: var(--fs-secondary); font-weight: var(--fw-medium); color: var(--mist); margin: 14px 0 6px; }
#pSec input:not(.sw) { width: 100%; padding: 10px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 6px; }
#pSec .msg { min-height: 20px; font-size: var(--fs-secondary); margin: 8px 0; }
.nota, .dato { color: var(--fog); font-size: var(--fs-secondary); margin-top: 14px; }
.dato b { color: var(--paper); margin-left: 6px; }
.fila { display: flex; align-items: center; gap: 12px; }
.btn-suave { background: var(--carbon); color: var(--paper); padding: 9px 14px; border-radius: 8px; font-size: var(--fs-ui); font-weight: var(--fw-medium); cursor: pointer; }
.btn-suave:hover { background: var(--graphite); }
.compra { display: flex; gap: 14px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; }
.compra img, .compra .ph { width: 112px; aspect-ratio: 16/9; height: auto; object-fit: cover; border-radius: 8px; background: var(--carbon); flex: none; }
.compra b { display: block; font-size: var(--fs-subtitle); }
.compra span { color: var(--fog); font-size: var(--fs-secondary); }
.fila-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; }
.fila-sw b { display: block; font-size: var(--fs-subtitle); }
.fila-sw small { color: var(--fog); font-size: var(--fs-secondary); }
.sw { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--graphite); position: relative; cursor: pointer; transition: background .15s; padding: 0; border: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw:checked { background: var(--ok); }
.sw:checked::after { transform: translateX(18px); }
.temas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.temas button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; background: var(--carbon); color: var(--paper); border-radius: 12px; border: 2px solid transparent; }
.temas button:hover { background: var(--graphite); }
.temas button.on { border-color: var(--paper); }
#user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }
.cl { color: var(--fog); font-size: var(--fs-title-sm); letter-spacing: var(--ls-title); text-decoration: none; }
.cl:hover { color: var(--paper); text-decoration: underline; }
#dRes .enlace, #bAtras, #alt { text-align: center; }
#ruta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 16px 28px; font-size: var(--fs-secondary); color: var(--fog); }
#ruta[hidden] { display: none; }
#ruta a { color: var(--fog); text-decoration: none; }
#ruta a:hover { color: var(--paper); text-decoration: underline; }
#ruta i { font-style: normal; }
#ruta span { color: var(--paper); }

/* Páginas legales */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 0 32px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: var(--fs-title-md); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--mist); margin-bottom: 10px; line-height: 1.6; }
.legal ul { padding-left: 20px; margin-bottom: 10px; }

/* Ficha del curso: valoración en la oferta, contenido, aprenderás, instructor y FAQ */
#oRating { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; font-size: var(--fs-secondary); color: var(--fog); }
#oRating b { color: var(--paper); }
#descMas { display: none; margin-top: 6px; color: var(--paper); text-decoration: underline; }
#aprende ul { list-style: none; padding: 0; display: grid; gap: 10px; }
#aprende li { display: flex; gap: 10px; align-items: flex-start; }
#aprende li svg { flex: none; margin-top: 4px; width: 16px; height: 16px; color: #16a34a; }
.ins { display: flex; gap: 14px; align-items: flex-start; }
.ins .avatar { flex: none; width: 64px; height: 64px; font-size: 24px; }
.ins .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ins a { color: var(--paper); text-decoration: none; font-weight: var(--fw-semibold); }
.ins p { color: var(--mist); margin: 4px 0 6px; }
#insPerfil { display: inline-block; font-weight: var(--fw-regular); font-size: var(--fs-secondary); color: var(--fog); }
#insPerfil:hover { text-decoration: underline; }
#faqLista details { border-bottom: 1px solid var(--line); padding: 14px 0; }
#faqLista summary { cursor: pointer; font-weight: var(--fw-semibold); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
#faqLista summary::-webkit-details-marker { display: none; }
#faqLista summary::after { content: "+"; color: var(--fog); font-size: 20px; line-height: 1; }
#faqLista details[open] summary::after { content: "−"; }
#faqLista p { color: var(--mist); margin-top: 10px; }
@media (max-width: 800px) {
  #vCurso:not(.pagado) .cab h1, #vCurso:not(.pagado) .cab #autor, #vCurso:not(.pagado) .cab .cl { display: none; }
  #oferta { border: 0; box-shadow: none; padding: 0; background: none; margin-bottom: 0; }
  #oNom { font-size: 1.6rem; }
  #resto { order: 5; }
  #barraCompra:not([hidden]) { display: flex; }  .bloque { margin-top: 36px; }
  #descVenta.corto #desc { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  #descMas:not([hidden]) { display: inline; }
}
.legal h1 { font-size: 34px; letter-spacing: -0.03em; }

/* Barra de compra flotante (solo móvil) */
#barraCompra { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -6px 24px rgba(0,0,0,.12); }
#barraCompra .bp { display: flex; align-items: baseline; gap: 8px; flex: none; }
#barraCompra s { color: var(--fog); font-size: var(--fs-secondary); }
#barraCompra b { font-size: 1.5rem; letter-spacing: -0.03em; }
#barraCompra .buy { flex: 1; width: auto; padding: 14px 12px; }
@media (min-width: 801px) { #barraCompra { display: none !important; } }
@media (min-width: 801px) { #vCurso:not(.pagado) #oferta { position: sticky; top: 96px; } }
.ins a { display: block; }

/* Breadcrumb compacto arriba del video */
.cab { display: none; }
#ruta { padding: 0; margin: 0 0 14px; font-size: 13px; flex-wrap: nowrap; overflow: hidden; }
#ruta a, #ruta span { white-space: nowrap; }
#ruta a { flex: none; }
#ruta span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#ruta i { flex: none; opacity: .6; }

/* Jerarquía de texto de la ficha: títulos de sección 24 · filas 17 · texto 15 · detalle 13 */
#descVenta h2, .bloque h2, .ind-cab h2 { font-size: 1.5rem; font-weight: var(--fw-title); letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 16px; }
#descVenta, #indice, .bloque { margin-top: 48px; }
#descVenta { margin-top: 32px; }
#desc, #descAbajo, .ins p, #aprende li, .resena p { font-size: .9375rem; line-height: 1.65; color: var(--mist); }
#desc { max-width: 68ch; }
.ind-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ind-cab h2 { margin: 0 0 16px; }
.ind-cab span { color: var(--fog); font-size: 13px; white-space: nowrap; }
#aprende li { color: var(--paper); }
.ins a:first-child { font-size: 1.0625rem; }

/* Índice del curso y preguntas frecuentes: mismo estilo de filas */
.modulo { border-bottom: 1px solid var(--graphite); }
#indice .modulo:first-of-type { border-top: 1px solid var(--graphite); }
.mod { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 2px; background: none; color: var(--paper); border-radius: 0; font-size: 1.0625rem; font-weight: var(--fw-medium); text-align: left; }
.mod:hover { background: none; }
.mod span { flex: 1; min-width: 0; }
.mod small { flex: none; color: var(--fog); font-size: 13px; font-weight: var(--fw-regular); }
.mod::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--fog); border-bottom: 1.5px solid var(--fog); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.modulo.abierto > .mod { font-weight: var(--fw-semibold); }
.modulo.abierto > .mod::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--paper); }
.lecs { padding: 0 0 14px; }
.lec { display: flex; align-items: center; gap: 12px; padding: 10px 2px; font-size: .9375rem; cursor: pointer; border-radius: 0; color: var(--mist); }
.lec:hover { background: none; color: var(--paper); }
.lec.on { background: none; color: var(--paper); font-weight: var(--fw-semibold); }
.lec > svg { margin-left: auto; flex: none; color: var(--ash); }

#faqLista details { border-bottom: 1px solid var(--graphite); padding: 0; }
#faqLista details:first-child { border-top: 1px solid var(--graphite); }
#faqLista summary { padding: 18px 2px; font-weight: var(--fw-medium); font-size: 1.0625rem; align-items: center; gap: 16px; }
#faqLista summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--fog); border-bottom: 1.5px solid var(--fog); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
#faqLista details[open] summary::after { content: ""; transform: rotate(225deg) translate(-2px, -2px); border-color: var(--paper); }
#faqLista details[open] summary { font-weight: var(--fw-semibold); }
#faqLista details p { padding: 0 2px 20px; margin: 0; max-width: 62ch; font-size: .9375rem; line-height: 1.65; }
@media (max-width: 800px) {
  #descVenta h2, .bloque h2, .ind-cab h2 { font-size: 1.375rem; }
  #descVenta, #indice, .bloque { margin-top: 36px; }
  #descVenta { margin-top: 0; }
}


#vCurso.pagado .ind-cab { display: none; }
@media (min-width: 801px) {
  #vCurso.pagado #indice { position: sticky; top: 96px; margin-top: 0; max-height: calc(100vh - 120px); overflow-y: auto; }
  /* Con acceso: el visor ocupa toda la pantalla, el índice a la altura del video y sin scroll salvo que no quepa */
  #vCurso.pagado #visor { --alto: calc(100vh - 200px); min-height: 0; }
  #vCurso.pagado .video { aspect-ratio: auto; height: max(320px, calc(var(--alto) - 96px)); }
  #vCurso.pagado #indice { position: static; align-self: start; height: max(416px, var(--alto)); max-height: none; overflow-y: auto; scrollbar-width: none; }
  #vCurso.pagado #indice::-webkit-scrollbar { display: none; }
}

/* Ruta de navegación global (arriba de todas las páginas) */
#ruta { padding: 0; margin: 0 0 14px; }
.foto-autor { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 14px; background: var(--graphite); }
#misVacio { text-align: center; padding: 48px 0; }
#misVacio p { color: var(--fog); margin-bottom: 16px; }
#bMis { white-space: nowrap; flex: none; }
@media (max-width: 600px) { #bMis { display: none; } }
#bMis { padding: 9px 16px; border-radius: 6px; font-size: var(--fs-ui); font-weight: var(--fw-medium); text-decoration: none; background: var(--bg); color: var(--paper); border: 1px solid var(--line); }
#bMis[hidden] { display: none; }

/* Tarjeta de curso: autor, calificación, precio y estado "tu curso" */
.c-img { position: relative; }
.c-tuyo { position: absolute; left: 10px; top: 10px; background: var(--paper); color: var(--bg); font-size: 12px; font-weight: var(--fw-semibold); padding: 4px 10px; border-radius: 999px; }
.c-aut { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--fs-secondary); color: var(--mist); }
.c-aut img, .c-aut i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: var(--graphite); }
.c-aut i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: var(--fw-semibold); color: var(--paper); }
.c-aut span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cat { margin-top: 2px; }
.c-rate { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: var(--fs-secondary); color: var(--fog); }
.c-rate svg { fill: #FFC300; }
.c-rate b { color: var(--paper); font-weight: var(--fw-semibold); }
.c-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.c-precio b { font-size: 1.125rem; letter-spacing: -0.02em; }
.c-precio s { color: var(--ash); font-size: var(--fs-secondary); }
.c-precio .off { background: #16a34a; color: #fff; font-size: 11px; font-weight: var(--fw-semibold); padding: 2px 7px; border-radius: 4px; letter-spacing: 0; }
.c-cont { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--paper); color: var(--bg); font-size: var(--fs-ui); font-weight: var(--fw-semibold); padding: 8px 14px; border-radius: 8px; }
.c-cont svg { fill: currentColor; }
.card.suyo:hover .c-cont { opacity: .85; }
#hCargo { color: var(--paper); font-weight: var(--fw-medium); margin-top: 2px; }
#hCursos { font-size: 1.5rem; letter-spacing: -0.03em; margin: 8px 0 16px; }

/* Afiliados */
.afil-hero { text-align: center; max-width: 720px; margin: 24px auto 40px; }
.afil-hero h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.1; }
.afil-hero p { color: var(--fog); font-size: 1.0625rem; line-height: 1.6; margin: 16px auto 28px; max-width: 56ch; }
.afil-cta { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.afil-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto 32px; }
.afil-pasos > div { background: var(--carbon); border-radius: 14px; padding: 22px; }
.afil-pasos svg { margin-bottom: 12px; }
.afil-pasos h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.afil-pasos p { color: var(--fog); font-size: .9375rem; line-height: 1.55; }
@media (max-width: 800px) { .afil-pasos { grid-template-columns: 1fr; } }
#vPanel { max-width: 760px; margin: 0 auto; }
#pnEstado { text-align: center; padding: 48px 0; }
#pnEstado p { color: var(--fog); margin-bottom: 16px; }
.pn-saldo { background: var(--carbon); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.pn-saldo > span { color: var(--fog); font-size: var(--fs-secondary); }
.pn-saldo > b { display: block; font-size: 2.75rem; letter-spacing: -0.04em; line-height: 1.1; margin: 4px 0 16px; }
.pn-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.pn-saldo small { display: block; color: var(--fog); margin-top: 12px; }
.pn-enlace { margin-bottom: 20px; }
.pn-enlace label { display: block; font-weight: var(--fw-semibold); margin-bottom: 8px; }
.pn-copia { display: flex; gap: 8px; }
.pn-copia input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--paper); font-size: var(--fs-ui); }
.pn-enlace small { display: block; color: var(--fog); margin-top: 8px; }
.pn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.pn-grid div { background: var(--carbon); border-radius: 12px; padding: 14px 16px; }
.pn-grid b { display: block; font-size: 1.375rem; letter-spacing: -0.03em; }
.pn-grid span { color: var(--fog); font-size: var(--fs-secondary); }
@media (max-width: 600px) { .pn-grid { grid-template-columns: 1fr 1fr; } }
#vPanel h2 { font-size: 1.5rem; letter-spacing: -0.03em; margin: 28px 0 12px; }
#vPanel table { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
#vPanel th { text-align: left; color: var(--fog); font-weight: var(--fw-medium); padding: 8px 10px; border-bottom: 1px solid var(--graphite); white-space: nowrap; }
#vPanel td { padding: 12px 10px; border-bottom: 1px solid var(--graphite); }
.tabla-w { overflow-x: auto; }
#dRet { width: 420px; }
#dRet textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0 10px; font-family: inherit; font-size: var(--fs-ui); background: var(--bg); color: var(--paper); }
#rtErr { color: var(--error); font-size: var(--fs-secondary); min-height: 18px; margin-bottom: 6px; }
#dRet label { font-weight: var(--fw-medium); font-size: var(--fs-secondary); }

/* Autor: banner y etiqueta de YouTube */
.banner-autor { width: 100%; aspect-ratio: 6 / 1; min-height: 90px; object-fit: cover; border-radius: 14px; display: block; margin-bottom: 16px; background: var(--graphite); }
.banner-autor[hidden] { display: none; }
.yt-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: var(--fw-medium); color: var(--mist); text-decoration: none; }
.yt-tag[hidden] { display: none; }
.yt-tag:hover { color: var(--paper); border-color: var(--fog); }
.yt-tag svg { flex: none; }
.ins .yt-tag { display: inline-flex; font-weight: var(--fw-medium); margin-left: 0; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; }
.redes[hidden] { display: none; }
.hero > .yt-tag { margin-right: 8px; }
.hero > .redes { display: inline-flex; margin-top: 10px; }

/* Tarjeta de curso: etiqueta › categoría › título › autor + calificación › descuento › botón de compra */
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--graphite); border-radius: 5px; padding: 8px; box-shadow: 0 2px 12px rgba(10,10,10,.05); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 26px rgba(10,10,10,.1); transform: translateY(-2px); }
.card .info { flex: 1; display: flex; flex-direction: column; padding: 14px 8px 8px; }
.c-etq { position: absolute; left: 10px; top: 10px; color: #fff; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.c-etq.nuevo { background: #0f766e; }
.c-etq.top { background: #b45309; }
.c-tuyo { left: auto; right: 10px; }
.c-cat { align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: .03em; text-transform: uppercase; color: var(--mist); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .titulo { margin: 0; font-size: 1.125rem; font-weight: var(--fw-title); letter-spacing: -0.02em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card .c-aut { margin: 0; gap: 8px; font-size: .875rem; color: var(--mist); min-width: 0; }
.card .c-aut img, .card .c-aut i { width: 24px; height: 24px; aspect-ratio: 1; border-radius: 50%; }
.card .c-rate { margin: 0; gap: 4px; font-size: .875rem; flex: none; }
.card .c-rate svg { width: 15px; height: 15px; }
.c-pie { margin-top: auto; padding-top: 16px; }
.c-dto { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; color: #d92d20; font-size: 1rem; }
.c-dto b { font-weight: var(--fw-semibold); }
.c-dto s { color: #d92d20; opacity: .85; }
.c-comprar, .c-cont { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 10px; font-size: .9375rem; font-weight: var(--fw-semibold); }
.c-comprar { background: #2563eb; color: #fff; }
.c-comprar b { font-weight: var(--fw-semibold); }
.card:hover .c-comprar { background: #2563eb; }
.c-cont { background: var(--paper); color: var(--bg); margin: 0; }
.c-cont svg { fill: currentColor; }
#grid, #misGrid { gap: 20px 18px; }

/* Cursos relacionados (carrusel) */
#relacionados { max-width: none; }
.rel-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rel-cab h2 { margin: 0 !important; }
.rel-flechas { display: flex; gap: 8px; }
.rel-flechas button { width: 40px; height: 40px; padding: 0; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.carrusel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; margin: 0 -2px; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel .card { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }
@media (max-width: 800px) { .rel-flechas { display: none; } }

/* Tarjetas: miniatura a sangre (sin márgenes, sin esquinas inferiores), información más compacta y botones de 5px */
.card { padding: 0; overflow: hidden; }
.card .c-img img, .card .c-img .ph { border-radius: 0; }
.card .info { padding: 12px 14px 14px; }
.c-cat { margin-bottom: 6px; padding: 2px 8px; font-size: 10px; letter-spacing: .04em; }
.c-fila { margin-top: 6px; }
.c-pie { padding-top: 10px; }
.c-dto { margin-bottom: 6px; }
.c-comprar, .c-cont { border-radius: 5px; padding: 11px 14px; }

/* Tarjeta de compra del curso: precio con punto, descuento en rojo, botón, beneficios en texto normal, pago seguro */
#oferta .op { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
#oferta .radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--paper); background: var(--bg); box-sizing: border-box; }
#oAct { font-size: 2rem; font-weight: var(--fw-title); letter-spacing: -0.03em; line-height: 1.1; }
.o-dto { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px 28px; color: #d92d20; font-size: 1rem; }
.o-dto[hidden] { display: none; }
.o-dto b { font-weight: var(--fw-semibold); }
.o-dto s { color: #d92d20; opacity: .85; font-size: 1rem; font-weight: var(--fw-regular); }
#oferta .buy { margin: 6px 0 16px; }
#oLista { margin: 0 0 6px; }
#oLista li { font-weight: var(--fw-regular); color: var(--fog); }
#oLista .lb { color: var(--paper); font-weight: var(--fw-regular); }
#oLista li div { font-weight: var(--fw-regular); }
#oDto { background: none; color: #d92d20; padding: 0; border-radius: 0; font-size: 1rem; font-weight: var(--fw-semibold); }
#oAnt { color: #d92d20; font-size: 1rem; font-weight: var(--fw-regular); letter-spacing: 0; }

/* Botones de compra en peso normal; ajustes de barra flotante e instructor */
.buy, .c-comprar, .c-comprar b, .c-cont { font-weight: var(--fw-regular); }
.o-dto { margin-left: 0; }
#barraCompra .bp { flex-direction: column; align-items: flex-start; gap: 0; }
#barraCompra .bdto { display: flex; align-items: baseline; gap: 6px; color: #d92d20; font-size: 12px; line-height: 1.2; }
#barraCompra .bdto[hidden] { display: none; }
#barraCompra .bdto s { color: #d92d20; opacity: .85; }
#barraCompra b { font-size: 1.375rem; line-height: 1.1; }
#insPerfil { margin-right: 14px; }
.ins .yt-tag { margin-top: 8px; }

/* Insignias de confianza (encima de las preguntas frecuentes) */
#confianza { max-width: none; }
.conf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.conf { background: var(--carbon); border-radius: 14px; padding: 18px; }
.conf-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--bg); margin-bottom: 12px; }
.conf h3 { font-size: 1.0625rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.conf p { color: var(--fog); font-size: .9375rem; line-height: 1.55; margin: 0; }
@media (max-width: 800px) { .conf-grid { grid-template-columns: 1fr; } }
#faqLista details p strong { font-weight: var(--fw-semibold); color: var(--paper); }

/* Tarjetas de curso: sin efecto al pasar el cursor (solo el botón cambia de tono) y descripción corta */
.card { transition: none; }
.card:hover { box-shadow: 0 2px 12px rgba(10,10,10,.05); transform: none; }
.card:hover .c-comprar { background: #2563eb; }
.card .c-comprar:hover { background: #1d4ed8; }
.card:hover .c-cont, .card.suyo:hover .c-cont { opacity: 1; }
.card .c-cont:hover { opacity: .85; }
.c-desc { margin: 6px 0 0; color: var(--fog); font-size: .875rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Insignias de confianza: fondo blanco, contorno fino, iconos grises */
.conf { background: var(--bg); border: 1px solid var(--graphite); }
.conf-ic { width: auto; height: auto; border-radius: 0; background: none; color: var(--ash); margin-bottom: 10px; }

/* Perfil: contenido alineado a la izquierda, subtítulos y tabla de pagos */
#vPerfil, #vPerfil * { text-align: left; }
#vPerfil .hero h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: var(--ls-display); }
.psub { color: var(--fog); margin: -4px 0 16px; }
table.hist { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
table.hist th { text-align: left; color: var(--fog); font-weight: var(--fw-medium); padding: 8px 10px; border-bottom: 1px solid var(--graphite); white-space: nowrap; }
table.hist td { padding: 12px 10px; border-bottom: 1px solid var(--graphite); vertical-align: top; }
table.hist a { color: var(--paper); font-weight: var(--fw-medium); text-decoration: none; }
table.hist a:hover { text-decoration: underline; }
.est-ok { background: #dff5e3; color: #14622a; font-size: 12px; font-weight: var(--fw-semibold); padding: 2px 8px; border-radius: 999px; }

/* Ventana de pago confirmado + confeti */
#confeti { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1001; pointer-events: none; }
#pagoOk { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); }
#pagoOk[hidden] { display: none; }
.ok-caja { background: var(--bg); color: var(--paper); border-radius: 18px; padding: 32px 28px 26px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: okEntra .35s cubic-bezier(.2,.9,.3,1.2); }
.ok-caja h3 { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.2; margin: 18px 0 10px; }
.ok-caja p { color: var(--fog); line-height: 1.55; margin-bottom: 22px; }
.ok-caja button { width: 100%; padding: 13px 16px; font-size: 1rem; margin-bottom: 10px; border-radius: 8px; }
.ok-ic { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(22,163,74,.15); animation: okPop .5s .1s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes okEntra { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes okPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ok-caja, .ok-ic { animation: none; } }
#pSec .cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#pSecTit { font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: var(--ls-display); margin: 0; }

/* Encabezado y pie de página: siempre en modo oscuro, sea cual sea el tema */
header, footer { --paper: #fff; --mist: #d0d6e0; --fog: #8a8f98; --ash: #62666d; --bg: #08090a; --carbon: #0f1011; --graphite: #23252a; --on-paper: #08090a; --line: #3a3d44; --ok: #27a644; color-scheme: dark; background: #08090a; color: #fff; }
header .logo-claro, footer .logo-claro { display: none !important; }
header .logo-oscuro, footer .logo-oscuro { display: block !important; }

/* Lista de cursos: categorías flotantes a la izquierda (escritorio) y filtros en ventana (móvil) */
.lista-cols { display: block; position: relative; }
.lateral { display: none; }
#lateralIn { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
@media (min-width: 1600px) {
  .lateral { display: block; position: absolute; top: 0; bottom: 0; right: calc(100% + 28px); width: 220px; }
}
.lateral h3, .lateral-movil h3 { font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--fog); margin: 0 0 8px 10px; }
.lateral h3:not(:first-child), .lateral-movil h3:not(:first-child) { margin-top: 22px; }
.lateral nav, .lateral-movil nav { display: flex; flex-direction: column; gap: 2px; }
.lateral nav a, .lateral-movil nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--mist); text-decoration: none; font-size: var(--fs-ui); }
.lateral nav a svg, .lateral-movil nav a svg { flex: none; color: var(--fog); }
.lateral nav a span, .lateral-movil nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lateral nav a small, .lateral-movil nav a small { color: var(--ash); font-size: 12px; }
.lateral nav a:hover, .lateral-movil nav a:hover { background: var(--carbon); color: var(--paper); }
.lateral nav a.on, .lateral-movil nav a.on { background: var(--carbon); color: var(--paper); font-weight: var(--fw-semibold); }
.lateral nav a.on svg, .lateral-movil nav a.on svg { color: var(--paper); }
.f-chk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; font-size: var(--fs-ui); color: var(--mist); }
.f-chk input { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--paper); flex: none; }
.lista-barra { display: block; margin-bottom: 14px; }
@media (min-width: 1600px) { .lista-barra { display: none; } }
@media (max-width: 800px) { .lista-barra { display: none; } }
.buy .giro, #ok .giro { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: giro .7s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0 8px; flex-wrap: wrap; }
.pager[hidden] { display: none; }
.pager a { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; color: var(--paper); text-decoration: none; font-size: var(--fs-ui); font-weight: var(--fw-medium); background: var(--bg); transition: background .15s, border-color .15s; }
.pager a:hover { background: var(--carbon); }
.pager a.on { background: #2563EB; border-color: #2563EB; color: #fff; }
.pager a[hidden] { display: none; }
.pager .pg-pts { color: var(--fog); padding: 0 4px; }
.lista-main #grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lista-main #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lista-main #grid { grid-template-columns: 1fr; } }
#dFiltros { width: 360px; max-height: 84vh; overflow-y: auto; }
#dFiltros h3:first-child { font-size: var(--fs-title-md); text-transform: none; letter-spacing: -0.02em; color: var(--paper); margin: 0 0 14px; }
#dFiltros #fVer { margin-top: 18px; }


/* Etiquetas de tarjeta: categoría con icono, sin mayúsculas; Nuevo / Top ventas semitransparentes */
.c-cat { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: var(--fw-regular); padding: 2px 8px; }
.c-cat svg { flex: none; }
.c-etq { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: var(--fw-semibold); padding: 4px 9px; border-radius: 5px; backdrop-filter: blur(4px); }
.c-etq.nuevo { background: rgba(0,0,0,.55); color: #fff; }
.c-etq.top { background: rgba(250,204,21,.28); color: #fde047; border: 1px solid rgba(250,204,21,.45); }
/* Títulos del panel lateral: normales, en negrita y del color del texto */
.lateral h3, .lateral-movil h3 { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 700; color: var(--paper); }
.c-cat { border-radius: 5px; }

/* Continuar curso: botón azul de dos tonos (la parte oscura es el progreso) / Completado */
.c-cont, .card .c-cont { background: linear-gradient(90deg, #1e3a8a var(--p, 0%), #2563eb var(--p, 0%)); color: #fff; }
.c-cont.hecho, .card .c-cont.hecho { background: #1e3a8a; }
.c-cont svg { fill: none; stroke: currentColor; stroke-width: 2; }
.c-cont svg polygon { fill: currentColor; }
/* Búsqueda móvil */
#bBuscar { display: none; }
#panelBusca { padding-top: 10px; }
#panelBusca[hidden] { display: none; }
#resBusca { margin-top: 8px; max-height: 60vh; overflow-y: auto; border-radius: 6px; }
.sug a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; color: var(--paper); text-decoration: none; }
.sug a:hover { background: var(--carbon); }
.sug img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; flex: none; background: var(--carbon); }
.sug span { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-ui); }
.sug b { font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug small { color: var(--fog); font-size: 12px; }
.sug p { color: var(--fog); font-size: var(--fs-ui); padding: 8px; margin: 0; }
@media (max-width: 700px) {
  .busca-caja:has(#buscador) { display: none; }
  #bBuscar { display: inline-flex; }
  .marca { margin-right: auto; }
  #bMis { display: inline-flex !important; padding: 9px 12px; }
  #bMis[hidden] { display: none !important; }
}
@media (min-width: 701px) { #panelBusca { display: none !important; } }

.c-etq.top { background: #dc2626; color: #fff; border: 0; }
/* Encabezado moderno: botones sin contorno, foto de perfil circular, sugerencias flotantes */
.busca-caja { position: relative; flex: 1 1 auto; min-width: 0; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--carbon); border: 1px solid var(--line); border-radius: 8px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.45); max-height: 70vh; overflow-y: auto; }
.sug[hidden] { display: none; }
#resBusca { margin-top: 0; max-height: 70vh; border-radius: 8px; }
#bBuscar, #user, #bMis { background: transparent; border: 0; color: var(--paper); border-radius: 999px; }
#bBuscar:hover, #user:hover, #bMis:hover { background: rgba(255,255,255,.1); }
#bMis { padding: 9px 14px; }
#user { padding: 3px; }
#user img { width: 36px; height: 36px; }
#user svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(255,255,255,.12); box-sizing: content-box; }
.sug a:hover { background: rgba(255,255,255,.08); }

.busca-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fog); pointer-events: none; z-index: 1; }
#buscador, #buscadorM { padding-left: 42px; }
/* ===== Landing ===== */
body:has(#vHome:not([hidden])) { overflow-x: clip; }
.hm { --gap: clamp(72px, 11vw, 148px); }
.hm h1, .hm h2, .hm h3 { font-weight: var(--fw-title); }
.hm .rv { transition: none; }
.js .hm .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .hm .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hm .rv { opacity: 1; transform: none; transition: none; } }
.hm p { color: var(--mist); line-height: 1.7; font-size: 1.0625rem; max-width: 60ch; }
.hm-hero { text-align: center; padding: clamp(40px, 8vw, 96px) 0 0; }
.hm-logo { width: 72px; height: 72px; margin: 0 auto 28px; display: block; animation: hmFlota 6s ease-in-out infinite; }
@keyframes hmFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hm-hero h1 { font-size: clamp(2.5rem, 7.4vw, 5.5rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; margin: 0 auto; text-wrap: balance; }
.hm-hero p { margin: 28px auto 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 62ch; }
.hm-acts { margin-top: 36px; }
.home-btn { display: inline-flex; align-items: center; gap: 10px; background: #2563eb; color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 5px; font-weight: var(--fw-medium); font-size: .9375rem; margin-top: 28px; transition: background .2s, gap .25s; }
.hm-acts .home-btn { margin-top: 0; }
.home-btn:hover { background: #1d4ed8; gap: 16px; }
.home-btn.lg { padding: 18px 34px; font-size: 1.0625rem; }
.hm-marq { margin-top: clamp(56px, 9vw, 110px); overflow: hidden; border-block: 1px solid var(--graphite); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hm-pista { display: flex; width: max-content; animation: hmMarq 38s linear infinite; }
.hm-pista span { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--fog); white-space: nowrap; }
.hm-pista svg { color: var(--paper); }
@keyframes hmMarq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hm-pista, .hm-logo { animation: none; } }
.hm-sec { padding: var(--gap) 0; border-top: 1px solid var(--graphite); content-visibility: auto; contain-intrinsic-size: auto 600px; }
.hm-hero + .hm-sec { border-top: 0; }
.hm-sec h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; max-width: 20ch; text-wrap: balance; }
.hm-sec > p, .hm-sec > div > p { margin-top: 20px; }
/* Buscar: campo grande */
.hm-buscar h2 { max-width: 16ch; }
.hm-campo { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding: 22px 8px 22px 4px; border-bottom: 2px solid var(--paper); color: var(--fog); text-decoration: none; font-size: clamp(1.125rem, 2.6vw, 1.75rem); letter-spacing: -0.02em; }
.hm-campo span { flex: 1; min-width: 0; }
.hm-campo b { flex: none; background: #2563eb; color: #fff; font-size: .9375rem; font-weight: var(--fw-medium); padding: 12px 22px; border-radius: 5px; letter-spacing: 0; transition: background .2s; }
.hm-campo:hover b { background: #1d4ed8; }
/* Temas: tipografía grande */
.hm-temas { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 44px 0 8px; }
.hm-temas li { font-size: clamp(1.6rem, 4.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.15; color: var(--ash); font-weight: var(--fw-title); transition: color .25s; cursor: default; }
.hm-temas li:hover { color: #2563eb; }
/* Precio: número gigante */
.hm-precio { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hm-num { font-size: clamp(7rem, 20vw, 15rem); line-height: .85; letter-spacing: -0.07em; font-weight: var(--fw-title); color: #2563eb; }
.hm-num em { font-style: normal; font-size: .5em; letter-spacing: -0.04em; }
.hm-num small { display: block; margin-top: 22px; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.4; color: var(--fog); font-weight: var(--fw-regular); }
.hm-num small s { color: #d92d20; }
/* Qué es: título fijo + texto */
.hm-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.hm-dos h2 { position: sticky; top: 110px; align-self: start; }
.hm-dos > div > p:first-child { margin-top: 0; font-size: 1.25rem; color: var(--paper); }
/* Bandas oscuras a sangre */
.hm-band, .hm-dark { position: relative; isolation: isolate; --paper: #fff; --mist: #d0d6e0; --fog: #8a8f98; --graphite: #23252a; color: #fff; border-top: 0; }
.hm-band::before, .hm-dark::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: #08090a; z-index: -1; }
.hm-band .hm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 88px); }
.hm-band h2 { max-width: 18ch; }
.hm-dark { --mist: #d0d6e0; --fog: #8a8f98; --ash: #62666d; --graphite: #23252a; }
.hm-fin { text-align: center; }
.hm-fin h2, .hm-fin p { margin-inline: auto; }
.hm-fin h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); max-width: 12ch; }
/* Nuevos cursos: filas */
.hm-filas { margin: 44px 0 8px; border-top: 1px solid var(--graphite); }
.hm-fila { display: flex; align-items: center; gap: 22px; padding: 18px 4px; border-bottom: 1px solid var(--graphite); color: var(--paper); text-decoration: none; transition: padding .3s, background .3s; }
.hm-fila:hover { padding-left: 16px; }
.hm-fila img, .hm-fila i { width: 128px; height: 72px; border-radius: 5px; object-fit: cover; flex: none; background: var(--carbon); }
.hm-ft { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-ft b { font-size: clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing: -0.025em; font-weight: var(--fw-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-ft small { color: var(--fog); font-size: .875rem; }
.hm-fp { font-size: 1.125rem; font-weight: var(--fw-medium); }
.hm-fila .fl, .hm-cat .fl { transition: transform .25s; flex: none; }
.hm-fila:hover .fl, .hm-cat:hover .fl { transform: translateX(6px); color: #2563eb; }
.hm-fila .fl { color: var(--fog); }
@media (max-width: 600px) { .hm-fila img, .hm-fila i { width: 88px; height: 50px; } .hm-fila .fl { display: none; } .hm-fila { gap: 14px; } }
/* Categorías reales */
.hm-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--graphite); }
.hm-cat { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 30px 0; border-bottom: 1px solid var(--graphite); color: var(--paper); text-decoration: none; content-visibility: auto; contain-intrinsic-size: auto 220px; }
.hm-cat svg:first-child { color: #2563eb; margin-bottom: 10px; }
.hm-cat h3 { font-size: 1.375rem; letter-spacing: -0.03em; }
.hm-cat p { margin: 0; font-size: .9375rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-cat small { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; color: var(--fog); font-size: .875rem; }
/* Pasos, trío, pares */
.hm-pasos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); counter-reset: paso; }
.hm-paso { counter-increment: paso; }
.hm-paso::before { content: "0" counter(paso); display: block; font-size: 1rem; color: #2563eb; font-weight: var(--fw-medium); margin-bottom: 22px; letter-spacing: 0; }
.hm-pasos h2, .hm-pares h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 16ch; }
.hm-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.hm-trio h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.hm-trio p { font-size: 1rem; }
.hm-pares { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.hm-centro { text-align: center; }
.hm-centro h2, .hm-centro p { margin-inline: auto; }
.hm-manifiesto { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hm-manifiesto h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 12ch; }
.hm-manifiesto > div > p:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .hm-precio, .hm-dos, .hm-pasos, .hm-pares, .hm-manifiesto, .hm-band .hm-cols { grid-template-columns: 1fr; }
  .hm-trio { grid-template-columns: 1fr; }
  .hm-cats { grid-template-columns: 1fr 1fr; }
  .hm-dos h2 { position: static; }
  .hm-campo b { display: none; }
}
@media (max-width: 560px) { .hm-cats { grid-template-columns: 1fr; } .hm-cat { padding-right: 0; } }
.hm-band { content-visibility: visible; }
body:has(#vHome:not([hidden])) footer { margin-top: 0; } body:has(#vHome:not([hidden])) main { padding-bottom: 0; }

/* ===== Landing v3 ===== */
body:has(#vHome:not([hidden])) main { padding-top: 0; }
.hm-dark { --paper: #fff; color: #fff; border-top: 0; }
.hm-hero { padding-bottom: 0; }
.hm-hero.hm-dark { padding-top: clamp(56px, 9vw, 112px); }
.hm-hero .hm-marq { border-color: rgba(255,255,255,.12); margin-bottom: 0; padding-bottom: 26px; }
.hm-hero + .hm-sec { border-top: 0; }
.hm-hero h1 { color: #fff; }
.hm-logo { filter: drop-shadow(0 0 0 transparent); }
.hm-pista svg { color: #fff; }
.hm-eyebrow { display: block; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #2563eb; font-weight: var(--fw-medium); margin-bottom: 18px; }
.hm-dark .hm-eyebrow { color: #6b93f5; }
/* Precio: cifras grandes */
.hm-num small { display: flex; align-items: baseline; gap: 20px; margin-top: 28px; letter-spacing: -0.04em; }
.hm-num small s { font-size: clamp(1.8rem, 4vw, 2.75rem); color: #d92d20; font-weight: var(--fw-medium); }
.hm-num small strong { font-size: clamp(2.6rem, 6vw, 4.25rem); color: var(--paper); font-weight: var(--fw-title); }
/* Categorías: sin descripción, más aire */
.hm-cat h3 { margin-bottom: 0; }
/* Comprar: línea de pasos */
.hm-comprar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hm-linea { list-style: none; position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 44px; counter-reset: p; }
.hm-linea::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 1px; background: var(--graphite); }
.hm-linea li { position: relative; counter-increment: p; display: flex; flex-direction: column; }
.hm-linea li::before { content: counter(p); position: absolute; left: -44px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #2563eb; color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: var(--fw-medium); }
.hm-linea b { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.04em; font-weight: var(--fw-title); line-height: 1.1; }
.hm-linea span { color: var(--fog); font-size: 1.0625rem; margin-top: 4px; }
/* Pagos: logos grandes */
.hm-pagos { text-align: center; }
.hm-pagos h2 { margin-inline: auto; max-width: 16ch; }
.hm-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 52px 0 44px; }
.hm-logos img { width: 112px; height: 74px; object-fit: contain; background: #fff; border: 1px solid var(--graphite); border-radius: 5px; padding: 10px; }
.hm-pagos .hm-cols, .hm-garantia .hm-cols, .hm-centro .hm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 88px); text-align: left; max-width: 940px; margin-inline: auto; }
.hm-pagos .hm-cols p, .hm-garantia .hm-cols p, .hm-centro .hm-cols p { margin-top: 0; }
/* Soporte */
.hm-soporte { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hm-ic { color: #2563eb; }
.hm-ic svg { width: clamp(140px, 22vw, 280px); height: auto; display: block; animation: hmGira 40s linear infinite; }
@keyframes hmGira { to { transform: rotate(360deg); } }
/* Garantía */
.hm-garantia { text-align: center; }
.hm-garantia .hm-ic svg { width: clamp(96px, 12vw, 148px); margin: 0 auto 28px; animation: none; }
.hm-garantia h2 { margin: 0 auto 44px; max-width: 16ch; }
/* Club */
.hm-club { overflow: visible; }
.hm-club > * { position: relative; }
.hm-marca { position: absolute !important; right: 0; top: 50%; transform: translateY(-50%); width: clamp(220px, 34vw, 460px); height: auto; opacity: .07; pointer-events: none; }
.hm-club h2 { font-size: clamp(2.6rem, 8vw, 6.5rem); letter-spacing: -0.05em; max-width: none; }
.hm-club p { max-width: 52ch; }
/* No encuentras */
.hm-centro h2 { margin-bottom: 8px; }
.hm-grande { max-width: 760px; margin: 40px auto 52px; justify-content: center; text-align: left; border-bottom-width: 1px; font-size: clamp(1.6rem, 4.6vw, 3.2rem); color: var(--paper); font-weight: var(--fw-title); letter-spacing: -0.04em; }
.hm-grande span { flex: none; transition: opacity .3s; }
.hm-grande svg { color: #2563eb; width: 1.1em; height: 1.1em; flex: none; }
/* Manifiesto */
.hm-manifiesto h2 { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1; max-width: 10ch; }
.hm-manifiesto h2 em { font-style: normal; color: #2563eb; }
/* Blog y FAQ */
.hm-blog, .hm-faq { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; overflow: hidden; }
.hm-gigante { font-size: clamp(9rem, 26vw, 22rem); line-height: .8; font-weight: var(--fw-title); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--paper); opacity: .9; user-select: none; }
.hm-blog h2, .hm-faq h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.hm-faq { direction: rtl; }
.hm-faq > * { direction: ltr; }
.hm-faq .hm-gigante { text-align: right; -webkit-text-stroke-color: #2563eb; }
.hm-fin { padding: clamp(96px, 14vw, 180px) 0; }
@media (max-width: 860px) {
  .hm-comprar, .hm-soporte, .hm-blog, .hm-faq, .hm-pagos .hm-cols, .hm-garantia .hm-cols, .hm-centro .hm-cols { grid-template-columns: 1fr; }
  .hm-faq { direction: ltr; }
  .hm-gigante { font-size: 8rem; }
  .hm-soporte .hm-ic svg { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .hm-ic svg { animation: none; } }
.hm-dark { content-visibility: visible; }
.hm-gigante { font-size: clamp(6rem, 17vw, 13rem); letter-spacing: -0.03em; }
.hm-blog .hm-gigante { justify-self: start; }
@media (max-width: 860px) { .hm-gigante { font-size: 7rem; } }
.hm-gigante { color: var(--graphite); -webkit-text-stroke: 0; opacity: 1; }
.hm-faq .hm-gigante { color: rgba(37,99,235,.14); -webkit-text-stroke: 0; }

/* ===== Landing v4: sin degradado, hero con móvil, animaciones ===== */
.hm-dark::before { background: #08090a; }
.hm-hero.hm-dark { padding-top: clamp(40px, 6vw, 80px); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hm-hero-txt { text-align: left; }
.hm-hero-txt .hm-logo { margin: 0 0 26px; }
.hm-hero h1 { margin: 0; max-width: 13ch; font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.hm-hero p { margin: 26px 0 0; max-width: 52ch; }
.hm-hero .hm-marq { margin-top: clamp(48px, 7vw, 88px); }
.hm-tel { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hm-phone { position: relative; width: min(290px, 70vw); aspect-ratio: 9 / 19; border-radius: 42px; padding: 9px; background: #17181b; border: 1px solid #2d3036; transform: translateY(var(--py, 0px)); animation: hmTel 7s ease-in-out infinite; }
@keyframes hmTel { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
.hm-isla { position: absolute; z-index: 3; top: 17px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 99px; background: #000; }
.hm-pant { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0b0c0e; }
.hm-sl { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: scale(1.06); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1); }
.hm-sl.on { opacity: 1; transform: none; }
.hm-sl img { width: 100%; height: 46%; object-fit: cover; }
.hm-slt { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; color: #fff; }
.hm-slt small { color: #6b93f5; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hm-slt b { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.03em; font-weight: var(--fw-title); }
.hm-slt span { color: #8a8f98; font-size: .8125rem; }
.hm-slp { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.hm-slp s { color: #f0625a; font-size: .95rem; }
.hm-slp strong { font-size: 1.7rem; letter-spacing: -0.04em; }
.hm-slt u { text-decoration: none; text-align: center; background: #2563eb; padding: 12px; border-radius: 5px; font-size: .875rem; font-weight: var(--fw-medium); }
.hm-dots { display: flex; gap: 8px; }
.hm-dots i { width: 6px; height: 6px; border-radius: 99px; background: #3a3d44; transition: width .4s, background .4s; }
.hm-dots i.on { width: 22px; background: #fff; }
@media (max-width: 860px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-tel { margin-top: 12px; }
}
/* Aparición premium */
.js .hm .rv { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms); }
.js .hm .rv.in { opacity: 1; transform: none; filter: none; }
.js .hm h1.rv, .js .hm h2.rv { transform: none; filter: none; transition: opacity .4s ease; }
.hm .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.hm .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.15s cubic-bezier(.16,1,.3,1) calc(var(--i) * 55ms + 80ms); }
.hm h1.in .w > span, .hm h2.in .w > span { transform: none; }
.hm-sec { border-top: 1px solid var(--graphite); }
.hm-gigante, .hm-marca { will-change: transform; }
.hm-gigante { transform: translateY(var(--py, 0px)); }
.hm-marca { transform: translateY(calc(-50% + var(--py, 0px))); }
.hm-linea li::before { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hm-linea li:hover::before { transform: scale(1.25); }
.hm-temas li { transition: color .3s, transform .5s cubic-bezier(.16,1,.3,1); }
.hm-temas li:hover { transform: translateX(8px); }
.hm-cat { transition: background .4s; }
.hm-cat h3 { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hm-cat:hover h3 { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .hm-phone { animation: none; } .hm .w > span { transform: none !important; transition: none; } .hm-sl { transition: none; } }
@media (max-width: 700px) { .marca span { display: inline; font-size: 19px; } .marca { gap: 8px; } }
.hm-slt { text-align: left; align-items: flex-start; } .hm-slt u { align-self: stretch; }
@media (max-width: 700px) { .top { gap: 2px; } .marca span { font-size: 17px; } #bMis { padding: 9px 8px !important; font-size: 13px; } .icono { padding: 6px; } #user img { width: 32px; height: 32px; } }

/* Hero centrado */
.hm-hero-txt { text-align: center; }
.hm-hero .hm-logo { margin: 0 auto 26px; }
.hm-hero h1 { margin: 0 auto; max-width: 15ch; font-size: clamp(2.5rem, 7.4vw, 5.5rem); }
.hm-hero p { margin: 28px auto 0; max-width: 62ch; }
.hm-hero.hm-dark { padding-top: clamp(56px, 9vw, 112px); }

/* ===== Preguntas frecuentes ===== */
.fq { border-bottom: 1px solid var(--graphite); }
.fq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.025em; font-weight: var(--fw-title); color: var(--paper); transition: color .25s; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary:hover { color: #2563eb; }
.fq summary i { position: relative; flex: none; width: 18px; height: 18px; }
.fq summary i::before, .fq summary i::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.fq summary i::after { transform: rotate(90deg); }
.fq[open] summary i::after { transform: rotate(0); }
.fq[open] summary { color: #2563eb; }
.fq-r { padding: 0 40px 26px 0; animation: fqAbre .6s cubic-bezier(.16,1,.3,1); }
.fq-r p { color: var(--mist); line-height: 1.75; font-size: 1.0625rem; max-width: 64ch; }
.fq-r p + p { margin-top: 12px; }
@keyframes fqAbre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.hm-faq { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; direction: ltr; }
.hm-faq .fq:first-child { border-top: 1px solid var(--graphite); }
.hm-faqs .fq summary { padding: 20px 0; font-size: 1.125rem; }
.fp { max-width: 1040px; margin: 0 auto; }
.fp-cab { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.fp-cab h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: -0.045em; line-height: 1; font-weight: var(--fw-title); }
.fp-cab p { color: var(--mist); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 56ch; margin: 24px auto 0; }
.fp-cuerpo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.fp-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--graphite); }
.fp-nav a { padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--fog); text-decoration: none; font-size: .9375rem; transition: color .25s, border-color .25s; }
.fp-nav a:hover { color: var(--paper); border-left-color: #2563eb; }
.fp-grupos section { scroll-margin-top: 100px; margin-bottom: 56px; }
.fp-grupos h2 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #2563eb; font-weight: var(--fw-medium); margin-bottom: 4px; }
.fp-grupos .fq:first-of-type { border-top: 1px solid var(--graphite); }
.fp-fin { text-align: center; padding: clamp(56px, 9vw, 110px) 0 clamp(24px, 4vw, 48px); border-top: 1px solid var(--graphite); margin-top: 24px; }
.fp-fin h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); letter-spacing: -0.035em; }
.fp-fin p { color: var(--mist); margin: 16px auto 0; max-width: 48ch; line-height: 1.7; }
.fp-btns { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.fp-btns .home-btn { margin-top: 0; }
.fp-enlace { color: var(--paper); font-weight: var(--fw-medium); text-underline-offset: 4px; }
@media (max-width: 860px) { .fp-cuerpo { grid-template-columns: 1fr; } .fp-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; border: 0; } .fp-nav a { border: 1px solid var(--graphite); border-radius: 99px; padding: 8px 14px; margin: 0; } .hm-faq { grid-template-columns: 1fr; } }

/* ===== Cookies ===== */
#cookies { position: fixed; left: 16px; bottom: 16px; z-index: 30; width: min(340px, calc(100vw - 32px)); background: #08090a; color: #fff; border: 1px solid #23252a; border-radius: 5px; padding: 16px; display: flex; flex-direction: column; gap: 14px; animation: ckEntra .6s cubic-bezier(.16,1,.3,1); }
@keyframes ckEntra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#cookies p { color: #d0d6e0; font-size: 13px; line-height: 1.5; margin: 0; }
#cookies a { color: #fff; text-underline-offset: 3px; }
#cookies > div { display: flex; gap: 8px; }
#cookies button { flex: 1; padding: 9px 12px; font-size: 13px; border-radius: 5px; }
#cookies button.sec { background: transparent; color: #fff; border: 1px solid #3a3d44; }
#cookies button:not(.sec) { background: #fff; color: #08090a; border: 1px solid #fff; }
@media (max-width: 700px) { #cookies { bottom: 76px; } }

/* ===== Blog ===== */
.bl { max-width: 1040px; margin: 0 auto; }
.bl-cab { padding: clamp(48px, 9vw, 110px) 0 clamp(32px, 5vw, 64px); }
.bl-cab h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); letter-spacing: -0.045em; line-height: 1.02; font-weight: var(--fw-title); max-width: 14ch; }
.bl-cab p { color: var(--mist); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 58ch; margin-top: 22px; }
.bl-lista { border-top: 1px solid var(--graphite); }
.bl-item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--graphite); color: var(--paper); text-decoration: none; }
.bl-item img, .bl-item i { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 5px; background: var(--carbon); display: block; }
.bl-item time, .bp time { color: var(--fog); font-size: .875rem; }
.bl-item h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; margin: 8px 0 10px; transition: color .25s; }
.bl-item:hover h2 { color: #2563eb; }
.bl-item p { color: var(--mist); line-height: 1.6; max-width: 60ch; }
.bl-item span { display: inline-block; margin-top: 14px; color: #2563eb; font-weight: var(--fw-medium); font-size: .9375rem; }
.bl-vacio { color: var(--fog); padding: 40px 0; }
@media (max-width: 700px) { .bl-item { grid-template-columns: 1fr; gap: 16px; } }
.bp { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
.bp-volver { display: inline-block; margin: 8px 0 32px; color: var(--fog); text-decoration: none; font-size: .9375rem; }
.bp-volver:hover { color: var(--paper); }
.bp h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: var(--fw-title); margin: 12px 0 0; }
.bp-desc { font-size: 1.25rem; line-height: 1.55; color: var(--mist); margin-top: 20px; }
.bp-img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 5px; margin: 36px 0 8px; display: block; }
.bp-cuerpo { margin-top: 36px; font-size: 1.125rem; line-height: 1.8; }
.bp-cuerpo > * + * { margin-top: 1.2em; }
.bp-cuerpo h2 { font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1.2; margin-top: 2em; font-weight: var(--fw-title); }
.bp-cuerpo h3 { font-size: 1.4rem; letter-spacing: -0.025em; margin-top: 1.8em; font-weight: var(--fw-title); }
.bp-cuerpo h4 { font-size: 1.15rem; margin-top: 1.6em; font-weight: var(--fw-title); }
.bp-cuerpo p, .bp-cuerpo li { color: var(--mist); }
.bp-cuerpo a { color: #2563eb; text-underline-offset: 3px; }
.bp-cuerpo ul, .bp-cuerpo ol { padding-left: 1.3em; }
.bp-cuerpo li + li { margin-top: .4em; }
.bp-cuerpo img { max-width: 100%; height: auto; border-radius: 5px; display: block; }
.bp-cuerpo blockquote { border-left: 3px solid #2563eb; padding-left: 20px; color: var(--paper); font-size: 1.25rem; }
.bp-cuerpo code { background: var(--carbon); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.bp-cuerpo hr { border: 0; border-top: 1px solid var(--graphite); }
.bp-fin { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--graphite); }
.bp-fin h2 { font-size: 1.9rem; letter-spacing: -0.03em; }
.bp-fin p { color: var(--mist); margin: 10px 0 0; }
.bp-fin .home-btn { margin-top: 20px; }



.ruta-logo { display: inline-flex; align-items: center; }
.ruta-logo img { width: 20px; height: 20px; display: block; }

/* ===== Formulario de acceso con iconos ===== */
#form { display: flex; flex-direction: column; gap: 12px; }
.campo { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); transition: border-color .2s; cursor: text; }
.campo[hidden] { display: none; }
.campo:focus-within { border-color: var(--paper); }
.campo > svg { flex: none; color: var(--fog); transition: color .2s; }
.campo:focus-within > svg { color: var(--paper); }
.campo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 0; font-size: 1rem; color: var(--paper); }
.ojo { flex: none; background: transparent; border: 0; color: var(--fog); padding: 6px; display: flex; border-radius: 6px; cursor: pointer; }
.ojo:hover, .ojo.on { color: var(--paper); }
#passAyuda { font-size: var(--fs-caption); margin: -4px 2px 0; }
#ts { display: flex; justify-content: center; min-height: 0; }
#form #msg { margin: 0; }
#form #ok { padding: 13px; }
.campo .ojo { background: transparent !important; color: var(--fog) !important; border: 0 !important; padding: 6px !important; width: auto; margin: 0; box-shadow: none; }
.campo .ojo:hover, .campo .ojo.on { color: var(--paper) !important; }
.campo input { font-size: .9375rem; padding: 12px 0; height: auto; }
.campo input::placeholder { color: var(--fog); }

.c-prox, .card:hover .c-prox, .card .c-prox:hover { background: var(--carbon); color: var(--fog); border: 1px solid var(--graphite); cursor: default; }

/* ===== Página 404 ===== */
.er { max-width: 900px; margin: 0 auto; padding: clamp(40px, 9vw, 120px) 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.er-num { font-size: clamp(7rem, 22vw, 15rem); line-height: .8; font-weight: var(--fw-title); letter-spacing: -0.06em; color: var(--graphite); user-select: none; }
.er h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: var(--fw-title); }
.er p { color: var(--mist); line-height: 1.7; margin-top: 16px; max-width: 46ch; font-size: 1.0625rem; }
.er-btns { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.er-btns .home-btn { margin-top: 0; }
.er-link { color: var(--paper); font-weight: var(--fw-medium); text-underline-offset: 4px; }
@media (max-width: 700px) { .er { grid-template-columns: 1fr; text-align: left; } }

/* ===== Página 404 ===== */
.er { max-width: 900px; margin: 0 auto; padding: clamp(40px, 9vw, 120px) 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.er-num { font-size: clamp(7rem, 22vw, 15rem); line-height: .8; font-weight: var(--fw-title); letter-spacing: -0.06em; color: var(--graphite); user-select: none; }
.er h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: var(--fw-title); }
.er p { color: var(--mist); line-height: 1.7; margin-top: 16px; max-width: 46ch; font-size: 1.0625rem; }
.er-btns { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.er-btns .home-btn { margin-top: 0; }
.er-link { color: var(--paper); font-weight: var(--fw-medium); text-underline-offset: 4px; }
@media (max-width: 700px) { .er { grid-template-columns: 1fr; } }

/* ===== Acceso con correo: diseño ===== */
#dlg { width: 400px; padding: 32px 28px 24px; border-radius: 12px; }
#dlg .dlg-logo { width: 48px; height: 48px; margin-bottom: 16px; }
#dlg #tit { text-align: center; font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 6px; }
#dlg #sub { text-align: center; color: var(--fog); font-size: .9375rem; line-height: 1.5; margin-bottom: 22px; }
.tabs-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--carbon); border-radius: 8px; margin-bottom: 6px; }
.tabs-acc button { background: transparent !important; color: var(--fog) !important; border: 0 !important; padding: 10px 8px !important; border-radius: 6px !important; font-size: .875rem; font-weight: var(--fw-medium); transition: background .25s, color .25s; }
.tabs-acc button.on { background: var(--bg) !important; color: var(--paper) !important; box-shadow: 0 0 0 1px var(--graphite); }
#opciones { display: flex; flex-direction: column; gap: 12px; }
#opciones .prov { padding: 13px 16px; border-radius: 8px; font-size: .9375rem; font-weight: var(--fw-medium); }
#form #ok { padding: 14px; border-radius: 8px; font-size: .9375rem; font-weight: var(--fw-medium); background: #2563eb; color: #fff; border: 0; transition: background .2s; }
#form #ok:hover { background: #1d4ed8; }
#form #ok:disabled { opacity: .6; }
.acc-legal { font-size: var(--fs-caption); color: var(--fog); text-align: center; line-height: 1.5; margin: 2px 0 0; }
.acc-legal a { color: var(--mist); text-underline-offset: 3px; }
#dlg #bAtras { margin-top: 2px; color: var(--fog); font-size: var(--fs-secondary); }
@media (max-width: 480px) { #dlg { padding: 26px 20px 20px; } }

/* Página de afiliados: negra, estilo premium */
body:has(#vAfil:not([hidden])) main { padding-top: 0; padding-bottom: 0; }
body:has(#vAfil:not([hidden])) #ruta { display: none; }
body:has(#vAfil:not([hidden])) { overflow-x: clip; }
.af { position: relative; isolation: isolate; color: #fff; --paper: #fff; --mist: #d0d6e0; --fog: #8a8f98; --graphite: #23252a; padding-bottom: clamp(56px, 8vw, 96px); }
.af::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); z-index: -1; background: radial-gradient(60% 420px at 50% 0, rgba(37,99,235,.16), transparent 70%), #08090a; }
.af-hero { text-align: center; padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 56px); max-width: 860px; margin: 0 auto; }
.af-eyebrow { display: block; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #6b93f5; font-weight: var(--fw-medium); margin-bottom: 18px; }
.af h1 { color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.045em; margin: 0 auto; max-width: 16ch; text-wrap: balance; }
.af h1 em { font-style: normal; color: #6b93f5; }
.af-hero p { color: var(--mist); font-size: clamp(1.0625rem, 1.6vw, 1.2rem); line-height: 1.6; margin: 26px auto 0; max-width: 56ch; }
.af-acc { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.af-cta { background: #2563EB; color: #fff; border: 0; border-radius: 5px; padding: 14px 28px; font-size: 1rem; font-weight: var(--fw-semibold); cursor: pointer; transition: background .2s, transform .2s; }
.af-cta:hover { background: #1d4ed8; transform: translateY(-2px); }
.af-cta:disabled { opacity: .7; cursor: default; transform: none; }
.af-sec { display: inline-flex; align-items: center; padding: 14px 28px; border: 1px solid #3a3d44; border-radius: 5px; color: #fff; text-decoration: none; font-weight: var(--fw-medium); transition: background .2s; }
.af-sec:hover { background: #15171a; }
.af-cifras { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--graphite); border-radius: 12px; background: #0d0e10; margin: 0 auto clamp(56px, 8vw, 104px); max-width: 960px; }
.af-cifras div { padding: 26px 16px; text-align: center; border-left: 1px solid var(--graphite); }
.af-cifras div:first-child { border-left: 0; }
.af-cifras b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; color: #fff; }
.af-cifras span { color: var(--fog); font-size: .875rem; }
.af-sec-t { text-align: center; margin: 0 auto 36px; }
.af-sec-t h2 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.1; margin: 0; text-wrap: balance; }
.af-pasos, .af-ventajas { display: grid; gap: 16px; max-width: 1000px; margin: 0 auto clamp(56px, 8vw, 104px); }
.af-pasos { grid-template-columns: repeat(3, 1fr); }
.af-ventajas { grid-template-columns: repeat(2, 1fr); }
.af-pasos > div, .af-ventajas > div { position: relative; background: #0d0e10; border: 1px solid var(--graphite); border-radius: 12px; padding: 26px; transition: border-color .25s, transform .25s; }
.af-pasos > div:hover, .af-ventajas > div:hover { border-color: #2f5fd0; transform: translateY(-3px); }
.af-pasos svg { color: #6b93f5; margin-bottom: 16px; }
.af-pasos i { position: absolute; top: 22px; right: 24px; font-style: normal; font-size: .8125rem; color: #62666d; letter-spacing: .08em; }
.af h3 { color: #fff; font-size: 1.125rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.af-pasos p, .af-ventajas p { color: var(--fog); font-size: .9375rem; line-height: 1.6; margin: 0; }
.af-faq { max-width: 720px; margin: 0 auto clamp(56px, 8vw, 104px); }
.af-faq details { border-bottom: 1px solid var(--graphite); }
.af-faq details:first-child { border-top: 1px solid var(--graphite); }
.af-faq summary { padding: 20px 2px; font-weight: var(--fw-medium); color: #fff; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: "+"; color: var(--fog); font-size: 1.4rem; line-height: 1; }
.af-faq details[open] summary::after { content: "–"; color: #fff; }
.af-faq p { color: var(--fog); padding: 0 2px 20px; margin: 0; line-height: 1.65; font-size: .9375rem; }
.af-final { text-align: center; border: 1px solid var(--graphite); border-radius: 16px; padding: clamp(40px, 7vw, 72px) 20px; max-width: 960px; margin: 0 auto; background: radial-gradient(70% 220px at 50% 0, rgba(37,99,235,.18), transparent 75%), #0d0e10; }
.af-final h2 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.035em; margin: 0; }
.af-final p { color: var(--mist); margin: 14px 0 28px; }
.js .af-r { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms); }
.js .af-r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .af-r { opacity: 1; transform: none; transition: none; } }
@media (max-width: 800px) { .af-pasos, .af-ventajas { grid-template-columns: 1fr; } .af-cifras { grid-template-columns: repeat(2, 1fr); } .af-cifras div:nth-child(3) { border-left: 0; } .af-cifras div:nth-child(n+3) { border-top: 1px solid var(--graphite); } }
body:has(#vAfil:not([hidden])) footer { margin-top: 0; }

.d-correo { width: min(680px, 96vw); height: 90vh; padding: 0; border: 0; border-radius: 12px; overflow: hidden; }
.d-correo[open] { display: flex; flex-direction: column; }
.dc-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
#fCorreo { flex: 1; width: 100%; border: 0; background: #f3f4f6; }
.dc-cab button { width: auto; }
