/* Fullstars — piezas propias de la app. Se carga después de tokens.css y fullstars.css.
   Mismas reglas que el diseño (DESIGN.md): solo var(--…) de tokens.css y prefijo fm-.
   Aquí va lo que la app necesita y el diseño no trae; si algo se vuelve común, se sube al diseño. */

[hidden] { display: none !important; }
.fm-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fm-skip { position: absolute; z-index: 200; left: var(--space-4); top: calc(-2 * var(--control-lg)); }
.fm-skip:focus { top: var(--space-4); }
.fm-count { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---------- Estructura de página (app) ---------- */
/* El fondo lo pinta fm-aurora (fullstars.css), que lleva el mismo elemento. */
.fm-shell { box-sizing: border-box; min-height: 100vh; padding: var(--space-6); color: var(--ink); font-family: var(--font-sans); }
.fm-shell__inner { max-width: var(--shell); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-6); }
.fm-main { flex: 999 1 var(--main-min); min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.fm-page-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0 var(--space-1); }
.fm-page-top__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.fm-card__title--tight { margin-top: calc(-1 * var(--space-2)); }
.fm-card__intro { display: flex; flex-direction: column; gap: var(--space-2); margin-top: calc(-1 * var(--space-2)); }
.fm-footer { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) 0 var(--space-6); border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.fm-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); font-weight: 600; }
.fm-footer a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.fm-footer a:hover { color: var(--ink); }
.fm-footer a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

/* ---------- Menú lateral ---------- */
.fm-sidebar { box-sizing: border-box; position: sticky; top: var(--space-6); max-height: calc(100vh - 2 * var(--space-6)); overflow-y: auto; }
.fm-sidebar__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fm-sidebar .fm-logo { padding: var(--space-2) var(--space-3) var(--space-4); }
.fm-sidebar__toggle { display: none; }
.fm-sidebar__body { display: flex; flex-direction: column; gap: 2px; }
.fm-sidebar form { margin: 0; }
.fm-sidebar .fm-select-wrap { display: flex; margin-bottom: var(--space-2); }
.fm-sidebar .fm-select-wrap .fm-select { width: 100%; }
/* Banderas de los marketplaces: del tamaño de la letra que las acompaña */
.fm-flag { display: inline-block; width: 1.15em; height: 1.15em; margin-right: 0.4em; border-radius: 50%; object-fit: cover; vertical-align: -0.2em; flex: none; box-shadow: 0 0 0 1px var(--line); }
.fm-select-wrap--flag .fm-select-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; font-size: 14px; }
.fm-select-wrap--flag .fm-select-flag .fm-flag { margin: 0; }
.fm-select-wrap--flag .fm-select { padding-left: 40px; }
button.fm-nav__item { width: 100%; border: 0; background: transparent; font-family: var(--font-sans); text-align: left; }
.fm-plan { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--lime-soft); display: flex; flex-direction: column; gap: var(--space-2); }
.fm-plan .fm-badge { align-self: flex-start; }
.fm-plan__text { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; }
.fm-plan .fm-link { font-size: 13px; }
@media (max-width: 880px) {
  .fm-shell { padding: var(--space-4); }
  .fm-sidebar { position: static; width: 100%; max-height: none; overflow: visible; }
  .fm-sidebar .fm-logo { padding-bottom: var(--space-2); }
  .fm-sidebar__toggle { display: inline-grid; }
  .fm-sidebar__body { display: none; padding-top: var(--space-2); }
  .fm-sidebar.is-open .fm-sidebar__body { display: flex; }
}

/* ---------- Avisos y diálogos ---------- */
.fm-alert form { margin: 0; }
.fm-log--wrap { max-width: none; margin-top: var(--space-1); white-space: normal; overflow-wrap: anywhere; }
.fm-dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: var(--scrim); }
.fm-dialog { width: 100%; max-width: var(--dialog); max-height: calc(100vh - 2 * var(--space-4)); overflow-y: auto; box-shadow: var(--shadow-float); }
.fm-dialog__text { margin: 0; white-space: pre-line; font-size: 15px; line-height: 22px; }
.fm-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }

/* ---------- Tarjeta plegable ---------- */
.fm-card--details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fm-card--details > summary::-webkit-details-marker { display: none; }
.fm-card--details > summary::after { content: "Mostrar"; font-size: 13px; font-weight: 700; color: var(--green-ink); }
.fm-card--details[open] > summary::after { content: "Ocultar"; }
.fm-card--details[open] > summary { margin-bottom: var(--space-5); }
.fm-card--details > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }

