/*
 =============================================================================
 Framework CSS — Siguri Academy
 Versión: 2.0 (Rewrite completo)
 Fecha: 2026-05-18
 Fuente: demo-curso-v2-light.html + demo-modulo.html + demo-clase.html
 Convención de variables: nombres cortos alineados con guia-estilo.md
 =============================================================================
 */

/* ============================================
   §0 — SVG ICONS
   ============================================ */

.ico {
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   §1 — VARIABLES CSS
   ============================================ */

:root {
  /* ── PALETA — guia-estilo.md ── */
  --primary:    #6D98A1;
  --primary-d:  #5A7D87;
  --secondary:  #54595F;
  --accent:     #EEBA3D;
  --accent-d:   #C99A28;
  --darksky:    #044554;
  --ds-light:   #056078;

  /* ── TEXTO ── */
  --t-strong: #333333;
  --t-body:   #7A7A7A;
  --t-note:   #E78B2D;
  --ts:       #1A2930;
  --tb:       #6B7280;
  --tm:       #9CA3AF;

  /* ── FONDOS ── */
  --bg-page:  #F7F7F7;
  --bg-sec:   #FDFDFD;
  --bg-card:  #FFFFFF;
  --bg-side:  #FFFFFF;
  --bg-drk:   #044554;
  --bg:       #F2F5F7;
  --bgc:      #FFFFFF;
  --bg-pending: #E78B2D;

  /* ── ESTADOS ── */
  --note-bg:  #97B0DC;
  --cpend:    #E78B2D;
  --cnote:    #97B0DC;

  /* ── ESPACIADO UTILITY ── */
  --space-sm: 8px;
  --space-md: 16px;
  --space-xl: 48px;
  --space-xs: 4px;
  --font-size-caption: 11px;

  /* ── BORDES / SIZING ── */
  --br:  #E0E0E0;
  --br2: #D0D0D0;

  /* ── SIZING ── */
  --r1: 4px;
  --r2: 8px;
  --sh1: 0 2px 8px rgba(0,0,0,.08);
  --sh2: 0 8px 28px rgba(0,0,0,.10);
  --sw: 252px;        /* sidebar width desktop */
  --sw-tab: 220px;    /* sidebar width tablet */
  --hh: 54px;         /* header height */
  --cw: 1200px;       /* content max-width (páginas web) */

  /* ── FUENTES ── */
  --ff: 'Open Sans', Helvetica, Arial, sans-serif;

  /* ── ANIMACIONES ── */
  --trans-fast: 150ms ease-out;
  --trans-base: 200ms ease-out;
  --trans-slow: 300ms ease-in-out;
  --prog-dur:   400ms ease-in-out;
}

/* ============================================
   §2 — RESET Y NORMALIZE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff);
  font-size: 14px;
  color: var(--t-body);
  background: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

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

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ============================================
   §3 — HEADER
   ============================================ */

.hdr {
  background: var(--bg-drk);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--hh);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hdr-in {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hdr-logo {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.hdr-logo span { color: var(--accent); }

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hdr-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: color var(--trans-fast);
}

.hdr-nav a:hover { color: #fff; }

.hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  background: var(--accent);
  color: #333 !important;
  border-radius: var(--r1);
  font-size: 12px;
  font-weight: 700;
  transition: background var(--trans-fast);
}

.hdr-cta:hover { background: #F5CC50 !important; }

/* ============================================
   §4 — LAYOUT LMS
   ============================================ */

.lms {
  display: flex;
  min-height: calc(100vh - var(--hh));
}

/* ============================================
    §5 — SIDEBAR
    ============================================ */

.sb {
  position: sticky;
  top: var(--hh);
  flex-shrink: 0;
  align-self: flex-start;
  width: var(--sw);
  height: calc(100vh - var(--hh));
  background: var(--bg-side);
  border-right: 1px solid var(--br);
  border-top: 3px solid var(--accent);
  overflow-y: auto;
  z-index: 100;
}

.sb::-webkit-scrollbar { width: 4px; }
.sb::-webkit-scrollbar-thumb { background: rgba(0,0,0,.10); border-radius: 2px; }

.sb-inner { padding: 0 14px 48px; }

.sb-head {
  border-bottom: 1px solid var(--br);
  padding-top: 12px;
  padding-bottom: 12px;
}

.sb-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 16px;
  transition: color var(--trans-fast);
}

.sb-back:hover { color: var(--primary); }

.sb-back svg { width: 13px; height: 13px; }

/* Ring de progreso en sidebar (demo-curso / demo-modulo) */
.sb-ring-row { display: flex; align-items: center; gap: 12px; }

.sb-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.sb-ring svg { width: 48px; height: 48px; }

.sb-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
}

.sb-ring-info { min-width: 0; }

.sb-course {
  font-size: 12px;
  font-weight: 700;
  color: var(--t-strong);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sb-ring-label { font-size: 11px; color: var(--t-body); }

/* Barra de progreso plana (demo-clase) */
.sb-course-sm { font-size: 11px; color: var(--tm); margin-bottom: 3px; }
.sb-module {
  font-size: 13px;
  font-weight: 700;
  color: var(--ts);
  line-height: 1.3;
  margin-bottom: 10px;
}
.sb-prog { height: 4px; background: var(--br); border-radius: 10px; overflow: hidden; margin-bottom: 5px; }
.sb-prog-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #8BBCC7); border-radius: 10px; }
.sb-prog-label { font-size: 11px; color: var(--tm); }

/* Secciones del sidebar */
.sb-sec { margin-bottom: 20px; }

/* Sección flush: sin padding/margin extra (para grabaciones en vivo) */
.sb-sec--flush { margin-bottom: 0; }

.sb-sec--flush .sb-sec-title { padding-left: 0; }

.sb-sec-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0;
  opacity: .85;
}

.sb-list { display: flex; flex-direction: column; gap: 1px; }

/* Lista flush: sin columna de 18px de relleno en la izquierda (para iconos al borde) */
.sb-list--flush { padding-left: 0; }

.sb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 6px 6px 0;
  border-radius: var(--r1);
  font-size: 12px;
  line-height: 1.35;
  color: var(--t-body);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.sb-item:hover { background: rgba(109,152,161,.06); color: var(--t-strong); }

.sb-item.is-active {
  background: rgba(109,152,161,.09);
  color: var(--primary);
  font-weight: 600;
}

.sb-item.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

.sb-item.is-locked { opacity: .50; color: var(--tm); pointer-events: none; }

.sb-unlock-date {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
  letter-spacing: .01em;
}

.sb-item--icon { padding: 6px 6px 6px 0; }

/* Icono con recuadro de paso — ocupa 18×18 alineado al borde */
.sb-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-ico svg,
.sb-ico>* { width: 13px; height: 13px; }

/* Icono SVG propio — igual ancho/alto que sb-ico para alinear textos */
.sb-ico-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  color: #7A7A7A;
}

.sb-ico-type .ico { width: 13px; height: 13px; }

.sb-txt { flex: 1; min-width: 0; }

.sb-sts {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.sb-sts svg { width: 12px; height: 12px; }

/* Icono de candado en sidebar — bloqueado por membresía */
.sb-sts.s-locked { color: #9CA3AF; }

/* Item bloqueado en sidebar */
.sb-item-locked {
    opacity: .30;
    pointer-events: none;
    cursor: default;
}

/* ============================================
   §6 — MAIN / CONTENIDO
   ============================================ */

.main { flex: 1; min-width: 0; }
.main-in { padding: 32px 40px 64px; background: var(--bg-sec); }

/* Ancho limitado para single:clase */
.main-in-narrow { max-width: 760px; }

/* ============================================
   §7 — BREADCRUMB
   ============================================ */

.bc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--t-body);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.bc a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--trans-fast);
}

.bc a:hover { color: var(--primary-d); }

.bc svg { width: 10px; height: 10px; flex-shrink: 0; }

/* ============================================
   §8 — HERO
   ============================================ */

.hero { margin-bottom: 28px; }

.hero-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 8px;
  opacity: .8;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--t-strong);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--t-body);
  margin-top: 10px;
}

.hero-meta-dot   { color: var(--br2); }
.hero-meta-label { font-size: 13px; font-weight: 600; color: var(--t-strong); }
.hero-meta-pct   { color: var(--t-body); }

/* ============================================
   §9 — CONTINUE CARD
   ============================================ */

.continue {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--sh2);
}

.continue-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--darksky);
}

.continue-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(4,69,84,.94) 35%,
    rgba(4,69,84,.55) 70%,
    rgba(4,69,84,.18) 100%);
}

.continue-inner {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 200px;
}

.continue-tag {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: .9;
}

.continue-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -.01em;
}

.continue-sub {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}

.continue-prog {
  width: 220px;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
}

.continue-prog-fill {
  height: 100%;
  width: 40%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--darksky);
  border-radius: var(--r1);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--trans-base), transform var(--trans-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.continue-btn:hover {
  background: #F5CC50;
  transform: translateY(-1px);
}

.continue-btn svg { width: 16px; height: 16px; }

/* ============================================
   §9b — QUICK LINKS (single-cursos)
   ============================================ */

.ql-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.ql-card {
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-radius: var(--r1);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
  min-width: 0;
  overflow: hidden;
}

.ql-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(109,152,161,.14);
  color: inherit;
}

.ql-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--tm);
}

.ql-module {
  font-size: 10px;
  color: var(--tm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ql-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--t-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ql-meta {
  font-size: 11px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.ql-meta .ico { width: 11px; height: 11px; flex-shrink: 0; }

.ql-card--done    .ql-meta { color: var(--t-body); }
.ql-card--live    .ql-meta { color: var(--t-body); }
.ql-card--visited .ql-meta { color: var(--t-body); }

.ql-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ql-label .ico { width: 9px; height: 9px; flex-shrink: 0; }

.ql-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.ql-name-row .ql-name { flex: 0 1 auto; min-width: 0; }

.ql-type-ico         { display: inline-flex; flex-shrink: 0; align-items: center; color: var(--t-body); }
.ql-type-ico .ico    { width: 13px; height: 13px; }

.ql-sts              { flex-shrink: 0; display: flex; }
.ql-sts .ico         { width: 13px; height: 13px; }
.ql-sts.s-done .ico  { color: var(--primary); }
.ql-sts.s-pend .ico  { color: var(--t-muted); }

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

/* ============================================
   §10 — STAT CARDS
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}

.sc {
  background: var(--bg-card);
  border-radius: var(--r2);
  padding: 16px 18px;
  border: 1px solid var(--br);
  border-left: 3px solid var(--primary);
  display: block;
  color: inherit;
  transition: border-left-color var(--trans-base),
              box-shadow var(--trans-base),
              transform var(--trans-base);
}

.sc:hover {
  border-left-color: var(--accent);
  box-shadow: var(--sh1);
  transform: translateY(-1px);
}

.sc-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t-body);
  margin-bottom: 7px;
}

.sc-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--t-strong);
}

.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(109,152,161,.10);
  border: 1px solid rgba(109,152,161,.22);
  color: var(--t-strong);
  border-radius: var(--r1);
  font-size: 11px;
  font-weight: 700;
}

.sc-pill svg { width: 11px; height: 11px; }

/* ============================================
   §11 — SECTION HEADING
   ============================================ */

.sec-hd {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: .8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-hd::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--br2), transparent);
}

/* ============================================
   §12 — GRID DE MÓDULOS (mgrid)
   ============================================ */

.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

/* ============================================
   §13 — TARJETA DE MÓDULO / CLASE (mcard)
   ============================================ */

.mcard {
  position: relative;
  border-radius: var(--r2);
  overflow: hidden;
  display: block;
  color: inherit;
  aspect-ratio: 3/2;
  cursor: pointer;
  box-shadow: var(--sh1);
  border: 1px solid var(--br);
  transition: box-shadow var(--trans-base),
              transform var(--trans-base),
              border-color var(--trans-base);
}

.mcard:hover {
  box-shadow: var(--sh2);
  transform: translateY(-1px);
  border-color: var(--primary);
}

.mcard-bg { position: absolute; inset: 0; }

.mcard-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.96) saturate(.88);
  transition: transform .5s ease, filter .3s ease;
}

