/* =========================================================
   MM Preguntas Optimizer
   ========================================================= */

:root {
    --mmpo-ink: #102f39;
    --mmpo-ink-soft: #36535c;
    --mmpo-teal: #00b8cc;
    --mmpo-teal-dark: #0b6e82;
    --mmpo-deep: #103b47;
    --mmpo-orange: #ff7a00;
    --mmpo-orange-dark: #e46900;
    --mmpo-red: #f1433f;
    --mmpo-mist: #eef8f9;
    --mmpo-border: #dce9ec;
    --mmpo-white: #ffffff;
    --mmpo-bg: #f4f7f8;
    --mmpo-shadow: 0 18px 45px rgba(16, 47, 57, 0.09);
    --mmpo-radius-lg: 24px;
    --mmpo-radius-md: 18px;
    --mmpo-radius-sm: 11px;
}

body.mm-preguntas-page {
    margin: 0;
    background: var(--mmpo-bg);
    color: var(--mmpo-ink);
}

body.mm-preguntas-page,
body.mm-preguntas-page button,
body.mm-preguntas-page input {
    font-family: Inter, Arial, Helvetica, sans-serif;
}

body.mm-preguntas-page .site-content,
body.mm-preguntas-page #content {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.mm-preguntas-page .site-footer {
    display: none;
}

.mmpo-page,
.mmpo-page * {
    box-sizing: border-box;
}

.mmpo-page {
    width: 100%;
    overflow: hidden;
    background: var(--mmpo-bg);
}

.mmpo-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.mmpo-eyebrow {
    margin: 0 0 12px;
    color: var(--mmpo-teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.mmpo-topnav {
    position: relative;
    z-index: 10;
    background: #202b2f;
    color: var(--mmpo-white);
}

.mmpo-topnav__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mmpo-topnav__brand {
    color: var(--mmpo-white);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.mmpo-topnav__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mmpo-topnav__links a {
    padding: 10px 13px;
    border-radius: 8px;
    color: #eef8fa;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.mmpo-topnav__links a:hover,
.mmpo-topnav__links a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mmpo-white);
}

.mmpo-topnav__links .mmpo-topnav__cta {
    margin-left: 5px;
    background: var(--mmpo-orange);
    color: var(--mmpo-white);
}

.mmpo-topnav__links .mmpo-topnav__cta:hover,
.mmpo-topnav__links .mmpo-topnav__cta:focus {
    background: var(--mmpo-orange-dark);
}

.mmpo-hero {
    padding: 54px 0 46px;
    background:
        radial-gradient(circle at 87% 15%, rgba(0, 184, 204, 0.18) 0 78px, transparent 79px),
        linear-gradient(115deg, #f4fbfc 0%, #ffffff 55%, #e7f7f8 100%);
    border-bottom: 1px solid var(--mmpo-border);
}

.mmpo-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(330px, 0.78fr);
    align-items: center;
    gap: 48px;
}

.mmpo-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    color: #668087;
    font-size: 13px;
    font-weight: 600;
}

.mmpo-breadcrumbs a {
    color: var(--mmpo-teal-dark);
    text-decoration: none;
}

.mmpo-hero h1 {
    max-width: 750px;
    margin: 0 0 22px;
    color: var(--mmpo-ink);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.99;
}

.mmpo-hero__lead {
    max-width: 730px;
    margin: 0 0 28px;
    color: var(--mmpo-ink-soft);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.65;
}

.mmpo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mmpo-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--mmpo-radius-sm);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.mmpo-button:hover,
.mmpo-button:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.mmpo-button--primary {
    background: var(--mmpo-orange);
    color: var(--mmpo-white);
    box-shadow: 0 9px 22px rgba(255, 122, 0, 0.2);
}

.mmpo-button--primary:hover,
.mmpo-button--primary:focus {
    background: var(--mmpo-orange-dark);
    color: var(--mmpo-white);
    box-shadow: 0 12px 25px rgba(255, 122, 0, 0.27);
}

.mmpo-button--secondary {
    background: var(--mmpo-white);
    border-color: #b8d0d5;
    color: var(--mmpo-ink);
}

.mmpo-button--secondary:hover,
.mmpo-button--secondary:focus {
    border-color: var(--mmpo-teal-dark);
    color: var(--mmpo-teal-dark);
}

.mmpo-button--full {
    width: 100%;
}

.mmpo-trust {
    margin: 17px 0 0;
    color: #667e85;
    font-size: 13px;
    font-weight: 500;
}

.mmpo-hero-card {
    position: relative;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--mmpo-radius-lg);
    background: var(--mmpo-deep);
    color: var(--mmpo-white);
    box-shadow: 0 24px 50px rgba(16, 59, 71, 0.24);
}

