/* ═══════════════════════════════════════════════════════════════════════════
   D.H.T — Planes, comparativa y panel de compra (checkout.js)
   Usado por las 6 páginas de servicio.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --ck-black: #060608;
    --ck-card: #0d0d10;
    --ck-card-2: #111115;
    --ck-acid: #C8FF00;
    --ck-gray: #8C8C7A;
    --ck-line: rgba(255,255,255,.07);
    --ck-line-acid: rgba(200,255,0,.35);
    --ck-text: rgba(255,255,255,.78);
    --ck-error: #ff5c5c;
    --ck-ease: cubic-bezier(.16, 1, .3, 1);
}

.sr-only {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ PLANES ============ */
.pricing { background: var(--ck-black); }
.pricing-intro {
    font-size: .82rem; color: var(--ck-gray);
    margin: -1.5rem 0 3rem; max-width: 600px; line-height: 1.8;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem; max-width: 1200px; width: 100%;
    align-items: stretch;
}

.pc {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--ck-card);
    border: 1px solid var(--ck-line);
    padding: 2.8rem 2.2rem 2.2rem;
    transition: transform .4s var(--ck-ease), box-shadow .4s ease, border-color .3s ease;
}
.pc::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200,255,0,.25), transparent);
}
.pc:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.5); border-color: rgba(200,255,0,.2); }

.pc--popular {
    background: linear-gradient(180deg, rgba(200,255,0,.08) 0%, var(--ck-card-2) 55%);
    border-color: var(--ck-line-acid);
    box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(200,255,0,.08);
}
.pc--popular::before { background: var(--ck-acid); box-shadow: 0 0 20px rgba(200,255,0,.5); }
@media (min-width: 1000px) {
    .pc--popular { transform: translateY(-8px); }
    .pc--popular:hover { transform: translateY(-14px); }
}

.pc-badge {
    position: absolute; top: 1.3rem; right: 1.3rem;
    font-size: .55rem; letter-spacing: .25em; text-transform: uppercase;
    background: var(--ck-acid); color: var(--ck-black);
    padding: .32rem .8rem; font-weight: 600;
}
.pc-tier { font-size: .6rem; color: var(--ck-acid); letter-spacing: .38em; text-transform: uppercase; margin-bottom: 1.1rem; }
.pc-name {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 2rem; line-height: 1; color: #fff; margin-bottom: .5rem;
}
.pc-desc { font-size: .75rem; color: var(--ck-gray); line-height: 1.55; margin-bottom: 2rem; min-height: 3.5rem; }