.mcard:hover .mcard-bg img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

/* Velo claro sobre imagen */
.mcard-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255,255,255,.98) 0%,
    rgba(255,255,255,.45) 50%,
    rgba(255,255,255,.12) 100%
  );
}

/* Badge de estado (completado / en progreso) */
.mcard-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r1);
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.mcard-badge svg { width: 11px; height: 11px; }

.mcard-badge.is-done     { background: var(--primary); color: #fff; }
.mcard-badge.is-pending  { background: #E78B2D; color: #fff; }
.mcard-badge.is-live     { background: #97B0DC; color: #fff; }
.mcard-badge.is-blocked  { background: #6B7280; color: #fff; }
.mcard-badge.is-rec,
.mcard-badge.is-rec,
.mcard-badge.is-rec-done { background: #97B0DC; color: #fff; }

/* Módulo bloqueado: imagen en blanco y negro */
.mcard.is-blocked .mcard-bg img {
  filter: grayscale(1) brightness(0.85);
}

/* Fecha + icono sobre imagen de tarjeta (clases en vivo) */
.mcard-date {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(0,0,0,.55);
  border-radius: var(--r1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

/* Fecha azul para módulos bloqueados/próximamente */
.mcard-date.blue {
  background: #97B0DC;
  color: #fff;
  left: auto;
  right: 10px;
}

.mcard-date svg {
  width: 11px;
  height: 11px;
  margin-right: 3px;
}

/* Pie de tarjeta */
.mcard-ft {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 2;
}

.mcard-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--t-strong);
  margin-bottom: 8px;
  line-height: 1.25;
  position: relative;
  padding-left: 0;
}

/* Tipos de tarjeta con pseudo-elemento ::before */
.mcard-title.type-intro,
.mcard-title.type-step,
.mcard-title.type-live,
.mcard-title.type-grab {
  padding-left: 20px;
}

.mcard-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Introducción: 📖 libro */
.mcard-title.type-intro::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Clase paso (step): cuadrado de color vía --step-color */
.mcard-title.type-step::before {
  background: var(--step-color, #EEBA3D);
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.15);
}

/* En vivo: 🎥 cámara por defecto */
.mcard-title.type-live::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* En vivo con calendario (excepción) */
.mcard-title.type-live[data-icon="calendar"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cline x1='6' y1='2' x2='6' y2='6'/%3E%3Cline x1='18' y1='2' x2='18' y2='6'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E") !important;
}

/* Grabación: 🎬 videocámara */
.mcard-title.type-grab::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Cpath d='M23 7l-7 5 7 5V7z'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.mcard-prog-row { display: flex; align-items: center; gap: 8px; }

.mcard-prog-bar {
  flex: 1;
  height: 4px;
  background: var(--br);
  border-radius: 10px;
  overflow: hidden;
}

.mcard-prog-fill { height: 100%; border-radius: 10px; background: var(--primary); }

.mcard-prog-text {
  font-size: 11px;
  color: var(--secondary);
  white-space: nowrap;
}

/* Tarjeta bloqueada */
.mcard.is-locked .mcard-bg img {
  filter: grayscale(1) brightness(.100);
}

.mcard.is-locked .mcard-veil {
  background: rgba(255,255,255,.82);
}

.mcard-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  gap: 7px;
  z-index: 2;
}

.mcard-lock svg {
  width: 22px;
  height: 22px;
  color: var(--secondary);
  opacity: .35;
}

.mcard-lock span {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: .03em;
  opacity: .45;
}

/* ============================================
   §14 — GRID PRÓXIMAMENTE (ngrid + ncard)
   ============================================ */

.ngrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

.ncard {
  position: relative;
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--sh1);
  border: 1px solid var(--br);
  background: var(--bg-card);
}

.ncard-img {
  position: relative;
  height: 130px;
  overflow: hidden;
}

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

.ncard-date {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(0,0,0,.55);
  border-radius: var(--r1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.ncard-date svg {
  width: 12px;
  height: 12px;
}

.ncard-body {
  padding: 14px 16px;
}

.ncard-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-strong);
  margin-bottom: 6px;
}

.ncard-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--tm);
}

.ncard-sub svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 576px) {
  .ngrid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   §21 — BOTONES GENERALES
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--r1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--ff);
  transition: background var(--trans-fast);
}
.btn-primary:hover { background: var(--primary-d); }
.btn-primary:active { background: var(--primary-d); }

/* ============================================
   §25 — UTILIDADES
   ============================================ */

/* Visibilidad */
.hidden     { display: none !important; }
.visible    { display: block !important; }
.invisible  { visibility: hidden !important; }

/* Flexbox */
.flex          { display: flex; }
.flex-col      { display: flex; flex-direction: column; }
.flex-1        { flex: 1; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }

/* Colores texto */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-strong  { color: var(--t-strong); }
.text-muted   { color: var(--tm); }
.text-note    { color: var(--t-note) !important; }

/* Fondo */
.bg-card    { background: var(--bg-card); }
.bg-page    { background: var(--bg-page); }
.bg-section { background: var(--bg-sec); }

/* Fuente */
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-regular  { font-weight: 400; }

/* Recuadros de paso del sidebar */
.sb-ico [style] { width: 7px; height: 7px; }
.sb-ico [style*="#EEBA3D"],
.sb-ico [style*="#94e4a1"] { background: var(--t-strong); }
.sb-ico [style*="#e78b2d"] { background: var(--cpend); }

/* Iconos de estado del sidebar */
.sb-sts.s-done { color: var(--primary); }
.sb-sts.s-pend { color: var(--cpend); }
.sb-sts.s-live { color: var(--cnote); }
.sb-sts.s-clock { color: #e78b2d; }

/* Iconos de tipo en sidebar — color #7A7A7A por defecto */
.sb-ico-type .ico,
.sidebar-item-demo > .ico:first-child {
  color: #7A7A7A;
}

/* Iconos de estado en sidebar items demo */
.sidebar-item-demo .sb-sts.s-pend svg,
.sidebar-item-demo .sb-sts.s-clock svg {
  color: #E78B2D;
}

.sidebar-item-demo .sb-sts.s-done svg {
  color: var(--primary);
}

.sidebar-item-demo .sb-sts.s-locked svg {
  color: #9CA3AF;
}

/* ============================================
    §26 — ANIMACIONES
    ============================================ */

/* Shimmer */
@keyframes shimmer {
  to { background-position: 200% center; }
}

.fade-in {
  animation: fadeIn var(--trans-slow) ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   §27 — RESPONSIVE
   ============================================ */

/* Tablet: ≤ 991px */
@media (max-width: 991px) {
  :root {
    --sw: var(--sw-tab);
  }
  .main-in { padding: 24px 24px 48px; }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .mcard-title { font-size: 12px; }
  .hero-title { font-size: 24px; }
}

/* Móvil: ≤ 576px */
@media (max-width: 576px) {
  .sb { display: none; }
  .sb.open { display: block; }

  .lms-sidebar__main { margin-left: 0; padding: 0 var(--space-md) var(--space-xl); }
  .main-in { margin-left: 0; }

  .lms-layout.mobile-drawer-open .sb {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    display: block;
    z-index: 999;
  }

  .main-in { padding: 20px 16px 48px; }

  /* Stats: 1 columna en móvil */
  .stats { grid-template-columns: 1fr; gap: var(--space-sm); }

  /* Módulos: 2 columnas en móvil */
  .mgrid { grid-template-columns: 1fr 1fr; }
  .ngrid { grid-template-columns: 1fr; }

  /* Continue card: apila verticalmente */
  .continue-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Hero title más pequeño */
  .hero-title { font-size: 22px; }

  /* Clase nav: botón completada arriba, anterior/siguiente abajo */
  .cls-nav { flex-wrap: wrap; }
  .cls-complete { order: -1; width: 100%; }

  /* Video vertical */
  .video-wrap-v { max-width: 100%; }

  /* ── HERO V4: video vertical / paso post-video en móvil ── */
  .hero-v1 .video-wrap { display: none !important; }
  .hero-v1 .video-wrap-v { display: block !important; }

  /* YouTube no tiene versión vertical: se mantiene visible en móvil */
  .hero-v1 .video-wrap--yt { display: block !important; }

  .hm-post {
    display: block !important;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: var(--tm);
    margin-top: 4px;
  }

  .gem-mobile-hide { display: none !important; }
}

/* Tabletas pequeñas: 2 columnas */
@media (min-width: 577px) and (max-width: 991px) {
  .mgrid { grid-template-columns: 1fr 1fr; }
  /* Stats: 3 columnas se mantienen en tablet */
}

/* Escritorio: ≥ 992px */
@media (min-width: 992px) {
  .mgrid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   §28 — TIPO DE TARJETA (iconos pseudo-elemento)
   ============================================ */

/* en single-cursos.php NO se usan type-intro/step/live/grab.
   Se mantienen en el CSS para single-modulos.php y single-clases.php. */

.mcard-title {
  position: relative;
  padding-left: 0;
}

/* Icono posición absoluta — alineado verticalmente con el texto */
.mcard-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Introducción: 📖 libro */
.mcard-title.type-intro::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Clase paso (step): cuadrado de color vía --step-color */
.mcard-title.type-step::before {
  background: var(--step-color, #EEBA3D);
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.15);
}

/* En vivo: 🎥 cámara */
.mcard-title.type-live::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2' ry='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Grabación: 🎬 videocámara */
.mcard-title.type-grab::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.75'%3E%3Cpath d='M23 7l-7 5 7 5V7z'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============================================
   §31 — ARCHITECTURE CLASSES (templates PHP)
   ============================================ */

/* Grid de cards de archive-cursos.php */
.mcard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Blog grid */
.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Blog card */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--sh1);
  border: 1px solid var(--br);
  transition: box-shadow var(--trans-fast);
}
.blog-card:hover { box-shadow: var(--sh2); }

.blog-thumb img { width:100%; height:200px; object-fit:cover; display:block; }

.blog-body { padding: 18px; }
.blog-meta { font-size: 12px; color: var(--tm); margin-bottom: 8px; }
.blog-title { font-size: 18px; font-weight: 700; color: var(--ts); margin-bottom: 10px; line-height: 1.3; }
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: 14px; color: var(--t-body); margin-bottom: 14px; line-height: 1.6; }
.btn-leer-mas { font-size: 13px; font-weight: 700; color: var(--primary); }
.btn-leer-mas:hover { color: var(--primary-d); }

/* Archive header */
.archive-header { margin-bottom: 28px; }
.archive-header h1 { font-size: 26px; font-weight: 700; color: var(--ts); margin-bottom: 6px; }
.archive-description { font-size: 14px; color: var(--t-body); }