/* ---------- Panel: búsqueda y envío ---------- */
.fm-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.fm-controls__end { margin-left: auto; display: flex; gap: var(--space-2); }
.fm-field--short { width: min(100%, var(--field-short)); }
.fm-checkcard__body { min-width: 0; }
.fm-checkcard__title, .fm-chip { overflow-wrap: anywhere; }
.fm-checkcards.is-locked .fm-checkcard { opacity: .6; cursor: not-allowed; }
.fm-progress__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.fm-progress__meta .is-paused { color: var(--warning); }
.fm-progress.is-paused .fm-progress__fill { background: var(--warning); }
.fm-progress.is-error .fm-progress__fill { background: var(--danger); }
.fm-live { margin: 0; min-height: 20px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--green-ink); }
.fm-live.is-paused { color: var(--warning); }
button.fm-kpi:disabled { cursor: not-allowed; opacity: .65; }
button.fm-kpi:disabled:hover { border-color: transparent; }
.fm-detail-head { display: flex; flex-direction: column; gap: var(--space-1); }
.fm-detail-head__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; }
.fm-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.fm-search-row .fm-search { flex: 1 1 var(--col-wide); }
.fm-search-row__select { flex: 0 0 var(--select-min); }
.fm-search-row__select .fm-select { width: 100%; }

/* ---------- Tablas con desplazamiento ---------- */
.fm-table-wrap--scroll { max-height: var(--scroll-max); overflow: auto; }
.fm-table-wrap--scroll .fm-table th { position: sticky; top: 0; z-index: 1; }
.fm-table .is-check { width: var(--check-col); }
.fm-table tr.is-selected td { background: var(--glass-muted); }
.fm-table tr.is-child td { background: var(--glass-muted); }
.fm-table tr.is-child td:nth-child(2) { padding-left: var(--space-8); }
.fm-table td .fm-empty { margin: var(--space-2) 0; }
.fm-table .is-wrap { white-space: normal; max-width: var(--dialog); }

/* ---------- Temas de opinión ---------- */
.fm-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--col-wide), 1fr)); gap: var(--space-6); }
.fm-topics__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: 14px; line-height: 20px; font-weight: 700; }
.fm-topiclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.fm-topic { display: flex; flex-direction: column; gap: 6px; }
.fm-topic__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.fm-topic__name { font-weight: 600; overflow-wrap: anywhere; }
.fm-topic__meta { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.fm-topic__track { height: 6px; border-radius: var(--radius-full); background: var(--data-track); overflow: hidden; }
.fm-topic__bar { display: block; height: 100%; width: var(--v, 0%); border-radius: var(--radius-full); background: linear-gradient(90deg, var(--teal-ink), var(--data-1)); }
.fm-topic__bar--neg { background: var(--danger); }

/* ---------- Registro de actividad ---------- */
.fm-logbox { max-height: calc(var(--scroll-max) / 2); overflow-y: auto; padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); background: var(--glass-muted); font-family: var(--font-mono); font-size: 12px; line-height: 20px; color: var(--ink-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-logbox .is-ok { color: var(--success); }
.fm-logbox .is-warn { color: var(--warning); }
.fm-logbox .is-err { color: var(--danger); }

/* ---------- Piezas comunes de formularios y listas ---------- */
.fm-stack--tight { gap: var(--space-2); }
.fm-stack--form { gap: var(--space-4); }
.fm-row--tight { gap: var(--space-2); }
.fm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--col-min), 1fr)); gap: var(--space-4); }
.fm-field .fm-select-wrap { display: flex; }
.fm-field .fm-select-wrap .fm-select { width: 100%; }
.fm-select-wrap--sm .fm-select { height: var(--control-sm); font-size: 13px; }
.fm-select-wrap--sm::after { margin-top: -5px; }
.fm-hint { margin: 0; }
.fm-hint--error { color: var(--danger); font-weight: 600; }
.fm-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fm-fieldset:disabled { opacity: .6; }
.fm-fieldset > legend.fm-label { padding: 0; margin-bottom: 6px; }
.fm-btn--block { width: 100%; }
.fm-textbtn { padding: 0; border: 0; background: none; font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fm-textbtn--sm { font-size: 12px; line-height: 16px; }
.fm-textbtn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
.fm-textbtn:disabled { color: var(--ink-disabled); cursor: not-allowed; }
.fm-disclosure > summary { list-style: none; display: inline; }
.fm-disclosure > summary::-webkit-details-marker { display: none; }
.fm-plainlist { margin: var(--space-2) 0 0; padding-left: var(--space-5); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.fm-saved { margin: 0; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }
.fm-saved.is-ok { color: var(--success); }
.fm-saved.is-error { color: var(--danger); }
.fm-dialog--wide { max-width: var(--dialog-wide); }
.fm-notice--toast { z-index: 60; }

/* Bloque plegable con «Mostrar» / «Ocultar» a la derecha */
.fm-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; font-weight: 700; }
.fm-details > summary::-webkit-details-marker { display: none; }
.fm-details > summary::after { content: "Mostrar"; flex: none; font-size: 13px; font-weight: 700; color: var(--green-ink); }
.fm-details[open] > summary::after { content: "Ocultar"; }
.fm-details[open] > summary { margin-bottom: var(--space-4); }
.fm-details > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
details.fm-kpi[open] { gap: var(--space-3); }
.fm-switch__text { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }

/* ---------- Resumen ---------- */
a.fm-chip { text-decoration: none; }
.fm-card--compact { gap: var(--space-4); }
.fm-eyebrow--h { margin: 0; }
.fm-stack--xs { gap: var(--space-1); }
.fm-card__title--display { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 500; }
.fm-kpis--wide { grid-template-columns: repeat(auto-fit, minmax(var(--col-min), 1fr)); }
.fm-kpi--grow { flex: 1; }
.fm-kpi--panel { gap: var(--space-4); padding: var(--space-5) var(--space-6); }
.fm-dot--data2 { background: var(--data-2); }
.fm-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-5); }
.fm-split > * { flex: 1 1 var(--split-min); min-width: 0; }
.fm-split > .fm-split__wide { flex-basis: var(--split-wide); }
.fm-steps .fm-step > .fm-badge { align-self: flex-start; }

