:root {
    --lp-orange: #f97316;
    --lp-bg: #f8fafc;
    --lp-card-bg: #ffffff;
    --lp-border: #e2e8f0;
    --lp-text: #1e293b;
    --lp-muted: #64748b;
    --lp-success: #16a34a;
    --lp-warning: #b45309;
    --lp-warning-bg: #fffbeb;
    --lp-error: #dc2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "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: 1.25rem;
    padding: 0.85rem 1.5rem;
    background: var(--lp-card-bg);
    border-bottom: 1px solid var(--lp-border);
    flex-wrap: wrap;
}

.lp-brand { font-weight: 700; font-size: 1.1rem; }
.lp-brand span { color: var(--lp-orange); }

.lp-nav { display: flex; gap: 1rem; margin-right: auto; }
.lp-nav a { color: var(--lp-text); text-decoration: none; font-weight: 500; }
.lp-nav a.active { color: var(--lp-orange); }

.lp-user { color: var(--lp-muted); font-size: 0.9rem; }
.lp-business-name { font-weight: 600; }

.lp-link-btn {
    background: none; border: none; color: var(--lp-muted);
    cursor: pointer; font-size: 0.9rem; text-decoration: underline;
}

.lp-content { padding: 1.5rem; max-width: 960px; margin: 0 auto; width: 100%; }

.lp-subtitle { color: var(--lp-muted); margin-top: -0.5rem; }

.lp-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.lp-plan-name { font-size: 1.4rem; font-weight: 700; }
.lp-plan-interval { font-weight: 400; color: var(--lp-muted); font-size: 1rem; }

.lp-banner {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}
.lp-banner-info { background: #eff6ff; color: #1d4ed8; }
.lp-banner-warning { background: var(--lp-warning-bg); color: var(--lp-warning); }

.lp-btn {
    background: var(--lp-orange);
    color: white;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.lp-btn:disabled { opacity: 0.6; cursor: default; }
.lp-btn-secondary { background: white; color: var(--lp-text); border: 1px solid var(--lp-border); }
.lp-btn-small { padding: 0.35rem 0.7rem; font-size: 0.85rem; margin-left: 0.5rem; }

.lp-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.lp-plan-card { border: 1px solid var(--lp-border); border-radius: 10px; padding: 1rem; }
.lp-plan-current { border-color: var(--lp-orange); }
.lp-badge { display: inline-block; background: var(--lp-orange); color: white; font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 999px; margin-bottom: 0.5rem; }
.lp-price { font-weight: 600; margin: 0.5rem 0; }
.lp-plan-free { color: var(--lp-muted); }

.lp-table { width: 100%; border-collapse: collapse; background: var(--lp-card-bg); border-radius: 12px; overflow: hidden; }
.lp-table th, .lp-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--lp-border); }
.lp-table th { color: var(--lp-muted); font-size: 0.85rem; text-transform: uppercase; }

