/* =========================================================
   SUPLEMENTO LANDING — mockup de app + ajustes finos
   (no toca tu theme.css; sólo añade lo nuevo)
   ========================================================= */

/* El reset del tema hace .wp-site-blocks{all:unset}; aquí no aplica.
   Aseguramos que el body use el fondo correcto en standalone. */
body { background: var(--opogc-white-off); }

/* Robustez: el contenido es visible por defecto (SEO / sin JS).
   Sólo se oculta para animar cuando JS está activo y se respeta el motion. */
.opogc-fade-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    html.opogc-js .opogc-fade-in:not(.is-visible) { opacity: 0; transform: translateY(18px); }
}

/* --- Dropdown de navegación (Funciones) --- */
.opogc-nav .has-sub { position: relative; }
.opogc-nav .has-sub > a::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 4px;
    vertical-align: -2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6570' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; background-position: center;
    transition: transform var(--opogc-transition);
}
.opogc-nav .has-sub:hover > a::after { transform: rotate(180deg); }
.opogc-nav .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 230px;
    background: var(--opogc-white);
    border: 1px solid var(--opogc-border);
    border-radius: var(--opogc-radius-sm);
    box-shadow: var(--opogc-shadow-md);
    padding: var(--opogc-space-8);
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden;
    transition: opacity var(--opogc-transition), transform var(--opogc-transition), visibility var(--opogc-transition);
    z-index: 120;
}
.opogc-nav .has-sub:hover .sub-menu,
.opogc-nav .has-sub:focus-within .sub-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.opogc-nav .sub-menu a {
    display: flex; align-items: center; gap: var(--opogc-space-12);
    text-align: left; white-space: nowrap;
    padding: var(--opogc-space-12);
    border-radius: var(--opogc-radius-xs);
}
.opogc-nav .sub-menu svg { width: 18px; height: 18px; stroke: var(--opogc-green-pastel); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.opogc-nav .sub-menu strong { display: block; font-size: 0.9rem; color: var(--opogc-text); font-weight: 600; }
.opogc-nav .sub-menu span { display: block; font-size: 0.78rem; color: var(--opogc-text-muted); }

@media (max-width: 720px) {
    .opogc-nav .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; padding: 0 0 0 var(--opogc-space-16);
        min-width: 0;
    }
    .opogc-nav .has-sub > a::after { display: none; }
}

/* =========================================================
   MOCKUP DE LA APP (pantalla de test)
   ========================================================= */
