/* ══════════════════════════════════════════════════════════════
   Mongo Product Affinity — Account & Wizard CSS
   ══════════════════════════════════════════════════════════════ */

:root {
    --mpa-brand:    var(--wd-primary-color);
    --mpa-brand-l:  #fdf0f5;
    --mpa-brand-m:  rgba(190,13,87,.12);
    --mpa-text:     #1a1a1a;
    --mpa-text-2:   #555;
    --mpa-text-3:   #999;
    --mpa-border:   #e8e8e8;
    --mpa-surface:  #f8f8f8;
    --mpa-radius:   8px;
    --mpa-f:        'Outfit', system-ui, sans-serif;
}


/* ══ MI CUENTA ══════════════════════════════════════════════════ */

.mpa-account-wrap {
    font-family: var(--mpa-f);
}

.mpa-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--mpa-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.mpa-notice--warn {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.mpa-account-section {
    background: #fff;
    border: 1px solid var(--mpa-border);
    border-radius: var(--mpa-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.mpa-account-section__head {
    margin-bottom: 16px;
}

.mpa-account-section__head h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--mpa-text);
}

.mpa-account-section__meta {
    font-size: 12px;
    color: var(--mpa-text-3);
}

.mpa-conf-badge {
    display: inline-block;
    background: var(--mpa-brand-l);
    color: var(--wd-primary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Barra de confianza */
.mpa-conf-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mpa-conf-bar-bg {
    flex: 1;
    height: 5px;
    background: var(--mpa-border);
    border-radius: 3px;
    overflow: hidden;
}

.mpa-conf-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--wd-primary-color);
    transition: width .6s cubic-bezier(.4,0,.2,1);
}

.mpa-conf-pct {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Grilla de diagnóstico */
.mpa-diagnosis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .mpa-diagnosis-grid { grid-template-columns: 1fr; }
}

.mpa-diag-card {
    background: var(--mpa-surface);
    border: 1px solid var(--mpa-border);
    border-radius: 6px;
    padding: 14px 16px;
}

.mpa-diag-card--full {
    grid-column: 1 / -1;
}

.mpa-diag-card__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mpa-text-3);
    margin: 0 0 8px;
}

.mpa-diag-card__val {
    font-size: 16px;
    font-weight: 700;
    color: var(--mpa-text);
    margin: 0;
}

.mpa-diag-card__summary {
    white-space: pre-line;
    font-size: 13px;
    color: var(--mpa-text-2);
    line-height: 1.65;
    margin: 0;
}

/* Píldoras de diagnóstico */
.mpa-diag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mpa-diag-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
}

