/* ═══════════════════════════════════════════════════
   BLINQ — Tienda de infoproductos (/tienda-de-infoproductos)
   Estilos propios de la página. Los componentes base (secciones, columnas,
   filas, proceso, FAQ) vienen de ui.css.

   El visual del hero es un OBJETO DE DEMO: la tienda de un creador de
   ejemplo («Estudio Lienzo»), con SU color (terracota), no el de Blinq.
   Sus colores van fijos (no son tokens), igual que .cx en plataformas de
   cursos. Escala con unidades de contenedor (cqw) para verse igual en 390
   y en 1280.
   ═══════════════════════════════════════════════════ */

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

.ip-stage {
    position: relative;
    padding: 5cqw 5cqw 24cqw;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-2);
    font-size: clamp(6.5px, 2.15cqw, 12.5px);
    line-height: 1.3;
}

/* Ventana del navegador (objeto físico: lleva sombra de medio) */
.ip-win {
    overflow: hidden;
    border-radius: 1.6cqw;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), var(--shadow-media);
    color: #221C18;
    font-family: var(--font-body);
}

.ip-chrome {
    display: flex;
    align-items: center;
    gap: 2cqw;
    padding: 1.6cqw 2.2cqw;
    background: #E9EBEE;
    color: #3C4043;
}

.ip-dots { display: flex; flex: none; gap: 1cqw; }
.ip-dots i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #C4C8CD; }

.ip-url {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 1.2cqw;
    min-width: 0;
    padding: 0.9cqw 2cqw;
    border-radius: 99px;   /* barra de URL del navegador: objeto de demo, no un botón */
    background: #FFFFFF;
    font-size: 0.92em;
    white-space: nowrap;
    overflow: hidden;
}

.ip-url svg { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: #5F6368; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ip-url span { overflow: hidden; text-overflow: ellipsis; }

.ip-tag {
    flex: none;
    padding: 0.5cqw 1.4cqw;
    border: 1px solid #C4C8CD;
    border-radius: 0.8cqw;
    font: 500 0.8em var(--font-mono);
    color: #5F6368;
}

/* Barra superior de la tienda */
.ip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2cqw;
    padding: 1.8cqw 2.6cqw;
    border-bottom: 1px solid #EDE6E0;
}

.ip-brand { display: flex; align-items: center; gap: 1.4cqw; min-width: 0; }
.ip-brand b { display: block; font-weight: 700; letter-spacing: -0.01em; }
.ip-brand small { display: block; color: #7A6E66; font-size: 0.82em; }

.ip-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 4.6cqw;
    height: 4.6cqw;
    border-radius: 1cqw;
    background: #B4532A;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.95em;
}

