/* sge4deca — Sitio público. Paleta común a todos los componentes.
   Ver docum/GuiaEstiloVisual.md */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
    --primario:        #0A66C2;
    --primario-oscuro: #0B3D7A;
    --acento:          #10B981;
    --texto:           #1F2937;
    --texto-suave:     #6B7280;
    --borde:           #E5E7EB;
    --fondo:           #F9FAFB;
    --superficie:      #FFFFFF;
    --ok:              #10B981;
    --aviso:           #F59E0B;
    --error:           #EF4444;
    --radio:           12px;
    --sombra:          0 2px 8px rgba(0,0,0,.07);
    --sombra-md:       0 4px 20px rgba(0,0,0,.10);
    --max-w:           1080px;

    /* Alias para ver.php y otros componentes */
    --color-primario:        #0A66C2;
    --color-primario-oscuro: #0B3D7A;
    --color-acento:          #10B981;
    --color-texto:           #1F2937;
    --color-texto-suave:     #6B7280;
    --color-borde:           #E5E7EB;
    --color-fondo:           #F9FAFB;
    --color-superficie:      #FFFFFF;
    --color-ok:              #10B981;
    --color-aviso:           #F59E0B;
    --color-error:           #EF4444;
}

/* ── Reset mínimo ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--fondo);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primario); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Cabecera ── */
.cabecera {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    color: var(--primario-oscuro);
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.cabecera .marca {
    width: 1.05em; height: 1.05em;
    background: var(--acento);
    border-radius: 3px;
    flex-shrink: 0;
}
    .cabecera .logotipo {
        font-weight: 700;
        font-size: 1.15rem;
        color: var(--primario-oscuro);
        letter-spacing: .2px;
    }
.cabecera nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
    .cabecera nav a {
        color: var(--primario-oscuro);
        font-size: .9rem;
        font-weight: 500;
    }
        .cabecera nav a:hover {
            color: var(--primario);
            text-decoration: none;
        }
.cabecera .btn-nav {
    background: var(--acento);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .4rem .95rem;
    font-size: .875rem;
    font-weight: 600;
    transition: filter .15s;
    white-space: nowrap;
}
.cabecera .btn-nav:hover { filter: brightness(.9); text-decoration: none; color:#fff }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: .25rem;
    margin-left: auto;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .cabecera nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--primario-oscuro);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: .5rem 0;
        box-shadow: 0 6px 16px rgba(0,0,0,.2);
    }
    .cabecera nav.open { display: flex; }
    .cabecera nav a,
    .cabecera nav .btn-nav { padding: .75rem 1.5rem; width: 100%; border-radius: 0; }
}

/* ── Contenedor ── */
.contenedor {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Hero ── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primario-oscuro) 0%, #1a56a0 60%, var(--primario) 100%);
    color: #fff;
    padding: 5rem 1.5rem 5.5rem;
    overflow: hidden;
}

/* Patrón de puntos decorativo */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-mockup { display: none; }
    .hero::after { height: 40px; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(245,158,11,.2);
    border: 1px solid rgba(245,158,11,.5);
    color: #FCD34D;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-texto h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.1rem;
    letter-spacing: -.02em;
    color: #fff;
}
.hero-texto h1 em {
    font-style: normal;
    color: var(--acento);
}
.hero-texto > p {
    font-size: 1.05rem;
    opacity: .88;
    max-width: 540px;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}
.hero-chips span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: .8rem;
    font-weight: 500;
    padding: .3rem .75rem;
    border-radius: 999px;
}
.hero-chips svg { color: var(--acento); flex-shrink: 0; }

.hero-acciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    background: var(--acento);
    color: #fff;
    font-weight: 700;
    font-size: .975rem;
    padding: .85rem 2rem;
    border-radius: 8px;
    transition: filter .15s, transform .15s;
    box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
.btn-hero:hover { filter: brightness(.9); transform: translateY(-1px); text-decoration: none; }

.btn-hero-sec {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    font-weight: 600;
    font-size: .975rem;
    padding: .85rem 2rem;
    border-radius: 8px;
    transition: background .15s;
}
.btn-hero-sec:hover { background: rgba(255,255,255,.22); text-decoration: none; }