.pc-price {
    display: flex; align-items: flex-start; gap: .2rem; flex-wrap: wrap;
    margin-bottom: 2rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--ck-line);
}
.pc--popular .pc-price { border-bottom-color: rgba(200,255,0,.15); }
.pc-currency { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--ck-acid); margin-top: .5rem; }
.pc-amount { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; color: #fff; line-height: 1; letter-spacing: -.02em; }
.pc-amount--text { font-size: 2.4rem; color: var(--ck-acid); margin-top: .6rem; }
.pc-suffix {
    font-size: .6rem; color: var(--ck-gray); letter-spacing: .15em; text-transform: uppercase;
    align-self: flex-end; padding-bottom: .55rem; margin-left: .35rem;
}

.pc-features { list-style: none; display: flex; flex-direction: column; gap: .85rem; flex: 1; margin-bottom: 2.2rem; }
.pc-features li { display: flex; align-items: flex-start; gap: .7rem; font-size: .77rem; line-height: 1.45; color: var(--ck-text); }
.pc-features li.is-out { color: rgba(255,255,255,.28); }
.pc-check { color: var(--ck-acid); flex-shrink: 0; width: 1em; }
.is-out .pc-check { color: rgba(255,255,255,.22); }

.pc-cta, .ct-cta, .ck-btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%;
    font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    white-space: nowrap;
    padding: 1.1rem 1.2rem;
    background: transparent; color: var(--ck-acid);
    border: 1px solid var(--ck-line-acid);
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease, gap .35s var(--ck-ease);
}
.pc-cta:hover, .ct-cta:hover, .ck-btn:hover { background: var(--ck-acid); color: var(--ck-black); border-color: var(--ck-acid); gap: 1rem; }
.pc-cta--primary, .ct-cta--primary, .ck-btn--primary { background: var(--ck-acid); color: var(--ck-black); border-color: var(--ck-acid); font-weight: 600; }
.pc-cta--primary:hover, .ct-cta--primary:hover, .ck-btn--primary:hover { background: #d8ff40; color: var(--ck-black); }
.pc-cta:focus-visible, .ct-cta:focus-visible, .ck-btn:focus-visible,
.ck-option:focus-within, .ck-close:focus-visible, .ck-link:focus-visible,
.pricing-compare-link:focus-visible, .compare-scroll:focus-visible {
    outline: 2px solid var(--ck-acid); outline-offset: 3px;
}

/* Garantías bajo las tarjetas */
.pricing-trust {
    list-style: none;
    display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem;
    max-width: 1200px; margin: 2.5rem 0 0;
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.pricing-trust li { display: flex; align-items: center; gap: .55rem; }
.pricing-trust span { color: var(--ck-acid); }
.pricing-foot { font-size: .65rem; color: var(--ck-gray); letter-spacing: .12em; margin-top: 1.4rem; text-align: center; max-width: 1200px; }
.pricing-foot a { color: var(--ck-acid); text-decoration: none; }
.pricing-foot a:hover { text-decoration: underline; }
.pricing-compare-link {
    display: table; margin: 1.6rem auto 0;
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--ck-acid); text-decoration: none;
    border-bottom: 1px solid var(--ck-line-acid); padding-bottom: .3rem;
}
.pricing-compare-link:hover { border-color: var(--ck-acid); }
.pricing-grid, .pricing-trust, .pricing-foot { margin-left: auto; margin-right: auto; }
.pricing .section-title, .pricing-intro, .compare .section-title { max-width: 1200px; margin-left: auto; margin-right: auto; }
.pricing-intro { margin-top: -1.5rem; }

/* Móvil: tarjetas en carrusel horizontal con "asomo" de la siguiente */
@media (max-width: 760px) {
    .pricing-grid {
        display: flex; gap: 1rem;
        overflow-x: auto; scroll-snap-type: x mandatory;
        margin: 0 -2rem; padding: .8rem 2rem 1.2rem;
        width: auto; scrollbar-width: none;
    }
    .pricing-grid::-webkit-scrollbar { display: none; }
    .pc { flex: 0 0 84%; scroll-snap-align: center; padding: 2.4rem 1.6rem 1.8rem; }
    .pc:hover { transform: none; }
    .pricing-trust { justify-content: flex-start; gap: .7rem 1.4rem; }
}
.pricing-dots { display: none; }
@media (max-width: 760px) {
    .pricing-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .4rem; }
    .pricing-dots button {
        width: 22px; height: 3px; padding: 0; border: 0; cursor: pointer;
        background: rgba(255,255,255,.18); transition: background .3s ease, width .3s ease;
    }
    .pricing-dots button.is-active { background: var(--ck-acid); width: 34px; }
}