.mpa-diag-pill--concern  { background: var(--mpa-brand-l); color: var(--wd-primary-color); }
.mpa-diag-pill--ingr     { background: #fefce8; color: #ca8a04; }
.mpa-diag-pill--excl     { background: #fff5f5; color: #c0392b; border: 1px solid #fcc; }

/* Botones */
.mpa-account-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mpa-btn {
    font-family: var(--mpa-f);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mpa-btn--primary {
    background: var(--wd-primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(190,13,87,.25);
}

.mpa-btn--primary:hover {
    background: #9c0a47;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190,13,87,.35);
}

.mpa-btn--ghost {
    background: none;
    color: var(--mpa-text-2);
    border: 1.5px solid var(--mpa-border);
}

.mpa-btn--ghost:hover { border-color: var(--wd-primary-color); color: var(--wd-primary-color); }

/* Historial */
.mpa-history-list { display: flex; flex-direction: column; gap: 8px; }

.mpa-history-item {
    background: var(--mpa-surface);
    border: 1px solid var(--mpa-border);
    border-radius: 6px;
    overflow: hidden;
}

/* ── Acordeón ── */
.mpa-history-list .mpa-history-accordion__btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: inherit !important;
    transition: background .15s;
    min-height: unset !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
}
.mpa-history-list .mpa-history-accordion__btn:hover { background: rgba(0,0,0,.025) !important; }
.mpa-history-list .mpa-history-accordion__btn[aria-expanded="true"] { background: rgba(0,0,0,.025) !important; }

.mpa-history-accordion__left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mpa-history-accordion__skin {
    font-size: 13px;
    font-weight: 600;
    color: var(--mpa-text);
}
.mpa-history-accordion__concerns {
    font-weight: 400;
    color: var(--mpa-text-2);
}

.mpa-history-accordion__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mpa-history-item__date  { font-size: 11px; color: var(--mpa-text-3); }
.mpa-history-item__conf  { font-size: 11px; color: var(--wd-primary-color); font-weight: 700; white-space: nowrap; }

.mpa-history-accordion__chevron {
    font-size: 20px;
    font-weight: 400;
    color: #aaa;
    line-height: 1;
    transition: transform .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
}
.mpa-history-list .mpa-history-accordion__btn:hover .mpa-history-accordion__chevron {
    border-color: var(--wd-primary-color);
    color: var(--wd-primary-color);
}
.mpa-history-accordion__btn[aria-expanded="true"] .mpa-history-accordion__chevron {
    transform: rotate(90deg);
    border-color: var(--wd-primary-color);
    color: var(--wd-primary-color);
}

/* Cuerpo del acordeón */
.mpa-history-accordion__body {
    padding: 20px 20px 20px;
    border-top: 1px solid var(--mpa-border);
}
.mpa-history-accordion__body[hidden] { display: none; }

/* Onboarding */
.mpa-onboarding {
    text-align: center;
    padding: 40px 20px;
}

.mpa-onboarding__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mpa-onboarding h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mpa-text);
    margin: 0 0 12px;
}

.mpa-onboarding p {
    font-size: 14px;
    color: var(--mpa-text-2);
    max-width: 460px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.mpa-onboarding__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 28px;
    max-width: 400px;
    text-align: left;
}

.mpa-onboarding__list li {
    font-size: 13px;
    color: var(--mpa-text-2);
    padding: 5px 0;
}

/* Dashboard CTA */
/* ── Dashboard CTA — diseño premium minimalista ──────────── */
@media (max-width: 600px) {
    }

/* Wizard en Mi Cuenta */
.mpa-wizard-back:hover { color: var(--wd-primary-color); }

/* Notificación de guardado */
.mpa-saved-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a9e5c;
    color: #fff;
    font-family: var(--mpa-f);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    opacity: 0;
    transition: all .3s ease;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpa-saved-icon {
    font-family: 'woodmart-font';
    font-weight: 400;
    font-size: 17px;
    line-height: 1;
    color: #d0dc6a;
    flex-shrink: 0;
}

.mpa-saved-notice--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Spinner */
.mpa-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(190,13,87,.2);
    border-top-color: var(--wd-primary-color);
    border-radius: 50%;
    animation: mpa-spin .7s linear infinite;
    flex-shrink: 0;
}

.mpa-spinner--sm {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
}

@keyframes mpa-spin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════
   INTRO STEP 0 — Layout premium minimalista (desktop 2 cols)
   ═══════════════════════════════════════════════════════════ */

.mpa-intro {
    padding: 8px 0 16px;
}

/* Grid dos columnas en desktop */
.mpa-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
}

/* Columna imagen */
.mpa-intro__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.mpa-intro__img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Columna texto */
.mpa-intro__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mpa-intro__eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 14px;
}

.mpa-intro__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #111;
}

.mpa-intro__sub {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Pasos numerados */
.mpa-intro__steps {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mpa-intro__steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.5;
}
.mpa-intro__step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Trust pills */
.mpa-intro__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mpa-intro__trust span {
    font-size: 11px;
    color: #666;
    background: #f4f4f4;
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
}

/* Footer disclaimer + link privacidad */
.mpa-intro__footer {
    font-size: 11px;
    color: #aaa;
    margin-top: 14px;
    line-height: 1.5;
}
.mpa-intro__footer a {
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Mobile: una columna, imagen encima */
@media (max-width: 640px) {
    .mpa-intro__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mpa-intro__visual {
        order: -1;
    }
    .mpa-intro__img {
        max-width: 180px;
    }
    .mpa-intro__content {
        align-items: center;
        text-align: center;
    }
    .mpa-intro__steps li {
        text-align: left;
    }
    .mpa-intro__trust {
        justify-content: center;
    }
}


/* ══════════════════════════════════════════════════════════════
   INTRO PAGE PREMIUM — Mi Piel (sin perfil)
   ══════════════════════════════════════════════════════════════ */

.mpa-intro-page {
    font-family: var(--mpa-f, inherit);
    padding: 0 0 48px;
    color: #111;
}

/* ── HERO SPLIT ─────────────────────────────────────────────── */
.mpa-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 0 0 56px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 64px;
}

.mpa-hero-split__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mpa-brand, var(--wd-primary-color));
    margin: 0 0 16px;
}