/* Card extra buttons */
.btn-ver-curso, .btn-ver-modulo, .btn-ver-masterclass, .btn-ver-formacion {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r1);
  font-size: 12px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  margin-top: 8px;
  transition: background var(--trans-fast);
}
.btn-ver-curso:hover, .btn-ver-modulo:hover, .btn-ver-masterclass:hover, .btn-ver-formacion:hover {
  background: var(--primary-d);
}

/* Page legal & mi-cuenta */
.page-legal, .page-mi-cuenta, .single-mostrar { margin: 32px 0; }
.page-legal .entry-header h1, .page-mi-cuenta .entry-header h1 {
  font-size: 26px; font-weight: 700; color: var(--ts); margin-bottom: 20px;
}
.page-legal .entry-content p, .page-mi-cuenta .entry-content p {
  font-size: 14px; color: var(--t-body); line-height: 1.7; margin-bottom: 14px;
}

/* 404 */
.error-404 { min-height: 60vh; display: flex; align-items: center; }
.error-404 .error-content { text-align: center; }
.error-404 .error-content h1 { font-size: 80px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.error-404 .error-content h2 { font-size: 22px; color: var(--ts); margin-bottom: 12px; }
.error-404 .error-content p { font-size: 14px; color: var(--t-body); margin-bottom: 24px; }

/* Search */
.search-main .search-term { font-size: 14px; color: var(--t-body); margin-bottom: 24px; }

/* Main layout */
.main-in { max-width: 1200px; margin: 0 auto; padding: 24px 24px 64px; }
.main-in-narrow { max-width: 680px; margin: 0 auto; padding: 24px 24px 64px; }

/* Page-main */
.page-main { min-height: 50vh; }

/* Btn primary */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: var(--r1);
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: none; background: var(--primary); color: #fff;
  font-family: var(--ff); transition: background var(--trans-fast);
}
.btn-primary:hover { background: var(--primary-d); }

/* mcard sub-styles for archives */
article.mcard { position: relative; }

/* breathable entry-content */
.entry-content { font-size: 14px; color: var(--t-body); line-height: 1.7; }
.entry-content p { margin-bottom: 14px; }
.entry-excerpt { font-size: 14px; color: var(--t-body); line-height: 1.6; margin-bottom: 24px; }

/* ============================================
   §7 — SINGLE CLASE (single-clases.php)
   ============================================ */

/* LMS layout: main-in ocupa todo el ancho disponible (anula margin:0 auto del §31).
   padding-top explícito con especificidad (0,2,0) para que no lo pise ninguna
   regla global de .main-in que pueda aparecer después en el cascade. */
.lms .main-in {
  max-width: none;
  margin: 0;
  padding-top: 32px;
}

/* Breadcrumb: scroll-margin-top garantiza que al navegar a un anchor
   el elemento no quede tapado por el header sticky. */
.lms .bc {
  scroll-margin-top: calc(var(--hh) + 16px);
}

/* ── Video wrappers ── */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 10px;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* vertical: oculto por defecto, solo visible en móvil vía .hero-v1 .video-wrap-v { display:block !important } */
.video-wrap-v {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: var(--r2);
  overflow: hidden;
  margin: 0 auto 10px;
  background: #000;
  display: none;
}
.video-wrap-v iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Cuadrito de color del paso (todos los dispositivos) ── */
.paso-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ── Metadato contextual al lado del título (escritorio / tablet) ── */
.cls-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--tm);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
.cls-meta .ico { width: 14px; height: 14px; flex-shrink: 0; color: var(--tm); }

/* ── Navegación entre clases ── */
/* Grid 3 columnas: [anterior 1fr] [completar auto] [siguiente 1fr]
   El botón completar queda siempre centrado aunque falte anterior o siguiente. */
.cls-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 14px 0 28px;
  padding: 14px 0;
  border-top: 1px solid var(--br);
  border-bottom: 1px solid var(--br);
}
.cls-nav-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: color var(--trans-fast);
  min-width: 0;
  max-width: 200px;
}
.cls-nav-link:hover { color: var(--primary-d); }
.cls-nav-link.next  { align-items: flex-end; text-align: right; justify-self: end; }
.cls-nav-link span  {
  display: block;
  font-size: 11px;
  color: var(--tm);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón completar */
.cls-complete { display: flex; justify-content: center; }
.cls-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r1);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--br2);
  background: var(--bg);
  color: var(--cpend);           /* naranja — texto + SVG via currentColor */
  cursor: pointer;
  font-family: var(--ff);
  white-space: nowrap;
  transition: all var(--trans-fast);
}
.cls-btn:hover      { background: #fef3e5; border-color: var(--cpend); }
.cls-btn.done       { color: var(--primary); }   /* teal — "Completada" */
.cls-btn.done:hover { background: #eef4f5; border-color: var(--primary); }
.cls-btn--locked    { opacity: .45; cursor: not-allowed; }
.cls-btn svg        { width: 15px; height: 15px; }

/* Info tipo post-vídeo: oculto en desktop, visible en móvil con display:flex !important */
.hm-post { display: none; }

/* ── Título + cls-meta en una línea (tablet y escritorio) ── */
@media (min-width: 577px) {
  .hero-v1 .gem-title-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.75rem;
    justify-content: space-between;
  }
  .hero-v1 .gem-title-wrap h1 { flex: 1 1 auto; min-width: 0; }
  .hero-v1 .gem-title-wrap .cls-meta { flex-shrink: 0; }
  .hero-v1 .hero-title-row    { padding-bottom: 9px; }
}

/* ── Contenido de la clase ── */
.cls-content     { max-width: 680px; }
.cls-content h2  { font-size: 18px; font-weight: 700; color: var(--ts); margin-bottom: 14px; }
.cls-content p   { margin-bottom: 14px; line-height: 1.72; }
.cls-content img { border-radius: var(--r2); margin: 20px 0; }

/* ── Aviso de clase en vivo próxima ── */
.cls-upcoming {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #6e90c5 0%, #96b0db 60%, #b0c8e8 100%);
  border: 1px solid #85a3cf;
  border-radius: var(--r2);
  margin-bottom: 14px;
}
.cls-upcoming-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: var(--r1);
}
.cls-upcoming-ico svg  { width: 18px; height: 18px; color: #fff; }
.cls-upcoming-info     { flex: 1; min-width: 0; }
.cls-upcoming-info strong {
  font-size: 13px; font-weight: 700; color: #fff; display: block;
}
.cls-upcoming-info span {
  font-size: 12px; color: rgba(255,255,255,.8); display: block; margin-top: 2px;
}
.zoom-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: #fff;
  color: #4a74a8;
  border-radius: var(--r1);
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
  transition: background var(--trans-fast);
}
.zoom-link:hover { background: rgba(255,255,255,.88); }
.zoom-link svg   { width: 15px; height: 15px; }

/* ── Dudas previas a clase en vivo ── */
.duda-sec-title { font-size: 16px; font-weight: 700; color: var(--ts); margin: 28px 0 14px; }
.duda-form {
  background: var(--bg);
  padding: 18px;
  border-radius: var(--r2);
  margin-bottom: 20px;
  border: 1px solid var(--br);
}
.duda-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ts);
  margin-bottom: 6px;
}
.duda-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--br);
  border-radius: var(--r1);
  font-family: var(--ff);
  font-size: 13px;
  resize: vertical;
  background: var(--bgc);
  color: var(--ts);
  outline: none;
  transition: border-color var(--trans-fast);
}
.duda-form textarea:focus { border-color: var(--primary); }
.duda-actions { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
.duda-card {
  background: var(--bgc);
  padding: 14px;
  border-radius: var(--r2);
  box-shadow: var(--sh1);
  margin-bottom: 10px;
  border: 1px solid var(--br);
}
.duda-card--updated { border-color: #22c55e; }
.duda-updated-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.duda-card p  { font-size: 13px; color: var(--ts); margin-bottom: 8px; line-height: 1.6; }
.duda-card-q  { font-size: 13px; font-weight: 700; color: var(--ts); margin-bottom: 4px; line-height: 1.5; }
.duda-card-body { font-size: 13px; color: var(--ts); margin-bottom: 10px; line-height: 1.6; }
.duda-card-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.duda-media {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--r1);
  border: 1px solid var(--br);
  display: block;
}
video.duda-media { background: #000; }
.duda-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.duda-card-meta { display: flex; align-items: center; gap: 6px; }
.duda-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--br);
  overflow: hidden;
  flex-shrink: 0;
}
.duda-avatar .ico { width: 14px; height: 14px; color: var(--tm); }
.duda-avatar-img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.duda-card-autor { font-size: 12px; font-weight: 600; color: var(--ts); }
.duda-card-sep  { font-size: 12px; color: var(--tm); }
.duda-card-date { font-size: 12px; color: var(--tm); }
.duda-likes   { font-size: 12px; font-weight: 600; color: var(--accent); margin-left: auto; }
.duda-ans     { font-size: 11px; font-weight: 700; color: var(--primary); }
.duda-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--tm);
  font-family: var(--ff);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--trans-fast);
  flex-shrink: 0;
}
.duda-like-btn .ico { width: 18px; height: 18px; }
.duda-like-btn:hover:not(:disabled) { color: var(--accent); }
.duda-like-btn.is-liked { color: var(--accent); }
.duda-like-btn:disabled { opacity: 0.5; cursor: default; }
.duda-card-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.duda-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r1);
  background: var(--bg);
  border: 1px solid var(--br);
  font-size: 12px;
  font-weight: 600;
  color: var(--tm);
  transition: color var(--trans-fast), border-color var(--trans-fast);
}
.duda-edit-btn .ico { width: 13px; height: 13px; }
.duda-edit-btn:hover { color: var(--ts); border-color: var(--ts); }

/* ── Página editar duda ── */
.edit-duda-page {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
}
.edit-duda-wrap {
  width: 100%;
  max-width: 640px;
}
.edit-duda-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.edit-duda-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ts);
  margin: 0;
}
.edit-duda-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm);
  transition: color var(--trans-fast);
  flex-shrink: 0;
}
.edit-duda-back:hover { color: var(--ts); }
.edit-duda-back .ico  { width: 16px; height: 16px; }
.edit-duda-error {
  background: var(--bgc);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  padding: 28px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--tm);
}

/* ── Desplegable formulario de dudas ── */
.duda-form-toggle {
  border: 1px solid var(--br);
  border-radius: var(--r2);
  margin-bottom: 24px;
  overflow: hidden;
}
.duda-form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ts);
  background: var(--bgc);
  user-select: none;
  gap: 8px;
}
.duda-form-summary::-webkit-details-marker { display: none; }
.duda-form-summary .ico {
  width: 16px; height: 16px;
  color: var(--tm);
  flex-shrink: 0;
  transition: transform var(--trans-fast);
}
.duda-form-toggle[open] > .duda-form-summary .ico { transform: rotate(90deg); }
.duda-form-hint { font-size: 12px; font-weight: 400; color: var(--tm); margin-left: 6px; }
.duda-form-toggle[open] .duda-form-hint { display: none; }
.duda-form-toggle .duda-jfb {
  border: none;
  border-top: 1px solid var(--br);
  border-radius: 0;
  margin-bottom: 0;
  background: var(--bg);
}
.duda-form-toggle .duda-jfb label,
.duda-form-toggle .duda-jfb .jet-form-builder__label { color: var(--ts); }
.duda-form-toggle .duda-jfb input[type="text"],
.duda-form-toggle .duda-jfb input[type="email"],
.duda-form-toggle .duda-jfb input[type="tel"],
.duda-form-toggle .duda-jfb textarea,
.duda-form-toggle .duda-jfb select {
  background: #fff;
  border-color: var(--br);
  color: var(--ts);
}

