/* Identidad visual oficial LocalPromos (Fase QR-1, rediseño visual) —
   naranja y turquesa oficiales, no se inventó paleta nueva. */
:root {
    --lp-orange: #F97316;
    --lp-teal: #00C8D4;
    --lp-bg: #f6f7fb;
    --lp-card-bg: #ffffff;
    --lp-border: #e2e5ec;
    --lp-text: #1a1d24;
    --lp-muted: #6b7280;
    /* Se conserva el nombre --lp-primary (usado en varios lugares) mapeado
       al naranja oficial, en vez de renombrar todo el archivo. */
    --lp-primary: var(--lp-orange);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--lp-bg);
    color: var(--lp-text);
}

.lp-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lp-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--lp-card-bg);
    border-bottom: 1px solid var(--lp-border);
    flex-wrap: wrap;
}

.lp-brand {
    font-weight: 700;
    margin-right: auto;
}

.lp-brand span {
    color: var(--lp-orange);
}

.lp-link-btn {
    background: none;
    border: none;
    color: var(--lp-muted);
    cursor: pointer;
    font-size: 14px;
}

.lp-business-name {
    font-weight: 600;
}

.lp-user {
    color: var(--lp-muted);
    font-size: 14px;
}

.lp-not-found {
    text-align: center;
    color: var(--lp-muted);
    margin-top: 48px;
}

.lp-content {
    flex: 1;
    padding: 24px 16px 48px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.lp-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--lp-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 16px;
}

.lp-accent-orange {
    color: var(--lp-orange);
}

.lp-accent-teal {
    color: var(--lp-teal);
}

/* ── Pieza promocional (rediseño v2, concepto tipo cartel comercial) ─ */
/* Ancho fijo mayor que la v1 para acomodar la columna lateral de íconos
   junto al QR sin apretujarse — sigue siendo una proporción de cartel
   vertical, capturable 1:1 por poster-capture.js sin depender del tamaño
   visible en pantalla. */
.lp-poster {
    position: relative;
    width: 420px;
    max-width: 100%;
    margin: 0 auto;
    background: #fffaf5;
    border: 1px solid var(--lp-border);
    border-radius: 24px;
    padding: 30px 26px 26px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

/* Manchas de color decorativas, muy discretas — dan calidez sin competir
   con el contenido (nada de texto encima, solo forma). */
.lp-poster-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.14;
    pointer-events: none;
}

.lp-poster-blob--tl {
    top: -60px;
    left: -60px;
    width: 160px;
    height: 160px;
    background: var(--lp-teal);
}

.lp-poster-blob--br {
    bottom: -70px;
    right: -70px;
    width: 190px;
    height: 190px;
    background: var(--lp-orange);
}

.lp-poster-header {
    position: relative;
}

.lp-poster-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--lp-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    position: relative;
}

.lp-poster-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-poster-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--lp-orange);
    background: linear-gradient(135deg, #fff7ed, #ecfeff);
}

.lp-poster-business-name {
    font-size: 25px;
    font-weight: 800;
    color: var(--lp-text);
    margin: 4px 0 0;
    line-height: 1.15;
}

.lp-poster-in-localpromos {
    font-size: 13px;
    color: var(--lp-muted);
    margin: 2px 0 16px;
}

.lp-poster-in-localpromos strong {
    color: var(--lp-orange);
}

.lp-poster-headline {
    font-size: 22px;
    font-weight: 800;
    color: var(--lp-text);
    line-height: 1.2;
    margin: 0 0 18px;
    position: relative;
}

.lp-accent-orange {
    color: var(--lp-orange);
}

.lp-accent-teal {
    color: var(--lp-teal);
}

.lp-poster-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
}

/* ── Columna lateral decorativa (fija en el template, no dinámica) ──── */
.lp-poster-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 96px;
    flex-shrink: 0;
    text-align: left;
}