.mpa-hero-split__title {
    font-size: clamp(42px, 6vw, 60px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
    margin: 0 0 8px;
    color: #0a0a0a;
}

.mpa-hero-split__sub {
    font-size: 16px;
    font-weight: 400;
    color: #888;
    margin: 0 0 24px;
    letter-spacing: .01em;
}

.mpa-hero-split__body {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
    margin: 0 0 32px;
    max-width: 420px;
}

.mpa-hero-split__stats {
    display: flex;
    gap: 28px;
}

.mpa-hero-split__stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mpa-hero-split__stat-n {
    font-size: 22px;
    font-weight: 800;
    color: var(--mpa-brand, var(--wd-primary-color));
    letter-spacing: -.02em;
    line-height: 1;
}

.mpa-hero-split__stat-l {
    font-size: 10px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Placeholder de imagen */
.mpa-img-placeholder {
    background: linear-gradient(135deg, #faf8f9 0%, #f5f0f3 100%);
    border: 2px dashed #e0d0d8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
    transition: border-color .2s;
}

.mpa-img-placeholder--hero {
    min-height: 320px;
    border-radius: 20px;
}

.mpa-img-placeholder__label {
    font-size: 11px;
    color: #bba8b2;
    font-weight: 500;
    line-height: 1.6;
    font-family: ui-monospace, monospace;
}

.mpa-img-placeholder__label small {
    font-size: 10px;
    color: #ccc;
    display: block;
    margin-top: 4px;
}

/* ── FEATURES ───────────────────────────────────────────────── */
.mpa-features {
    display: flex;
    flex-direction: column;
    gap: 72px;
    margin-bottom: 72px;
}

.mpa-feature {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.mpa-feature--reverse {
    grid-template-columns: 1fr 240px;
}

.mpa-feature--reverse .mpa-feature__media {
    order: 2;
}

.mpa-feature--reverse .mpa-feature__body {
    order: 1;
}

.mpa-feature__num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--mpa-brand, var(--wd-primary-color));
    margin: 0 0 10px;
    text-transform: uppercase;
}

.mpa-feature__title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.mpa-feature__desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: #555;
    margin: 0 0 18px;
}

.mpa-feature__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mpa-feature__list li {
    font-size: 12.5px;
    color: #666;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.mpa-feature__list li::before {
    content: "◎";
    position: absolute;
    left: 0;
    font-size: 8px;
    color: var(--mpa-brand, var(--wd-primary-color));
    top: 2px;
}

/* ── CÓMO FUNCIONA ──────────────────────────────────────────── */
.mpa-how {
    background: #faf8f9;
    border-radius: 20px;
    padding: 40px 40px 44px;
    margin-bottom: 56px;
}

.mpa-how__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mpa-brand, var(--wd-primary-color));
    margin: 0 0 10px;
}

.mpa-how__title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 36px;
    letter-spacing: -.01em;
}

.mpa-how__steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.mpa-how__step {
    flex: 1;
    padding-right: 16px;
}

.mpa-how__step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mpa-brand, var(--wd-primary-color));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.mpa-how__step-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}

.mpa-how__step-desc {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.mpa-how__connector {
    width: 32px;
    height: 2px;
    background: #e8d8e0;
    flex-shrink: 0;
    margin-top: 17px;
}

/* ── CTA ────────────────────────────────────────────────────── */
.mpa-intro-page__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.mpa-intro-page__legal {
    font-size: 11px;
    color: #bbb;
    margin: 0;
    line-height: 1.5;
}

.mpa-intro-page__legal a {
    color: #999;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .mpa-hero-split,
    .mpa-feature,
    .mpa-feature--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mpa-feature--reverse .mpa-feature__media,
    .mpa-feature--reverse .mpa-feature__body {
        order: unset;
    }
    .mpa-hero-split__title { font-size: 40px; }
    .mpa-hero-split__body { max-width: 100%; }
    .mpa-how { padding: 28px 20px 32px; }
    .mpa-how__steps { flex-direction: column; gap: 24px; }
    .mpa-how__connector { width: 2px; height: 20px; margin: 0 0 0 17px; }
    .mpa-intro-page__cta { align-items: stretch; }
    .mpa-intro-page__cta .msa-btn--hero { width: 100%; }
    .mpa-hero-split__stats { flex-wrap: wrap; gap: 16px; }
}

/* .mpa-feature-cards removed in v2.8 — replaced by .mpa-ben-features */

/* ── Card Mi perfil de piel en el escritorio ─────────────────
   Hereda todo el estilo visual de .mp-dashboard-card (Mongo Puntos).
   Solo añadimos el link ya que mp-dashboard-card__link puede no existir.
   ─────────────────────────────────────────────────────────── */
.mpa-db-card .mp-dashboard-card__link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wd-primary-color);
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.mpa-db-card .mp-dashboard-card__link:hover {
    text-decoration: underline;
}