/* ── Formulario de dudas (JetFormBuilder) ── */
.duda-jfb {
  background: var(--bgc);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  padding: 22px 20px;
  margin-bottom: 24px;
}
.duda-jfb .jet-form-builder-row,
.duda-jfb .jet-form-builder__row { margin-bottom: 16px; }
.duda-jfb label,
.duda-jfb .jet-form-builder__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ts);
  margin-bottom: 6px;
}
.duda-jfb input[type="text"],
.duda-jfb input[type="email"],
.duda-jfb input[type="tel"],
.duda-jfb textarea,
.duda-jfb select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--br);
  border-radius: var(--r1);
  font-family: var(--ff);
  font-size: 13px;
  background: var(--bg);
  color: var(--ts);
  outline: none;
  transition: border-color var(--trans-fast);
  box-sizing: border-box;
}
.duda-jfb textarea { min-height: 100px; resize: vertical; }
.duda-jfb input[type="text"]:focus,
.duda-jfb input[type="email"]:focus,
.duda-jfb textarea:focus,
.duda-jfb select:focus { border-color: var(--primary); }
.duda-jfb .jet-form-builder__submit,
.duda-jfb .action-button-wrap { margin-top: 4px; }
.duda-jfb .action-button,
.duda-jfb input[type="submit"],
.duda-jfb button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r1);
  font-family: var(--ff);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans-fast);
}
.duda-jfb .action-button:hover,
.duda-jfb input[type="submit"]:hover,
.duda-jfb button[type="submit"]:hover { background: var(--accent-d); }
.duda-jfb .jet-form-builder__required { color: var(--primary); margin-left: 2px; }

/* ── Móvil: hero-v1 título con tipo/paso + navegación 3 columnas ── */
@media (max-width: 576px) {
  /* Título + tipo/paso en línea en móvil */
  .hero-v1 .gem-title-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.5rem;
  }
  .hero-v1 .gem-title-wrap h1 { flex: 1 1 auto; min-width: 0; }
  /* Navegación: anterior | completar (centro) | siguiente */
  .hero-v1 .cls-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
  }
  .hero-v1 .cls-nav-link {
    order: 1;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
  }
  .hero-v1 .cls-nav-link.next {
    order: 3;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
  }
  /* Nombre de la clase: visible en móvil con overflow protegido */
  .hero-v1 .cls-nav-link span {
    display: block;
    max-width: calc(35vw - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-v1 .cls-complete {
    order: 2;
    justify-self: center;
    width: auto;
    flex: none;
  }
  .hero-v1 .hm-post { display: none !important; }
  /* Botón compacto en móvil */
  .cls-btn     { padding: 7px 12px; font-size: 12px; gap: 4px; border-width: 1.5px; }
  .cls-btn svg { width: 12px; height: 12px; }
  /* Cls-upcoming: apila el botón zoom en móvil */
  .cls-upcoming { flex-wrap: wrap; }
  .zoom-link    { margin-left: 0; width: 100%; justify-content: center; }
}

/* ============================================
   §99 — DEMO UTILITIES (solo para demo-componentes-ui.html)
   ============================================ */

body.demo-padding { padding: 40px; }

.demo-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--br);
}

.demo-section:last-child {
  border-bottom: none;
}

.demo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--t-strong);
  margin-bottom: 8px;
}

.demo-subtitle {
  font-size: 14px;
  color: var(--t-body);
  margin-bottom: 24px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.color-swatch {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--br);
}

.color-preview {
  height: 80px;
  width: 100%;
}

.color-info {
  padding: 12px;
  background: #fff;
}

.color-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--t-strong);
  margin-bottom: 4px;
}

.color-hex {
  font-size: 11px;
  color: var(--tm);
  font-family: monospace;
}

.color-var {
  font-size: 10px;
  color: var(--primary);
  font-family: monospace;
  margin-top: 4px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--br);
  border-radius: var(--r2);
}

.icon-card .ico {
  width: 32px;
  height: 32px;
}

.icon-label {
  font-size: 11px;
  color: var(--t-body);
  text-align: center;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r1);
  font-size: 12px;
  font-weight: 700;
}

.badge-demo.is-done {
  background: var(--primary);
  color: #fff;
}

.badge-demo.is-pending {
  background: #E78B2D;
  color: #fff;
}

.badge-demo.is-live {
  background: #97B0DC;
  color: #fff;
}

.badge-demo.is-blocked {
  background: #6B7280;
  color: #fff;
}

.badge-demo.is-rec,
.badge-demo.is-rec-done {
  background: #97B0DC;
  color: #fff;
}

.badge-demo .ico {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.card-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .card-showcase {
    grid-template-columns: 1fr;
  }
}

.sidebar-preview {
  max-width: 280px;
  border: 1px solid var(--br);
  border-radius: var(--r2);
  background: #fff;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--br);
  background: var(--bg-sec);
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.sidebar-list {
  padding: 8px;
}

.sidebar-item-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: var(--r1);
  font-size: 13px;
  color: var(--t-body);
}

.sidebar-item-demo:hover {
  background: rgba(109,152,161,0.06);
}

.sidebar-item-demo.active {
  background: rgba(109,152,161,0.09);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-item-demo.locked {
  opacity: 0.3;
  pointer-events: none;
}

.sidebar-item-demo .ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-item-demo .item-text {
  flex: 1;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================
   ADMIN BAR — compensación sticky
   WordPress añade position:fixed a #wpadminbar:
     ≥783 px → 32 px   (html margin-top: 32px)
     601-782 px → 46 px (html margin-top: 46px)
     ≤600 px → oculta  (html margin-top: 0)
   Los elementos sticky deben descontar ese alto
   para no quedar tapados ni exceder 100vh.
   ============================================ */

/* scroll-padding-top: compensa header sticky para que los
   anchors (#main-content, etc.) no queden debajo del header */
html {
  scroll-padding-top: var(--hh);
}

@media screen and (min-width: 783px) {
  .admin-bar .hdr {
    top: 32px;
  }
  .admin-bar .sb {
    top: calc(var(--hh) + 32px);
    height: calc(100vh - var(--hh) - 32px);
  }
  .admin-bar .lms {
    min-height: calc(100vh - var(--hh) - 32px);
  }
  /* Padding-top extra: especificidad (0,3,0) > (0,2,0) del .lms .main-in base */
  .admin-bar .lms .main-in {
    padding-top: 40px;
  }
  .admin-bar .lms .bc {
    scroll-margin-top: calc(var(--hh) + 32px + 16px);
  }
  html:has(body.admin-bar) {
    scroll-padding-top: calc(var(--hh) + 32px);
  }
}

@media screen and (min-width: 601px) and (max-width: 782px) {
  .admin-bar .hdr {
    top: 46px;
  }
  .admin-bar .sb {
    top: calc(var(--hh) + 46px);
    height: calc(100vh - var(--hh) - 46px);
  }
  .admin-bar .lms {
    min-height: calc(100vh - var(--hh) - 46px);
  }
  .admin-bar .lms .main-in {
    padding-top: 40px;
  }
  .admin-bar .lms .bc {
    scroll-margin-top: calc(var(--hh) + 46px + 16px);
  }
  html:has(body.admin-bar) {
    scroll-padding-top: calc(var(--hh) + 46px);
  }
}

/* ============================================
   BREADCRUMB — visibilidad garantizada
   ============================================ */

/* En móvil el .bc hereda padding-top del .main-in (20px).
   Se asegura explícitamente que siempre sea visible. */
@media (max-width: 576px) {
  .lms .bc {
    display: flex;
    padding-top: 0;
    margin-bottom: 16px;
  }

  /* El drawer mobile también descuenta el admin bar cuando está activo
     en la franja 601-782 px; pero ≤600 px la barra está oculta, sin cambio. */
  .admin-bar .lms-layout.mobile-drawer-open .sb {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

/* ============================================
   §32 — WOOCOMMERCE MY ACCOUNT
   (body.woocommerce-account y variantes)
   ============================================ */

/* ── Wrapper de la página (index.php fallback) ── */
.page-wrap {
  padding: 40px 24px 64px;
  max-width: 840px;
  margin: 0 auto;
}

/* My-account: más ancho para nav lateral + contenido */
body.woocommerce-account .page-wrap {
  max-width: 1040px;
  padding: 40px 32px 64px;
}

/* Título de página */
body.woocommerce-account article > h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ts);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

/* ── Layout logged-in: woocommerce = flex (nav | content) ── */
body.woocommerce-account .woocommerce {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ── Navegación lateral ── */
.woocommerce-MyAccount-navigation {
  flex-shrink: 0;
  width: 192px;
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-top: 3px solid var(--accent);
  border-radius: var(--r2);
  overflow: hidden;
  position: sticky;
  top: calc(var(--hh) + 16px);
}

.woocommerce-MyAccount-navigation ul {
  padding: 6px 0;
  margin: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation-link { margin: 0; }

.woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t-body);
  border-left: 3px solid transparent;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.woocommerce-MyAccount-navigation-link a:hover {
  background: rgba(109,152,161,.06);
  color: var(--t-strong);
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background: rgba(109,152,161,.09);
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}

.woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid var(--br);
  margin-top: 4px;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #e74c3c;
  font-size: 12px;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(231,76,60,.05);
  color: #c0392b;
}

/* Admin-bar: compensar sticky nav */
@media screen and (min-width: 783px) {
  .admin-bar .woocommerce-MyAccount-navigation {
    top: calc(var(--hh) + 32px + 16px);
  }
}

/* ── Área de contenido ── */
.woocommerce-MyAccount-content { flex: 1; min-width: 0; }

.woocommerce-MyAccount-content p {
  font-size: 14px;
  color: var(--t-body);
  margin-bottom: 12px;
  line-height: 1.65;
}

.woocommerce-MyAccount-content p a       { color: var(--primary); font-weight: 600; }
.woocommerce-MyAccount-content p a:hover { color: var(--primary-d); }

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ts);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--br);
}

/* ── Login / Registro (logged-out) ──
   #customer_login es el único hijo de .woocommerce, que es flex
   (regla pensada para el layout nav | contenido logueado). Sin
   width:100% el grid se queda con el ancho "shrink-to-fit" del
   flex item y las columnas se desalinean/descentran.

   El clearfix nativo de WooCommerce (.col2-set::before/::after,
   content:" "; display:table) se convierte en contenido generado
   real dentro de un grid container: cuenta como 2 grid items extra
   y desplaza .col-1/.col-2 una celda cada uno (Acceder termina en
   la columna 2 y Registrarse pasa a la fila 2). Hay que anularlo
   explícitamente. Verificado con Chrome DevTools Protocol contra
   la página real antes de subir. ── */
#customer_login.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

#customer_login.col2-set::before,
#customer_login.col2-set::after {
  content: none !important;
  display: none !important;
}

#customer_login .col-1,
#customer_login .col-2 {
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  padding: 28px;
  box-shadow: var(--sh1);
  float: none !important;
  width: 100% !important;
}

#customer_login h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ts);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--br);
}

/* ── Inputs (account pages) ── */
body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="email"],
body.woocommerce-account .woocommerce input[type="tel"],
body.woocommerce-account .woocommerce input[type="password"],
body.woocommerce-account .woocommerce select,
body.woocommerce-account .woocommerce textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--br);
  border-radius: var(--r1);
  font-family: var(--ff);
  font-size: 13px;
  background: var(--bg);
  color: var(--ts);
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  box-sizing: border-box;
  line-height: 1.4;
}