.mk-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--opogc-space-16) 0;
}
.mk-phone {
    position: relative;
    width: 300px;
    aspect-ratio: 9 / 18.5;
    background: #fff;
    border-radius: 38px;
    border: 1px solid var(--opogc-border);
    box-shadow:
        0 2px 4px rgba(26,107,64,0.06),
        0 30px 60px -20px rgba(26,107,64,0.30),
        0 12px 24px -12px rgba(26,43,46,0.12);
    padding: 12px;
    z-index: 2;
}
.mk-screen {
    position: relative;
    height: 100%;
    background: var(--opogc-white-off);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mk-notch {
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 110px; height: 22px;
    background: #fff;
    border-radius: 0 0 14px 14px;
    z-index: 5;
}
.mk-notch::after {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 5px; border-radius: 3px; background: var(--opogc-border);
}
/* Top bar app */
.mk-top {
    padding: 30px 18px 14px;
    background: #fff;
    border-bottom: 1px solid var(--opogc-border);
}
.mk-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mk-tema { font-family: var(--opogc-font-title); font-weight: 700; font-size: 0.82rem; color: var(--opogc-text); }
.mk-timer {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72rem; font-weight: 600; color: var(--opogc-green-deep);
    background: var(--opogc-green-soft); padding: 3px 8px; border-radius: 999px;
}
.mk-timer svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.mk-prog-label { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--opogc-text-muted); margin-bottom: 5px; font-weight: 600; }
.mk-prog-track { height: 6px; background: var(--opogc-green-soft); border-radius: 999px; overflow: hidden; }
.mk-prog-fill { height: 100%; width: 16%; background: var(--opogc-green-pastel); border-radius: 999px; }
/* Question */
.mk-body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.mk-q { font-family: var(--opogc-font-title); font-weight: 700; font-size: 0.92rem; line-height: 1.35; color: var(--opogc-text); margin-bottom: 4px; }
.mk-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    background: #fff;
    border: 1.5px solid var(--opogc-border);
    border-radius: 12px;
    font-size: 0.82rem; font-weight: 500; color: var(--opogc-text-soft);
}
.mk-opt .mk-key {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 7px; background: var(--opogc-surface-alt);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: var(--opogc-text-muted);
    font-family: var(--opogc-font-title);
}
.mk-opt.is-correct {
    border-color: var(--opogc-green-pastel);
    background: var(--opogc-green-soft);
    color: var(--opogc-green-deep);
    font-weight: 600;
}
.mk-opt.is-correct .mk-key { background: var(--opogc-green-pastel); color: #fff; }
.mk-opt .mk-check { margin-left: auto; width: 18px; height: 18px; stroke: var(--opogc-green-pastel); fill: none; stroke-width: 2.6; }
/* Bottom action */
.mk-foot { padding: 12px 18px 18px; }
.mk-next {
    width: 100%; padding: 11px; border: none; cursor: default;
    background: var(--opogc-green-pastel); color: #fff;
    border-radius: 12px; font-family: var(--opogc-font-body);
    font-weight: 700; font-size: 0.86rem;
    box-shadow: 0 4px 14px rgba(76,175,125,0.32);
}
/* Floating cards */
.mk-float {
    position: absolute; z-index: 3;
    background: #fff;
    border: 1px solid var(--opogc-border);
    border-radius: 14px;
    box-shadow: var(--opogc-shadow-md);
    padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
}
.mk-float--streak { top: 14%; left: -34px; }
.mk-float--ring { bottom: 16%; right: -40px; }
.mk-float .mk-ic {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.mk-float--streak .mk-ic { background: var(--opogc-gold-soft); }
.mk-float--streak .mk-ic svg { width: 20px; height: 20px; stroke: var(--opogc-gold-deep); fill: none; stroke-width: 2; }
.mk-float--ring .mk-ic { background: var(--opogc-green-soft); position: relative; }
.mk-float small { display: block; font-size: 0.68rem; color: var(--opogc-text-muted); font-weight: 600; letter-spacing: 0.02em; }
.mk-float strong { display: block; font-family: var(--opogc-font-title); font-size: 0.98rem; color: var(--opogc-text); line-height: 1.1; }
.mk-ring-svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.mk-ring-svg circle { fill: none; stroke-width: 4; }
.mk-ring-bg { stroke: var(--opogc-green-soft); }
.mk-ring-fg { stroke: var(--opogc-green-pastel); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 22; }

@media (max-width: 1024px) {
    .mk-float--streak { left: 0; }
    .mk-float--ring { right: 0; }
}
@media (max-width: 480px) {
    .mk-phone { width: 260px; }
    .mk-float--streak { left: -10px; top: 10%; }
    .mk-float--ring { right: -10px; }
}

/* --- Sección "por qué tan barata" / comparativa --- */
.opogc-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--opogc-space-24);
    align-items: stretch;
    margin-top: var(--opogc-space-48);
}
.opogc-compare__col {
    background: var(--opogc-white);
    border: 1px solid var(--opogc-border);
    border-radius: var(--opogc-radius);
    padding: var(--opogc-space-32);
    box-shadow: var(--opogc-shadow-xs);
}
.opogc-compare__col--win {
    border-color: var(--opogc-green-pastel);
    box-shadow: var(--opogc-shadow-sm), 0 0 0 3px rgba(76,175,125,0.10);
}
.opogc-compare__tag {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--opogc-text-muted); margin-bottom: var(--opogc-space-8);
}
.opogc-compare__col--win .opogc-compare__tag { color: var(--opogc-green-pastel); }
.opogc-compare__price { font-family: var(--opogc-font-title); font-weight: 800; font-size: 2.2rem; color: var(--opogc-text); line-height: 1; margin-bottom: var(--opogc-space-4); }
.opogc-compare__col--win .opogc-compare__price { color: var(--opogc-green-deep); }
.opogc-compare__price small { font-size: 0.9rem; font-weight: 600; color: var(--opogc-text-muted); }
.opogc-compare__note { font-size: 0.88rem; color: var(--opogc-text-soft); margin-bottom: var(--opogc-space-16); }
.opogc-compare ul { list-style: none; display: grid; gap: var(--opogc-space-8); }
.opogc-compare li { font-size: 0.88rem; color: var(--opogc-text-soft); display: flex; gap: 8px; align-items: flex-start; }
.opogc-compare li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: none; stroke-width: 2.4; }
.opogc-compare li.no svg { stroke: var(--opogc-text-muted); }
.opogc-compare li.yes svg { stroke: var(--opogc-green-pastel); }
.opogc-compare__vs {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--opogc-font-title); font-weight: 700; color: var(--opogc-text-muted);
    font-size: 0.85rem;
}
@media (max-width: 1024px) {
    .opogc-compare { grid-template-columns: 1fr; }
    .opogc-compare__vs { display: none; }
}

/* nota de demo */
.opogc-demo-note {
    background: var(--opogc-gold-soft);
    border-bottom: 1px solid var(--opogc-gold-border);
    color: var(--opogc-gold-deep);
    font-size: 0.8rem; font-weight: 600; text-align: center;
    padding: 8px 16px;
}
.opogc-demo-note a { color: var(--opogc-gold-deep); text-decoration: underline; }