.mmpo-hero-card::after {
    content: "";
    position: absolute;
    top: -54px;
    right: -48px;
    width: 150px;
    height: 150px;
    border: 24px solid rgba(0, 184, 204, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.mmpo-hero-card__label {
    position: relative;
    z-index: 1;
    margin: 0 0 11px;
    color: #9beaf2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.mmpo-hero-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: var(--mmpo-white);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.mmpo-hero-card ul {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.mmpo-hero-card li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 9px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
    line-height: 1.5;
}

.mmpo-hero-card li span {
    color: #7cf4ff;
    font-weight: 800;
}

.mmpo-tool-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.mmpo-tool-links a {
    color: #90f2fb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.mmpo-tool-links a:hover,
.mmpo-tool-links a:focus {
    color: var(--mmpo-white);
}

.mmpo-intro {
    padding: 32px 0 0;
}

.mmpo-intro__box {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 44px;
    padding: 34px 38px;
    border: 1px solid var(--mmpo-border);
    border-radius: var(--mmpo-radius-lg);
    background: var(--mmpo-white);
    box-shadow: 0 12px 32px rgba(16, 47, 57, 0.05);
}

.mmpo-intro h2 {
    margin: 0;
    color: var(--mmpo-ink);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.13;
}

.mmpo-intro__copy p {
    margin: 0 0 12px;
    color: var(--mmpo-ink-soft);
    font-size: 15px;
    line-height: 1.75;
}

.mmpo-intro__copy p:last-child {
    margin-bottom: 0;
}

.mmpo-content {
    padding: 48px 0 64px;
}

.mmpo-content__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 30px;
}

.mmpo-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
}

.mmpo-section-heading h2 {
    margin: 0;
    color: var(--mmpo-ink);
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.mmpo-search {
    min-width: 300px;
    display: flex;
    overflow: hidden;
    border: 1px solid #cddde1;
    border-radius: 10px;
    background: var(--mmpo-white);
}

.mmpo-search input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mmpo-ink);
    font-size: 14px;
}

.mmpo-search input::placeholder {
    color: #81959b;
}

.mmpo-search button {
    padding: 0 16px;
    border: 0;
    background: var(--mmpo-red);
    color: var(--mmpo-white);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.mmpo-search button:hover,
.mmpo-search button:focus {
    background: #d93330;
}

.mmpo-notice {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 4px solid var(--mmpo-orange);
    border-radius: 7px;
    background: #fff7ee;
    color: #70441e;
    font-size: 13px;
    line-height: 1.6;
}

.mmpo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.mmpo-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--mmpo-border);
    border-radius: var(--mmpo-radius-md);
    background: var(--mmpo-white);
    box-shadow: 0 10px 27px rgba(16, 47, 57, 0.055);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mmpo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mmpo-shadow);
}

.mmpo-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e7f6f8, #cdecef);
    text-decoration: none;
}

.mmpo-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.mmpo-card:hover .mmpo-card__image img {
    transform: scale(1.025);
}

.mmpo-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--mmpo-teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.mmpo-card__placeholder span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    font-size: 25px;
}

.mmpo-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.mmpo-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 11px;
    color: #7a8d93;
    font-size: 11px;
    font-weight: 600;
}