/* ── Dashboard cards en fila ─────────────────────────────────── */
.mpa-dashboard-cards-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.mpa-dashboard-cards-row .mp-dashboard-card {
    width: calc(50% - 8px) !important;
    box-sizing: border-box;
    flex: 0 0 calc(50% - 8px);
    margin: 0 !important;
}

@media (max-width: 600px) {
    .mpa-dashboard-cards-row .mp-dashboard-card {
        width: 100% !important;
        flex: 0 0 100%;
    }
}

/* ── Card datos personales en perfil ─────────────────────── */
.mpa-diag-card--user-data {
    grid-column: 1 / -1;
}

.mpa-diag-user-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 6px;
}

.mpa-diag-user-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
}

.mpa-diag-user-item__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #bbb;
}

.mpa-diag-user-item__val {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

/* Píldora de alergia declarada */
.mpa-diag-pill--allergy {
    background: #fff5f5;
    color: #c0392b;
    border-color: #f5c6c6;
}

/* Píldora de textura */
.mpa-diag-pill--texture {
    background: #f0f8ff;
    color: #2980b9;
    border-color: #c5dff0;
}


/* ══════════════════════════════════════════════════════════════
   TABS DE MI CUENTA — Navegación horizontal con swipe en móvil
   ══════════════════════════════════════════════════════════════ */

.mpa-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--mpa-border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
}
.mpa-tabs-nav::-webkit-scrollbar { display: none; }

.mpa-tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--mpa-f);
    font-size: 13px;
    font-weight: 600;
    color: var(--mpa-text-3);
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: color .18s, border-color .18s;
    letter-spacing: .01em;
    flex-shrink: 0;
    text-transform: none;
    min-height: unset;
    box-shadow: none;
    border-radius: 0;
}
.mpa-tab-btn:hover {
    color: var(--mpa-text);
}
.mpa-tab-btn--active,
.mpa-tab-btn[aria-selected="true"] {
    color: var(--wd-primary-color) !important;
    border-bottom-color: var(--wd-primary-color) !important;
}
.mpa-tab-btn__icon {
    font-size: 14px;
    line-height: 1;
    opacity: .7;
}
.mpa-tab-btn--active .mpa-tab-btn__icon,
.mpa-tab-btn[aria-selected="true"] .mpa-tab-btn__icon {
    opacity: 1;
}
.mpa-tab-btn__label {
    font-size: 13px;
}

/* Panels */
.mpa-tab-panel { display: none; }
.mpa-tab-panel--active { display: block; }
.mpa-tab-panel[hidden] { display: none !important; }

@media (max-width: 520px) {
    .mpa-tab-btn { padding: 11px 14px; font-size: 12px; gap: 5px; }
    .mpa-tab-btn__icon { font-size: 13px; }
}


/* ══════════════════════════════════════════════════════════════
   PERFIL HEADER — nuevo diseño con ring de precisión
   ══════════════════════════════════════════════════════════════ */

.mpa-profile-header {
    background: #fff;
    border: 1px solid var(--mpa-border);
    border-radius: 12px;
    padding: 22px 24px 18px;
    margin-bottom: 20px;
}

.mpa-profile-header__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.mpa-profile-header__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mpa-text-3);
    margin: 0 0 6px;
}

.mpa-profile-header__skin {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    color: var(--mpa-text);
    margin: 0 0 8px;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.mpa-profile-header__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mpa-profile-flag {
    font-size: 10px;
    font-weight: 600;
    background: var(--mpa-surface);
    color: var(--mpa-text-3);
    border: 1px solid var(--mpa-border);
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}

.mpa-profile-flag--warn {
    background: #fff5f0;
    color: #c0540a;
    border-color: #ffe4cc;
}

.mpa-profile-header__date {
    font-size: 11px;
    color: var(--mpa-text-3);
    margin: 0;
}

/* Anillo de confianza */
.mpa-conf-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.mpa-conf-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.mpa-conf-ring svg {
    width: 100%;
    height: 100%;
    transform: none;
}

.mpa-conf-ring__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--wd-primary-color);
    letter-spacing: -.02em;
}

.mpa-conf-ring__label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mpa-text-3);
    margin: 0;
}

/* Botones de perfil */
.mpa-profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--mpa-border);
}


