/* =====================================================================
   MI PROGRESO (FAMILIAS) — Estilos aislados del módulo #fam-report
   No dependen del build precompilado de Tailwind. Diseñados para el
   ancho real de la vista (máx. 600px), alto contraste y lectura fácil.
   ===================================================================== */

#fam-report {
    --fp-card: #10151c;
    --fp-card2: #161d27;
    --fp-card3: #1b2430;
    --fp-line: #263243;
    --fp-line2: #324155;
    --fp-text: #f8fafc;
    --fp-text2: #d5dde8;
    --fp-muted: #a3b1c2;
    --fp-green: #4ade80;
    --fp-blue: #60a5fa;
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    color: var(--fp-text);
    line-height: 1.5;
}

#fam-report *,
#fam-report *::before,
#fam-report *::after {
    box-sizing: border-box;
}

#fam-report button {
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.fp-hidden {
    display: none !important;
}

/* ---------- ENCABEZADO ---------- */
.fp-header {
    background: linear-gradient(160deg, #121a22 0%, #0e1318 100%);
    border: 1px solid var(--fp-line);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.fp-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fp-back {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    border: 1px solid var(--fp-line2);
    background: var(--fp-card2);
    color: var(--fp-text);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-back:active {
    transform: scale(0.96);
}

.fp-header-id {
    min-width: 0;
    flex: 1;
}

.fp-header-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--fp-text);
    line-height: 1.25;
    margin-top: 2px;
    word-break: break-word;
}

.fp-header-cat {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fp-green);
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
}

.fp-header-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--fp-line);
}

.fp-header-year label {
    font-size: 14px;
    color: var(--fp-text2);
    font-weight: 600;
}

.fp-select {
    background: var(--fp-card2);
    color: var(--fp-text);
    border: 1px solid var(--fp-line2);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    min-width: 170px;
}

.fp-select:focus {
    border-color: var(--fp-green);
}

/* ---------- CONTENEDOR ---------- */
.fp-root {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 8px;
}

.fp-card {
    background: var(--fp-card);
    border: 1px solid var(--fp-line);
    border-radius: 20px;
    padding: 18px 16px;
}

.fp-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fp-muted);
}

.fp-section-title {
    font-family: 'Segoe UI', 'Roboto', sans-serif !important;
    font-size: 17px;
    font-weight: 800;
    color: var(--fp-text);
    margin: 4px 0 0;
    line-height: 1.3;
}

.fp-hint {
    font-size: 13px;
    color: var(--fp-muted);
    margin: 10px 0 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.45;
}

.fp-hint i {
    color: var(--fp-green);
    margin-top: 2px;
}

.fp-chev {
    color: var(--fp-muted);
    font-size: 13px;
    flex: 0 0 auto;
}

/* ---------- SELECTOR DE CICLOS ---------- */
.fp-cycles-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--fp-text2);
    margin-bottom: 8px;
}

