/* ============================================================
   Membresia (E1) — pagina publica. Paleta del sitio (azul #003450,
   cian #0FEFD9) y el lenguaje del modelo de negocio aprobado.
   Prefijo mb- para no chocar con el layout publico.
   ============================================================ */
.mb { font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; color: #003450; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.mb *, .mb *::before, .mb *::after { box-sizing: border-box; }
/* Reinicio de margenes con :where() (23-09-2026): ".mb p" y ".mb ul" (0,1,1) pesaban mas que las clases de bloque (0,1,0) y
   anulaban margenes escritos abajo (mb-plan__benef, mb-hero__sub, mb-lead, mb-cat__chips, mb-curso__doc...).
   Con :where() el reinicio pesa (0,1,0) y, al ir antes, cualquier regla de bloque le gana. */
.mb :where(h1, h2, h3, p, ul) { margin: 0; }
.mb :where(ul) { padding: 0; list-style: none; }
.mb-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.mb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #04756a; margin-bottom: 12px; }
.mb-eyebrow--claro { color: #0FEFD9; }
.mb h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.026em; line-height: 1.15; }
.mb h2 em, .mb h1 em { font-style: normal; color: #0FEFD9; }
.mb-lead { margin-top: 12px; font-size: 16px; color: #4a7089; max-width: 68ch; }
.mb-lead--claro { color: rgba(255,255,255,.78); }

/* ---------- Hero ---------- */
.mb-hero {
  position: relative; overflow: hidden; padding: 72px 0 60px; color: #fff;
  /* Curvas de nivel (contornos.svg, 20-09-2026): la textura del "terreno" del eslogan, apenas insinuada. */
  background: url(../../images/AulaSuscripcion/contornos.svg) center / cover no-repeat,
              radial-gradient(700px 320px at 85% -20%, rgba(15,239,217,.18), transparent 62%),
              linear-gradient(140deg, #00121d 0%, #003450 55%, #165a7f 100%);
}
.mb-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 14ch; }
.mb-hero__sub { margin-top: 16px; font-size: 17px; color: rgba(255,255,255,.8); max-width: 60ch; }
.mb-hero__acc { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Eslogan "Activa tu perfil todoterreno" (20-09-2026, Suscripciones/PLAN_ESLOGAN_TODOTERRENO.md) ----------
   El h1 del hero es la marca en blanco, centrada; la bajada y los botones la siguen. */
.mb-hero .mb-wrap { text-align: center; }
.mb-hero h1.mb-marca { max-width: 760px; margin: 6px auto 0; }
.mb-marca picture { display: block; }
.mb-marca img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 36px rgba(0,18,29,.45)); }
.mb-hero .mb-hero__sub { margin-left: auto; margin-right: auto; }
.mb-hero .mb-hero__acc { justify-content: center; }

/* ---------- Botones ---------- */
.mb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 0;
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background-color .16s, transform .16s;
}
.mb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.mb-btn--cian { background: linear-gradient(90deg, #0FEFD9, #73f4e5); color: #001f30; }
.mb-btn--azul { background: #003450; color: #fff; }
.mb-btn--azul:hover { background: #0d4972; color: #fff; }
.mb-btn--claro { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.mb-btn--claro:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Secciones ---------- */
.mb-sec { padding: 56px 0; background: #fff; }
.mb-sec--alt { background: #f0fdfa; }

/* ---------- Planes ---------- */
.mb-planes { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
.mb-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 24px; border: 1.5px solid #dbe7ee; border-radius: 18px; background: #fff;
}
.mb-plan--rec { border: 2px solid #04756a; box-shadow: 0 18px 36px -18px rgba(0,52,80,.28); }
.mb-plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 100px; background: #0FEFD9; color: #003450;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.mb-plan__tier { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b0; margin-bottom: 8px; }
.mb-plan__name { font-size: 20px; font-weight: 800; letter-spacing: -.018em; }
.mb-plan__price { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mb-plan__price b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mb-plan__price s { font-size: 14px; color: #94a3b0; }
.mb-plan__per { font-size: 12.5px; color: #94a3b0; margin-top: 2px; }
.mb-plan .mb-btn { margin-top: 18px; width: 100%; }

/* 22-09-2026 (diapos de direccion): los 7 beneficios van dentro de cada tarjeta, debajo del boton. */
/* 25-09-2026 (pedido del dueno): se quito la franja amarilla de vigencia; los beneficios van directo bajo el boton. */
.mb-plan__benef { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6eef3; display: grid; gap: 9px; }
.mb-plan__benef li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; font-weight: 600; color: #1b2a35; line-height: 1.4; }
.mb-plan__benef li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: #d9fcf5; color: #04756a; font-size: 12px; font-weight: 800;
}

/* Medios de pago (22-09-2026): tarjetas y Yape, los que acepta el checkout de Culqi. */
.mb-pago {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px;
  padding: 14px 20px; border-radius: 12px; background: #003450; color: #fff;
}
.mb-pago__txt { font-size: 13.5px; font-weight: 600; }
.mb-pago__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.mb-pago__logos li { display: inline-flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 6px; background: #fff; }
.mb-pago__logos img { display: block; height: 22px; width: auto; }

.mb-aviso { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: #f0fdfa; border: 1px solid #aef4e9; color: #003450; font-size: 14px; }
.mb-aviso b { font-weight: 700; }
.mb-aviso a { color: #04756a; font-weight: 700; text-decoration: underline; }

/* ---------- Biblioteca: "Mas de N cursos en M especialidades" (22-09-2026, referencia Crehana) ---------- */
.mb-cat {
  padding: 56px 0; color: #fff;
  background: url(../../images/AulaSuscripcion/contornos.svg) center / cover no-repeat, linear-gradient(140deg, #00121d 0%, #003450 60%, #0d4972 100%);
}
.mb-cat .mb-wrap { text-align: center; }
.mb-cat h2 { color: #fff; }
/* Chips en rejilla de columnas iguales (22-09-2026): en fila centrada quedaba un chip huerfano en la segunda linea.
   23-09-2026 (pedido del dueno): mas aire entre el titulo y los chips; los chips son botones que filtran las tarjetas de
   abajo (is-activo = filtro aplicado, con el color de la especialidad). */
.mb-cat__chips { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; gap: 10px; }
.mb-cat__chip {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 12px;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; color: #fff; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  transition: background .15s, border-color .15s, transform .15s;
}
.mb-cat__chip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.mb-cat__chip:focus-visible { outline: 2px solid #0FEFD9; outline-offset: 2px; }
.mb-cat__chip.is-activo { background: rgba(15,239,217,.16); border-color: var(--c, #0FEFD9); box-shadow: inset 0 0 0 1px var(--c, #0FEFD9); }
.mb-cat__chip svg { width: 18px; height: 18px; flex: none; color: var(--c, #0FEFD9); }
.mb-cat__vacio { grid-column: 1 / -1; margin: 8px 0; padding: 26px 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.25); text-align: center; font-size: 14.5px; color: rgba(255,255,255,.8); }
.mb-cat__vacio[hidden] { display: none; }
.mb-cat__vacio b { color: #fff; }
.mb-cat__vacio a { display: inline-block; margin-top: 6px; color: #0FEFD9; font-weight: 700; text-decoration: underline; }
.mb-cat__mas {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; color: #0FEFD9; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.mb-cat__mas svg { width: 16px; height: 16px; transition: transform .2s; }
.mb-cat__mas[aria-expanded="true"] svg { transform: rotate(180deg); }
.mb-cat__tabs { margin-top: 34px; display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.14); }
.mb-cat__tab {
  padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent;
  color: rgba(255,255,255,.65); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.mb-cat__tab.is-activo { color: #fff; border-bottom-color: #0FEFD9; }
.mb-cat__panel { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 20px; text-align: left; }
.mb-cat__panel[hidden] { display: none; }
.mb-curso {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; color: #003450;
  border: 1px solid rgba(255,255,255,.1); transition: transform .2s, box-shadow .2s;
}
.mb-curso[hidden] { display: none; }   /* filtro por especialidad (23-09-2026): display:flex le ganaria al hidden */
.mb-curso:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -12px rgba(0,0,0,.45); }
.mb-curso__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #0d2a3a; }
.mb-curso__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Año y estrellas (23-09-2026, pedido del dueno): mismos distintivos que la tarjeta del aula (.tar__ed / .tar__estrella). */
.mb-curso__anio {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 8px; border-radius: 7px;
  background: rgba(0,18,29,.72); backdrop-filter: blur(3px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.mb-curso__estrella {
  position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 7px;
  background: rgba(0,18,29,.72); backdrop-filter: blur(3px); color: #f5c451; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.mb-curso__estrella svg { width: 12px; height: 12px; }
.mb-curso__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.mb-curso h3 { font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; color: #003450; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-curso h3 a { color: inherit; text-decoration: none; }
.mb-curso h3 a:hover { color: #04756a; text-decoration: none; }
/* Docentes, uno por renglon (pedido del dueno 22-09-2026). */
.mb-curso__doc { display: grid; gap: 3px; margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 600; color: #6b8497; text-transform: uppercase; line-height: 1.35; }

/* ---------- FAQ ---------- */
.mb-faq { margin-top: 20px; display: grid; gap: 10px; }
.mb-faq details { border: 1px solid #dbe7ee; border-radius: 12px; background: #fff; padding: 0 18px; }
.mb-faq summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.mb-faq summary::-webkit-details-marker { display: none; }
.mb-faq summary::after { content: "+"; color: #04756a; font-weight: 800; }
.mb-faq details[open] summary::after { content: "−"; }
.mb-faq details p { padding: 0 0 16px; font-size: 14px; color: #4a7089; }

/* ---------- CTA final ---------- */
.mb-cta {
  padding: 56px 0; text-align: center; color: #fff;
  background: url(../../images/AulaSuscripcion/contornos.svg) center / cover no-repeat, linear-gradient(140deg, #00121d, #003450);
}
.mb-cta h2 { color: #fff; }
.mb-cta p { margin: 10px 0 22px; color: rgba(255,255,255,.75); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .mb-cat__chips { grid-template-columns: repeat(3, minmax(0, 250px)); }
}
@media (min-width: 760px) {
  .mb-planes { grid-template-columns: repeat(3, 1fr); }
  .mb-cat__panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mb-hero { padding: 56px 0 44px; }
  .mb-sec, .mb-cat, .mb-cta { padding: 44px 0; }
}

@media (min-width: 960px) {
  .mb-cat__panel { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Documento antes de pagar (10-09-2026, auditoria E-06 / decision P3) ---------- */
.mb-dni { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #fcf2de; border: 1px solid #f3dcae; color: #1b2a35; font-size: 14px; }
.mb-dni label { display: block; margin: 0 0 10px; font-weight: 500; line-height: 1.5; }
.mb-dni__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mb-dni input { height: 42px; min-width: 220px; padding: 0 12px; border: 1px solid #d9c59a; border-radius: 8px; background: #fff; font: inherit; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.mb-dni input:focus { outline: 2px solid #04756a; outline-offset: 1px; }
.mb-dni__ayuda { font-size: 12.5px; color: #6b5a2a; }

/* ---------- Responsivo (22-09-2026) ----------
   Tablet (760-959): las tres tarjetas caben en fila con menos aire. Telefono (<=480): gutter de 16px, franja de pago y
   chips mas compactos, pestanas centradas. Las rejillas de planes y de tarjetas ya escalan arriba (760 / 960). */
@media (min-width: 760px) and (max-width: 959px) {
  .mb-plan { padding: 22px 18px 20px; }
  .mb-plan__price b { font-size: 28px; }
  .mb-plan__benef li { font-size: 13px; }
}
@media (max-width: 480px) {
  .mb-wrap { padding: 0 16px; }
  .mb-plan { padding: 24px 18px 20px; }
  .mb-pago { padding: 12px 14px; gap: 10px 14px; }
  .mb-cat__chip { padding: 8px 12px; font-size: 12.5px; }
  .mb-faq details { padding: 0 14px; }
}

/* ---------- Modo oscuro (22-09-2026) ----------
   Sigue la clase html.dark del sitio (boton de la cabecera o preferencia del sistema, _Layout.cshtml) y los tokens de
   Landing2.css. El hero, la seccion de la biblioteca, la franja de pago y el cierre ya son oscuros en ambos temas. */
html.dark .mb { color: var(--landing-fg, #ffffff); }
html.dark .mb-sec { background: var(--landing-page, #00121d); }
html.dark .mb-sec--alt { background: var(--landing-page-alt, #001f30); }
html.dark .mb h2 { color: #ffffff; }
html.dark .mb-lead { color: var(--landing-fg-soft, #aef4e9); }

html.dark .mb-btn--azul { background: #165a7f; color: #ffffff; }
html.dark .mb-btn--azul:hover { background: #286f8e; color: #ffffff; }

html.dark .mb-plan { background: var(--landing-card, #062b42); border-color: var(--landing-line, rgba(255,255,255,.12)); }
html.dark .mb-plan--rec { border-color: #0FEFD9; box-shadow: 0 18px 36px -18px rgba(0,0,0,.6); }
html.dark .mb-plan__tier { color: rgba(255,255,255,.6); }
html.dark .mb-plan__name, html.dark .mb-plan__price b { color: #ffffff; }
html.dark .mb-plan__per, html.dark .mb-plan__price s { color: rgba(255,255,255,.6); }
html.dark .mb-plan__benef { border-top-color: var(--landing-line, rgba(255,255,255,.12)); }
html.dark .mb-plan__benef li { color: rgba(255,255,255,.88); }
html.dark .mb-plan__benef li::before { background: rgba(15,239,217,.16); color: #0FEFD9; }

html.dark .mb-aviso { background: rgba(15,239,217,.08); border-color: rgba(15,239,217,.25); color: #ffffff; }
html.dark .mb-aviso a { color: #0FEFD9; }
html.dark .mb-dni { background: rgba(252,242,222,.08); border-color: rgba(252,242,222,.25); color: #ffffff; }
html.dark .mb-dni input { background: #001f30; color: #ffffff; border-color: rgba(255,255,255,.25); }
html.dark .mb-dni input:focus { outline-color: #0FEFD9; }
html.dark .mb-dni__ayuda { color: rgba(255,255,255,.65); }

html.dark .mb-pago { background: var(--landing-card, #062b42); border: 1px solid var(--landing-line, rgba(255,255,255,.12)); }

html.dark .mb-curso { background: #0b3550; color: #ffffff; border-color: rgba(255,255,255,.14); }
html.dark .mb-curso h3 { color: #ffffff; }
html.dark .mb-curso h3 a:hover { color: #0FEFD9; }
html.dark .mb-curso__doc { color: rgba(255,255,255,.62); }

html.dark .mb-faq details { background: var(--landing-card, #062b42); border-color: var(--landing-line, rgba(255,255,255,.12)); }
html.dark .mb-faq summary { color: #ffffff; }
html.dark .mb-faq summary::after { color: #0FEFD9; }
html.dark .mb-faq details p { color: rgba(255,255,255,.72); }