/* ══════════════════════════════════════════════════════════════
   TAB CONFIGURACIÓN — Lista de opciones premium
   ══════════════════════════════════════════════════════════════ */

.mpa-config-section {
    background: #fff;
    border: 1px solid var(--mpa-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.mpa-config-section__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mpa-text);
    margin: 0 0 4px;
}

.mpa-config-section__desc {
    font-size: 12px;
    color: var(--mpa-text-3);
    margin: 0 0 20px;
    line-height: 1.5;
}

.mpa-config-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--mpa-border);
}

.mpa-config-item:first-of-type { border-top: none; padding-top: 0; }

.mpa-config-item__icon {
    font-size: 20px;
    color: var(--wd-primary-color);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--mpa-brand-l);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mpa-config-item__body {
    flex: 1;
    min-width: 0;
}

.mpa-config-item__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--mpa-text);
    margin: 0 0 3px;
}

.mpa-config-item__desc {
    font-size: 11.5px;
    color: var(--mpa-text-3);
    line-height: 1.55;
    margin: 0;
}

/* Toggle en config */
.mpa-config-item .mpa-toggle-wrap {
    flex-shrink: 0;
}

/* ── Estilo del toggle ──────────────────────────── */
.mpa-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mpa-toggle-track {
    display: inline-flex !important;
    align-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 28px !important;
    padding: 4px !important;
    background: #ccc;
    border-radius: 50px;
    transition: background .25s ease;
    box-sizing: border-box !important;
    flex-shrink: 0;
}

.mpa-toggle-btn[aria-checked="true"] .mpa-toggle-track {
    background: var(--wd-primary-color);
}

.mpa-toggle-thumb {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.3) !important;
    transform: translateX(0) !important;
    transition: transform .25s ease !important;
    pointer-events: none;
    flex-shrink: 0;
}

.mpa-toggle-btn[aria-checked="true"] .mpa-toggle-thumb {
    transform: translateX(20px) !important;
}

@media (max-width: 520px) {
    .mpa-config-item { gap: 12px; }
    .mpa-config-item__icon { width: 32px; height: 32px; font-size: 17px; border-radius: 8px; }
}


/* ══════════════════════════════════════════════════════════════
   TAB BENEFICIOS — Página premium
   ══════════════════════════════════════════════════════════════ */

/* Hero */
.mpa-ben-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--mpa-border);
    margin-bottom: 56px;
}

.mpa-ben-hero__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wd-primary-color);
    margin: 0 0 12px;
}

.mpa-ben-hero__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.05;
    color: #0a0a0a;
    margin: 0 0 8px;
}

.mpa-ben-hero__sub {
    font-size: 13px;
    color: var(--mpa-text-3);
    margin: 0 0 16px;
    font-weight: 500;
    letter-spacing: .02em;
}

.mpa-ben-hero__body {
    font-size: 13.5px;
    line-height: 1.75;
    color: #444;
    margin: 0 0 28px;
    max-width: 380px;
}

.mpa-ben-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mpa-ben-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mpa-ben-stat__n {
    font-size: 28px;
    font-weight: 900;
    color: var(--wd-primary-color);
    letter-spacing: -.03em;
    line-height: 1;
}

.mpa-ben-stat__l {
    font-size: 10px;
    color: var(--mpa-text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.4;
}

.mpa-ben-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpa-ben-hero__img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,.1);
}

/* Features zigzag */
.mpa-ben-features {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 64px;
}

.mpa-ben-feature {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

.mpa-ben-feature--reverse {
    grid-template-columns: 1fr 260px;
}

.mpa-ben-feature--reverse .mpa-ben-feature__media { order: 2; }
.mpa-ben-feature--reverse .mpa-ben-feature__body  { order: 1; }

.mpa-ben-feature__img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.mpa-ben-feature__placeholder {
    background: var(--mpa-brand-l);
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.mpa-ben-feature__icon-lg {
    font-size: 48px;
    color: var(--wd-primary-color);
    opacity: .6;
    line-height: 1;
}

.mpa-ben-feature__num {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--wd-primary-color);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.mpa-ben-feature__title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.mpa-ben-feature__desc {
    font-size: 13px;
    line-height: 1.75;
    color: #555;
    margin: 0 0 16px;
}

.mpa-ben-feature__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpa-ben-feature__list li {
    font-size: 12px;
    color: #666;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.mpa-ben-feature__list li::before {
    content: "◎";
    position: absolute;
    left: 0;
    font-size: 8px;
    color: var(--wd-primary-color);
    top: 2px;
}

/* CTA renovación análisis */
.mpa-ben-cta {
    background: linear-gradient(135deg, #fdf0f5 0%, #fce8f0 100%);
    border: 1px solid rgba(190,13,87,.15);
    border-radius: 16px;
    padding: 32px 36px;
    text-align: center;
}

.mpa-ben-cta__eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--wd-primary-color);
    opacity: .75;
    margin: 0 0 8px;
}

.mpa-ben-cta__title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -.01em;
}