/* ---------- Cuentas ---------- */
.fm-account { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.fm-avatar { display: grid; place-items: center; flex: none; width: var(--avatar); height: var(--avatar); border-radius: var(--radius-md); background: radial-gradient(130% 160% at 0% 0%, var(--lime-1), var(--lime-2) 42%, var(--lime-3)); box-shadow: var(--shadow-lime); font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--on-lime); }
.fm-avatar--dark { background: radial-gradient(130% 160% at 0% 0%, var(--deep-1), var(--deep-2) 48%, var(--deep-3)); box-shadow: var(--shadow-deep); color: var(--on-inverse); }
.fm-kpis--narrow { grid-template-columns: repeat(auto-fit, minmax(var(--select-min), 1fr)); }
.fm-kpi__value--text { font-size: 20px; line-height: 32px; }
.fm-baseline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.fm-checkcards--narrow { grid-template-columns: repeat(auto-fill, minmax(var(--checkcard-min), 1fr)); }
div.fm-checkcard { cursor: default; }
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-top: var(--space-1); }
.fm-actions form { margin: 0; }
.fm-actions__end { margin-left: auto; }
.fm-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr)); gap: var(--space-5); }
.fm-card--start { align-items: flex-start; }
.fm-checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.fm-checklist li { display: flex; gap: 10px; }
.fm-checklist .fm-icon { color: var(--teal-ink); margin-top: 1px; }
.fm-center { text-align: center; }

/* ---------- Piloto automático ---------- */
.fm-pilot-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); }
.fm-pilot-state__text { font-size: 14px; line-height: 20px; font-weight: 600; }
.fm-pp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-6); }
.fm-pp__perfiles { flex: 1 1 var(--col-wide); min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.fm-pp__perfiles .fm-checkcard__title { overflow-wrap: anywhere; }
.fm-pp__title { margin: 0 0 var(--space-1); }
.fm-pp__productos { flex: 3 1 var(--main-min); min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.fm-pp__head { display: flex; flex-direction: column; gap: var(--space-2); }
.fm-pp__headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fm-pp__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fm-pagination { display: inline-flex; align-items: center; gap: var(--space-2); }
.fm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-muted); }
.fm-bulk__spacer { flex: 1; }
.fm-steps--five { grid-template-columns: repeat(auto-fit, minmax(var(--field-short), 1fr)); }

@media (max-width: 640px) {
  .fm-pilot-state { border-radius: var(--radius-lg); }
  .fm-kpis--main { grid-template-columns: 1fr; }
}