/* ── Mockup del documento ── */
.hero-mockup {
    position: relative;
    z-index: 1;
}

.mockup-doc {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.15);
    color: var(--texto);
    transform: rotate(1.5deg);
    transition: transform .3s;
}
.hero-mockup:hover .mockup-doc { transform: rotate(0deg); }

.mockup-header {
    background: var(--primario-oscuro);
    color: #fff;
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.mockup-header-mark {
    width: .7rem; height: .7rem;
    background: var(--acento);
    border-radius: 2px;
    flex-shrink: 0;
}

.mockup-body { padding: .875rem 1rem; }

.mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    padding: .22rem 0;
    font-size: .78rem;
}
.mockup-lbl { color: var(--texto-suave); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.mockup-val { font-weight: 600; color: var(--texto); text-align: right; }
.mockup-sep { border-top: 1px solid var(--borde); margin: .5rem 0; }

.mockup-qr-row {
    display: flex;
    align-items: center;
    gap: .875rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--borde);
}
.mockup-qr {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border: 1px solid var(--borde);
    border-radius: 6px;
    padding: 4px;
}
.mockup-qr-info { font-size: .75rem; }
.mockup-badge-ok {
    display: inline-block;
    background: #D1FAE5;
    color: #065F46;
    font-weight: 700;
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    margin-bottom: .3rem;
}
.mockup-qr-fecha { color: var(--texto-suave); font-size: .72rem; }

.mockup-dgt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .75rem;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
}

/* ── Stats bar ── */
.stats-bar {
    background: var(--primario-oscuro);
    color: #fff;
}
.stats-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 1.75rem 1.5rem;
}
.stat {
    text-align: center;
    padding: .5rem 2.5rem;
    flex: 1;
    min-width: 140px;
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.stat-lbl {
    font-size: .78rem;
    color: rgba(255,255,255,.65);
    margin-top: .2rem;
}
.stat-sep {
    width: 1px;
    background: rgba(255,255,255,.15);
    align-self: stretch;
    margin: .25rem 0;
}
@media (max-width: 600px) {
    .stat-sep { display: none; }
    .stat { border-bottom: 1px solid rgba(255,255,255,.1); padding: .9rem 1rem; }
    .stat:last-child { border-bottom: none; }
}

/* ── Secciones ── */
section { padding: 5rem 0rem; }

.sec-titulo {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primario-oscuro);
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}
.sec-subtitulo {
    font-size: 1.05rem;
    color: var(--texto-suave);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.65;
}

/* ── Qué es el DeCA ── */
.deca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 4rem;
    align-items: start;
}
@media (max-width: 760px) { .deca-grid { grid-template-columns: 1fr; } }

.deca-texto p {
    color: var(--texto-suave);
    margin-bottom: 1rem;
    font-size: .975rem;
    line-height: 1.7;
}
.deca-texto p strong { color: var(--texto); }
.deca-texto p:last-child { margin-bottom: 0; }

.deca-legal {
    background: #EFF6FF;
    border-left: 4px solid var(--primario);
    border-radius: 0 var(--radio) var(--radio) 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.deca-legal strong {
    display: block;
    color: var(--primario-oscuro);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}
.deca-legal ul { padding-left: 1.1rem; list-style: disc; }
.deca-legal li { font-size: .875rem; color: var(--texto-suave); margin-bottom: .4rem; line-height: 1.5; }

.deca-aviso {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radio);
    padding: .875rem 1rem;
    display: flex;
    gap: .6rem;
    font-size: .85rem;
    color: #92400E;
    line-height: 1.5;
    align-items: flex-start;
}
.deca-aviso svg { color: var(--aviso); flex-shrink: 0; margin-top: .15rem; }
.deca-aviso strong { display: block; margin-bottom: .25rem; }

/* ── Cómo funciona (pasos) ── */
.pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    counter-reset: paso;
}

