/* ═══════════════════════════════════════════════════
   BLINQ — Aplicaciones móviles (/aplicaciones)
   Estilos propios de la página. Los componentes base (secciones, columnas,
   proceso, FAQ, plan) vienen de ui.css.

   El visual del hero es un OBJETO DE DEMO: la app de un café ficticio
   («Café Origen»), con SU color de marca (café), no el de Blinq. Sus colores
   van fijos (no son tokens), igual que .rx en rescate web y .cx en cursos.
   La insignia de tienda es genérica: no usa logos de Apple ni de Google.
   Escala con unidades de contenedor (cqw) para verse igual en 390 y 1280:
   el escenario es el contenedor de los celulares y cada celular es el
   contenedor de su pantalla.
   ═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   HERO · escenario
   ───────────────────────────────────── */
.ap { container-type: inline-size; }

.ap-stage {
    position: relative;
    aspect-ratio: 1 / 1.1;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-2);
    font-family: var(--font-body);
    line-height: 1.25;
}

.ap-tag {
    position: absolute;
    top: 3.5cqw;
    right: 3.5cqw;
    padding: 0.6cqw 1.6cqw;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font: 500 clamp(9px, 2.2cqw, 12px) var(--font-mono);
    color: var(--text-3);
}

/* Celular (objeto físico: lleva sombra de medio) */
.ap-phone {
    position: absolute;
    container-type: inline-size;
    aspect-ratio: 300 / 620;
    padding: 0.85cqw;
    border-radius: 7cqw;
    background: #0B0A10;
    box-shadow: 0 0 0 1px #4A4753, 0 0 0 2px #1B1A21, var(--shadow-media);
}

.ap-phone--a { left: 7cqw; top: 14cqw; z-index: 1; width: 39cqw; transform: rotate(-4deg); }
.ap-phone--b { right: 7cqw; top: 9cqw; z-index: 2; width: 43cqw; }

.ap-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 14.5cqw;
    background: #FBF7F2;
    color: #2A1B12;
    font-size: 4.9cqw;
}

.ap-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    height: 14cqw;
    padding: 1cqw 8cqw 0 10cqw;
    font-weight: 600;
    font-size: 0.95em;
}

.ap-island {
    position: absolute;
    top: 3.6cqw;
    left: 50%;
    width: 30%;
    height: 8.6cqw;
    border-radius: 999px;
    background: #000000;
    transform: translateX(-50%);
}

.ap-sys { display: flex; align-items: flex-end; gap: 0.8cqw; }
.ap-sys i { width: 1.4cqw; border-radius: 0.4cqw; background: currentColor; }
.ap-sys i:nth-child(1) { height: 1.8cqw; }
.ap-sys i:nth-child(2) { height: 2.6cqw; }
.ap-sys i:nth-child(3) { width: 5.6cqw; height: 2.8cqw; border-radius: 0.8cqw; }

.ap-app {
    display: grid;
    align-content: start;
    gap: 3.4cqw;
    flex: 1;
    min-height: 0;
    padding: 1cqw 5.5cqw 0;
}

.ap-home {
    position: absolute;
    bottom: 2cqw;
    left: 50%;
    width: 34%;
    height: 1.5cqw;
    border-radius: 1cqw;
    background: #2A1B12;
    transform: translateX(-50%);
}

/* Marca del café de ejemplo */
.ap-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 10cqw;
    height: 10cqw;
    border-radius: 2.6cqw;
    background: #5B3A26;
    color: #F6E7D3;
    font-weight: 700;
    font-size: 1.15em;
}