/* ============ COMPARATIVA ============ */
.compare { background: var(--ck-black); }
.compare-scroll {
    position: relative; /* contiene los .sr-only absolutos de la tabla (si no, desbordan la página en móvil) */
    max-width: 1200px; margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--ck-line);
}
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .75rem; table-layout: fixed; }
.compare-table thead .ct-corner { width: 24%; }
.compare-table th, .compare-table td {
    padding: 1rem 1.1rem; text-align: center; vertical-align: middle;
    border-bottom: 1px solid var(--ck-line);
}
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare-table tbody th[scope="row"] {
    text-align: left; font-weight: 400; color: var(--ck-text);
    position: sticky; left: 0; z-index: 1;
    background: var(--ck-black); min-width: 190px; max-width: 240px;
}
.compare-table thead th {
    background: var(--ck-card); vertical-align: bottom;
    padding-top: 1.6rem; padding-bottom: 1.3rem;
    border-bottom: 1px solid var(--ck-line-acid);
}
.compare-table thead .ct-corner { position: sticky; left: 0; z-index: 2; background: var(--ck-card); }
.ct-tier { display: block; font-size: .55rem; letter-spacing: .3em; color: var(--ck-acid); margin-bottom: .5rem; }
.ct-name { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.35rem; color: #fff; line-height: 1; }
.ct-price { display: block; margin-top: .6rem; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.15rem; color: var(--ck-acid); letter-spacing: .02em; }
.ct-price small { font-family: 'DM Mono', monospace; font-size: .55rem; letter-spacing: .12em; color: var(--ck-gray); text-transform: uppercase; margin-left: .35rem; }
.compare-table th.is-popular { background: linear-gradient(180deg, rgba(200,255,0,.1), var(--ck-card)); box-shadow: inset 0 2px 0 var(--ck-acid); }
.compare-table td.is-yes { color: var(--ck-acid); font-size: .95rem; }
.compare-table td.is-no { color: rgba(255,255,255,.2); }
.compare-table td.is-text { color: #fff; }
.compare-table tfoot td, .compare-table tfoot th { border-bottom: 0; padding-top: 1.4rem; padding-bottom: 1.4rem; background: var(--ck-card); }
.compare-table tfoot th { position: sticky; left: 0; z-index: 1; }
.ct-cta { padding: .8rem 1rem; font-size: .62rem; }
@media (max-width: 600px) {
    .compare-table { min-width: 600px; font-size: .68rem; }
    .compare-table thead .ct-corner { width: 128px; }
    .compare-table tbody th[scope="row"] { min-width: 0; }
    .compare-table th, .compare-table td { padding: .8rem .7rem; }
    .ct-name { font-size: 1.1rem; }
}

/* ============ COMPRA: TERMINAL A PANTALLA COMPLETA ============ */
body.ck-locked { overflow: hidden; }
.ck-term[hidden], .ck-overlay[hidden], .ck-term [hidden] { display: none !important; }

/* Fondo: negro + lluvia de código */
.ck-overlay {
    position: fixed; inset: 0; z-index: 99990;
    background: radial-gradient(ellipse at center, rgba(10,14,4,.94), rgba(2,3,2,.985));
    opacity: 0; transition: opacity .4s ease;
}
.ck-overlay.is-open { opacity: 1; }
.ck-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

/* Ventana de terminal */
.ck-term {
    position: fixed; z-index: 99991;
    inset: clamp(.75rem, 4vh, 3rem) clamp(.75rem, 4vw, 3rem);
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-rows: auto auto 1fr auto;
    background: rgba(5,7,4,.9);
    border: 1px solid rgba(200,255,0,.45);
    box-shadow: 0 0 0 1px rgba(200,255,0,.08), 0 0 60px rgba(200,255,0,.18), 0 40px 120px rgba(0,0,0,.8), inset 0 0 80px rgba(200,255,0,.04);
    backdrop-filter: blur(6px);
    font-family: 'DM Mono', monospace; color: #e9ffd0;
    opacity: 0; transform: scale(.96);
    clip-path: inset(50% 0 50% 0);
    transition: opacity .25s ease, transform .5s var(--ck-ease), clip-path .55s var(--ck-ease);
}
.ck-term.is-open { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
/* líneas de escaneo dentro del terminal */
.ck-term::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0,0,0,.18) 3px, transparent 4px);
    mix-blend-mode: multiply;
}