.paso {
    background: var(--superficie);
    border-radius: var(--radio);
    border: 1.5px solid var(--borde);
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
    counter-increment: paso;
    transition: box-shadow .15s, border-color .15s;
}
.paso:hover {
    box-shadow: var(--sombra-md);
    border-color: var(--primario);
}

.paso::before {
    content: counter(paso);
    position: absolute;
    top: -1px; left: -1px;
    width: 2.25rem; height: 2.25rem;
    background: var(--primario);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    border-radius: var(--radio) 0 var(--radio) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paso-icono {
    width: 2.5rem;
    height: 2.5rem;
    background: #EFF6FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    margin-top: .25rem;
    justify-self: center;
}
.paso-icono svg { width: 1.2rem; height: 1.2rem; color: var(--primario); }

.paso h3 {
    font-size: .975rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--texto);
    text-align: center;
}
.paso p {
    font-size: .85rem;
    color: var(--texto-suave);
    line-height: 1.6;
}

/* ── Ventajas ── */
.ventajas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ventaja {
    background: var(--superficie);
    border-radius: var(--radio);
    border: 1.5px solid var(--borde);
    padding: 1.5rem;
    transition: box-shadow .15s, border-color .15s;
}
.ventaja:hover {
    box-shadow: var(--sombra-md);
    border-color: #BFDBFE;
}

.ventaja-icono {
    width: 2.75rem; height: 2.75rem;
    background: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.ventaja-icono svg { width: 1.3rem; height: 1.3rem; color: var(--primario); }

.ventaja h3 { font-size: .975rem; font-weight: 700; margin-bottom: .5rem; }
.ventaja p  { font-size: .855rem; color: var(--texto-suave); line-height: 1.6; }

/* ── Accesos ── */
.accesos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 340px;
    margin: 0 auto;
}

.acceso-card {
    background: var(--superficie);
    border: 1.5px solid var(--borde);
    border-radius: var(--radio);
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: var(--sombra);
    transition: box-shadow .2s, border-color .2s, transform .2s;
    display: block;
    color: var(--texto);
}
.acceso-card:hover {
    box-shadow: var(--sombra-md);
    border-color: var(--primario);
    transform: translateY(-3px);
    text-decoration: none;
}

.acceso-icono {
    width: 3.5rem; height: 3.5rem;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.acceso-icono svg { width: 1.5rem; height: 1.5rem; color: var(--primario); }

.acceso-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--texto); margin-bottom: .4rem; }
.acceso-card p  { font-size: .855rem; color: var(--texto-suave); margin-bottom: 1.5rem; line-height: 1.5; }

.btn-acceso {
    display: inline-block;
    background: var(--primario);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1.75rem;
    border-radius: 6px;
    transition: background .15s;
}
.btn-acceso:hover { background: var(--primario-oscuro); text-decoration: none; }

/* ── Contacto ── */
.contacto-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
}
.contacto-info { flex: 1; min-width: 220px; }
.contacto-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.contacto-info p  { font-size: .9rem; color: var(--texto-suave); line-height: 1.8; }
.contacto-info a  { color: var(--primario); }

.contacto-nota {
    flex: 1;
    min-width: 240px;
    background: #EFF6FF;
    border-radius: var(--radio);
    padding: 1.5rem;
    font-size: .875rem;
    color: var(--texto-suave);
    line-height: 1.65;
    border: 1px solid #BFDBFE;
    margin-bottom: 1.5em;
}
.contacto-nota strong { display: block; color: var(--primario-oscuro); font-size: .9rem; margin-bottom: .5rem; }

.contacto-mapa {
    margin-top: 2rem;
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra);
    height: 340px;
}
.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ── Footer ── */
.footer {
    background: var(--primario-oscuro);
    color: rgba(255,255,255,.55);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: .825rem;
}
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer strong { color: rgba(255,255,255,.88); }

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Bloques visuales (cómo funciona) ── */
#como-funciona {
    background: var(--superficie);
}
.pv-head { padding-bottom: 0; margin-bottom: 0;}
.pv { padding: 4.5rem 1.5rem; background: var(--superficie); }
.pv-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 820px) {
    .pv-inner { grid-template-columns: 1fr; }
    .pv-inner .pv-mockup { order: -1; }
}