.ip-nav { display: flex; align-items: center; gap: 2.4cqw; color: #7A6E66; font-size: 0.9em; white-space: nowrap; }
.ip-nav b { color: #B4532A; font-weight: 600; }
.ip-nav svg { width: 1.4em; height: 1.4em; fill: none; stroke: #221C18; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Vitrina de productos */
.ip-body { padding: 2.6cqw; background: #FAF7F4; }

.ip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2cqw;
    margin-bottom: 2cqw;
}

.ip-head b { font-size: 1.1em; letter-spacing: -0.01em; }
.ip-head span { color: #7A6E66; font-size: 0.84em; }

.ip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8cqw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-card {
    display: grid;
    align-content: start;
    gap: 0.6cqw;
    padding: 1.2cqw;
    border: 1px solid #EDE6E0;
    border-radius: 1.2cqw;
    background: #FFFFFF;
}

/* Portadas dibujadas: datos de la demo, no efectos de marca */
.ip-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8cqw;
    aspect-ratio: 3 / 4;
    margin-bottom: 0.6cqw;
    padding: 1.6cqw 1.4cqw;
    overflow: hidden;
    border-radius: 0.8cqw;
    background: #F3E3D6;
    color: #5A2A14;
}

.ip-cover__k { font: 500 0.68em var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.ip-cover__t { font-weight: 700; font-size: 0.98em; line-height: 1.12; letter-spacing: -0.02em; }
.ip-cover__lines { display: grid; gap: 0.7cqw; margin-top: auto; }
.ip-cover__lines i { display: block; height: 0.55cqw; border-radius: 0.3cqw; background: currentColor; opacity: 0.25; }
.ip-cover__lines i:nth-child(2) { width: 70%; }
.ip-cover__lines i:nth-child(3) { width: 45%; }

/* Lead magnet: lista de chequeo */
.ip-cover--free { background: #FFFFFF; border: 1px solid #E4D9D0; color: #221C18; }
.ip-cover--free .ip-checks { display: grid; gap: 0.8cqw; margin-top: auto; }
.ip-cover--free .ip-checks i { display: flex; align-items: center; gap: 0.8cqw; }
.ip-cover--free .ip-checks i::before { content: ""; flex: none; width: 1.4cqw; height: 1.4cqw; border: 1px solid #B4532A; border-radius: 0.3cqw; }
.ip-cover--free .ip-checks i::after { content: ""; flex: 1; height: 0.5cqw; border-radius: 0.3cqw; background: #E4D9D0; }

/* Plantillas: cuadrícula de publicaciones */
.ip-cover--grid { background: #B4532A; color: #FFFFFF; }
.ip-cover--grid .ip-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6cqw; margin-top: auto; }
.ip-cover--grid .ip-tiles i { aspect-ratio: 1; border-radius: 0.3cqw; background: rgba(255, 255, 255, 0.85); }
.ip-cover--grid .ip-tiles i:nth-child(2n) { background: #F3C9A8; }

/* Presets: antes y después */
.ip-cover--preset { background: #2B2622; color: #F6EDE4; }
.ip-cover--preset .ip-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5cqw; height: 9cqw; margin-top: auto; }
.ip-cover--preset .ip-split i { border-radius: 0.4cqw; background: #6E6A66; }
.ip-cover--preset .ip-split i:last-child { background: #D98A4E; }

.ip-card__name { font-weight: 600; font-size: 0.86em; line-height: 1.2; }
.ip-card__meta { color: #7A6E66; font-size: 0.74em; }
.ip-card__price { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-top: 0.4cqw; font-weight: 700; font-size: 0.9em; }
.ip-card__price small { color: #7A6E66; font-weight: 400; font-size: 0.8em; }

.ip-badge {
    position: absolute;
    top: 1.2cqw;
    right: 1.2cqw;
    padding: 0.3cqw 1cqw;
    border-radius: 0.6cqw;
    background: #221C18;
    color: #FFFFFF;
    font: 500 0.66em var(--font-mono);
}

/* Tarjeta flotante: el correo que recibe el comprador */
.ip-mail {
    position: absolute;
    z-index: 2;
    right: 3cqw;
    bottom: 3cqw;
    display: grid;
    gap: 1.2cqw;
    width: 58cqw;
    padding: 2.4cqw 2.8cqw;
    border-radius: 2cqw;
    background: #FFFFFF;
    color: #16141D;
    box-shadow: 0 0 0 1px rgba(157, 0, 255, 0.35), 0 26px 48px -24px rgba(14, 11, 23, 0.55);
    font-family: var(--font-body);
}

.ip-mail__head { display: flex; align-items: center; gap: 1.6cqw; }

.ip-mail__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 6.4cqw;
    height: 6.4cqw;
    border-radius: 1.4cqw;
    background: #F3E3D6;
}

.ip-mail__icon svg { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: #B4532A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ip-mail__t { display: grid; gap: 0.3cqw; min-width: 0; }

.ip-mail__k {
    display: flex;
    align-items: center;
    gap: 1cqw;
    font: 500 0.8em var(--font-mono);
    letter-spacing: 0.02em;
    color: #7A00C7;
}

.ip-mail__k::before {
    content: "";
    width: 1.3cqw;
    height: 1.3cqw;
    border-radius: 2px;
    background: #9D00FF;
}

.ip-mail__t b { font-weight: 600; font-size: 1.08em; }
.ip-mail__p { margin: 0; color: #6B6878; font-size: 0.88em; }

.ip-mail__row { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }

.ip-mail__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8cqw;
    padding: 1.1cqw 2.2cqw;
    border-radius: 0.8cqw;
    background: #B4532A;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9em;
}

.ip-mail__btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ip-mail__row small { color: #6B6878; font-size: 0.78em; text-align: right; }

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

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


/* ─────────────────────────────────────
   01 · Prueba (lo que ya construimos)
   ───────────────────────────────────── */
.ip-proof { margin-top: clamp(28px, 3vw, 40px); }


/* ─────────────────────────────────────
   02 · Recorrido de la compra
   ───────────────────────────────────── */
.ip-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-step {
    position: relative;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;   /* alinea la mini pantalla, el número y el título entre pasos */
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 16px 16px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
}

/* Flecha entre pasos */
.ip-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 86px;
    right: -19px;
    width: 9px;
    height: 9px;
    border-top: 1.5px solid var(--text-3);
    border-right: 1.5px solid var(--text-3);
    transform: rotate(45deg);
}

.ip-step > * { min-width: 0; }
.ip-step__num { margin: 4px 0 0; font: 500 0.8125rem var(--font-mono); color: var(--link); }
.ip-step .h3 { margin: 0; }
.ip-step .p { margin: 0; }

/* Mini pantallas de cada paso (demo, con tokens para claro y oscuro) */
.ip-mini {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg);
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--text-2);
}

.ip-mini b { color: var(--text); font-weight: 600; }
.ip-mini__k { font: 500 0.6875rem var(--font-mono); letter-spacing: 0.04em; color: var(--text-3); text-transform: uppercase; }

.ip-mini__prod { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.ip-mini__cover { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); background: #B4532A; }

.ip-mini__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg-2);
    font-weight: 600;
    font-size: 0.75rem;
}

.ip-mini__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ip-mini__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
}

.ip-mini__opt::before { content: ""; flex: none; width: 10px; height: 10px; border: 1px solid var(--line-2); border-radius: 50%; }
.ip-mini__opt--on { border-color: var(--text-3); }
.ip-mini__opt--on::before { border: 3px solid var(--text); }
.ip-mini__opt small { margin-left: auto; font-family: var(--font-mono); color: var(--text-3); }

.ip-mini__ok { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.ip-mini__ok svg { width: 15px; height: 15px; fill: none; stroke: var(--link); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.ip-mini__mail { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.ip-mini__file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}

.ip-mini__file:first-of-type { border-top: 0; }
.ip-mini__file svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--text-3); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ip-mini__file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-mini__file u { color: var(--link); font-weight: 600; text-decoration: none; }

.ip-flow-cap { margin-top: 18px; }


/* ─────────────────────────────────────
   04 · ¿Infoproductos, tienda online o cursos?
   ───────────────────────────────────── */
.ip-pick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    overflow: hidden;
}

.ip-pick__col {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 2.6vw, 32px);
}

.ip-pick__col + .ip-pick__col { border-left: 1px solid var(--line); }
.ip-pick__col--here { box-shadow: inset 0 2px 0 var(--brand); }

.ip-pick__k {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    font: 500 0.8125rem var(--font-mono);
    letter-spacing: 0.02em;
    color: var(--text-3);
}

.ip-pick__col--here .ip-pick__k { color: var(--link); }

.ip-pick__here {
    padding: 2px 8px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-2);
}

.ip-pick .h3 { margin: 0 0 10px; }
.ip-pick .p { margin: 0 0 16px; }

.ip-pick ul { display: grid; margin: 0 0 20px; padding: 0; list-style: none; }

.ip-pick li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    line-height: 1.5;
    color: var(--text-2);
}

.ip-pick li .i { margin-top: 0.2em; color: var(--text-3); }
.ip-pick__col--here li .i { color: var(--link); }
.ip-pick .link { margin-top: auto; }

.ip-pick-note { margin-top: 24px; }


/* ─────────────────────────────────────
   05 · ¿Propia o marketplace?
   ───────────────────────────────────── */
.ip-vs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    overflow: hidden;
}

.ip-vs__col { padding: clamp(22px, 2.6vw, 32px); }
.ip-vs__col + .ip-vs__col { border-left: 1px solid var(--line); }

.ip-vs__k {
    margin: 0 0 6px;
    font: 500 0.8125rem var(--font-mono);
    letter-spacing: 0.02em;
    color: var(--text-3);
}

.ip-vs__col--own .ip-vs__k { color: var(--link); }
.ip-vs h3 { margin: 0 0 18px; }
.ip-vs ul { display: grid; margin: 0; padding: 0; list-style: none; }

.ip-vs li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    line-height: 1.55;
    color: var(--text-2);
}

.ip-vs li:first-child { border-top: 0; padding-top: 0; }
.ip-vs li b { display: block; color: var(--text); font-weight: 600; }
.ip-vs li .i { margin-top: 0.22em; color: var(--text-3); }
.ip-vs__col--own li .i { color: var(--link); }

.ip-fees { margin-top: 24px; }


/* ─────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────── */
@media (max-width: 999px) {
    .page-hero__grid--visual:has(.ip) { grid-template-columns: minmax(0, 1fr); }
    .page-hero__visual.ip { max-width: 620px; width: 100%; }

    .ip-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-step:nth-child(2)::after { display: none; }

    .ip-pick { grid-template-columns: minmax(0, 1fr); }
    .ip-pick__col + .ip-pick__col { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
    .ip-vs { grid-template-columns: minmax(0, 1fr); }
    .ip-vs__col + .ip-vs__col { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 599px) {
    .ip-stage { padding: 4cqw 3cqw 30cqw; font-size: clamp(6.5px, 2.6cqw, 12.5px); }
    .ip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ip-grid > li:nth-child(n+3) { display: none; }
    .ip-cover { aspect-ratio: 4 / 3; }
    .ip-cover--preset .ip-split { height: 6cqw; }
    .ip-mail { width: 74cqw; }
    .ip-nav span { display: none; }

    .ip-flow { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
    .ip-step::after { display: none; }
    .ip-mini { min-height: 0; }
}