.lp-side-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.lp-side-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.lp-side-icon--tag {
    background: #fff1e6;
    color: var(--lp-orange);
}

.lp-side-icon--pin {
    background: #e6fbfc;
}

.lp-pin-shape {
    width: 12px;
    height: 12px;
    background: var(--lp-teal);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.lp-side-icon--people {
    background: #fff1e6;
    gap: 2px;
}

.lp-people-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lp-orange);
}

.lp-side-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--lp-text);
    line-height: 1.25;
}

/* ── Columna del QR ──────────────────────────────────────────────── */
.lp-poster-qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.lp-poster-qr-frame {
    display: inline-block;
    padding: 10px;
    background: #ffffff;
    border: 3px solid var(--lp-teal);
    border-radius: 16px;
    margin-bottom: 10px;
}

.lp-poster-scan {
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-orange);
    margin: 0 0 12px;
}

.lp-store-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-store-badge-img {
    height: 32px;
    width: auto;
    display: inline-block;
}

.lp-poster-subtext {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text);
    margin: 0 0 18px;
    line-height: 1.4;
}

/* ── Ilustración inferior (fija en el template, no dinámica) ────────── */
.lp-poster-illustration {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 54px;
    margin-bottom: 0;
}

.lp-building {
    flex: 1;
    max-width: 56px;
    border-radius: 6px 6px 0 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding-top: 8px;
    flex-wrap: wrap;
}

.lp-building--a { height: 38px; background: var(--lp-orange); opacity: 0.85; }
.lp-building--b { height: 52px; background: var(--lp-teal); opacity: 0.85; }
.lp-building--c { height: 30px; background: #fbbf24; opacity: 0.8; }
.lp-building--d { height: 46px; background: var(--lp-orange); opacity: 0.65; }
.lp-building--e { height: 34px; background: var(--lp-teal); opacity: 0.65; }

.lp-window {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
}

.lp-roof {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 9px solid #1a1d24;
    opacity: 0.35;
}

.lp-poster-ground {
    height: 4px;
    background: var(--lp-border);
    border-radius: 2px;
    margin-bottom: 18px;
}

/* ── Branding final (fijo, la marca completa vive solo aquí) ────────── */
.lp-poster-footer {
    border-top: 1px dashed var(--lp-border);
    padding-top: 16px;
}

.lp-poster-brand-logo {
    /* Asset real es 2172×724px (ratio 3:1) — con estos límites renderiza
       ~192×64px, tamaño legible como cierre del cartel sin dominar sobre
       el QR (que sigue siendo el elemento central). */
    max-width: 220px;
    max-height: 64px;
    width: auto;
    height: auto;
    display: inline-block;
}

.lp-poster-footer-wordmark-fallback {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--lp-text);
}

.lp-poster-footer-tagline {
    font-size: 12px;
    color: var(--lp-teal);
    font-weight: 700;
    margin: 4px 0 0;
}

.lp-download-btn {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 20px auto 0;
}

@media (max-width: 460px) {
    .lp-poster {
        width: 100%;
        padding: 24px 16px 22px;
    }

    .lp-poster-sidebar {
        width: 82px;
    }
}

/* ── Resto de la interfaz (sin cambios de estructura) ─────────────── */
.lp-primary-btn {
    background: var(--lp-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.lp-primary-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.lp-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-bg);
}

.lp-login-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 32px;
    max-width: 360px;
    text-align: center;
}

.lp-accent {
    color: var(--lp-orange);
}

.lp-google-btn {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.lp-error-text {
    color: #c62828;
    font-size: 14px;
    text-align: center;
}

.lp-loading, .lp-muted {
    color: var(--lp-muted);
    text-align: center;
}

.lp-empty-state {
    text-align: center;
    color: var(--lp-muted);
    margin-top: 48px;
}

.lp-business-selector {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--lp-border);
}

@media (max-width: 400px) {
    .lp-poster {
        width: 100%;
        padding: 26px 16px 22px;
    }
}