.pv-step {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primario);
    margin-bottom: .5rem;
}
.pv-texto h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--primario-oscuro);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}
.pv-texto p {
    font-size: .975rem;
    color: var(--texto-suave);
    line-height: 1.7;
    margin-bottom: .75rem;
}
.pv-texto p strong { color: var(--texto); }
.pv-texto p:last-child { margin-bottom: 0; }

/* ── Terminal API (paso 1) ── */
.mock-terminal {
    background: #0F172A;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: .8rem;
}
.mterm-bar {
    background: #1E293B;
    padding: .6rem 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.mterm-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mterm-title {
    margin-left: .5rem;
    font-size: .75rem;
    color: #64748B;
    font-family: inherit;
}
.mterm-body { padding: 1.1rem 1.25rem; line-height: 1.75; }
.mterm-line { color: #94A3B8; }
.tc-k { color: #7DD3FC; }
.tc-s { color: #86EFAC; }
.tc-p { color: #CBD5E1; }
.tc-cursor { color: #38BDF8; animation: blink-cur 1s step-end infinite; }
@keyframes blink-cur { 0%,100%{opacity:1} 50%{opacity:0} }

.mterm-resp {
    background: #0D2137;
    border-top: 1px solid #1E293B;
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.mtr-badge {
    background: #052E16;
    color: #4ADE80;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 4px;
    border: 1px solid #166534;
    font-family: inherit;
}
.mtr-msg { color: #4ADE80; font-size: .78rem; font-family: inherit; }

/* ── PDF (paso 2) ── */
.mock-pdf {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    padding: 1.5rem;
    border: 1.5px solid var(--borde);
}
.mpdf-head {
    display: flex;
    align-items: center;
    gap: .875rem;
    margin-bottom: 1.1rem;
}
.mpdf-icon {
    width: 44px; height: 44px;
    background: #FEF2F2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #DC2626;
}
.mpdf-name { font-size: .875rem; font-weight: 700; color: var(--texto); }
.mpdf-sub  { font-size: .75rem; color: var(--texto-suave); margin-top: .15rem; }

.mpdf-progress {
    height: 6px;
    background: var(--borde);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.mpdf-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primario), var(--acento));
    border-radius: 999px;
    animation: prog 2s ease-in-out infinite alternate;
}
@keyframes prog { from{width:15%} to{width:95%} }

.mpdf-checks { display: flex; flex-direction: column; gap: .6rem; }
.mpdf-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: var(--texto-suave);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s ease, transform .3s ease;
}
.reveal.visible .mpdf-check:nth-child(1) { opacity:1; transform:none; transition-delay: .3s; }
.reveal.visible .mpdf-check:nth-child(2) { opacity:1; transform:none; transition-delay: .55s; }
.reveal.visible .mpdf-check:nth-child(3) { opacity:1; transform:none; transition-delay: .8s; }
.reveal.visible .mpdf-check:nth-child(4) { opacity:1; transform:none; transition-delay: 1.05s; }
.chk {
    width: 20px; height: 20px;
    background: #D1FAE5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Phone (paso 3) ── */
.mock-phone {
    width: 200px;
    background: #1a202c;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,.3), 0 0 0 6px #2D3748;
    position: relative;
}
.mphone-notch {
    width: 60px; height: 18px;
    background: #1a202c;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 6px;
    position: relative;
    z-index: 2;
}
.mphone-screen {
    background: var(--fondo);
    border-radius: 26px;
    overflow: hidden;
    min-height: 340px;
}
.mphone-bar {
    background: var(--primario-oscuro);
    color: #fff;
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .7rem;
    font-weight: 700;
}
.mphone-mark {
    width: .6rem; height: .6rem;
    background: var(--acento);
    border-radius: 2px;
    flex-shrink: 0;
}
.mphone-title { font-size: .72rem; }
.mphone-card {
    background: #fff;
    margin: .6rem;
    border-radius: 10px;
    padding: .75rem;
    box-shadow: var(--sombra);
}
.mphone-ruta { font-size: .75rem; font-weight: 700; color: var(--texto); }
.mphone-ref  { font-size: .65rem; color: var(--texto-suave); margin-bottom: .5rem; }
.mphone-qr   { width: 100%; height: auto; border-radius: 4px; margin-bottom: .5rem; }
.mphone-valid {
    font-size: .65rem;
    background: #D1FAE5;
    color: #065F46;
    padding: .15rem .4rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
}
.mphone-offline {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .65rem;
    color: var(--texto-suave);
    padding: .4rem .75rem;
}
.mphone-wifi-dot {
    width: 6px; height: 6px;
    background: var(--acento);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100%{opacity:1;transform:scale(1)}
    50%{opacity:.5;transform:scale(.7)}
}
.mphone-home {
    width: 50px; height: 4px;
    background: #4A5568;
    border-radius: 2px;
    margin: 8px auto 4px;
}

/* ── Scan / Inspección (paso 4) ── */
.mock-scan {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    border: 1.5px solid var(--borde);
    overflow: hidden;
}
.mscan-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem;
    align-items: start;
}
.mscan-qr-area {
    position: relative;
    padding: .5rem;
    background: #F8FAFC;
    border-radius: 10px;
}
.mscan-qr {
    width: 100%; height: auto;
    display: block;
    border-radius: 4px;
}
.mscan-beam {
    position: absolute;
    left: .5rem; right: .5rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--acento) 30%, var(--acento) 70%, transparent 100%);
    box-shadow: 0 0 8px var(--acento), 0 0 2px var(--acento);
    animation: scan-beam 2s ease-in-out infinite;
    border-radius: 1px;
}
@keyframes scan-beam {
    0%   { top: 10%; }
    50%  { top: 80%; }
    100% { top: 10%; }
}
.mscan-corner {
    position: absolute;
    width: 14px; height: 14px;
    border-color: var(--primario);
    border-style: solid;
}
.c-tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.c-tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.c-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.c-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

.mscan-info { display: flex; flex-direction: column; gap: .75rem; }
.mscan-badge-ok {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #D1FAE5;
    color: #065F46;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .65rem;
    border-radius: 999px;
    width: fit-content;
}
.mscan-doc-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.mscan-doc-icon {
    width: 32px; height: 32px;
    background: #EFF6FF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primario);
}
.mscan-doc-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--texto);
    margin-bottom: .2rem;
}
.mscan-doc-sub { font-size: .7rem; color: var(--primario); line-height: 1.3; }
.mscan-placeholder {
    height: 8px;
    background: var(--borde);
    border-radius: 4px;
    width: 100%;
}

.mscan-url {
    border-top: 1px solid var(--borde);
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--texto-suave);
    background: #F8FAFC;
}
.mscan-url svg { color: var(--acento); flex-shrink: 0; }
.mscan-url span:nth-child(2) {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mscan-https {
    background: #D1FAE5;
    color: #065F46;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ── Logo imagen ── */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* ── ver.php y otros usan main/h1 ── */
main {
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 1rem;
}
h1 { color: var(--primario-oscuro); }

/* ── Planes de precios ── */
.planes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.plan {
    background: var(--superficie);
    border-radius: var(--radio);
    border: 1.5px solid var(--borde);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, border-color .15s;
}
.plan:hover {
    box-shadow: var(--sombra-md);
    border-color: #BFDBFE;
}
.plan-destacado {
    border-color: var(--primario);
    box-shadow: var(--sombra-md);
}
.plan-nombre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primario-oscuro);
    margin-bottom: .5rem;
}
.plan-precio {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primario-oscuro);
    margin-bottom: .25rem;
}
.plan-precio span {
    font-size: .85rem;
    font-weight: 500;
    color: var(--texto-suave);
}
.plan-limite {
    font-size: .855rem;
    color: var(--texto-suave);
    margin-bottom: 1.25rem;
}
.plan-nota {
    font-size: .8rem;
    color: var(--texto-suave);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--borde);
}
.precios-nota {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radio);
    padding: 1rem 1.25rem;
    font-size: .875rem;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.precios-nota strong { color: var(--primario-oscuro); }