.mpa-ben-cta__body {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive beneficios */
@media (max-width: 680px) {
    .mpa-ben-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
        margin-bottom: 36px;
    }
    .mpa-ben-features { gap: 40px; margin-bottom: 40px; }
    .mpa-ben-feature,
    .mpa-ben-feature--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mpa-ben-feature--reverse .mpa-ben-feature__media,
    .mpa-ben-feature--reverse .mpa-ben-feature__body { order: unset; }
    .mpa-ben-cta { padding: 24px 20px; }
    .mpa-ben-stat__n { font-size: 22px; }
    .mpa-ben-stats { gap: 16px; }
}


/* ══════════════════════════════════════════════════════════════
   RUTINA DE SKINCARE — Diseño premium
   ══════════════════════════════════════════════════════════════ */

.mpa-routine {
    margin: 0;
    font-family: var(--mpa-f);
}

.mpa-routine__intro {
    margin-bottom: 28px;
}

.mpa-routine__intro-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.mpa-routine__intro-sub {
    font-size: 13px;
    color: var(--mpa-text-3);
    margin: 0;
    line-height: 1.5;
}

.mpa-routine__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .mpa-routine__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Card premium */
.mpa-routine__card {
    background: #fff;
    border: 1px solid var(--mpa-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
    position: relative;
}

.mpa-routine__card:hover {
    border-color: #d8d8d8;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* Cabecera de la card */
.mpa-routine__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 0;
}

.mpa-routine__step-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mpa-text-3);
}

.mpa-routine__pct-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--wd-primary-color);
    background: var(--mpa-brand-l);
    border-radius: 20px;
    padding: 3px 9px;
    white-space: nowrap;
    letter-spacing: .02em;
}

.mpa-routine__step-desc {
    font-size: 11px;
    color: #ccc;
    margin: 3px 18px 12px;
    line-height: 1.4;
}

/* Área de producto */
.mpa-routine__products {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0 16px;
}

/* Enlace imagen+info */
.mpa-routine__product-link {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    border-bottom: 1px solid var(--mpa-border);
}

.mpa-routine__product-link:hover .mpa-routine__product-name {
    color: var(--wd-primary-color);
}

/* Imagen cuadrada grande */
.mpa-routine__product-img {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f8f8f8;
}

.mpa-routine__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info */
.mpa-routine__product-info {
    padding: 12px 16px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    justify-content: center;
}

.mpa-routine__product-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
    letter-spacing: -.01em;
}

.mpa-routine__product-price,
.mpa-routine__product-price .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 800;
    color: var(--mpa-text);
}

.mpa-routine__product-price ins {
    text-decoration: none;
}

.mpa-routine__product-price del {
    font-size: 11px;
    font-weight: 400;
    color: #ccc;
    margin-right: 4px;
}

/* Badges de coincidencias */
.mpa-routine__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 16px 0;
}

.mpa-routine__badges .mpa-match-pill {
    font-size: 10px;
    padding: 2px 8px;
}

/* Variaciones */
.mpa-routine__variation-wrap {
    padding: 10px 16px 0;
}

/* Botón "Mostrar otro" */
.mpa-routine__next-btn {
    margin: 12px 16px 0;
    padding: 9px 14px;
    background: var(--mpa-surface);
    border: 1.5px solid var(--mpa-border);
    border-radius: 8px;
    font-family: var(--mpa-f);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mpa-text-3);
    cursor: pointer;
    width: calc(100% - 32px);
    text-align: center;
    transition: border-color .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mpa-routine__next-btn:hover {
    border-color: var(--wd-primary-color);
    color: var(--wd-primary-color);
}

.mpa-routine__next-count {
    font-weight: 400;
    color: #bbb;
}

.mpa-routine__empty {
    font-size: 12px;
    color: #ccc;
    font-style: italic;
    margin: 12px 18px;
    text-align: center;
}