.ap-head { display: flex; align-items: center; gap: 3cqw; }
.ap-head__t { display: grid; gap: 0.6cqw; }
.ap-head__t b { font-weight: 700; letter-spacing: -0.01em; }
.ap-head__t small { font-size: 0.82em; color: #7A6556; }

/* Tarjeta de puntos */
.ap-points {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.6cqw 2cqw;
    padding: 4cqw 4.5cqw;
    border-radius: 4cqw;
    background: #5B3A26;
    color: #F6E7D3;
}

.ap-points__k { font-size: 0.82em; opacity: 0.85; }
.ap-points__n { grid-row: span 2; align-self: center; font-size: 2em; font-weight: 700; letter-spacing: -0.03em; }
.ap-points__bar { height: 1.8cqw; border-radius: 1cqw; background: rgba(246, 231, 211, 0.25); }
.ap-points__bar i { display: block; width: 80%; height: 100%; border-radius: inherit; background: #E0A458; }
.ap-points__t { grid-column: 1 / -1; font-size: 0.78em; opacity: 0.9; }

.ap-cats { display: flex; gap: 2cqw; font-size: 0.82em; }
.ap-cats > * { padding: 1.2cqw 3cqw; border: 1px solid #E6DACD; border-radius: 2cqw; color: #7A6556; }
.ap-cats b { border-color: #2A1B12; background: #2A1B12; color: #FBF7F2; font-weight: 600; }

.ap-menu { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ap-menu li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 2.4cqw;
    padding: 2.6cqw 0;
    border-top: 1px solid #EDE3D8;
}
.ap-menu li:first-child { border-top: 0; }

.ap-pic { width: 10cqw; height: 10cqw; border-radius: 2.4cqw; }
.ap-pic--1 { background: #C89F7A; }
.ap-pic--2 { background: #E3CDB4; }
.ap-pic--3 { background: #D9A35E; }
.ap-pic--4 { background: #EAD9BF; }

.ap-item { display: grid; gap: 0.5cqw; min-width: 0; }
.ap-item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-item small { font-size: 0.78em; color: #8B7667; white-space: nowrap; }
.ap-price { font-size: 0.86em; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-add {
    display: grid;
    place-items: center;
    width: 6.4cqw;
    height: 6.4cqw;
    border-radius: 1.8cqw;
    background: #5B3A26;
    color: #FBF7F2;
    font-weight: 600;
    line-height: 1;
}

.ap-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex: none;
    padding: 2.6cqw 3cqw 7cqw;
    border-top: 1px solid #EDE3D8;
    background: #FFFFFF;
    font-size: 0.7em;
    color: #9A8676;
}
.ap-tabs span { display: grid; justify-items: center; gap: 0.8cqw; }
.ap-tabs svg { width: 5.6cqw; height: 5.6cqw; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ap-tabs .is-on { color: #5B3A26; font-weight: 600; }

/* Pantalla del pedido */
.ap-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2cqw; }
.ap-bar svg { width: 5.4cqw; height: 5.4cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-bar b { font-weight: 700; }
.ap-bar span { font: 500 0.8em var(--font-mono); color: #7A6556; }

.ap-ready {
    display: grid;
    gap: 1.6cqw;
    padding: 4cqw 4.5cqw;
    border: 1px solid #E6DACD;
    border-radius: 4cqw;
    background: #FFFFFF;
}
.ap-ready__k { font-size: 0.78em; color: #8B7667; }
.ap-ready b { font-size: 1.2em; font-weight: 700; letter-spacing: -0.02em; color: #1F7A4A; }

.ap-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6cqw;
    margin: 1.4cqw 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.72em;
    color: #8B7667;
}
.ap-steps li { display: grid; gap: 1.2cqw; }
.ap-steps li::before { content: ""; height: 1.4cqw; border-radius: 1cqw; background: #EDE3D8; }
.ap-steps .is-done::before { background: #5B3A26; }
.ap-steps .is-now { color: #1F7A4A; font-weight: 600; }
.ap-steps .is-now::before { background: #1F7A4A; }

.ap-lines { display: grid; margin: 0; padding: 0; list-style: none; font-size: 0.86em; }
.ap-lines li { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.8cqw 0; border-top: 1px solid #EDE3D8; font-variant-numeric: tabular-nums; }
.ap-lines li:first-child { border-top: 0; }
.ap-lines span:first-child { color: #5E4A3C; }
.ap-total { font-weight: 700; }
.ap-total span:first-child { color: inherit !important; }

.ap-earn {
    display: flex;
    align-items: center;
    gap: 1.8cqw;
    margin: 0;
    padding: 2.4cqw 3.4cqw;
    border-radius: 2.6cqw;
    background: #F3E6D6;
    font-size: 0.82em;
    font-weight: 600;
    color: #5B3A26;
}
.ap-earn svg { flex: none; width: 4.4cqw; height: 4.4cqw; fill: #E0A458; stroke: #B87A30; stroke-width: 1.5; stroke-linejoin: round; }

.ap-pickup { display: grid; gap: 0.6cqw; margin: 0; }
.ap-pickup small { font-size: 0.78em; color: #8B7667; }
.ap-pickup b { font-weight: 600; font-size: 0.9em; }

.ap-cta {
    display: grid;
    place-items: center;
    height: 11cqw;
    border-radius: 3cqw;
    background: #5B3A26;
    color: #FBF7F2;
    font-weight: 600;
    font-size: 0.9em;
}

/* Notificación flotante */
.ap-notif {
    position: absolute;
    z-index: 4;
    left: 3cqw;
    top: 4cqw;
    display: flex;
    align-items: center;
    gap: 2.4cqw;
    width: 45cqw;
    padding: 2.4cqw 2.8cqw;
    border-radius: 3cqw;
    background: rgba(255, 255, 255, 0.97);
    color: #16141D;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 26px 48px -22px rgba(0, 0, 0, 0.6);
    font-size: clamp(7.5px, 2.25cqw, 13px);
}
.ap-logo--sm { width: 8cqw; height: 8cqw; border-radius: 2cqw; font-size: 1.3em; }
.ap-notif__t { display: grid; gap: 0.5cqw; min-width: 0; }
.ap-notif__k { display: flex; justify-content: space-between; gap: 2cqw; font-size: 0.85em; color: #6B6878; text-transform: uppercase; letter-spacing: 0.04em; }
.ap-notif__k span:last-child { text-transform: none; letter-spacing: 0; }
.ap-notif__t b { font-weight: 600; font-size: 1.05em; }
.ap-notif__t > span:last-child { color: #4F4D5C; }

/* Insignia genérica de tienda (sin logos de Apple ni de Google) */
.ap-badge {
    position: absolute;
    z-index: 3;
    left: 4cqw;
    bottom: 4cqw;
    display: flex;
    align-items: center;
    gap: 1.8cqw;
    padding: 1.6cqw 3cqw 1.6cqw 2.2cqw;
    border-radius: 1.6cqw;
    background: #000000;
    color: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    font-size: clamp(8px, 2.3cqw, 13px);
}
.ap-badge svg { flex: none; width: 5.6cqw; height: 5.6cqw; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ap-badge span { display: grid; gap: 0.2cqw; }
.ap-badge small { font-size: 0.75em; opacity: 0.8; }
.ap-badge b { font-weight: 600; font-size: 1.15em; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: no-preference) {
    .js .ap-notif { animation: ap-in 0.5s ease 0.6s both; }
}

@keyframes ap-in { from { opacity: 0; transform: translateY(-8px); } }


/* ─────────────────────────────────────
   01 · Qué incluye (6 columnas en 2 filas) y cómo se cobra
   ───────────────────────────────────── */
@media (min-width: 1000px) {
    .ap-incl .col:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
    .ap-incl .col:nth-child(n + 4) { margin-top: 32px; border-top: 1px solid var(--line); }
}

.ap-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-top: clamp(48px, 5vw, 72px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--line);
}
.ap-plan__main { display: grid; gap: 14px; justify-items: start; max-width: 560px; }
.ap-plan .small { margin: 0; color: var(--text-3); }


/* ─────────────────────────────────────
   02 · Dónde se publica (comparador)
   ───────────────────────────────────── */
.ap-who-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: var(--fs-sm);
    color: var(--text-3);
}
.ap-who-legend li { display: inline-flex; align-items: center; gap: 8px; }

.ap-opts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ap-opt {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(24px, 2.4vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-2);
}
.ap-opt .col__icon { margin-bottom: 0; }

.ap-opt__k {
    margin: 0;
    font: 500 0.8125rem var(--font-mono);
    color: var(--link);
}

.ap-who { display: grid; margin: 4px 0 0; }
.ap-who > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}
.ap-who > div:last-child { border-bottom: 1px solid var(--line); }
.ap-who dt { font-size: 0.875rem; color: var(--text-2); }
.ap-who dd { margin: 0; }

.ap-who__v {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-2);
}
.ap-who__v--blinq { border-color: transparent; background: var(--brand-soft); color: var(--link); }

.ap-opt__fit { margin: 0; font-size: 0.925rem; line-height: 1.55; color: var(--text-2); }
.ap-opt__fit b { color: var(--text); font-weight: 600; }

.ap-opt__exit {
    display: grid;
    gap: 4px;
    margin: auto 0 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-3);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-2);
}
.ap-opt__exit b { font: 500 0.75rem var(--font-mono); letter-spacing: 0.02em; color: var(--text-3); text-transform: uppercase; }

.ap-note { margin: clamp(28px, 3vw, 40px) 0 0; max-width: 860px; }
.ap-note span { line-height: 1.6; color: var(--text-2); }
.ap-note .link { display: table; margin-top: 6px; }


/* ─────────────────────────────────────
   03 · App o web
   ───────────────────────────────────── */
.ap-vs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ap-vs__col {
    display: grid;
    align-content: start;
    gap: 20px;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-2);
}
.ap-vs__col--app { border-color: var(--line-2); }

.ap-vs__k {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}
.ap-vs__k .i { color: var(--link); }

.ap-vs__links { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 4px; }

.ap-proof {
    max-width: 820px;
    margin: clamp(28px, 3vw, 40px) 0 0;
    line-height: 1.65;
    color: var(--text-2);
}


/* ─────────────────────────────────────
   04 · Proceso en 5 pasos
   ───────────────────────────────────── */
@media (min-width: 1000px) {
    .ap-process { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
}


/* ─────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────── */
@media (max-width: 999px) {
    .ap-opts { grid-template-columns: minmax(0, 1fr); }
    .ap-plan { grid-template-columns: minmax(0, 1fr); }
    .ap-plan .pricing--solo { justify-self: start; }
    .page-hero__visual.ap { max-width: 560px; width: 100%; justify-self: center; }
}

@media (max-width: 767px) {
    .ap-vs { grid-template-columns: minmax(0, 1fr); }
}