.ck-bar {
    display: flex; align-items: center; gap: 1rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid rgba(200,255,0,.25);
    background: linear-gradient(180deg, rgba(200,255,0,.08), rgba(200,255,0,.02));
}
.ck-dots { display: flex; gap: .4rem; }
.ck-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(200,255,0,.25); }
.ck-dots i:first-child { background: var(--ck-acid); box-shadow: 0 0 8px var(--ck-acid); }
.ck-path { flex: 1; font-size: .72rem; color: rgba(200,255,0,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-path b { color: var(--ck-acid); font-weight: 400; }
.ck-close {
    display: flex; align-items: center; gap: .5rem;
    background: transparent; border: 1px solid rgba(200,255,0,.3); color: var(--ck-acid);
    font-family: inherit; font-size: .7rem; letter-spacing: .1em;
    padding: .4rem .7rem; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.ck-close span { font-size: .55rem; opacity: .7; }
.ck-close:hover { background: var(--ck-acid); color: var(--ck-black); }

/* Progreso */
.ck-progress {
    display: flex; align-items: center; gap: 1.5rem;
    padding: .9rem 1.6rem; border-bottom: 1px solid rgba(200,255,0,.12);
}
.ck-steps { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.ck-steps li { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(233,255,208,.35); white-space: nowrap; }
.ck-steps li b { font-weight: 400; margin-right: .3rem; }
.ck-steps li.is-done { color: rgba(200,255,0,.6); }
.ck-steps li.is-done b::after { content: ' ✓'; }
.ck-steps li.is-current { color: var(--ck-acid); text-shadow: 0 0 10px rgba(200,255,0,.6); }
.ck-meter { flex: 1; position: relative; height: 6px; background: rgba(200,255,0,.08); border: 1px solid rgba(200,255,0,.2); }
.ck-meter-fill {
    height: 100%; width: 0;
    background: repeating-linear-gradient(90deg, var(--ck-acid) 0 6px, transparent 6px 8px);
    box-shadow: 0 0 12px rgba(200,255,0,.6);
    transition: width .6s var(--ck-ease);
}
.ck-meter span { position: absolute; right: 0; top: -1.3rem; font-size: .58rem; color: var(--ck-acid); }

/* Cuerpo: contenido + ticket */
.ck-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.ck-body { overflow-y: auto; padding: 1.8rem 2rem 2rem; overscroll-behavior: contain; scrollbar-width: thin; }
.ck-step { animation: ck-in .5s var(--ck-ease); max-width: 700px; }
@keyframes ck-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.ck-cmd { font-size: .68rem; color: rgba(200,255,0,.85); margin-bottom: .6rem; }
.ck-cmd span { color: rgba(200,255,0,.45); }
.ck-step-title {
    font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: .02em;
    color: #fff; text-shadow: 0 0 24px rgba(200,255,0,.25);
    margin-bottom: .6rem; outline: none; min-height: 1em;
}
.ck-prompt { color: var(--ck-acid); }
.ck-caret { color: var(--ck-acid); height: .8em; }
.ck-step-sub { font-size: .76rem; color: rgba(233,255,208,.6); line-height: 1.7; margin-bottom: 1.8rem; max-width: 560px; }

/* Selector de plan */
.ck-plans { display: grid; gap: .5rem; margin-bottom: 2rem; }
.ck-planrow {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    width: 100%; text-align: left; cursor: pointer;
    padding: 1rem 1.1rem;
    background: rgba(200,255,0,.02); color: inherit;
    border: 1px solid rgba(200,255,0,.15);
    font-family: inherit;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ck-planrow:hover { border-color: rgba(200,255,0,.45); background: rgba(200,255,0,.05); }
.ck-planrow.is-on {
    border-color: var(--ck-acid);
    background: linear-gradient(90deg, rgba(200,255,0,.12), rgba(200,255,0,.03));
    box-shadow: 0 0 24px rgba(200,255,0,.15), inset 3px 0 0 var(--ck-acid);
}
.ck-planrow:focus-visible { outline: 2px solid var(--ck-acid); outline-offset: 2px; }
.ck-radio { color: var(--ck-acid); font-size: .85rem; }
.ck-planrow-main { display: flex; flex-direction: column; gap: .25rem; }
.ck-planrow-tier { font-size: .55rem; letter-spacing: .25em; color: rgba(200,255,0,.7); }
.ck-planrow-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem; line-height: 1; color: #fff; letter-spacing: .02em; }
.ck-planrow-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--ck-acid); text-align: right; line-height: 1; }
.ck-planrow-price small { display: block; font-family: 'DM Mono', monospace; font-size: .52rem; letter-spacing: .12em; color: rgba(233,255,208,.45); text-transform: uppercase; margin-top: .25rem; }
.ck-planrow-feats {
    grid-column: 2 / -1;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem 1rem;
    font-size: .66rem; color: rgba(233,255,208,.75);
    padding-top: .8rem; border-top: 1px dashed rgba(200,255,0,.2);
    animation: ck-in .4s var(--ck-ease);
}

.ck-label { display: block; font-size: .64rem; letter-spacing: .12em; color: rgba(200,255,0,.7); margin-bottom: .8rem; text-transform: none; }
.ck-field { margin-bottom: 1.6rem; border: 0; padding: 0; min-width: 0; }
.ck-field legend { padding: 0; }
.ck-hint { font-size: .64rem; color: rgba(233,255,208,.5); margin-top: .5rem; }

/* Opciones: casillas de terminal */
.ck-options { display: grid; gap: .45rem; }
.ck-options--pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.ck-option { position: relative; display: block; cursor: pointer; }
.ck-option input { position: absolute; opacity: 0; pointer-events: none; }
.ck-option-box {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(200,255,0,.15); background: rgba(200,255,0,.02);
    font-size: .74rem; color: rgba(233,255,208,.8);
    transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ck-options--pills .ck-option-box { padding: .6rem .9rem; font-size: .7rem; }
.ck-options--pills .ck-option-box::before { content: '( )'; color: rgba(200,255,0,.5); margin-right: .1rem; }
.ck-options--pills input[type="checkbox"] + .ck-option-box::before { content: '[ ]'; }
.ck-options--pills input:checked + .ck-option-box::before { content: '(•)'; color: var(--ck-acid); }
.ck-options--pills input[type="checkbox"]:checked + .ck-option-box::before { content: '[x]'; }
.ck-options--pills .ck-option-box { justify-content: flex-start; gap: .55rem; }
.ck-option:hover .ck-option-box { border-color: rgba(200,255,0,.45); }
.ck-option input:checked + .ck-option-box { border-color: var(--ck-acid); background: rgba(200,255,0,.09); color: #fff; box-shadow: 0 0 18px rgba(200,255,0,.12); }
.ck-option input:focus-visible + .ck-option-box { outline: 2px solid var(--ck-acid); outline-offset: 2px; }
.ck-option-main { display: flex; align-items: center; gap: .8rem; }
.ck-tick { flex-shrink: 0; white-space: nowrap; }
.ck-tick::before { content: '[ ]'; color: rgba(200,255,0,.55); font-size: .8rem; }
.ck-option input:checked + .ck-option-box .ck-tick::before { content: '[x]'; color: var(--ck-acid); text-shadow: 0 0 8px var(--ck-acid); }
.ck-option-price { color: var(--ck-acid); white-space: nowrap; font-size: .72rem; }
.ck-option-desc { display: block; font-size: .62rem; color: rgba(233,255,208,.45); margin-top: .2rem; }

/* Campos de texto de terminal */
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.ck-row .ck-field { margin-bottom: 1rem; }
.ck-input-wrap { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid rgba(200,255,0,.3); transition: border-color .2s ease; }
.ck-input-wrap span { color: var(--ck-acid); }
.ck-input-wrap:focus-within { border-color: var(--ck-acid); box-shadow: 0 1px 0 var(--ck-acid); }
.ck-input {
    width: 100%; padding: .7rem 0;
    background: transparent; color: #fff; border: 0;
    font-family: 'DM Mono', monospace; font-size: .85rem; caret-color: var(--ck-acid);
}
textarea.ck-input { min-height: 90px; resize: vertical; padding: .8rem 1rem; border: 1px solid rgba(200,255,0,.2); background: rgba(200,255,0,.02); }
textarea.ck-input:focus { border-color: var(--ck-acid); }
.ck-input::placeholder { color: rgba(233,255,208,.3); }
.ck-input:focus { outline: none; }
.ck-input.is-invalid { color: var(--ck-error); }
.ck-input-wrap:has(.is-invalid) { border-color: var(--ck-error); }
.ck-error { font-size: .7rem; color: var(--ck-error); margin-top: .8rem; min-height: 1em; }
.ck-link { color: var(--ck-acid); }
.ck-summary-edit { background: none; border: 0; padding: 0; color: var(--ck-acid); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: .4rem; }

/* Ticket */
.ck-receipt {
    border-left: 1px solid rgba(200,255,0,.2);
    padding: 1.6rem 1.4rem; overflow-y: auto;
    background: linear-gradient(180deg, rgba(200,255,0,.04), transparent 40%);
}
.rc-paper {
    position: relative;
    background: #0b0e07; border: 1px solid rgba(200,255,0,.3);
    padding: 1.3rem 1.2rem 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    animation: rcPrint .6s var(--ck-ease);
}
.rc-paper::before, .rc-paper::after { /* bordes de papel troquelado */
    content: ''; position: absolute; left: -1px; right: -1px; height: 8px;
    background: radial-gradient(circle at 5px 0, transparent 4px, #0b0e07 4.5px) repeat-x;
    background-size: 10px 8px;
}
.rc-paper::before { top: -8px; transform: scaleY(-1); }
.rc-paper::after { bottom: -8px; }
@keyframes rcPrint { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px dashed rgba(200,255,0,.3); }
.rc-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--ck-acid); letter-spacing: .12em; text-shadow: 0 0 12px rgba(200,255,0,.5); }
.rc-meta { font-size: .55rem; letter-spacing: .1em; color: rgba(233,255,208,.5); text-align: right; line-height: 1.6; }
.rc-service { font-size: .66rem; color: rgba(200,255,0,.8); margin: .9rem 0 .7rem; text-transform: uppercase; letter-spacing: .12em; }
.rc-lines { display: grid; gap: .5rem; padding-bottom: .9rem; border-bottom: 1px dashed rgba(200,255,0,.3); }
.rc-line { display: flex; align-items: baseline; gap: .4rem; font-size: .68rem; color: #e9ffd0; }
.rc-line span:first-child { max-width: 60%; }
.rc-line i { flex: 1; border-bottom: 1px dotted rgba(200,255,0,.35); transform: translateY(-3px); min-width: 1rem; }
.rc-line span:last-child { white-space: nowrap; color: var(--ck-acid); }
.rc-line.is-new { animation: rcLine .5s var(--ck-ease); }
@keyframes rcLine { from { opacity: 0; transform: translateX(-10px); background: rgba(200,255,0,.25); } to { opacity: 1; transform: none; background: transparent; } }
.rc-total { padding: 1rem 0 .7rem; }
.rc-total span { display: block; font-size: .55rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(233,255,208,.5); }
.rc-total strong {
    display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400;
    font-size: 2.6rem; line-height: 1.05; color: var(--ck-acid);
    text-shadow: 0 0 20px rgba(200,255,0,.45);
}
.rc-total strong.is-bump { animation: rcBump .45s var(--ck-ease); }
@keyframes rcBump { 30% { transform: scale(1.06); text-shadow: 0 0 34px rgba(200,255,0,.9); } }
.rc-total small { display: block; font-size: .62rem; color: rgba(233,255,208,.7); margin-top: .2rem; }
.rc-note { font-size: .6rem; color: rgba(233,255,208,.5); line-height: 1.6; margin-bottom: .3rem; }
.rc-trust { list-style: none; margin: .8rem 0 1rem; padding: .8rem 0 0; border-top: 1px dashed rgba(200,255,0,.3); display: grid; gap: .3rem; }
.rc-trust li { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(233,255,208,.65); }
.rc-trust li::before { content: '✓ '; color: var(--ck-acid); }
.rc-barcode { display: flex; gap: 2px; height: 34px; justify-content: center; opacity: .85; }
.rc-barcode i { display: block; height: 100%; background: var(--ck-acid); }
.rc-barcode i:nth-child(3n) { background: transparent; }
.rc-id { text-align: center; font-size: .55rem; letter-spacing: .4em; color: rgba(233,255,208,.5); margin-top: .35rem; }

/* Pie: navegación */
.ck-foot {
    display: flex; align-items: center; justify-content: flex-end; gap: 1rem;
    padding: .9rem 1.6rem calc(.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(200,255,0,.2);
    background: rgba(5,7,4,.95);
}
.ck-nav { display: flex; gap: .6rem; }
.ck-nav .ck-btn { width: auto; padding: 1rem 1.6rem; }
.ck-btn--primary { box-shadow: 0 0 24px rgba(200,255,0,.35); }
.ck-btn--ghost { border-color: rgba(200,255,0,.25); color: rgba(233,255,208,.75); }
.ck-btn--ghost:hover { background: transparent; color: var(--ck-acid); border-color: var(--ck-acid); }
.ck-btn[disabled] { opacity: .5; cursor: wait; }
.ck-btn.is-loading span { opacity: 0; }
.ck-btn.is-loading { position: relative; }
.ck-btn.is-loading::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: ck-spin .7s linear infinite;
}
@keyframes ck-spin { to { transform: rotate(360deg); } }
.ck-mobile-total { display: none; }

/* Confirmación */
.ck-done-log { font-family: inherit; font-size: .7rem; line-height: 1.7; color: rgba(200,255,0,.8); margin-bottom: 1.2rem; white-space: pre; }
.ck-done-title { color: var(--ck-acid); text-shadow: 0 0 30px rgba(200,255,0,.6); animation: ckGlitch .9s steps(2, end) 1; font-size: clamp(2.4rem, 6vw, 4.2rem); }
@keyframes ckGlitch {
    0%   { text-shadow: 3px 0 #ff2a6d, -3px 0 #05d9e8; clip-path: inset(0 0 60% 0); }
    20%  { text-shadow: -4px 0 #ff2a6d, 4px 0 #05d9e8; clip-path: inset(30% 0 20% 0); }
    40%  { clip-path: inset(60% 0 0 0); }
    60%  { text-shadow: 2px 0 #ff2a6d, -2px 0 #05d9e8; clip-path: inset(10% 0 40% 0); }
    100% { text-shadow: 0 0 30px rgba(200,255,0,.6); clip-path: inset(0); }
}
.ck-next { list-style: none; counter-reset: n; display: grid; gap: .9rem; margin: 1.6rem 0 2rem; padding: 0; }
.ck-next li { counter-increment: n; display: flex; gap: .9rem; font-size: .76rem; color: rgba(233,255,208,.8); line-height: 1.5; }
.ck-next li::before { content: '[' counter(n, decimal-leading-zero) ']'; flex-shrink: 0; color: var(--ck-acid); }
.ck-done .ck-btn { width: auto; display: inline-flex; padding: 1rem 2rem; }

/* Tablet / móvil: el ticket pasa a un panel desplegable desde el pie */
@media (max-width: 900px) {
    .ck-term { inset: 0; border: 0; }
    .ck-main { grid-template-columns: 1fr; position: relative; }
    .ck-body { padding: 1.4rem 1.2rem 1.6rem; }
    .ck-progress { padding: .8rem 1.2rem; gap: 1rem; }
    .ck-steps { gap: .8rem; }
    .ck-steps li:not(.is-current) { font-size: 0; }
    .ck-steps li:not(.is-current) b { font-size: .62rem; }
    .ck-receipt {
        position: absolute; left: 0; right: 0; bottom: 0; max-height: 85%;
        border-left: 0; border-top: 1px solid var(--ck-acid);
        background: rgba(5,7,4,.98);
        transform: translateY(100%); transition: transform .45s var(--ck-ease);
        z-index: 2; visibility: hidden;
    }
    .ck-term.receipt-open .ck-receipt { transform: none; visibility: visible; }
    .ck-foot { justify-content: space-between; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); gap: .6rem; }
    .ck-mobile-total {
        display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
        background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; text-align: left;
    }
    .ck-mobile-total span { font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(233,255,208,.5); }
    .ck-mobile-total strong { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--ck-acid); line-height: 1; }
    .ck-mobile-total em { font-style: normal; font-size: .55rem; color: rgba(200,255,0,.7); text-decoration: underline; text-underline-offset: 2px; }
    .ck-nav .ck-btn { padding: .9rem 1rem; font-size: .64rem; letter-spacing: .12em; }
    .ck-planrow { grid-template-columns: auto 1fr; }
    .ck-planrow-price { grid-column: 2; text-align: left; }
    .ck-planrow-feats { grid-column: 1 / -1; grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ck-row { grid-template-columns: 1fr; }
    .ck-path { font-size: .62rem; }
    .ck-btn--ghost span { font-size: 0; }
    .ck-btn--ghost span::before { content: '←'; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ck-step, .ck-planrow-feats, .rc-paper, .rc-line.is-new, .ck-done-title, .rc-total strong.is-bump { animation: none; }
    .ck-term, .ck-overlay, .ck-receipt { transition: opacity .15s ease; }
    .ck-term { clip-path: none; transform: none; }
}