/* ---------- Tipografía de titulares (landing, acceso, legales) ---------- */
.fm-display { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 46px; font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.fm-display--xl { font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; }
.fm-display--lg { font-size: 40px; line-height: 46px; }
.fm-display--md { font-size: 32px; line-height: 38px; font-weight: 500; }
.fm-display--sm { font-size: 32px; line-height: 38px; font-weight: 500; }
.fm-lead { margin: 0; max-width: 34rem; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.fm-small { font-size: 12px; line-height: 16px; }
.fm-link--sm { font-size: 13px; }
.fm-nowrap { flex-wrap: nowrap; }
.fm-nowrap > * { flex: none; }
.fm-select-wrap--sm .fm-select { width: auto; }
.fm-table td.fm-num { white-space: nowrap; }
.fm-gap { padding: 0 var(--space-1); border-radius: var(--radius-xs); background: var(--warning-soft); color: var(--warning); font-weight: 700; }
@media (max-width: 640px) {
  .fm-display, .fm-display--lg { font-size: 30px; line-height: 36px; }
  .fm-display--md, .fm-display--sm { font-size: 26px; line-height: 32px; }
}

/* ---------- Páginas públicas ---------- */
.fm-public { box-sizing: border-box; min-height: 100vh; padding: var(--space-6) var(--space-6) var(--space-8); color: var(--ink); font-family: var(--font-sans); }
.fm-public__inner { max-width: var(--public); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-16); }
.fm-public__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.fm-public__main { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; }
.fm-public__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.fm-public__foot a { color: var(--ink-muted); }
.fm-public__foot a:hover { color: var(--ink); }
.fm-logo--sm .fm-logo__mark { height: 28px; }
.fm-logo--sm .fm-logo__wordimg { height: 18px; }
.fm-logo--sm .fm-logo__word { font-size: 17px; }
.fm-section { display: flex; flex-direction: column; gap: var(--space-6); }
.fm-section-head { display: flex; flex-direction: column; gap: var(--space-3); }
.fm-section-head--center { align-items: center; text-align: center; }
.fm-section-head--center .fm-lead { max-width: var(--prose); }
.fm-section-head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.fm-section-head__aside { max-width: 28rem; }
.fm-center-row { display: flex; justify-content: center; }
.fm-tabs { padding: var(--space-1); border: 1px solid var(--glass-border); border-radius: var(--radius-full); background: var(--glass-muted); align-self: flex-start; }
.fm-tabs .fm-chip { border: 0; }
.fm-tabs .fm-chip:not(.is-active):not([aria-pressed="true"]) { background: transparent; }
@media (max-width: 880px) {
  .fm-public { padding: var(--space-4) var(--space-4) var(--space-6); }
  .fm-public__inner, .fm-public__main { gap: var(--space-12); }
  .fm-public__nav { display: none; }
}

/* Hero de la portada */
.fm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.fm-hero__text { flex: 1 1 var(--main-min); min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.fm-hero__text .fm-eyebrow--pill { align-self: flex-start; }
.fm-hero__demo { flex: 1 1 var(--hero-min); min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); position: relative; isolation: isolate; }
.fm-hero__orb { position: absolute; z-index: -1; width: var(--orb); right: calc(-1 * var(--space-10)); top: calc(-2 * var(--space-8)); }
.fm-hero__week { grid-column: 1 / -1; padding: var(--space-5) var(--space-6); }
.fm-hero__nota { grid-column: 1 / -1; margin: 0; text-align: right; }
.fm-kpi--hero { padding: var(--space-6); }
.fm-kpi__value--xl { font-size: 64px; line-height: 64px; }
.fm-ticks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.fm-ticks span { display: inline-flex; align-items: center; gap: 6px; }
.fm-ticks .fm-icon { width: 16px; height: 16px; color: var(--green-ink); }
.fm-step--tall { min-height: var(--step-tall); }
.fm-card--big { padding: var(--space-12); gap: var(--space-8); }
.fm-card--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.fm-card__prose { max-width: 40rem; }
.fm-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--col-min), 1fr)); gap: var(--space-6); }
.fm-pillar { display: flex; flex-direction: column; gap: var(--space-2); }
.fm-pillar__title { font-family: var(--font-display); font-size: 28px; line-height: 34px; color: var(--inverse-accent); }
.fm-pillar p { margin: 0; font-size: 14px; line-height: 21px; }
@media (max-width: 640px) {
  .fm-card--big { padding: var(--space-6); }
  .fm-kpi__value--xl { font-size: 44px; line-height: 48px; }
  .fm-hero__orb { width: var(--orb-lg); right: calc(-1 * var(--space-16)); }
}