/* Match pills (usadas en rutina y panel) */
.mpa-match-pill { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .02em; padding: 3px 9px; border-radius: 20px; border: 1px solid #d4d4d4; background: transparent; color: #333; }
.mpa-match-pill--concern     { }
.mpa-match-pill--ingredient  { }
.mpa-match-pill--texture     { }
.mpa-match-pill--age         { }
.mpa-match-pill--age_partial { color: #555; }

/* ── Tab Rutina intro header ─────────────────────── */
.mpa-tab-rutina-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mpa-border);
}

.mpa-tab-rutina-head__eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wd-primary-color);
    margin: 0 0 8px;
}

.mpa-tab-rutina-head__title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.mpa-tab-rutina-head__sub {
    font-size: 13px;
    color: var(--mpa-text-3);
    margin: 0;
    line-height: 1.6;
    max-width: 560px;
}


/* ══════════════════════════════════════════════════════════════
   TABLA DE EVOLUCIÓN
   ══════════════════════════════════════════════════════════════ */

.mpa-evo-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* browser distributes columns naturally */
    font-size: 12.5px;
}

.mpa-evo-th {
    text-align: left;
    padding: 7px 10px;
    color: var(--mpa-text-3);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}

.mpa-evo-table td {
    padding: 8px 10px;
    vertical-align: top;
}

/* Fecha y Precisión: siempre en su mínimo natural, no se expanden */
.mpa-evo-table th:first-child,
.mpa-evo-table td:first-child { white-space: nowrap; width: 1%; }

.mpa-evo-table th:last-child,
.mpa-evo-table td:last-child  { white-space: nowrap; width: 1%; }

/* Piel: no se parte, pero tampoco se expande en exceso */
.mpa-evo-table th:nth-child(2),
.mpa-evo-table td:nth-child(2) { white-space: nowrap; width: 1%; }

/* Preocupaciones: ocupa todo el espacio restante y puede ajustar */
.mpa-evo-table th:nth-child(3),
.mpa-evo-table td:nth-child(3) { width: auto; }

@media (max-width: 520px) {
    .mpa-evo-table { font-size: 11.5px; }
    .mpa-evo-th    { font-size: 9px; padding: 6px 7px; }
    .mpa-evo-table td { padding: 7px 7px; }
}





/* ══════════════════════════════════════════════════════════════
   PERFIL PREMIUM — Cards con estilo unificado
   ══════════════════════════════════════════════════════════════ */

.mpa-profile-premium {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

/* Base card — igual que la card del tipo de piel */
.mpa-pp-card {
    background: #fff;
    border: 1px solid var(--mpa-border);
    border-radius: 12px;
    padding: 18px 20px;
}

.mpa-pp-card__label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mpa-text-3);
    margin: 0 0 12px;
}

/* ── Fila 1: Datos personales (pasaporte) ───────────────────── */
.mpa-pp-passport__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.mpa-pp-passport__field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 22px 0 0;
    border-right: 1px solid var(--mpa-border);
    margin-right: 22px;
}

.mpa-pp-passport__field:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.mpa-pp-passport__key {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mpa-text-3);
}

.mpa-pp-passport__val {
    font-size: 13px;
    font-weight: 700;
    color: var(--mpa-text);
}

@media (max-width: 520px) {
    .mpa-pp-passport__field {
        flex: 1 1 calc(50% - 22px);
        margin-bottom: 10px;
    }
    .mpa-pp-passport__field:nth-last-child(-n+2) {
        margin-bottom: 0;
    }
}

/* ── Filas 2 y 3: Grid de cards con stat grande ─────────────── */
.mpa-pp-row2,
.mpa-pp-activos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .mpa-pp-row2,
    .mpa-pp-activos { grid-template-columns: 1fr; }
}

/* Card con número grande estilo ring de precisión */
.mpa-pp-stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Número grande + etiqueta — mismo espíritu que el ring de precisión */
.mpa-pp-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpa-pp-stat__n {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--wd-primary-color);
    flex-shrink: 0;
}

/* Todos los números grandes en el color de marca */
.mpa-pp-stat-card--ingr .mpa-pp-stat__n { color: var(--wd-primary-color); }
.mpa-pp-stat-card--excl .mpa-pp-stat__n { color: var(--wd-primary-color); }