body.woocommerce-account .woocommerce input.input-text:focus,
body.woocommerce-account .woocommerce input[type="text"]:focus,
body.woocommerce-account .woocommerce input[type="email"]:focus,
body.woocommerce-account .woocommerce input[type="tel"]:focus,
body.woocommerce-account .woocommerce input[type="password"]:focus,
body.woocommerce-account .woocommerce select:focus,
body.woocommerce-account .woocommerce textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,152,161,.12);
}

/* Labels */
body.woocommerce-account .woocommerce label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ts);
  display: block;
  margin-bottom: 4px;
}

body.woocommerce-account .woocommerce label .required {
  color: var(--primary);
  margin-left: 2px;
}

/* Form rows */
body.woocommerce-account .woocommerce .form-row { margin-bottom: 14px; }

/* ── Botones WooCommerce ── */
body.woocommerce-account .woocommerce .woocommerce-button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input[type="submit"].button,
body.woocommerce-account .woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: #fff;
  font-family: var(--ff);
  transition: background var(--trans-fast);
  text-decoration: none;
  line-height: 1;
}

body.woocommerce-account .woocommerce .woocommerce-button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input[type="submit"].button:hover,
body.woocommerce-account .woocommerce a.button:hover {
  background: var(--primary-d);
  color: #fff;
}

/* ── Lost password / checkbox ── */
.woocommerce-LostPassword { margin-top: 10px; }
.woocommerce-LostPassword a {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  transition: color var(--trans-fast);
}
.woocommerce-LostPassword a:hover { color: var(--primary-d); }

.woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--t-body);
  cursor: pointer;
  font-weight: 400 !important;
}

/* ── Texto política de privacidad ── */
.woocommerce-privacy-policy-text {
  font-size: 12px;
  color: var(--tm);
  margin-bottom: 14px;
  line-height: 1.5;
}
.woocommerce-privacy-policy-text a         { color: var(--primary); }
.woocommerce-privacy-policy-text a:hover   { color: var(--primary-d); }

/* ── Notices ── */
.woocommerce-notices-wrapper { margin-bottom: 16px; }

.woocommerce-message {
  background: rgba(109,152,161,.08);
  border-left: 3px solid var(--primary);
  border-radius: var(--r1);
  color: var(--ts);
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 12px;
  list-style: none;
}

.woocommerce-error {
  background: rgba(231,76,60,.08);
  border-left: 3px solid #e74c3c;
  border-radius: var(--r1);
  color: var(--ts);
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 12px;
  list-style: none;
}

.woocommerce-info {
  background: rgba(151,176,220,.10);
  border-left: 3px solid #97B0DC;
  border-radius: var(--r1);
  color: var(--ts);
  font-size: 13px;
  padding: 12px 16px;
  margin-bottom: 12px;
  list-style: none;
}

.woocommerce-error li { list-style: none; }

/* ── Orders table ── */
.woocommerce-orders-table {
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  overflow: hidden;
  font-size: 13px;
  width: 100%;
}

.woocommerce-orders-table thead th {
  background: var(--bg);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tm);
  padding: 10px 14px;
  border-bottom: 1px solid var(--br);
  text-align: left;
}

.woocommerce-orders-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--br);
  color: var(--t-body);
  vertical-align: middle;
}

.woocommerce-orders-table tbody tr:last-child td { border-bottom: none; }
.woocommerce-orders-table tbody tr:hover td { background: rgba(109,152,161,.03); }

.woocommerce-orders-table__cell-order-number a {
  color: var(--primary);
  font-weight: 600;
}

/* Estado de pedido */
mark.order-status {
  background: none;
  font-weight: 700;
  font-size: 11px;
}

/* ── Addresses ── */
.woocommerce-Addresses .woocommerce-Address {
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  padding: 20px;
}

.woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--br);
}

.woocommerce-Address-title h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ts);
  margin: 0;
}

.woocommerce-Address-title .edit {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--trans-fast);
}
.woocommerce-Address-title .edit:hover { color: var(--primary-d); }

.woocommerce-Addresses address {
  font-size: 13px;
  color: var(--t-body);
  line-height: 1.65;
  font-style: normal;
}

.woocommerce-Addresses p.woocommerce-customer-details--address {
  font-size: 13px;
  color: var(--tm);
  font-style: italic;
}

/* ── Fieldsets editar cuenta ── */
body.woocommerce-account .woocommerce fieldset {
  border: 1px solid var(--br);
  border-radius: var(--r2);
  padding: 20px 20px 8px;
  margin: 0 0 20px;
}

body.woocommerce-account .woocommerce fieldset legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--ts);
  padding: 0 8px;
}

/* Form row pares (50% / 50%) */
body.woocommerce-account .woocommerce .form-row-first,
body.woocommerce-account .woocommerce .form-row-last {
  display: inline-block;
  width: calc(50% - 7px);
  vertical-align: top;
}
body.woocommerce-account .woocommerce .form-row-first { margin-right: 14px; }

/* ── Password strength ── */
.woocommerce-password-strength {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r1);
  display: inline-block;
  margin-top: 5px;
}
.woocommerce-password-hint {
  font-size: 11px;
  color: var(--tm);
  margin-top: 4px;
  display: block;
}

/* ── WooCommerce Memberships ── */
.wc-memberships-my-account-membership-section { margin-bottom: 28px; }

.wc-memberships-my-account-membership-section > h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ts);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--br);
}

.wc-memberships-my-account-membership-table {
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  overflow: hidden;
  font-size: 13px;
  width: 100%;
}

.wc-memberships-my-account-membership-table thead th {
  background: var(--bg);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tm);
  padding: 10px 14px;
  border-bottom: 1px solid var(--br);
  text-align: left;
}

.wc-memberships-my-account-membership-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--br);
  color: var(--t-body);
  vertical-align: middle;
}

.wc-memberships-my-account-membership-table tbody tr:last-child td { border-bottom: none; }

/* ── Empty state (sin pedidos, etc.) ── */
.woocommerce-account .woocommerce-Message {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  font-size: 14px;
  color: var(--tm);
}

/* ── Responsive — tablet/móvil ── */
@media (max-width: 768px) {
  body.woocommerce-account .page-wrap {
    padding: 20px 16px 48px;
  }

  body.woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 16px;
  }

  .woocommerce-MyAccount-navigation {
    width: 100%;
    border-top: none;
    border-left: 3px solid var(--accent);
    position: static;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
    gap: 4px;
  }

  .woocommerce-MyAccount-navigation-link a {
    padding: 7px 12px;
    border-radius: var(--r1);
    border-left: none;
    font-size: 12px;
  }

  .woocommerce-MyAccount-navigation-link.is-active a {
    background: var(--primary);
    color: #fff;
    border-left: none;
  }

  .woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: none;
  }

  #customer_login.col2-set {
    grid-template-columns: 1fr;
  }

  body.woocommerce-account .woocommerce .form-row-first,
  body.woocommerce-account .woocommerce .form-row-last {
    width: 100%;
    margin-right: 0;
    display: block;
  }
}

/* ============================================
   §33 — NAVEGACIÓN MÓVIL (hamburguesa + drawer)
   ============================================ */

/* ── Hamburguesa — solo visible en móvil ── */
.hdr-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
}

.hdr-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,.65);
  border-radius: 2px;
  transition: background var(--trans-fast);
}

.hdr-burger:hover span { background: #fff; }

/* ── Drawer (mostrado/ocultado via JS: style.display=flex/none) ── */
.mob-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 268px;
  height: 100dvh;
  background: var(--bg-drk);
  z-index: 1010;
  flex-direction: column;
  overflow: hidden;
}

.mob-drawer-in {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.mob-drawer-in::-webkit-scrollbar { width: 3px; }
.mob-drawer-in::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }

/* Cabecera del drawer */
.mob-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.mob-drawer-logo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.mob-drawer-logo span { color: var(--accent); }

.mob-drawer-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: var(--r1);
  color: #fff;
  cursor: pointer;
  transition: background var(--trans-fast);
  flex-shrink: 0;
}

.mob-drawer-close:hover { background: rgba(255,255,255,.16); }

/* Nav principal en el drawer */
.mob-drawer-nav {
  padding: 8px 0;
}

.mob-drawer-nav a,
.mob-drawer-nav li a {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.60);
  border-left: 3px solid transparent;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast);
}

.mob-drawer-nav a:hover,
.mob-drawer-nav li a:hover {
  background: rgba(255,255,255,.05);
  color: #fff;
  border-left-color: var(--accent);
}

/* ── Sección LMS (módulos o clases) ── */
.mob-drawer-sec {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mob-drawer-sec-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  padding: 8px 18px 6px;
}

/* Enlace al curso (cabecera de la sección LMS) */
.mob-course-lnk {
  display: block;
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  text-decoration: none;
  opacity: .85;
  transition: opacity var(--trans-fast);
}

.mob-course-lnk:hover { opacity: 1; }

/* Clase individual */
.mob-cls-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: background var(--trans-fast), color var(--trans-fast);
  text-decoration: none;
}

.mob-cls-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.85); }

.mob-cls-item.is-active {
  color: var(--accent);
  font-weight: 700;
  background: rgba(238,186,61,.06);
}

.mob-cls-item--locked { opacity: .40; pointer-events: none; }

.mob-cls-txt {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Icono de tipo (izquierda): book, video, cal-sb, step dot */
.mob-cls-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,.38);
}

.mob-cls-ico .ico { width: 13px; height: 13px; stroke: currentColor; }

/* Los iconos de estado heredan color de --primary / --cpend */
.mob-cls-item .sb-sts { margin-left: auto; flex-shrink: 0; }
.mob-cls-item .sb-sts.s-done { color: #8BBCC7; }
.mob-cls-item .sb-sts.s-pend { color: #E78B2D; }
.mob-cls-item .sb-sts svg    { width: 11px; height: 11px; }

/* ── Accordion de módulos (single-cursos) ── */
.mob-mod-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.70);
  transition: background var(--trans-fast);
  user-select: none;
}

details.mob-mod > summary.mob-mod-summary { cursor: pointer; }
details.mob-mod > summary::-webkit-details-marker { display: none; }
details.mob-mod > summary.mob-mod-summary:hover { background: rgba(255,255,255,.05); }

.mob-mod--locked .mob-mod-summary { opacity: .45; cursor: default; }

.mob-mod-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Enlace al módulo dentro del summary (no activa el toggle del details) */
.mob-mod-summary .mob-mod-lnk {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.mob-unlock-date {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1px;
  letter-spacing: .01em;
  opacity: .8;
}

.mob-mod-chev {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform var(--trans-fast);
}

.mob-mod-chev .ico { width: 12px; height: 12px; stroke: rgba(255,255,255,.4); }

details.mob-mod[open] > summary .mob-mod-chev { transform: rotate(90deg); }

/* Icono candado (módulos bloqueados) */
.mob-mod-lock {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.mob-mod-lock .ico { width: 12px; height: 12px; stroke: rgba(255,255,255,.35); }

.mob-mod-classes {
  padding: 0 0 6px 14px;
  border-left: 2px solid rgba(255,255,255,.06);
  margin: 0 18px 0 30px;
}

/* Pie del drawer: Mi cuenta */
.mob-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: auto;
  flex-shrink: 0;
}

.mob-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--accent);
  color: #333;
  border-radius: var(--r1);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background var(--trans-fast);
}