/* Planes */
.fm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--col-wide)), 1fr)); gap: var(--space-4); align-items: stretch; }
.fm-plans[data-periodo="mensual"] .solo-anual, .fm-plans[data-periodo="anual"] .solo-mensual { display: none; }
.fm-plan-card { gap: var(--space-5); }
.fm-plan-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.fm-plan-card__lema { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.fm-card--lime .fm-plan-card__lema, .fm-card--lime .fm-plan-card__nota { color: var(--on-lime); }
.fm-plan-card__nota { margin: calc(-1 * var(--space-4)) 0 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.fm-plan-card__accion { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.fm-plan-card__accion form { margin: 0; }
.fm-plan-card__accion .fm-plan-card__nota { margin: 0; }
.fm-price { display: flex; align-items: baseline; gap: 6px; }
.fm-price__value { font-family: var(--font-display); font-size: 44px; line-height: 48px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fm-price__unit { font-weight: 600; color: var(--ink-muted); }
.fm-card--lime .fm-price__unit { color: var(--on-lime); }
.fm-checklist--plan { color: var(--ink); }
.fm-checklist--plan .fm-icon { color: var(--green-ink); }
.fm-card--lime .fm-checklist--plan .fm-icon { color: var(--on-lime); }
.fm-checklist li.is-soon { color: var(--ink-muted); }
.fm-card--lime .fm-checklist li.is-soon { color: var(--on-lime); }
.fm-faq { display: flex; flex-direction: column; gap: var(--space-3); }
.fm-faq .fm-details { padding: var(--space-4) var(--space-5); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-muted); }
.fm-faq .fm-details[open] > summary { margin-bottom: var(--space-2); }

/* Mi cuenta y Mi plan */
.fm-split--stretch { align-items: stretch; }
.fm-kpi__text { font-size: 14px; line-height: 20px; font-weight: 600; }
.fm-kpi__unit { font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.fm-progress--on-lime { margin-top: var(--space-1); }
.fm-progress--on-lime .fm-progress__track { background: var(--glass-hi); }
.fm-progress--on-lime .fm-progress__fill { background: var(--deep-2); }
.fm-progress--on-lime .fm-progress__head { color: var(--on-lime); }
.fm-plan-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--mini-min), 1fr)); gap: var(--space-3); }
.fm-kpi.is-current { border-color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green-ink); }
.fm-grid-cards--start { align-items: start; }
.fm-delete-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.fm-delete-form .fm-field { flex: 1 1 var(--col-min); }
.fm-kpis--tiny { grid-template-columns: repeat(auto-fit, minmax(var(--tiny-min), 1fr)); }

/* Acceso (entrar, crear cuenta, contraseña) */
.fm-public--acceso .fm-public__inner { min-height: calc(100vh - 2 * var(--space-6)); gap: var(--space-8); }
.fm-acceso { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-16); }
.fm-acceso__card { flex: 0 1 var(--auth); padding: var(--space-8); gap: var(--space-5); }
.fm-acceso__aside { flex: 1 1 var(--orb-lg); max-width: var(--aside-max); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--space-4); }
.fm-acceso__orb { position: absolute; z-index: -1; width: var(--orb-lg); left: var(--space-10); top: calc(-1 * var(--space-16)); }
.fm-feature { display: flex; gap: var(--space-3); align-items: flex-start; }
.fm-feature strong { font-size: 15px; }
.fm-feature .fm-card__text { font-size: 14px; margin-top: 2px; }
.fm-feature__icon { color: var(--teal-ink); border: 1px solid var(--glass-border); }
.fm-input--lg { height: var(--input-lg); }
.fm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 500; }
.fm-check .fm-checkbox { margin-top: 0; }
@media (max-width: 880px) {
  .fm-acceso { gap: var(--space-8); }
  .fm-acceso__card { padding: var(--space-6); }
  .fm-acceso__aside { display: none; }
}

/* Campo de contraseña con botón para verla */
.fm-password { position: relative; display: block; }
.fm-password .fm-input { padding-right: calc(var(--control-sm) + var(--space-3)); }
.fm-password__btn { position: absolute; right: var(--space-1); top: 50%; transform: translateY(-50%); border-color: transparent; background: transparent; }
.fm-password__btn:hover { border-color: transparent; }

