/* ==========================================================
   punto-de-venta.css
   Landing del POS. Se carga después de homepage.css y reutiliza
   su navbar, hero, botones, .features-grid, .cta-section y footer:
   acá solo viven los bloques propios de esta página.
   ========================================================== */

/* Mismo zoom que el resto de las secciones de la landing */
.pv-canales,
.pv-circuito,
.pv-autogestion,
.pv-costos,
.pv-cierre,
.pv-faq {
    zoom: 0.9;
    padding: clamp(56px, 9vw, 100px) 0;
}

.pv-canales { background: var(--card); }
.pv-circuito { background: var(--muted); }
.pv-autogestion { background: var(--card); }
.pv-costos { background: var(--muted); }
.pv-cierre { background: var(--card); }
.pv-faq { background: var(--card); }

/* El hero de esta página es más corto que el de la home y cierra en claro,
   porque abajo no hay bloque oscuro: funde con la sección de canales */
.pv-hero {
    min-height: auto;
    padding-bottom: clamp(90px, 14vw, 150px);
    background:
        repeating-linear-gradient(90deg,
            rgba(20, 40, 48, 0.05) 0 1px,
            transparent 1px 46px),
        linear-gradient(180deg,
            #ffffff 0%,
            #f7f9f9 45%,
            #e9f1f0 78%,
            var(--card) 100%);
}

html.dark .pv-hero {
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            transparent 1px 46px),
        linear-gradient(180deg,
            #16252c 0%,
            #1b2e35 55%,
            var(--card) 100%);
}

html.dark .pv-hero .hero-title,
html.dark .pv-hero .hero-footnote,
html.dark .pv-hero .hero-footnote .hgi-icon {
    color: var(--foreground);
}

/* ── Canales de venta ───────────────────────────────────── */
.pv-canales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.pv-canal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pv-canal:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px oklch(0.527 0.115 205 / 0.08);
}

.pv-canal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.pv-canal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 6px;
}

.pv-canal-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ── Capturas de pantalla ───────────────────────────────── */
.pv-shot {
    margin: 0;
}

.pv-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px oklch(from var(--foreground) l c h / 0.10);
}

.pv-shot figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.pv-shot--wide {
    max-width: 960px;
    margin: 0 auto clamp(36px, 5vw, 56px);
}

.pv-shot--totem img {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 22px;
}

/* ── Bloques de texto + imagen ──────────────────────────── */
.pv-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.pv-split + .pv-split {
    margin-top: clamp(48px, 7vw, 80px);
}

/* En pantallas angostas el texto va primero, no la captura */
@media (max-width: 719px) {
    .pv-split--invertido .pv-texto { order: -1; }
}

.pv-texto-title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 12px;
}

.pv-texto p {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 20px;
}

.pv-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pv-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--foreground);
    line-height: 1.5;
}

.pv-lista li .hgi-icon {
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Pasos del circuito ─────────────────────────────────── */
.pv-pasos {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.pv-paso {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pv-paso-num {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.pv-paso h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
}

.pv-paso p {
    font-size: 0.93rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ── Tótem y WhatsApp ───────────────────────────────────── */
.pv-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.pv-auto-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pv-auto-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pv-auto-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foreground);
}

.pv-auto-title .hgi-icon {
    color: var(--primary);
    font-size: 1.25rem;
}

.pv-auto-pie {
    font-size: 0.87rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

/* ── Conversación de ejemplo ────────────────────────────── */
.pv-chat {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #ece5dd;
    min-height: 320px;
}

html.dark .pv-chat { background: #10201a; }

.pv-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #075e54;
    color: #fff;
}

.pv-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pv-chat-head strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
}

.pv-chat-head span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.pv-chat-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pv-msg {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #111b21;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.pv-msg--in { align-self: flex-start; border-top-left-radius: 2px; }
.pv-msg--out {
    align-self: flex-end;
    border-top-right-radius: 2px;
    background: #d9fdd3;
}

.pv-link {
    color: #027eb5;
    font-weight: 600;
    word-break: break-all;
}

.pv-chip {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #d9fdd3;
    color: #0f5132;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Costo por plato ────────────────────────────────────── */
.pv-ciclo {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.pv-ciclo-card {
    flex: 1 1 260px;
    max-width: 340px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
}

.pv-ciclo-step {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 10px;
}

.pv-ciclo-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
}

.pv-ciclo-card p {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.65;
}

.pv-ciclo-flecha {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 1.4rem;
}

/* Entre tarjetas apiladas la flecha apunta hacia abajo */
@media (max-width: 859px) {
    .pv-ciclo-flecha { transform: rotate(90deg); justify-content: center; width: 100%; }
    .pv-ciclo-card { max-width: none; }
}

.pv-preguntas {
    max-width: 880px;
    margin: 0 auto;
    background: var(--accent);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4vw, 36px);
}

.pv-preguntas-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-foreground);
    margin-bottom: 18px;
}

.pv-preguntas-lista {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px 28px;
}

.pv-preguntas-lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--accent-foreground);
}

.pv-preguntas-lista .hgi-icon {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.8;
}

/* ── Nota destacada (se repite en varias secciones) ─────── */
.pv-nota {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 28px);
    background: var(--accent);
    border-radius: var(--radius-xl);
}

.pv-nota--equipo {
    margin-top: clamp(32px, 4vw, 48px);
}

.pv-nota-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--card);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.pv-nota-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--accent-foreground);
    margin-bottom: 6px;
}

.pv-nota p {
    font-size: 0.93rem;
    color: var(--accent-foreground);
    line-height: 1.65;
}

.pv-nota a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* La grilla de cierre reutiliza .features-grid, que es de 3 columnas fijas */
.pv-cierre .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ── Preguntas frecuentes ───────────────────────────────── */
/* Una sola columna: con dos, abrir una respuesta recoloca la fila de al lado
   y se pierde el renglon que se estaba leyendo. */
.pv-faq-lista {
    max-width: 820px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    /* Mantiene la primera y la ultima fila dentro del radio */
    overflow: hidden;
}

.pv-faq-item + .pv-faq-item {
    border-top: 1px solid var(--border);
}

.pv-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px clamp(18px, 3vw, 28px);
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.45;
    transition: background 0.15s ease;
}

/* El triangulo nativo, en los dos motores */
.pv-faq-item summary::-webkit-details-marker { display: none; }
.pv-faq-item summary::marker { content: ""; }

.pv-faq-item summary:hover {
    background: var(--muted);
}

.pv-faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.pv-faq-mas {
    flex-shrink: 0;
    display: flex;
    color: var(--primary);
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.pv-faq-item[open] .pv-faq-mas {
    transform: rotate(45deg);
}

.pv-faq-item p {
    padding: 0 clamp(18px, 3vw, 28px) 22px;
    /* Alineado con la pregunta, sin llegar debajo del icono */
    max-width: 68ch;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.pv-faq-pie {
    max-width: 820px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted-foreground);
}

.pv-faq-pie a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .pv-faq-mas,
    .pv-faq-item summary { transition: none; }
}