.mpa-pp-stat__l {
    font-size: 11px;
    font-weight: 600;
    color: var(--mpa-text-3);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Pills */
.mpa-pp-tile__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* ── Fila 4: Resumen ─────────────────────────────────────────── */
.mpa-pp-summary::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 18px;
    font-size: 56px;
    color: var(--wd-primary-color);
    opacity: .07;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.mpa-pp-summary {
    position: relative;
}

.mpa-pp-summary__text {
    font-size: 13.5px;
    line-height: 1.75;
    color: #444;
    margin: 0;
    padding: 0;
    font-style: normal;
    border: none;
}

/* ── Pills de colores ────────────────────────────────────────── */
.mpa-pp-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 4px 11px;
    border-radius: 20px;
    line-height: 1.2;
    border: 1px solid #d4d4d4;
    background: transparent;
    color: #333;
}

/* Critical pills (alérgenos, embarazo) get a subtle accent without color noise */
.mpa-pp-pill--allergy  { color: #7f1d1d; border-color: #fca5a5; }
.mpa-pp-pill--pregnancy { color: #78350f; border-color: #fcd34d; }


/* ── AI disclaimer — mismo estilo en perfil, historial y panel de producto ── */
.mpa-pp-summary__disclaimer,
.mpa-diag-card__disclaimer {
    /* Legacy — estas clases ya no se usan, reemplazadas por .mpa-ai-disclaimer */
    display: none;
}

.mpa-ai-disclaimer {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #f8f8f8;
    border-left: 3px solid #d4d4d4;
    border-radius: 0 5px 5px 0;
    padding: 9px 12px;
    margin-top: 12px;
}

.mpa-ai-disclaimer__icon {
    font-style: normal;
    font-size: 13px;
    color: #bbb;
    flex-shrink: 0;
    line-height: 1.5;
}

.mpa-ai-disclaimer p {
    margin: 0;
    font-size: 11px;
    color: #888;
    line-height: 1.55;
}

.mpa-ai-disclaimer strong {
    color: #666;
    font-weight: 600;
}

/* ── Pill links ────────────────────────────────────────────── */
a.mpa-pp-pill--link {
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .12s;
}
a.mpa-pp-pill--link:hover {
    filter: brightness(.9);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── Safety cards (alergias / embarazo) ─────────────────── */
.mpa-pp-safety-card {
    padding: 16px 18px;
}

.mpa-pp-safety-card__desc {
    font-size: 12px;
    color: #888;
    margin: 4px 0 10px;
    line-height: 1.5;
}

.mpa-pp-safety-card--allergy {
    background: #fff9f9;
}

.mpa-pp-safety-card--pregnancy {
    background: #fffbf5;
}

/* allergy/pregnancy pill colors defined above in .mpa-pp-pill block */

/* ── Timeline de evolución de análisis (Tab Historial) ───── */
/* Movido desde inline <style> en tab-main.php para carga correcta con el stylesheet */
.mpa-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
}
.mpa-timeline-node {
    flex: 1;
    min-width: 110px;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.mpa-timeline-node:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #e0e0e0 0, #e0e0e0 6px, transparent 6px, transparent 12px);
}
.mpa-timeline-node--current::after {
    background: repeating-linear-gradient(90deg, var(--wd-primary-color, #be0d57) 0, var(--wd-primary-color, #be0d57) 6px, transparent 6px, transparent 12px);
}
.mpa-timeline-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: #999;
    position: relative;
    z-index: 1;
}
.mpa-timeline-dot--current {
    border-color: var(--wd-primary-color, #be0d57);
    color: var(--wd-primary-color, #be0d57);
    background: #fdf0f5;
}
.mpa-timeline-date {
    font-size: 10px;
    color: #bbb;
    margin: 7px 0 4px;
    text-align: center;
    letter-spacing: .01em;
}
.mpa-timeline-date--current {
    color: var(--wd-primary-color, #be0d57);
    font-weight: 700;
}
.mpa-timeline-skin {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0 0 4px;
    line-height: 1.3;
}
.mpa-timeline-skin--changed {
    color: var(--wd-primary-color, #be0d57);
}
.mpa-timeline-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.mpa-timeline-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #f5f5f7;
    color: #666;
    font-weight: 500;
}
.mpa-timeline-badge--conf {
    background: #f0faf8;
    color: #00a896;
}

/* ── Sugerencias de rutina ─────────────────────────────────── */
.mpa-routine-suggestions {
    margin-top: 24px;
    border-top: 1px solid var(--mpa-border, #ededed);
    padding-top: 20px;
}
.mpa-routine-suggestions__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #aaa;
    margin: 0 0 12px;
}
.mpa-routine-suggestion {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: #fffbf0;
    border-left: 3px solid #f39c12;
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
}
.mpa-routine-suggestion__icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.mpa-routine-suggestion__concern {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin: 0 0 3px;
}
.mpa-routine-suggestion__tip {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