.mob-drawer-cta:hover { background: #F5CC50; color: #333; }

/* ── Overlay (mostrado/ocultado via JS: style.display=block/none) ── */
.mob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 1009;
}

body.mob-drawer-open { overflow: hidden; }

/* ── Responsive: activar hamburguesa en ≤576px ── */
@media (max-width: 576px) {
  .hdr-nav    { display: none !important; }
  .hdr-burger { display: flex !important; }
}

/* Admin-bar: compensar desplazamiento del drawer */
@media screen and (min-width: 783px) {
  .admin-bar .mob-drawer { display: none; }
}

/* ============================================
   §34 — FRONT PAGE (landing Manicura Rusa)
   ============================================ */

.fp-main {
  background: var(--bg-page);
}

/* ── Hero ── */
.fp-hero {
  padding: 48px 20px 56px;
  background: var(--bg-page);
}

.fp-hero-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

/* ── Columnas ── */
.fp-col--right {
  position: sticky;
  top: 88px;
}

/* ── Etiqueta de categoría ── */
.fp-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin: 0 0 6px;
}

/* ── Tarjeta de formulario ── */
.fp-box {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--sh2);
  overflow: hidden;
}

.fp-box-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ts);
  margin: 4px 24px 0;
  line-height: 1.25;
}

.fp-box-sub {
  font-size: 13px;
  color: var(--tb);
  margin: 6px 24px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--br);
}

/* ── Tabs ── */
.fp-tabs {
  display: flex;
  border-bottom: 1px solid var(--br);
}

.fp-tab {
  flex: 1;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tb);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color var(--trans-fast), border-color var(--trans-fast);
  margin-bottom: -1px;
}

.fp-tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.fp-tab:hover:not(.fp-tab--active) { color: var(--ts); }

/* ── Paneles de pestaña ── */
.fp-panel {
  display: none;
  padding: 20px 24px 24px;
}

.fp-panel--active { display: block; }

/* ── Estado inscrita ── */
.fp-enrolled {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 20px;
  max-width: 520px;
  margin: 0 auto;
}

.fp-enrolled-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--ts);
  margin: 0;
  line-height: 1.2;
}

.fp-enrolled-sub {
  font-size: 15px;
  color: var(--tb);
  margin: 0;
}

/* ── Botón CTA ── */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #333;
  border-radius: var(--r1);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--trans-fast);
  margin-top: 8px;
}

.fp-btn:hover { background: #F5CC50; color: #333; }

/* ── Video ── */
.fp-video {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 2px solid var(--br);
  overflow: hidden;
  background: #000;
}

.fp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.fp-video--mob { display: none; }

/* ── Formularios JetFormBuilder dentro del fp-box ── */
.fp-box form,
.fp-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-box .jet-form-builder__field,
.fp-panel .jet-form-builder__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-box label,
.fp-panel label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ts);
}

.fp-box input[type="text"],
.fp-box input[type="email"],
.fp-box input[type="password"],
.fp-panel input[type="text"],
.fp-panel input[type="email"],
.fp-panel input[type="password"] {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--br);
  border-radius: var(--r1);
  font-size: 14px;
  color: var(--ts);
  background: #fff;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  box-sizing: border-box;
}

.fp-box input[type="text"]:focus,
.fp-box input[type="email"]:focus,
.fp-box input[type="password"]:focus,
.fp-panel input[type="text"]:focus,
.fp-panel input[type="email"]:focus,
.fp-panel input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,152,161,.15);
}

.fp-box input[type="submit"],
.fp-box button[type="submit"],
.fp-panel input[type="submit"],
.fp-panel button[type="submit"] {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--trans-fast);
  margin-top: 4px;
}

.fp-box input[type="submit"]:hover,
.fp-box button[type="submit"]:hover,
.fp-panel input[type="submit"]:hover,
.fp-panel button[type="submit"]:hover {
  background: var(--primary-d);
}

/* Google login button */
.fp-box .nsl-container,
.fp-panel .nsl-container {
  margin-bottom: 4px;
}

/* ── Contenido debajo del hero ── */
.fp-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Responsive: ≤767px ── */
@media (max-width: 767px) {
  .fp-hero { padding: 28px 16px 36px; }

  .fp-hero-in {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fp-col--right { position: static; }

  .fp-video--desk { display: none; }
  .fp-video--mob  { display: block; }

  .fp-enrolled { padding: 28px 0; }
  .fp-enrolled-title { font-size: 26px; }
}

/* ============================================
   §N — SINGLE FORMACIONES (manicura-rusa-segura)
   ============================================ */

.sf-page {
  background: var(--bg-page);
  min-height: calc(100vh - var(--hh));
  padding: 40px 24px 64px;
}

.sf-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sf-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sf-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.sf-tagline {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 12px;
}

.sf-counter {
  font-size: 14px;
  color: var(--t-strong);
  margin-bottom: 12px;
}

.sf-desc {
  font-size: 14px;
  color: var(--t-body);
  line-height: 1.65;
  margin-bottom: 10px;
}

.sf-access {
  font-size: 13px;
  color: var(--t-body);
  margin-bottom: 24px;
}

.sf-card {
  background: #f0f2f4;
  border-radius: 10px;
  padding: 28px 28px 32px;
}

.sf-tabs {
  display: flex;
  margin-bottom: 0;
}

.sf-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: #D0D0D0;
  border: none;
  cursor: pointer;
  transition: color var(--trans-fast), background var(--trans-fast);
}

.sf-tab--active {
  color: #fff;
  background: #6D98A1;
}

.sf-tab:not(.sf-tab--active):hover {
  background: #bfbfbf;
}

.sf-panel { display: none; }

.sf-panel--active {
  display: block;
  background: #6D98A13B;
  padding: 20px;
}

.sf-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--t-strong);
  margin-bottom: 8px;
}

.sf-section-title--mt { margin-top: 24px; }

.sf-divider {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 16px;
}

.sf-panel .jet-form-builder__submit,
.sf-panel .jfb-submit,
.sf-panel button[type="submit"],
.sf-panel input[type="submit"] {
  background-color: #6D98A1 !important;
  border-color: #6D98A1 !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 6px !important;
}

.sf-panel .jet-form-builder__submit:hover,
.sf-panel .jfb-submit:hover,
.sf-panel button[type="submit"]:hover,
.sf-panel input[type="submit"]:hover {
  background-color: #5A7D87 !important;
  border-color: #5A7D87 !important;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r2);
  transition: background var(--trans-fast);
  cursor: pointer;
}

.sf-btn--primary { background: var(--primary); color: #fff; }
.sf-btn--primary:hover { background: var(--primary-d); color: #fff; }

.bunny-square {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #d1d5db;
  box-sizing: border-box;
}

.bunny-square iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.sf-video--mobile  { display: none; }
.sf-video--desktop { display: block; }

@media (max-width: 767px) {
  .sf-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
  }

  .sf-page { padding: 24px 16px 48px; }
  .sf-right { order: 2; }
  .sf-left  { order: 1; }
  .sf-video--desktop { display: none; }
  .sf-video--mobile  { display: block; }
  .sf-title { font-size: 22px; }
  .sf-page--mm .sf-tagline { font-size: 19px; }
}

/* ============================================
   §N+1 — SINGLE MASTERCLASS
   ============================================ */

.mc-page {
  background: var(--bg-page);
  min-height: calc(100vh - var(--hh));
  padding: 40px 24px 64px;
}

.mc-wrap { width: 100%; }

.mc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.mc-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--t-strong);
  line-height: 1.25;
  margin-bottom: 20px;
}

.mc-vl {
  display: grid;
  grid-template-columns: minmax(auto, 420px) 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.mc-vl__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mc-video-block { margin-bottom: 32px; }

.mc-video--mobile  { display: none; }
.mc-video--desktop { display: block; }

.mc-ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.mc-ratio--16x9 { aspect-ratio: 16 / 9; }

.mc-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mc-v-widget {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.mc-v-stage {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #d1d5db;
  background: #000;
}

.mc-v-stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mc-excerpt {
  font-size: 15px;
  color: var(--t-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.mc-vl__info .mc-excerpt {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.mc-excerpt p { margin-bottom: 12px; }
.mc-excerpt p:last-child { margin-bottom: 0; }

.mc-content {
  font-size: 15px;
  color: var(--t-body);
  line-height: 1.7;
}

.mc-content h2,
.mc-content h3,
.mc-content h4 {
  color: var(--t-strong);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mc-content h2 { font-size: 22px; }
.mc-content h3 { font-size: 18px; }
.mc-content h4 { font-size: 16px; }

.mc-content p  { margin-bottom: 16px; }
.mc-content ul,
.mc-content ol { margin-bottom: 16px; padding-left: 20px; }
.mc-content li { margin-bottom: 6px; }
.mc-content ul { list-style: disc; }
.mc-content ol { list-style: decimal; }

.mc-content img {
  border-radius: var(--r2);
  max-width: 100%;
  height: auto;
}

.mc-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── CTA block: aparece debajo del vídeo ── */
.mc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--darksky) 0%, var(--ds-light) 100%);
  border-radius: var(--r2);
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

/* Círculo decorativo de fondo */
.mc-cta::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}

.mc-cta__desc {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}

.mc-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--darksky);
  border-radius: var(--r1);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--trans-fast), transform var(--trans-fast);
}

.mc-cta__btn:hover {
  background: #f5cc50;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .mc-page { padding: 24px 16px 48px; }
  .mc-title { font-size: 22px; }

  .mc-vl {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mc-vl__info  { order: 1; }
  .mc-vl__video { order: 2; }

  .mc-video--desktop { display: none; }
  .mc-video--mobile  { display: block; }

  .mc-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 20px;
  }

  .mc-cta__btn { width: 100%; }
}

/* ============================================
   §N+2 — BUNNY SQUARE FIX (vídeo cuadrado 1:1)
   ============================================ */

.bunny-square-fix {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  border: 2px solid #d1d5db;
  overflow: hidden;
  box-sizing: border-box;
}

.bunny-square-fix::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.bunny-square-fix iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================
   §N+3 — TODO LO QUE APRENDERÁS (single-formaciones)
   ============================================ */

.sf-aprende {
  padding: 64px 24px;
  background: #fff;
}

.sf-aprende-titulo {
  font-size: 24px;
  font-weight: 700;
  color: var(--t-strong);
  margin-bottom: 40px;
}

.sf-aprende-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--br);
}

.sf-aprende-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sf-aprende-video .bunny-square-fix {
  margin: 0;
  max-width: 100%;
}

.sf-aprende-texto h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.sf-aprende-texto p {
  font-size: 14px;
  color: var(--t-body);
  line-height: 1.6;
  margin-bottom: 10px;
}

.sf-aprende-texto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-aprende-texto li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--t-body);
  line-height: 1.55;
}

.sf-aprende-texto li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.sf-aprende-texto strong {
  color: var(--t-strong);
  font-weight: 600;
}

