/* ═══════════════════════════════════════════════════
   BLINQ POS — Landing del sistema para restaurantes
   Solo la carga esta página. Construida sobre los
   tokens de design-system.css: nada de valores fijos
   de color, para que siga al tema como el resto.
   ═══════════════════════════════════════════════════ */

/* ── Hero ── */
.pos-hero {
    padding: 140px 0 90px;
    position: relative;
    overflow: hidden;
}
.pos-hero::before {
    content: '';
    position: absolute;
    inset: -20% 30% 40% -10%;
    background: radial-gradient(ellipse at center, var(--glow-purple), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.pos-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}
.pos-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 18px 0 20px;
}
.pos-hero-sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 52ch;
}
.pos-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.pos-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--border-subtle);
}
.pos-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-secondary);
}
.pos-hero-trust i { color: var(--brand-purple); font-size: 0.8rem; }

/* ── Botones ── */
.pos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-sm, 8px);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}
.pos-btn--primary {
    background: var(--gradient-brand);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 20px var(--glow-purple);
}
.pos-btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 34px var(--glow-purple);
}
.pos-btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.pos-btn--ghost:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

/* ── Tablet del hero (dibujada en CSS) ── */
.pos-tablet {
    container-type: inline-size;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}
.pos-tablet-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 2.4cqw;
    border-radius: 4cqw;
    background: linear-gradient(155deg, #3a3a47 0%, #16161f 45%, #0a0a10 100%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.pos-tablet-screen {
    height: 100%;
    display: flex;
    border-radius: 2.2cqw;
    overflow: hidden;
    /* Pantalla clara siempre, igual que los mockups del hero de la portada:
       es la interfaz de un producto, no la del sitio. */
    background: #fff;
    color: #10101a;
}
.pos-tablet-rail {
    flex: 0 0 auto;
    width: 11cqw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4cqw;
    padding: 3.4cqw 0;
    background: #f3f3f7;
    border-right: 1px solid rgba(10, 10, 20, 0.08);
}
.pos-tablet-rail i {
    width: 5.4cqw;
    height: 5.4cqw;
    display: grid;
    place-items: center;
    border-radius: 1.6cqw;
    font-size: 2.4cqw;
    color: rgba(10, 10, 20, 0.35);
}
.pos-tablet-rail i.is-on { background: var(--brand-purple); color: #fff; }

.pos-tablet-main { flex: 1 1 auto; min-width: 0; padding: 3.4cqw; display: flex; gap: 3cqw; }
.pos-tablet-menu { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2.4cqw; }
.pos-tablet-cats { display: flex; gap: 1.6cqw; }
.pos-tablet-cats span {
    padding: 1.2cqw 2.6cqw;
    border-radius: 4cqw;
    background: rgba(10, 10, 20, 0.05);
    font-size: 2cqw;
    color: rgba(10, 10, 20, 0.55);
}
.pos-tablet-cats span.is-on { background: var(--brand-purple); color: #fff; }
.pos-tablet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.pos-tablet-grid span {
    aspect-ratio: 1 / 1;
    border-radius: 2cqw;
    background: rgba(10, 10, 20, 0.05);
    border: 1px solid rgba(10, 10, 20, 0.06);
}
.pos-tablet-grid span:nth-child(2) { background: rgba(157, 0, 255, 0.14); border-color: rgba(157, 0, 255, 0.25); }
.pos-tablet-grid span:nth-child(5) { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.28); }

.pos-tablet-ticket {
    flex: 0 0 auto;
    width: 30cqw;
    display: flex;
    flex-direction: column;
    padding: 2.6cqw;
    border-radius: 2.4cqw;
    background: #f7f7fa;
    border: 1px solid rgba(10, 10, 20, 0.07);
}
.pos-tablet-ticket b { font-size: 2.4cqw; }
.pos-tablet-ticket ul { list-style: none; margin: 2.4cqw 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.8cqw; }
.pos-tablet-ticket li {
    display: flex;
    justify-content: space-between;
    gap: 1.6cqw;
    font-size: 1.9cqw;
    color: rgba(10, 10, 20, 0.62);
}
.pos-tablet-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 2.4cqw;
    border-top: 1px solid rgba(10, 10, 20, 0.1);
    font-size: 2cqw;
}
.pos-tablet-total strong { font-family: var(--font-mono); font-size: 2.8cqw; color: #10101a; }
.pos-tablet-pay {
    margin-top: 2.2cqw;
    padding: 2.2cqw;
    border-radius: 1.8cqw;
    background: #22C55E;
    color: #04210f;
    text-align: center;
    font-weight: 700;
    font-size: 2.1cqw;
}

/* ── Problema / dolor ── */
.pos-pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 48px;
}
.pos-pain {
    padding: 28px;
    border-radius: var(--radius-md, 16px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}
.pos-pain i { color: #EF4444; font-size: 1.1rem; }
.pos-pain h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 14px 0 8px; }
.pos-pain p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ── Funciones ── */
/* 3 columnas fijas: con auto-fit las 6 tarjetas caian 4+2 y la fila
   incompleta se leia como un error de maquetacion. */
.pos-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 48px;
}
@media (max-width: 1100px) { .pos-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .pos-features { grid-template-columns: 1fr; } }
.pos-feature {
    padding: 34px 30px;
    border-radius: var(--radius-md, 16px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}
.pos-feature:hover { border-color: var(--brand-purple-mid); transform: translateY(-3px); }
.pos-feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-purple-dim);
    color: var(--brand-purple);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.pos-feature h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; }
.pos-feature p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.75; }

/* ── Demo en vivo ── */
.pos-demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 48px;
}
.pos-demo-copy { position: sticky; top: 110px; }
.pos-demo-copy p { color: var(--text-secondary); line-height: 1.8; margin-top: 16px; }
.pos-browser {
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}
.pos-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: #1c1c26;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pos-browser-bar span { width: 9px; height: 9px; border-radius: 50%; }
.pos-browser-url {
    margin-left: 10px;
    padding: 3px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.5);
}
.pos-browser iframe { width: 100%; min-height: 580px; border: 0; display: block; background: #fff; }

/* ── Cierre ── */
.pos-cta {
    text-align: center;
    padding: 72px 32px;
    border-radius: var(--radius-lg, 24px);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-top: 24px;
}
.pos-cta h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.pos-cta p { color: var(--text-secondary); max-width: 56ch; margin: 0 auto 32px; line-height: 1.75; }
.pos-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── FAQ ── */
.pos-faq { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.pos-faq details {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm, 8px);
    background: var(--bg-card);
}
.pos-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
}
.pos-faq summary::-webkit-details-marker { display: none; }
.pos-faq summary i { color: var(--brand-purple); font-size: 0.8rem; transition: transform 0.3s ease; }
.pos-faq details[open] summary i { transform: rotate(180deg); }
.pos-faq p { padding: 0 24px 22px; color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }

/* ── Responsive ── */
@media (max-width: 980px) {
    .pos-hero { padding: 110px 0 70px; }
    .pos-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .pos-tablet { margin: 0 auto; }
    .pos-demo-grid { grid-template-columns: 1fr; gap: 32px; }
    .pos-demo-copy { position: static; }
    .pos-browser iframe { min-height: 460px; }
}
@media (max-width: 560px) {
    .pos-hero-actions .pos-btn { width: 100%; }
    .pos-cta { padding: 48px 22px; }
    .pos-cta-actions .pos-btn { width: 100%; }
}