.fp-cycles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.fp-cycle {
    background: var(--fp-card);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 10px 4px;
    text-align: center;
    color: var(--fp-text2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: border-color 0.2s, background 0.2s;
}

.fp-cycle-t {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.fp-cycle-s {
    font-size: 11px;
    color: var(--fp-muted);
    line-height: 1.2;
}

.fp-cycle.is-active {
    background: rgba(74, 222, 128, 0.12);
    border: 2px solid var(--fp-green);
    color: #fff;
}

.fp-cycle.is-active .fp-cycle-s {
    color: var(--fp-green);
    font-weight: 700;
}

.fp-cycle.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- RESUMEN (HERO) ---------- */
.fp-hero {
    background: linear-gradient(165deg, #131b24 0%, #0f141a 100%);
}

.fp-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
}

.fp-ring {
    position: relative;
    width: 116px;
    height: 116px;
    flex: 0 0 116px;
}

.fp-ring svg {
    display: block;
    width: 116px;
    height: 116px;
}

.fp-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.fp-ring-label strong {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}

.fp-ring-label span {
    font-size: 11px;
    color: var(--fp-muted);
    margin-top: 2px;
}

.fp-hero-text {
    min-width: 0;
    flex: 1;
}

.fp-hero-text p {
    font-size: 15px;
    color: var(--fp-text2);
    margin: 10px 0 0;
    line-height: 1.45;
}

.fp-hero-text p strong {
    color: #fff;
}

.fp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c, #a3b1c2);
    background: color-mix(in srgb, var(--c, #a3b1c2) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, #a3b1c2) 45%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.3;
}

.fp-chip-lg {
    font-size: 14px;
    padding: 6px 12px;
    margin-top: 6px;
    white-space: normal;
    max-width: 100%;
}

/* Escala de 5 niveles con marcador */
.fp-scale {
    margin-top: 18px;
}

.fp-scale-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--fp-text2);
    margin-bottom: 22px;
}

.fp-scale-track {
    position: relative;
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: visible;
}

.fp-scale-seg {
    height: 100%;
    opacity: 0.85;
}

.fp-scale-seg:first-child {
    border-radius: 999px 0 0 999px;
}

.fp-scale-seg:last-child {
    border-radius: 0 999px 999px 0;
}

.fp-scale-marker {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fp-scale-marker span {
    font-size: 11px;
    font-weight: 800;
    color: #0b0f14;
    background: #fff;
    border-radius: 6px;
    padding: 0 6px;
    line-height: 16px;
    white-space: nowrap;
}

.fp-scale-marker::after {
    content: '';
    width: 3px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
    margin-top: 2px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.fp-scale-labels {
    display: flex;
    margin-top: 8px;
}

.fp-scale-labels div {
    font-size: 11px;
    font-weight: 700;
    color: var(--fp-muted);
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    padding: 0 2px;
}

.fp-scale-labels div b {
    display: block;
    font-size: 12px;
}

/* Filas de dimensiones */
.fp-dims {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.fp-dimrow {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 12px;
    color: var(--fp-text);
}

.fp-dimrow:active {
    transform: scale(0.99);
}

.fp-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--a, #fff);
    background: color-mix(in srgb, var(--a, #fff) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--a, #fff) 35%, transparent);
}

.fp-dimrow-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-dimrow-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.fp-dimrow-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-text);
}

.fp-dimrow-val {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.fp-dimrow-meta {
    font-size: 12px;
    color: var(--fp-muted);
}

/* Barras */
.fp-bar {
    position: relative;
    display: block;
    width: 100%;
    height: 10px;
    background: #1e2836;
    border-radius: 999px;
    overflow: hidden;
}

.fp-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s ease;
}

.fp-bar-ticks::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent calc(25% - 1px), rgba(11, 15, 20, 0.9) calc(25% - 1px), rgba(11, 15, 20, 0.9) calc(25% + 1px), transparent calc(25% + 1px)),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(11, 15, 20, 0.9) calc(50% - 1px), rgba(11, 15, 20, 0.9) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(90deg, transparent calc(75% - 1px), rgba(11, 15, 20, 0.9) calc(75% - 1px), rgba(11, 15, 20, 0.9) calc(75% + 1px), transparent calc(75% + 1px)),
        linear-gradient(90deg, transparent calc(95% - 1px), rgba(11, 15, 20, 0.9) calc(95% - 1px), rgba(11, 15, 20, 0.9) calc(95% + 1px), transparent calc(95% + 1px));
    pointer-events: none;
}

/* Lectura rápida */
.fp-insights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.fp-insight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid;
}

.fp-insight > i {
    font-size: 16px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.fp-insight.is-good {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.35);
}

.fp-insight.is-good > i {
    color: var(--fp-green);
}

.fp-insight.is-grow {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.35);
}

.fp-insight.is-grow > i {
    color: var(--fp-blue);
}

.fp-insight-k {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fp-muted);
}

.fp-insight-v {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-text);
    margin-top: 2px;
    line-height: 1.35;
}

.fp-insight-m {
    display: block;
    font-size: 13px;
    color: var(--fp-text2);
    margin-top: 2px;
}

/* ---------- ASISTENTE / GUÍA ---------- */
.fp-guide-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fp-guide-head p {
    font-size: 14px;
    color: var(--fp-text2);
    margin: 4px 0 0;
    line-height: 1.45;
}

.fp-guide-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.fp-gtab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--fp-card2);
    border: 1px solid var(--fp-line2);
    color: var(--fp-text);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
}

.fp-gtab i {
    color: var(--fp-green);
    width: 16px;
    text-align: center;
    flex: 0 0 auto;
}