@media (max-width: 767px) {
  .sf-aprende {
    padding: 40px 16px;
  }

  .sf-aprende-item {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .sf-aprende-video { order: 2; }
  .sf-aprende-texto { order: 1; }

  .bunny-square-fix {
    max-width: 100%;
  }
}

/* ============================================
   §N+4 — TESTIMONIOS (single-formaciones)
   ============================================ */

.sf-testimonios {
  padding: 48px 24px 64px;
  background: var(--bg-page);
}

.sf-testimonios-titulo {
  font-size: 24px;
  font-weight: 700;
  color: var(--t-strong);
  margin-bottom: 32px;
}

.sf-testimonios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sf-testimonios-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

@media (max-width: 1024px) {
  .sf-testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .sf-testimonios {
    padding: 32px 16px 48px;
  }

  .sf-testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ============================================
   §N+5 — BIO CARI VENTURA (single-formaciones)
   ============================================ */

.sf-bio {
  padding: 64px 24px;
  background: var(--darksky);
}

.sf-bio-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.sf-bio-foto img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.sf-bio-nombre {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.sf-bio-texto p {
  font-size: 14px;
  color: rgba(255,255,255,.80);
  line-height: 1.75;
  margin-bottom: 14px;
}

.sf-bio-texto p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .sf-bio {
    padding: 40px 16px;
  }

  .sf-bio-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sf-bio-foto {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ============================================
   §N+6 — SINGLE FORMACIONES (manicurista-moderna)
   ============================================ */

/* ── Decoración de marca: textura + destellos ──────────────────
   Reutilizable en cualquier sección oscura (.sf-mm-deco dentro de
   un contenedor con position:relative; overflow:hidden;) ── */
.sf-mm-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sf-mm-deco__tex {
  position: absolute;
  inset: 0;
  background-image: url('https://desarrollo.siguriacademy.com/wp-content/uploads/2026/06/fonfo-manicurista-moderna_11zon.webp');
  background-size: cover;
  background-position: center;
  opacity: .05;
}

.sf-mm-deco__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, #fce6bc 0%, transparent 70%);
  opacity: .18;
  filter: blur(10px);
}

.sf-mm-deco__glow--a { top: -120px; right: -80px; }
.sf-mm-deco__glow--b { bottom: -140px; left: -100px; width: 360px; height: 360px; }

/* ── Hero oscuro (modificador de .sf-page) ──────────────────── */
.sf-page--mm {
  background: var(--darksky);
  position: relative;
  overflow: hidden;
}

.sf-page--mm .sf-wrap { position: relative; z-index: 1; }
.sf-page--mm .sf-title { color: var(--accent); }
.sf-page--mm .sf-tagline {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.sf-mm-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 18px 0;
}

.sf-mm-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sf-mm-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}

.sf-mm-features li::before {
  content: "\2713";
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Caja de formulario — siempre fondo claro para contraste ── */
.sf-mm-formbox {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 32px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.sf-mm-formbox .sf-tabs { margin: -28px -28px 0; }

.sf-mm-formbox .sf-panel {
  margin: 0 -28px -32px;
  padding: 20px 28px 32px;
}

.sf-mm-formbox .sf-section-title { color: var(--t-strong); }
.sf-mm-formbox .sf-divider { border-top-color: #333; }

.sf-mm-formbox label,
.sf-mm-formbox .jet-form-builder__field-label,
.sf-mm-formbox .jet-form-builder__label-text {
  color: var(--t-strong) !important;
}

.sf-mm-formbox input:not([type="checkbox"]):not([type="radio"]),
.sf-mm-formbox select,
.sf-mm-formbox textarea {
  background: #fff !important;
  color: var(--t-strong) !important;
  border: 1px solid var(--br) !important;
  padding: 12px 14px !important;
}

/* ── Switcher "Recuérdame" — bolita propia, nunca blanca ── */
.sf-mm-formbox input[type="checkbox"][role="switch"] {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background-color: var(--br) !important;
  background-image: radial-gradient(circle 9px at 12px 12px, var(--accent-d) 9px, transparent 9.5px);
  background-repeat: no-repeat;
  background-position: 0 0;
  border: none !important;
  cursor: pointer;
  outline: none;
  vertical-align: middle;
  transition: background-color .2s ease, background-position .2s ease;
}

.sf-mm-formbox input[type="checkbox"][role="switch"]:checked {
  background-color: var(--primary) !important;
  background-position: 18px 0;
}

.sf-mm-motiv {
  background: var(--bg-page);
  padding: 64px 24px;
  text-align: center;
}

.sf-mm-motiv__text {
  font-size: 34px;
  font-weight: 400;
  color: var(--t-strong);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.45;
}

.sf-mm-motiv__text strong {
  font-weight: 700;
  color: var(--t-strong);
  font-size: 1.15em;
}

.sf-mm-motiv__mark {
  color: var(--t-strong);
  font-weight: 700;
  font-size: 1.4em;
  vertical-align: -0.05em;
}

.sf-mm-motiv__rule {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: var(--br);
  margin: 16px auto;
}

.sf-mm-clases {
  padding: 64px 24px;
  background: #fff;
}

.sf-mm-clases__in {
  max-width: 1180px;
  margin: 0 auto;
}

.sf-mm-clases__header {
  margin-bottom: 40px;
}

.sf-mm-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.sf-mm-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, var(--darksky) 0%, var(--ds-light) 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(4,69,84,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sf-mm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(4,69,84,.35);
}

.sf-mm-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #fce6bc 0%, transparent 70%);
  opacity: .25;
  pointer-events: none;
}

.sf-mm-card__num {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #fce6bc;
  line-height: 1;
  margin-bottom: 12px;
}

.sf-mm-card .sf-aprende-texto h3 { color: #fff; }
.sf-mm-card .sf-aprende-texto li { color: rgba(255,255,255,.75); }
.sf-mm-card .sf-aprende-texto li::before { color: var(--accent); }
.sf-mm-card .sf-aprende-texto strong { color: var(--accent); }

.sf-mm-tools {
  background: var(--darksky);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.sf-mm-tools__in {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.sf-mm-tools__header {
  text-align: center;
  margin-bottom: 40px;
}

.sf-mm-tools .hp-section-label { color: var(--accent); }
.sf-mm-tools .hp-section-h2 { color: #fff; }

.sf-mm-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sf-mm-tools__card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 28px;
}

.sf-mm-tools__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.sf-mm-tools__card p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .sf-mm-motiv { padding: 40px 16px; }
  .sf-mm-motiv__text { font-size: 26px; }

  .sf-mm-clases { padding: 40px 16px; }
  .sf-mm-card { flex-basis: 260px; padding: 24px 20px; }

  .sf-mm-tools { padding: 40px 16px; }
  .sf-mm-tools__grid { grid-template-columns: 1fr; }
}

/* ============================================
   §HOME — PÁGINA DE INICIO (front-page.php)
   Todos los selectores con prefijo hp- para
   evitar conflictos con el resto del tema.
   ============================================ */

/* ── Tokens locales ─────────────────────────────── */
:root {
  --hp-sv: 88px;
  --hp-ph: 24px;
}

/* ── Utilitarios compartidos en home ─────────────── */
.hp-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hp-section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.hp-section-h2 {
  font-size: 32px; font-weight: 700;
  color: var(--ts); line-height: 1.2;
  margin-bottom: 14px;
}

.hp-section-sub {
  font-size: 15px; color: var(--t-body);
  line-height: 1.7; max-width: 540px;
}

/* ── Botones home ──────────────────────────────────── */
.hp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px; font-size: 14px; font-weight: 700;
  border-radius: 6px;
  transition: background 150ms, color 150ms, border-color 150ms, transform 150ms;
  cursor: pointer; white-space: nowrap;
}

.hp-btn--accent  { background: var(--accent); color: #1a2930; }
.hp-btn--accent:hover  { background: #f5cc50; }

.hp-btn--primary { background: var(--primary); color: #fff; }
.hp-btn--primary:hover { background: var(--primary-d); }

.hp-btn--outline {
  background: transparent; color: rgba(255,255,255,.85);
  border: 2px solid rgba(255,255,255,.35);
}
.hp-btn--outline:hover { border-color: rgba(255,255,255,.7); color: #fff; }

.hp-btn--outline-dark {
  background: transparent; color: var(--ts);
  border: 2px solid var(--br);
}
.hp-btn--outline-dark:hover { border-color: var(--primary); color: var(--primary); }

/* ── §2 HERO ─────────────────────────────────────── */
.hp-hero {
  background: var(--darksky);
  padding: 72px var(--hp-ph) 0;
  overflow: hidden;
}

.hp-hero__in {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 40px;
  align-items: flex-end;
}

.hp-hero__copy { padding-bottom: 0; align-self: center; }

.hp-hero__h1 {
  font-size: 48px; font-weight: 700; color: #fff;
  line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hp-hero__h1 em { color: var(--accent); font-style: normal; }

.hp-hero__sub {
  font-size: 16px; color: rgba(255,255,255,.65);
  line-height: 1.75; margin-bottom: 36px; max-width: 460px;
}

.hp-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hp-hero__img {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
}

.hp-hero__circle {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px;
  background: rgba(109,152,161,.18);
  border-radius: 50%;
}

.hp-hero__photo {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 16px 16px 0 0;
  display: block;
}

.hp-hero__photo-placeholder {
  position: relative; z-index: 1;
  width: 380px; height: 460px;
  background: rgba(255,255,255,.06);
  border-radius: 16px 16px 0 0;
  border: 2px dashed rgba(255,255,255,.15);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.3); font-size: 13px; font-weight: 600;
}

/* ── §4 CTA MASTERCLASS ───────────────────────────── */
.hp-mc {
  background: var(--bg-card);
  padding: var(--hp-sv) var(--hp-ph);
}

.hp-mc__in {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.hp-mc__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8f4f6; color: var(--primary);
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hp-mc__badge::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
}

.hp-mc__h2 {
  font-size: 34px; font-weight: 700;
  color: var(--ts); line-height: 1.2; margin-bottom: 16px;
}

.hp-mc__desc {
  font-size: 15px; color: var(--t-body);
  line-height: 1.7; margin-bottom: 24px;
}

.hp-mc__bullets { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }

.hp-mc__bullet {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ts);
}

.hp-mc__bullet-ico {
  flex-shrink: 0; width: 20px; height: 20px;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.hp-mc__bullet-ico svg {
  width: 11px; height: 11px; stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.hp-mc__meta {
  display: flex; gap: 20px;
  margin-top: 24px; padding-top: 24px; margin-bottom: 28px;
  border-top: 1px solid var(--br); flex-wrap: wrap;
}
.hp-mc__meta-num { font-size: 22px; font-weight: 700; color: var(--primary); }
.hp-mc__meta-label { font-size: 12px; color: var(--tm); }

.hp-mc__video-wrap {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden;
  border: 2px solid var(--br);
  background: var(--darksky);
}
.hp-mc__video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.hp-mc__video-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: rgba(255,255,255,.3); font-size: 13px; font-weight: 600;
}
.hp-play-ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.hp-play-ring svg { width: 24px; height: 24px; fill: rgba(255,255,255,.5); }

/* ── §4.5 MANICURISTA SEGURA ──────────────────────── */
.hp-ms {
  background: var(--darksky);
  padding: var(--hp-sv) var(--hp-ph);
  position: relative; overflow: hidden;
}

.hp-ms__deco {
  position: absolute; top: -120px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(109,152,161,.07); pointer-events: none;
}
.hp-ms__deco-2 {
  position: absolute; bottom: -80px; left: 40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(238,186,61,.04); pointer-events: none;
}

.hp-ms__in {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 360px;
  gap: 64px; align-items: center;
}

.hp-ms__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(238,186,61,.12); color: var(--accent);
  border: 1px solid rgba(238,186,61,.2);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}

.hp-ms__h2 {
  font-size: 38px; font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px;
}
.hp-ms__h2 em { color: var(--accent); font-style: normal; }

.hp-ms__desc {
  font-size: 15px; color: rgba(255,255,255,.58);
  line-height: 1.75; margin-bottom: 32px; max-width: 480px;
}

.hp-ms__hl-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 36px;
}

.hp-ms__hl {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 16px;
}
.hp-ms__hl-ico {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(109,152,161,.2); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.hp-ms__hl-ico svg {
  width: 18px; height: 18px; stroke: var(--primary); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.hp-ms__hl-num { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
.hp-ms__hl-label { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }

.hp-ms__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hp-ms__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden;
}
.hp-ms__card-img {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(109,152,161,.3), rgba(4,69,84,.85));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: 12px; font-weight: 600;
  overflow: hidden;
}
.hp-ms__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-ms__card-body { padding: 24px; }
.hp-ms__card-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.hp-ms__card-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 20px; line-height: 1.5; }
.hp-ms__card-sep { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 18px 0; }
.hp-ms__card-inc { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.hp-ms__card-inc-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.hp-ms__card-inc-item svg {
  width: 14px; height: 14px; stroke: var(--primary); fill: none;
  stroke-width: 2.5; flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round;
}
.hp-ms__card-desde { font-size: 12px; color: rgba(255,255,255,.3); margin-bottom: 4px; }
.hp-ms__card-precio { font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.hp-ms__card-precio-sub { font-size: 11px; color: rgba(255,255,255,.3); margin-bottom: 20px; }

/* ── §4.5 MANICURA MODERNA (próximamente) ─────────── */
.hp-mm {
  background: var(--darksky);
  padding: var(--hp-sv) var(--hp-ph);
  position: relative; overflow: hidden;
}

.hp-mm__deco {
  position: absolute; top: -120px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(109,152,161,.07); pointer-events: none;
}

.hp-mm__in {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center;
}

.hp-mm__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(238,186,61,.12); color: var(--accent);
  border: 1px solid rgba(238,186,61,.2);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}

.hp-mm__h2 {
  font-size: 38px; font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px;
}
.hp-mm__h2 em { color: var(--accent); font-style: normal; }

.hp-mm__meta {
  display: flex; gap: 20px;
  margin-top: 20px; padding-top: 20px; margin-bottom: 20px;
  border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap;
}
.hp-mm__meta-num { font-size: 16px; font-weight: 700; color: #fff; }

.hp-mm__desc {
  font-size: 15px; color: rgba(255,255,255,.58);
  line-height: 1.75; margin-bottom: 16px; max-width: 480px;
}

.hp-mm__ctas {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px;
}

.hp-mm__soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 8px;
}
.hp-mm__soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: hp-mm-pulse 1.6s ease-in-out infinite;
}
@keyframes hp-mm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.hp-mm__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px;
}

.hp-mm__card-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}

.hp-mm__card-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 20px;
}

.hp-mm__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}

.hp-mm__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.7);
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hp-mm__list li:last-child { border-bottom: none; padding-bottom: 0; }

.hp-mm__num {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(109,152,161,.2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ── §5 ¿PARA QUIÉN? ─────────────────────────────── */
.hp-pq {
  background: var(--bg-page);
  padding: var(--hp-sv) var(--hp-ph);
}

.hp-pq__header { text-align: center; margin-bottom: 52px; }
.hp-pq__header .hp-section-sub { margin: 0 auto; }

.hp-pq__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-pq__card {
  background: var(--bg-card); border-radius: 12px;
  padding: 36px 28px; border: 1px solid var(--br);
  transition: box-shadow 200ms, transform 200ms;
  display: flex; flex-direction: column;
}
.hp-pq__card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }

.hp-pq__ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: #e8f4f6;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.hp-pq__ico svg {
  width: 26px; height: 26px; stroke: var(--primary); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.hp-pq__titulo { font-size: 17px; font-weight: 700; color: var(--ts); margin-bottom: 10px; line-height: 1.3; }
.hp-pq__desc { font-size: 14px; color: var(--t-body); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.hp-pq__quote {
  font-size: 13px; font-style: italic; color: var(--primary);
  border-left: 3px solid var(--primary); padding-left: 12px;
  line-height: 1.55; margin-top: auto;
}

/* ── Variante oscura (single-formaciones-manicurista-moderna) ──
   Scoped bajo .sf-mm-pq--dark para no afectar la home ── */
.sf-mm-pq--dark.hp-pq { background: var(--darksky); }
.sf-mm-pq--dark .hp-section-label { color: var(--accent); }
.sf-mm-pq--dark .hp-section-h2 { color: #fff; }
.sf-mm-pq--dark .hp-pq__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.sf-mm-pq--dark .hp-pq__card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.35); }
.sf-mm-pq--dark .hp-pq__ico { background: rgba(238,186,61,.15); }
.sf-mm-pq--dark .hp-pq__ico svg { stroke: var(--accent); }
.sf-mm-pq--dark .hp-pq__titulo { color: #fff; }

/* ── §6 CARI VENTURA ─────────────────────────────── */
.hp-cari {
  background: var(--bg-card);
  padding: var(--hp-sv) var(--hp-ph);
  border-top: 1px solid var(--br);
}

.hp-cari__in {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr;
  gap: 72px; align-items: center;
}

.hp-cari__img { position: relative; }

.hp-cari__photo {
  width: 100%; border-radius: 16px; object-fit: cover;
  aspect-ratio: 3/4; display: block;
}

.hp-cari__badge {
  position: absolute; bottom: 24px; right: -20px;
  background: #fff; border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: 4px;
  min-width: 140px;
}
.hp-cari__badge-num { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1; }
.hp-cari__badge-label { font-size: 12px; color: var(--tm); }
.hp-cari__badge-stars { display: flex; gap: 2px; margin-top: 2px; }
.hp-star { width: 12px; height: 12px; fill: var(--accent); }

.hp-cari__label { color: var(--primary); }
.hp-cari__nombre { font-size: 36px; font-weight: 700; color: var(--ts); line-height: 1.15; margin-bottom: 20px; }

.hp-cari__bio p { font-size: 15px; color: var(--t-body); line-height: 1.75; margin-bottom: 16px; }
.hp-cari__bio p:last-child { margin-bottom: 0; }

.hp-cari__feats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 32px;
}
.hp-cari__feat { display: flex; align-items: flex-start; gap: 10px; }
.hp-cari__feat-ico {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: #e8f4f6;
  display: flex; align-items: center; justify-content: center;
}
.hp-cari__feat-ico svg {
  width: 18px; height: 18px; stroke: var(--primary); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.hp-cari__feat-num { font-size: 16px; font-weight: 700; color: var(--ts); }
.hp-cari__feat-label { font-size: 12px; color: var(--tm); }

/* ── §7 BLOG HOME ────────────────────────────────── */
.hp-blog {
  background: var(--bg-page);
  padding: var(--hp-sv) var(--hp-ph);
  border-top: 1px solid var(--br);
}

.hp-blog__header {
  max-width: 1200px; margin: 0 auto 40px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

.hp-blog__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-blog__card {
  background: var(--bg-card); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--br);
  transition: box-shadow 200ms, transform 200ms;
}
.hp-blog__card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.07); transform: translateY(-2px); }

.hp-blog__thumb {
  display: block; width: 100%;
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #e8f4f6, var(--bg-page));
}
.hp-blog__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 300ms ease;
}
.hp-blog__card:hover .hp-blog__thumb img { transform: scale(1.04); }

.hp-blog__body { padding: 22px; }
.hp-blog__cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); margin-bottom: 8px;
}
.hp-blog__titulo { font-size: 15px; font-weight: 700; color: var(--ts); line-height: 1.35; margin-bottom: 10px; }
.hp-blog__titulo a { color: inherit; }
.hp-blog__titulo a:hover { color: var(--primary); }
.hp-blog__excerpt {
  font-size: 13px; color: var(--t-body); line-height: 1.6; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-blog__link {
  font-size: 13px; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}
.hp-blog__link:hover { color: var(--primary-d); }

/* Centrar headers de secciones con max-width */
.hp-pq__header {
  max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ── §HP-TECNICAS — ¿QUÉ ENSEÑAMOS? ─────────────── */
.hp-tech {
  background: #EFEFEF;
  padding: var(--hp-sv) var(--hp-ph);
  border-top: 1px solid var(--br);
}

.hp-tech__header {
  max-width: 1200px; margin: 0 auto 48px;
  text-align: center;
}

.hp-tech__header .hp-section-sub { margin: 0 auto; }

.hp-tech__grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hp-tech__card {
  background: var(--bg-card); border-radius: 12px;
  overflow: hidden; border: 1px solid var(--br);
  transition: box-shadow 200ms, transform 200ms;
}
.hp-tech__card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); transform: translateY(-2px); }