.mmpo-card h3 {
    margin: 0 0 12px;
    color: var(--mmpo-ink);
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

.mmpo-card h3 a {
    color: inherit;
    text-decoration: none;
}

.mmpo-card h3 a:hover,
.mmpo-card h3 a:focus {
    color: var(--mmpo-teal-dark);
}

.mmpo-card p {
    margin: 0 0 18px;
    color: var(--mmpo-ink-soft);
    font-size: 14px;
    line-height: 1.68;
}

.mmpo-card__link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--mmpo-teal-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.mmpo-card__link:hover,
.mmpo-card__link:focus {
    color: var(--mmpo-orange-dark);
}

.mmpo-pagination {
    margin-top: 32px;
}

.mmpo-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmpo-pagination a,
.mmpo-pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--mmpo-border);
    border-radius: 9px;
    background: var(--mmpo-white);
    color: var(--mmpo-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mmpo-pagination .current {
    border-color: var(--mmpo-red);
    background: var(--mmpo-red);
    color: var(--mmpo-white);
}

.mmpo-pagination a:hover,
.mmpo-pagination a:focus {
    border-color: var(--mmpo-teal-dark);
    color: var(--mmpo-teal-dark);
}

.mmpo-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-bar .mmpo-sidebar {
    top: 56px;
}

.mmpo-widget {
    padding: 25px;
    border: 1px solid var(--mmpo-border);
    border-radius: var(--mmpo-radius-md);
    background: var(--mmpo-white);
    box-shadow: 0 10px 27px rgba(16, 47, 57, 0.05);
}

.mmpo-widget--cta {
    border: 0;
    background: var(--mmpo-deep);
    color: var(--mmpo-white);
}

.mmpo-widget__label {
    margin: 0 0 9px;
    color: var(--mmpo-teal-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.mmpo-widget--cta .mmpo-widget__label {
    color: #91edf5;
}

.mmpo-widget h2 {
    margin: 0 0 12px;
    color: var(--mmpo-ink);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.mmpo-widget--cta h2 {
    color: var(--mmpo-white);
}

.mmpo-widget > p:not(.mmpo-widget__label) {
    margin: 0 0 18px;
    color: var(--mmpo-ink-soft);
    font-size: 14px;
    line-height: 1.65;
}

.mmpo-widget--cta > p:not(.mmpo-widget__label) {
    color: #d5e7eb;
}

.mmpo-widget-tools {
    display: grid;
    gap: 10px;
}

.mmpo-widget-tools > a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--mmpo-border);
    border-radius: 12px;
    color: var(--mmpo-ink);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mmpo-widget-tools > a:hover,
.mmpo-widget-tools > a:focus {
    border-color: #9cd5dc;
    background: #f3fbfc;
}

.mmpo-widget-tools__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--mmpo-mist);
    color: var(--mmpo-teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.mmpo-widget-tools strong,
.mmpo-widget-tools small {
    display: block;
}

.mmpo-widget-tools strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.mmpo-widget-tools small {
    color: #73868c;
    font-size: 11px;
}

.mmpo-resource-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mmpo-resource-list li {
    border-top: 1px solid #e8eff1;
}

.mmpo-resource-list li:first-child {
    border-top: 0;
}

.mmpo-resource-list a {
    display: block;
    padding: 11px 0;
    color: var(--mmpo-teal-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.mmpo-resource-list a:hover,
.mmpo-resource-list a:focus {
    color: var(--mmpo-orange-dark);
}

.mmpo-empty {
    padding: 45px 30px;
    border: 1px dashed #b9ced3;
    border-radius: var(--mmpo-radius-md);
    background: var(--mmpo-white);
    text-align: center;
}

.mmpo-empty h3 {
    margin: 0 0 8px;
    color: var(--mmpo-ink);
}

.mmpo-empty p {
    margin: 0;
    color: var(--mmpo-ink-soft);
}

.mmpo-final-cta {
    padding: 0 0 48px;
}

.mmpo-final-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 36px 40px;
    border-radius: var(--mmpo-radius-lg);
    background:
        radial-gradient(circle at 92% 15%, rgba(0, 184, 204, 0.24), transparent 120px),
        var(--mmpo-deep);
    color: var(--mmpo-white);
}

.mmpo-final-cta h2 {
    margin: 0 0 9px;
    color: var(--mmpo-white);
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.mmpo-final-cta p:not(.mmpo-eyebrow) {
    margin: 0;
    color: #d8eaed;
    font-size: 14px;
}

.mmpo-final-cta .mmpo-eyebrow {
    color: #92edf5;
}

.mmpo-footer {
    padding: 28px 0;
    background: #202b2f;
    color: var(--mmpo-white);
}

.mmpo-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.mmpo-footer strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.mmpo-footer p {
    margin: 0;
    color: #bccbd0;
    font-size: 12px;
}

.mmpo-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.mmpo-footer a {
    color: #e7f1f3;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.mmpo-footer a:hover,
.mmpo-footer a:focus {
    color: #8deef7;
}

/* Accesibilidad */
.mmpo-page a:focus-visible,
.mmpo-page button:focus-visible,
.mmpo-page input:focus-visible {
    outline: 3px solid rgba(0, 184, 204, 0.45);
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 1040px) {
    .mmpo-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mmpo-hero-card {
        max-width: 670px;
    }

    .mmpo-content__grid {
        grid-template-columns: 1fr;
    }

    .mmpo-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .mmpo-topnav__inner {
        padding: 10px 0;
    }

    .mmpo-topnav__brand {
        display: none;
    }

    .mmpo-topnav__links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .mmpo-intro__box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mmpo-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .mmpo-search {
        min-width: 0;
        width: 100%;
    }

    .mmpo-cards {
        grid-template-columns: 1fr;
    }

    .mmpo-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Móvil */
@media (max-width: 620px) {
    .mmpo-shell {
        width: min(100% - 28px, 1180px);
    }

    .mmpo-topnav__links a {
        padding: 8px 9px;
        font-size: 12px;
    }

    .mmpo-topnav__links a:nth-child(1) {
        display: none;
    }

    .mmpo-hero {
        padding: 34px 0;
    }

    .mmpo-breadcrumbs {
        margin-bottom: 20px;
    }

    .mmpo-hero h1 {
        font-size: 42px;
    }

    .mmpo-hero__lead {
        font-size: 17px;
        line-height: 1.55;
    }

    .mmpo-actions {
        flex-direction: column;
    }

    .mmpo-button {
        width: 100%;
    }

    .mmpo-hero-card {
        padding: 25px;
    }

    .mmpo-hero-card h2 {
        font-size: 26px;
    }

    .mmpo-intro {
        padding-top: 22px;
    }

    .mmpo-intro__box {
        padding: 25px 22px;
    }

    .mmpo-content {
        padding: 36px 0 45px;
    }

    .mmpo-card__body {
        padding: 20px;
    }

    .mmpo-final-cta__inner {
        align-items: stretch;
        flex-direction: column;
        padding: 29px 24px;
    }

    .mmpo-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Respeta la preferencia del usuario para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .mmpo-page *,
    .mmpo-page *::before,
    .mmpo-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