.fp-gtab.is-active {
    background: var(--fp-green);
    border-color: var(--fp-green);
    color: #06210f;
}

.fp-gtab.is-active i {
    color: #06210f;
}

.fp-guide-body {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--fp-line);
}

.fp-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fp-stepline {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fp-stepline-n {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--fp-card3);
    border: 1px solid var(--fp-line2);
    color: var(--fp-green);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-stepline p {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--fp-text2);
    line-height: 1.5;
}

.fp-stepline p strong {
    color: #fff;
}

.fp-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-levelrow {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-left: 4px solid var(--c);
    border-radius: 12px;
    padding: 10px 12px;
}

.fp-levelrow-n {
    font-size: 20px;
    font-weight: 900;
    color: var(--c);
    line-height: 1.1;
    min-width: 18px;
}

.fp-levelrow-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.fp-levelrow-range {
    font-size: 12px;
    font-weight: 700;
    color: var(--c);
    margin-left: 6px;
    white-space: nowrap;
}

.fp-levelrow p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--fp-text2);
    line-height: 1.45;
}

.fp-dimguide {
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-radius: 12px;
    padding: 12px;
}

.fp-dimguide + .fp-dimguide {
    margin-top: 10px;
}

.fp-dimguide-h {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.fp-dimguide-h .fp-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 14px;
}

.fp-dimguide p {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--fp-text2);
    line-height: 1.5;
}

.fp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.fp-tag {
    font-size: 12px;
    color: var(--fp-text2);
    background: var(--fp-card3);
    border: 1px solid var(--fp-line2);
    border-radius: 8px;
    padding: 3px 8px;
    line-height: 1.35;
}

/* ---------- TARJETA DE DIMENSIÓN ---------- */
.fp-dim-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fp-dim-title {
    flex: 1;
    min-width: 0;
}

.fp-dim-title h3 {
    font-family: 'Segoe UI', 'Roboto', sans-serif !important;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 2px 0 0;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    word-break: break-word;
}

.fp-dim-score {
    text-align: right;
    flex: 0 0 auto;
}

.fp-dim-score strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.fp-dim-score .fp-chip {
    margin-top: 6px;
}

.fp-dim-progress {
    margin-top: 14px;
}

.fp-dim-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--fp-muted);
    margin-top: 6px;
}

.fp-summary {
    margin-top: 14px;
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-left: 4px solid var(--c);
    border-radius: 12px;
    padding: 12px 14px;
}

.fp-summary-k {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c);
    margin-bottom: 4px;
}

.fp-summary p {
    margin: 0;
    font-size: 14px;
    color: var(--fp-text2);
    line-height: 1.55;
}

.fp-empty {
    margin-top: 14px;
    font-size: 14px;
    color: var(--fp-muted);
    background: var(--fp-card2);
    border: 1px dashed var(--fp-line2);
    border-radius: 12px;
    padding: 12px 14px;
}

.fp-more {
    margin-top: 10px;
    border: 1px solid var(--fp-line);
    border-radius: 12px;
    background: transparent;
}