.hp-tech__img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-page);
  display: block;
}
.hp-tech__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 350ms ease;
}
.hp-tech__card:hover .hp-tech__img img { transform: scale(1.05); }

.hp-tech__body { padding: 16px 18px 20px; }

.hp-tech__nombre {
  font-size: 14px; font-weight: 700; color: var(--ts);
  margin-bottom: 6px; line-height: 1.3;
}

.hp-tech__desc {
  font-size: 12px; color: var(--t-body); line-height: 1.6;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-hero__in { grid-template-columns: 1fr 420px; }
  .hp-hero__h1 { font-size: 38px; }
  .hp-cari__in { grid-template-columns: 300px 1fr; gap: 48px; }
  .hp-tech__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --hp-sv: 60px; }

  .hp-hero { padding-top: 52px; }
  .hp-hero__in { grid-template-columns: 1fr; }
  .hp-hero__copy { padding-bottom: 40px; }
  .hp-hero__img { justify-content: center; }
  .hp-hero__h1 { font-size: 32px; }

  .hp-mc__in { grid-template-columns: 1fr; gap: 40px; }
  .hp-mc__video-wrap { max-width: 480px; margin: 0 auto; }

  .hp-ms__in { grid-template-columns: 1fr; gap: 40px; }
  .hp-ms__h2 { font-size: 30px; }
  .hp-ms__card { max-width: 480px; margin: 0 auto; width: 100%; }

  .hp-mm__in { grid-template-columns: 1fr; gap: 40px; }
  .hp-mm__h2 { font-size: 30px; }
  .hp-mm__card { max-width: 480px; margin: 0 auto; width: 100%; }

  .hp-pq__grid { grid-template-columns: 1fr; }

  .hp-cari__in { grid-template-columns: 1fr; gap: 40px; }
  .hp-cari__img { max-width: 300px; margin: 0 auto; }
  .hp-cari__badge { right: 0; }
  .hp-cari__feats { grid-template-columns: repeat(2, 1fr); }

  .hp-blog__grid { grid-template-columns: 1fr; }
  .hp-blog__header { flex-direction: column; align-items: flex-start; }
  .hp-tech__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  :root { --hp-ph: 16px; --hp-sv: 48px; }

  .hp-hero__h1 { font-size: 26px; }
  .hp-hero__ctas { flex-direction: column; }
  .hp-btn { justify-content: center; }

  .hp-ms__h2 { font-size: 26px; }
  .hp-ms__hl-grid { grid-template-columns: repeat(2, 1fr); }

  .hp-mm__h2 { font-size: 26px; }
  .hp-mm__ctas { flex-direction: column; align-items: flex-start; }

  .hp-cari__feats { grid-template-columns: 1fr; }
}