.lp-status { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.85rem; }
.lp-status-approved { background: #dbeafe; color: #1d4ed8; }
.lp-status-scheduled { background: #dcfce7; color: var(--lp-success); }
.lp-status-featured { background: #fef3c7; color: #b45309; }
.lp-muted { color: var(--lp-muted); }

.lp-select-inline { margin-right: 0.4rem; padding: 0.3rem; border-radius: 6px; border: 1px solid var(--lp-border); }

.lp-payment-status { text-align: center; padding: 2.5rem 1.5rem; }
.lp-payment-success p:first-child { color: var(--lp-success); font-size: 1.1rem; }
.lp-actions-row { margin: 1rem 0; }

.lp-error-text { color: var(--lp-error); }

.lp-login-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.lp-login-card { background: white; padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 100%; max-width: 360px; text-align: center; }
.lp-login-card h2 { margin-bottom: 0.25rem; }
.lp-accent { color: var(--lp-orange); }
.lp-login-subtitle { color: var(--lp-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.lp-google-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--lp-border);
    background: white;
    font-weight: 600;
    cursor: pointer;
}
.lp-google-btn:disabled { opacity: 0.6; cursor: default; }

.lp-apple-btn {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: none;
    background: #000000;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.6rem;
}
.lp-apple-btn:disabled { opacity: 0.6; cursor: default; }

.lp-empty-state { text-align: center; color: var(--lp-muted); padding: 3rem 1rem; }

.lp-not-found { padding: 2rem; text-align: center; color: var(--lp-muted); }


/* ── Inicio (Fase N1) ─────────────────────────────────────────────────── */

.lp-nav { flex-wrap: wrap; }

.lp-home-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.lp-home-business { margin: 0; font-size: 1.4rem; }
.lp-home-plan { margin: 0; }
.lp-home-plan .lp-badge { margin-bottom: 0; font-size: 0.85rem; padding: 0.2rem 0.75rem; }

.lp-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.lp-kpi {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-border);
    border-top: 3px solid var(--lp-orange);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.lp-kpi-label { color: var(--lp-muted); font-size: 0.85rem; font-weight: 500; }
.lp-kpi-value { color: var(--lp-text); font-size: 1.75rem; font-weight: 700; line-height: 1.1; }

.lp-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.lp-summary-item { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--lp-border); }
.lp-summary-item dt { color: var(--lp-muted); font-size: 0.9rem; }
.lp-summary-item dd { margin: 0; font-weight: 600; }

@media (max-width: 480px) {
    .lp-content { padding: 1rem; }
    .lp-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .lp-kpi { padding: 0.85rem 1rem; }
    .lp-kpi-value { font-size: 1.4rem; }
}

/* ── Material promocional / QR (Fase N2) ──────────────────────────────── */

/* Distribución de la página dentro de BusinessPortal. */
.lp-qr-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.lp-qr-poster-col { min-width: 0; }
.lp-qr-side-col { min-width: 0; }
.lp-qr-side-col h2 { margin-top: 0; font-size: 1.1rem; }
.lp-qr-help { margin-top: 0; }
.lp-qr-download-btn { width: 100%; padding: 0.7rem 1.1rem; }
.lp-qr-metrics { grid-template-columns: 1fr; }

@media (max-width: 820px) {
    .lp-qr-layout { grid-template-columns: 1fr; }
}

/* Pieza promocional: copiada de LocalPromos.QrPortal/wwwroot/css/app.css
   para conservar su aspecto. Las variables de color y la tipografía de
   QrPortal se fijan aquí, solo dentro del cartel, para que el PNG
   descargado sea igual al de QrPortal sin alterar el resto del portal. */
.lp-poster {
    --lp-orange: #F97316;
    --lp-teal: #00C8D4;
    --lp-border: #e2e5ec;
    --lp-text: #1a1d24;
    --lp-muted: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lp-text);
}

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

.lp-accent-teal {
    color: #00C8D4;
}

/* ── 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-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;
}

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

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

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

/* ── Biblioteca de imágenes (Fase N3) ─────────────────────────────────── */

.lp-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lp-library-capacity { min-width: 0; }
.lp-library-capacity-main { margin: 0; font-size: 1.05rem; }
.lp-library-capacity-note { margin: 0.2rem 0 0; font-size: 0.85rem; }

.lp-upload-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.lp-btn-disabled { opacity: 0.6; cursor: default; pointer-events: none; }
.lp-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lp-filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lp-filter-tab {
    background: var(--lp-card-bg); color: var(--lp-text);
    border: 1px solid var(--lp-border); border-radius: 999px;
    padding: 0.35rem 0.9rem; font-size: 0.9rem; font-weight: 500; cursor: pointer;
}
.lp-filter-tab.active { background: var(--lp-orange); border-color: var(--lp-orange); color: white; }
.lp-filter-tab:disabled { opacity: 0.6; cursor: default; }

.lp-banner-success { background: #f0fdf4; color: var(--lp-success); }

.lp-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.lp-media-card {
    background: var(--lp-card-bg); border: 1px solid var(--lp-border); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
}
.lp-media-card-archived .lp-media-thumb img { opacity: 0.55; }
.lp-media-thumb { aspect-ratio: 4 / 3; background: var(--lp-bg); display: flex; align-items: center; justify-content: center; }
.lp-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-media-body { padding: 0.75rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.lp-media-body p { margin: 0; }
.lp-media-dimensions { font-weight: 600; font-size: 0.9rem; }
.lp-media-date { color: var(--lp-muted); font-size: 0.8rem; }
.lp-media-status-row { margin-top: 0.15rem; }
.lp-media-status-active { background: #dcfce7; color: var(--lp-success); }
.lp-media-status-archived { background: #f1f5f9; color: var(--lp-muted); }
.lp-media-status-other { background: #f1f5f9; color: var(--lp-text); }
.lp-media-refs { color: var(--lp-muted); font-size: 0.85rem; }
.lp-media-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }
.lp-media-actions .lp-btn-small { margin-left: 0; }
.lp-media-confirm { margin-top: auto; padding-top: 0.5rem; }
.lp-media-confirm p { font-weight: 600; font-size: 0.9rem; }

.lp-btn-danger { background: var(--lp-error); }
.lp-btn-link-danger { background: none; color: var(--lp-error); border: 1px solid transparent; }
.lp-btn-link-danger:hover:not(:disabled) { border-color: #fecaca; }

.lp-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.5rem 0 1.5rem; }
.lp-pagination .lp-btn-small { margin-left: 0; }
.lp-pagination-label { color: var(--lp-muted); font-size: 0.9rem; }

@media (max-width: 480px) {
    .lp-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .lp-upload-btn { width: 100%; }
}

/* ── Promociones (Fase N4) ────────────────────────────────────────────── */

.lp-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lp-page-header h1 { margin-bottom: 0.5rem; }
.lp-page-header .lp-btn { margin-top: 1.4rem; }
.lp-readonly-note { margin-top: 0; }

.lp-promo-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.lp-promo-card {
    display: grid; grid-template-columns: 180px minmax(0, 1fr);
    background: var(--lp-card-bg); border: 1px solid var(--lp-border); border-radius: 12px; overflow: hidden;
}
.lp-promo-thumb { background: var(--lp-bg); display: flex; align-items: center; justify-content: center; min-height: 140px; }
.lp-promo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-promo-body { padding: 0.9rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.lp-promo-body p { margin: 0; }
.lp-promo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.lp-promo-title { margin: 0; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.lp-promo-offer { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.lp-promo-offer-type { font-weight: 600; color: var(--lp-orange); }
.lp-promo-offer-value { font-weight: 600; }
.lp-promo-dates, .lp-promo-stats { color: var(--lp-muted); font-size: 0.875rem; }
.lp-promo-hint { font-size: 0.85rem; }
.lp-promo-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.lp-promo-actions .lp-btn-small { margin-left: 0; }
.lp-promo-confirm { margin-top: 0.4rem; padding: 0.75rem; border-radius: 8px; background: var(--lp-bg); }
.lp-promo-confirm p:first-child { font-weight: 600; }
.lp-promo-feature { margin-top: 0.5rem; padding-top: 0.6rem; border-top: 1px dashed var(--lp-border); }
.lp-promo-feature-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.3rem; }
.lp-promo-feature-row .lp-btn-small { margin-left: 0; }

.lp-promo-status-draft { background: #f1f5f9; color: var(--lp-text); }
.lp-promo-status-published { background: #dcfce7; color: var(--lp-success); }
.lp-promo-status-expired { background: #f1f5f9; color: var(--lp-muted); }
.lp-promo-status-ended { background: #fee2e2; color: var(--lp-error); }

/* Formulario */
.lp-promo-form-header h2 { margin: 0 0 0.25rem; }
.lp-promo-form-header p { margin: 0 0 0.75rem; }
.lp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.lp-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.lp-field-wide { grid-column: 1 / -1; }
.lp-field-label { font-size: 0.85rem; font-weight: 600; color: var(--lp-text); }
.lp-input {
    width: 100%; padding: 0.55rem 0.7rem; border: 1px solid var(--lp-border); border-radius: 8px;
    font: inherit; color: var(--lp-text); background: white;
}
.lp-input:focus { outline: 2px solid rgba(249, 115, 22, 0.35); border-color: var(--lp-orange); }
textarea.lp-input { resize: vertical; }
.lp-form-hint { font-size: 0.8rem; margin: 0.5rem 0 0; }
.lp-promo-form-image { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.lp-promo-form-image-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lp-promo-form-thumb {
    width: 160px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
    background: var(--lp-bg); border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
}
.lp-promo-form-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-promo-form-image-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.lp-promo-form-image-actions .lp-btn-small { margin-left: 0; }
.lp-promo-form-image-actions p { margin: 0; font-size: 0.85rem; }
.lp-promo-form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* Ventanas modales (selector de imagen, métricas) */
.lp-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 40; }
.lp-modal {
    position: fixed; z-index: 41; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto;
    background: var(--lp-card-bg); border-radius: 14px; padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.lp-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.lp-modal-header h2 { margin: 0; font-size: 1.2rem; }
.lp-modal h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.lp-promo-metrics-title { margin: 0.2rem 0 0; }
.lp-table-scroll { overflow-x: auto; }

.lp-media-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; }
.lp-media-picker-item {
    padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
    aspect-ratio: 4 / 3; background: var(--lp-bg);
}
.lp-media-picker-item:hover, .lp-media-picker-item:focus { border-color: var(--lp-orange); outline: none; }
.lp-media-picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-media-picker-more { display: flex; justify-content: center; margin-top: 1rem; }
.lp-media-picker-more .lp-btn-small { margin-left: 0; }

@media (max-width: 640px) {
    .lp-promo-card { grid-template-columns: 1fr; }
    .lp-promo-thumb { min-height: 0; aspect-ratio: 16 / 9; }
    .lp-form-grid { grid-template-columns: 1fr; }
    .lp-page-header .lp-btn { margin-top: 0; }
}

/* ── Comentarios recibidos y Ayuda (Fase N5) ──────────────────────────── */

.lp-comments-count { margin: 0 0 0.75rem; font-size: 0.9rem; }
.lp-comments-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.lp-comment-card {
    background: var(--lp-card-bg); border: 1px solid var(--lp-border); border-radius: 12px;
    padding: 1rem 1.25rem;
}
.lp-comment-message { margin: 0 0 0.6rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.lp-comment-date { margin: 0; color: var(--lp-muted); font-size: 0.85rem; }
.lp-comments-empty-title { font-weight: 600; margin-bottom: 0.25rem; }

.lp-feedback-form, .lp-feedback-success { max-width: 720px; }
.lp-feedback-counter { align-self: flex-end; color: var(--lp-muted); font-size: 0.8rem; }
.lp-feedback-counter-limit { color: var(--lp-error); }
.lp-feedback-business { margin: 0.9rem 0 0; font-size: 0.9rem; }
.lp-feedback-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.lp-feedback-actions a.lp-btn { text-decoration: none; display: inline-flex; align-items: center; }
.lp-feedback-success-title { font-weight: 600; font-size: 1.1rem; margin: 0 0 0.25rem; }

/* ── Mi negocio (Fase N6) ─────────────────────────────────────────────── */

.lp-biz-summary { display: flex; gap: 1.25rem; align-items: flex-start; }
.lp-biz-logo {
    flex: 0 0 auto; width: 88px; height: 88px; border-radius: 16px; overflow: hidden;
    background: var(--lp-bg); border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
}
.lp-biz-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-biz-logo-fallback { font-size: 2rem; font-weight: 700; color: var(--lp-orange); }
.lp-biz-summary-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.lp-biz-summary-body p { margin: 0; }
.lp-biz-name { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.lp-biz-category { color: var(--lp-muted); }
.lp-biz-rejection { background: #fef2f2; color: var(--lp-error); border-radius: 8px; padding: 0.5rem 0.75rem; }
.lp-biz-status-approved { background: #dcfce7; color: var(--lp-success); }
.lp-biz-status-pending { background: #fef3c7; color: #92400e; }
.lp-biz-status-blocked { background: #fee2e2; color: var(--lp-error); }

.lp-biz-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.lp-biz-section { margin-bottom: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.lp-biz-section h2 { margin: 0; font-size: 1.1rem; }
.lp-biz-section .lp-form-grid { gap: 0.75rem; }
.lp-biz-row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.lp-biz-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lp-biz-actions .lp-btn-small, .lp-biz-row-between .lp-btn-small { margin-left: 0; }
.lp-biz-hint { font-size: 0.85rem; margin: 0; }
.lp-biz-counter { font-size: 0.8rem; }
.lp-biz-readonly-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lp-biz-readonly-list { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.lp-biz-readonly-list div { display: flex; gap: 0.5rem; }
.lp-biz-readonly-list dt { color: var(--lp-muted); min-width: 6.5rem; }
.lp-biz-readonly-list dd { margin: 0; overflow-wrap: anywhere; }
.lp-biz-narrow-field { max-width: 320px; }
.lp-biz-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; }
.lp-check { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; cursor: pointer; }
.lp-check input { width: 1rem; height: 1rem; accent-color: var(--lp-orange); }
.lp-biz-confirm { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 0.75rem 0.9rem; }
.lp-biz-confirm p { margin: 0 0 0.6rem; font-weight: 600; }
.lp-biz-feedback { margin: 0; font-size: 0.9rem; font-weight: 500; }
.lp-biz-feedback-success { color: var(--lp-success); }
.lp-biz-feedback-error { color: var(--lp-error); }

.lp-biz-hours { display: flex; flex-direction: column; gap: 0.45rem; }
.lp-biz-hours-row { display: grid; grid-template-columns: 6.5rem 9rem 1fr 1fr; gap: 0.5rem; align-items: center; }
.lp-biz-hours-day { font-weight: 600; font-size: 0.9rem; }
.lp-biz-hours-value { grid-column: 2 / -1; color: var(--lp-text); }
.lp-biz-hours .lp-input { padding: 0.4rem 0.5rem; }

.lp-biz-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.lp-biz-tag {
    background: var(--lp-card-bg); color: var(--lp-text); border: 1px solid var(--lp-border);
    border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; cursor: pointer;
}
.lp-biz-tag.selected { background: var(--lp-orange); border-color: var(--lp-orange); color: white; }
.lp-biz-tag:disabled { opacity: 0.6; cursor: default; }

.lp-biz-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.lp-biz-cover { margin: 0; border: 1px solid var(--lp-border); border-radius: 10px; overflow: hidden; background: var(--lp-card-bg); }
.lp-biz-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--lp-bg); }
.lp-biz-cover figcaption { padding: 0.45rem 0.55rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.lp-biz-cover-actions, .lp-biz-cover-confirm { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.lp-biz-cover-actions .lp-btn-small, .lp-biz-cover-confirm .lp-btn-small { margin-left: 0; }

@media (max-width: 820px) {
    .lp-biz-sections { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .lp-biz-summary { flex-direction: column; }
    .lp-biz-checks { grid-template-columns: 1fr; }
    .lp-biz-hours-row { grid-template-columns: 1fr 1fr; }
    .lp-biz-hours-day { grid-column: 1 / -1; }
}