.fp-more summary {
    list-style: none;
    cursor: pointer;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fp-text2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fp-more summary::-webkit-details-marker {
    display: none;
}

.fp-more summary i {
    color: var(--fp-muted);
    transition: transform 0.2s;
}

.fp-more[open] summary i {
    transform: rotate(180deg);
}

.fp-more p {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 14px;
    color: var(--fp-text2);
    line-height: 1.55;
}

/* Selector de vista del gráfico */
.fp-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fp-chart-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.fp-toggle {
    display: inline-flex;
    background: var(--fp-card2);
    border: 1px solid var(--fp-line2);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
}

.fp-toggle button {
    border: 0;
    background: transparent;
    color: var(--fp-text2);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fp-toggle button.is-active {
    background: #fff;
    color: #0b0f14;
}

/* Habilidades (barras interactivas) */
.fp-skills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-skill {
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.fp-skill.is-open {
    border-color: var(--fp-green);
}

.fp-skill-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 12px 14px;
    color: var(--fp-text);
}

.fp-skill-name {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 15px;
    font-weight: 700;
    color: var(--fp-text);
    line-height: 1.35;
}

.fp-skill-num {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    color: var(--fp-muted);
    background: var(--fp-card3);
    border: 1px solid var(--fp-line2);
    border-radius: 6px;
    padding: 1px 6px;
    margin-top: 2px;
}

.fp-skill-res {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 8px;
}

.fp-skill-res strong {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.fp-skill-more {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fp-green);
}

.fp-skill-more i {
    transition: transform 0.2s;
}

.fp-skill.is-open .fp-skill-more i {
    transform: rotate(180deg);
}

.fp-skill-det {
    padding: 4px 14px 14px;
    border-top: 1px solid var(--fp-line);
    background: #121922;
}

/* Escalera de niveles */
.fp-ladder-title {
    font-size: 13px;
    color: var(--fp-text2);
    margin: 12px 0 8px;
    line-height: 1.4;
}

.fp-ladder-title strong {
    color: #fff;
}

.fp-ladder {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}

.fp-step {
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--fp-line2);
    background: #0d131a;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-step.is-past {
    background: color-mix(in srgb, var(--c) 22%, #0d131a);
    border-color: color-mix(in srgb, var(--c) 50%, transparent);
    color: var(--c);
}

.fp-step.is-now {
    background: var(--c);
    border-color: var(--c);
    color: #0b0f14;
    box-shadow: 0 0 0 2px #0b0f14, 0 0 0 4px var(--c);
}

.fp-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.fp-block {
    background: var(--fp-card);
    border: 1px solid var(--fp-line);
    border-radius: 12px;
    padding: 11px 13px;
}

.fp-block-h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fp-muted);
    margin-bottom: 5px;
}

.fp-block p {
    margin: 0;
    font-size: 14px;
    color: var(--fp-text2);
    line-height: 1.55;
}

.fp-block.is-now {
    border-left: 4px solid var(--c);
}

.fp-block.is-now .fp-block-h {
    color: var(--c);
}

.fp-block.is-next {
    border-left: 4px solid var(--fp-green);
}

.fp-block.is-next .fp-block-h {
    color: var(--fp-green);
}

/* Radar */
.fp-radar-box {
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 10px;
}

.fp-radar-canvas {
    position: relative;
    width: 100%;
    height: 300px;
}

.fp-legend {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fp-text2);
    line-height: 1.35;
}

.fp-legend li span.fp-legend-name {
    flex: 1;
    min-width: 0;
}

.fp-legend li strong {
    white-space: nowrap;
    font-size: 13px;
}

/* ---------- CONTENIDOS SEMANALES ---------- */
.fp-sec-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.fp-count {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--fp-blue);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

.fp-weeks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.fp-week {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--fp-card2);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--fp-text);
}

.fp-week:active {
    transform: scale(0.99);
}

.fp-week-n {
    width: 50px;
    flex: 0 0 50px;
    text-align: center;
    background: var(--fp-card3);
    border: 1px solid var(--fp-line2);
    border-radius: 10px;
    padding: 5px 0;
    line-height: 1.1;
}

.fp-week-n small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--fp-muted);
    letter-spacing: 0.06em;
}

.fp-week-n b {
    font-size: 18px;
    font-weight: 900;
    color: var(--fp-blue);
}

.fp-week-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fp-week-body strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.fp-week-body span {
    font-size: 12px;
    color: var(--fp-text2);
    line-height: 1.35;
}

.fp-week-body em {
    font-style: normal;
    font-size: 12px;
    color: var(--fp-muted);
}

.fp-note {
    margin-top: 12px;
    font-size: 13px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.45;
}

/* ---------- BOTÓN REPOSICIÓN ---------- */
.fp-makeup {
    width: 100%;
    margin: 6px 0 40px;
    background: var(--fp-card2);
    color: #fff;
    border: 1px solid var(--fp-line2);
    border-radius: 14px;
    padding: 15px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fp-makeup i {
    color: var(--fp-green);
}

.fp-makeup:active {
    transform: scale(0.99);
}

/* Pantallas muy angostas */
@media (max-width: 380px) {
    .fp-card {
        padding: 16px 13px;
    }

    .fp-ring,
    .fp-ring svg {
        width: 100px;
        height: 100px;
        flex-basis: 100px;
    }

    .fp-ring-label strong {
        font-size: 24px;
    }

    .fp-cycle-t {
        font-size: 13px;
    }

    .fp-gtab {
        font-size: 13px;
        padding: 10px;
    }

    .fp-dim-score strong {
        font-size: 24px;
    }
}