/* Formularios pequeños en tablas (admin) */
.fm-input--sm { height: var(--control-sm); font-size: 13px; padding: 0 10px; }
.fm-input--days { width: var(--days-w); }
.fm-search--fixed { width: var(--search-w); max-width: 100%; }
.fm-table-wrap--tall { max-height: var(--tall-max); overflow: auto; }
.fm-table-wrap--tall .fm-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.fm-badge--lg { height: 28px; padding: 0 14px; }

/* Textos legales */
.fm-prose { gap: var(--space-3); max-width: 60rem; }
.fm-prose h3 { margin: var(--space-4) 0 0; font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.fm-prose h3:first-child { margin-top: 0; }
.fm-prose p, .fm-prose ul { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink); max-width: var(--prose); }
.fm-prose ul { padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.fm-prose a { color: var(--green-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fm-prose code { font-family: var(--font-mono); font-size: 13px; }
.fm-prose .fm-table-wrap { margin: var(--space-2) 0; }

/* ---------- Selector de idioma (arriba a la derecha) ---------- */
.fm-topline { display: flex; justify-content: flex-end; margin-bottom: calc(-1 * var(--space-3)); }
.fm-lang { position: relative; }
.fm-lang__btn { list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-sm); padding: 0 var(--space-3); border: 1px solid var(--glass-border); border-radius: var(--radius-full); background: var(--glass-hi); color: var(--ink); font-size: 13px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fm-lang__btn::-webkit-details-marker { display: none; }
.fm-lang__btn .fm-flag { margin: 0; }
.fm-lang__btn .fm-icon { width: 14px; height: 14px; color: var(--ink-muted); transition: transform .15s ease-out; }
.fm-lang[open] .fm-lang__btn .fm-icon { transform: rotate(180deg); }
.fm-lang__btn:hover { background: var(--surface); }
.fm-lang__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.fm-lang__menu { position: absolute; right: 0; top: calc(100% + var(--space-2)); z-index: 70; min-width: var(--select-min); margin: 0; padding: var(--space-2); display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-float); }
.fm-lang__item { display: flex; align-items: center; gap: var(--space-1); width: 100%; height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.fm-lang__item:hover { background: var(--surface-muted); }
.fm-lang__item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.fm-lang__item[aria-current="true"] { background: var(--lime-soft); color: var(--green-ink); }
@media (max-width: 640px) {
  .fm-lang__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .fm-lang__btn .fm-icon { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .fm-skip { transition: none; }
}

/* Ayuda: formulario de reportes */
.fm-textarea {
  box-sizing: border-box; width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.fm-textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.fm-textarea:hover { border-color: var(--ink); }
.fm-textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: var(--focus-ring); }
.fm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink); }
.fm-check input { margin-top: 3px; accent-color: var(--ink); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fm-plan__badge { text-decoration: none; cursor: pointer; }
.fm-plan__badge:hover { text-decoration: underline; }
.fm-plan__badge:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.fm-contact-email { color: var(--green-ink); font-weight: 700; user-select: all; }

/* Ayuda: zona para adjuntar (arrastrar o elegir) y lista de archivos elegidos */
.fm-drop { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 88px; padding: var(--space-4);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted);
  font-size: 14px; line-height: 20px; text-align: center; cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out; }
.fm-drop:hover, .fm-drop.is-over { border-color: var(--green-ink); background: var(--lime-soft); color: var(--ink); }
.fm-drop:focus-within { border-color: var(--ink); box-shadow: var(--focus-ring); }
.fm-drop.is-full { opacity: .6; }
.fm-drop__icon { display: inline-flex; color: var(--green-ink); }
.fm-drop__icon .fm-icon { width: 22px; height: 22px; }
.fm-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.fm-files:empty { display: none; }
.fm-files__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm); background: var(--glass-muted); min-width: 0; }
.fm-files__thumb { flex: none; width: 44px; height: 44px; border-radius: var(--radius-xs); overflow: hidden; display: flex;
  align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line-strong); }
.fm-files__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-files__thumb--doc { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--green-ink); }
.fm-files__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fm-files__name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-files__size { font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* Páginas de error (404, 405, 500) */
.fm-error-page { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 640px; }
.fm-error-page__code { font-family: var(--font-display); font-size: 64px; line-height: 1; font-weight: 800; color: var(--green-ink); }
