/* LandingClick App · estructura visual homologada con Cotización */
:root{
    --lc-app-color:#ff6a00;
    --lc-app-color-dark:#e65c00;
    --lc-app-bg:#f5f6fa;
    --lc-app-card:#ffffff;
    --lc-app-border:#e5e7eb;
    --lc-app-text:#1f2937;
    --lc-app-muted:#6b7280;
    --lc-app-radius:12px;
    --lc-app-shadow:0 4px 12px rgba(0,0,0,.05);
}

.lc-app-os2-shell{
    --lc-primary:var(--lc-app-color,#ff6a00);
    max-width:1120px;
    margin:0 auto;
    padding:20px;
    box-sizing:border-box;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--lc-app-text);
}

.lc-app-os2-shell *,
.lc-app-os2-shell *:before,
.lc-app-os2-shell *:after{box-sizing:border-box;}

.lc-app-tab-panel{display:none;}
.lc-app-tab-panel.is-active{display:block;}

.lc-app-main-card,
.lc-app-device-card,
.lc-app-qr-key-card,
.lc-app-fallback-head,
.lc-app-error{
    background:var(--lc-app-card);
    border:1px solid var(--lc-app-border);
    border-radius:var(--lc-app-radius);
    box-shadow:var(--lc-app-shadow);
}

.lc-app-main-card{
    padding:20px;
    margin-bottom:20px;
    overflow:hidden;
}

.lc-app-head{
    display:flex;
    gap:16px;
    align-items:flex-start;
    text-align:left;
}

.lc-app-icon-preview{
    width:72px;
    height:72px;
    min-width:72px;
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--lc-app-border);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
}
.lc-app-icon-preview img{width:100%;height:100%;object-fit:cover;display:block;}

.lc-app-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:0 0 8px;
    padding:6px 10px;
    border-radius:999px;
    background:#fff3eb;
    color:var(--lc-app-color-dark);
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.lc-app-head h2,
.lc-app-qr-key-card h2,
.lc-app-device-card h3{
    margin:0;
    color:var(--lc-app-text);
    line-height:1.2;
}
.lc-app-head h2{font-size:24px;font-weight:700;}
.lc-app-head p,
.lc-app-device-card p,
.lc-app-qr-key-card>p,
.lc-app-qr-box p,
.lc-app-security-card p{
    color:var(--lc-app-muted);
    line-height:1.5;
}
.lc-app-head p{margin:8px 0 0;font-size:14px;}

.lc-app-device-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
    align-items:stretch;
}

.lc-app-device-card{
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:0;
}

.lc-app-device-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff3eb;
    border:1px solid #ffd2b5;
    font-size:22px;
}

.lc-app-device-card h3{font-size:20px;font-weight:700;}
.lc-app-device-card p{margin:0;font-size:14px;}
.lc-app-device-card ol{
    margin:2px 0 0;
    padding-left:20px;
    color:#374151;
    font-size:14px;
    line-height:1.55;
}
.lc-app-device-card li{margin:4px 0;}

.lc-app-install-actions,
.lc-app-actions{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:wrap;
    margin-top:15px;
}
.lc-app-install-actions{justify-content:center;margin-top:20px;}

.lc-app-primary,
.lc-app-install,
.lc-app-install-open{
    background:var(--lc-app-color)!important;
    border:1px solid var(--lc-app-color)!important;
    color:#fff!important;
}
.lc-app-primary:hover,
.lc-app-install:hover,
.lc-app-install-open:hover{background:var(--lc-app-color-dark)!important;}

.lc-app-install-open,
.lc-app-actions .lc-os2-btn,
.lc-app-soft-btn,
.lc-app-copy{
    min-height:42px;
    padding:10px 16px;
    border-radius:10px!important;
    font-size:14px;
    font-weight:600;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    text-decoration:none!important;
}
.lc-app-install-open{min-width:280px;gap:10px;}
.lc-app-soft-btn,
.lc-app-copy{
    background:#fff!important;
    color:var(--lc-app-text)!important;
    border:1px solid var(--lc-app-border)!important;
}

.lc-app-mini-icon{
    width:28px;
    height:28px;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
    display:inline-flex;
}
.lc-app-mini-icon img{width:100%;height:100%;object-fit:cover;}

.lc-app-qr-key-card{
    padding:20px;
    text-align:center;
}
.lc-app-qr-key-card h2{font-size:24px;font-weight:700;margin:0 0 8px;}
.lc-app-qr-key-card>p{margin:0 auto 18px;max-width:620px;font-size:14px;}

.lc-app-qr-box{text-align:center;}
.lc-app-qr-box img{
    max-width:280px;
    width:100%;
    height:auto;
    background:#fff;
    border:1px solid var(--lc-app-border);
    border-radius:12px;
    padding:12px;
}
.lc-app-qr-box p{margin:10px 0 0;font-size:13px;}
.lc-app-qr-actions{justify-content:center;}
.lc-app-qr-actions .lc-os2-btn{min-width:260px;}

.lc-app-url-box{
    margin:12px auto 0;
    max-width:680px;
    padding:12px 14px;
    border:1px solid var(--lc-app-border);
    border-radius:10px;
    background:#f9fafb;
    color:#374151;
    font-size:13px;
    word-break:break-all;
}

.lc-app-security-card{
    margin-top:15px;
    padding:20px;
    background:#fff7ed!important;
    border:1px solid #fed7aa!important;
    border-radius:var(--lc-app-radius);
}
.lc-app-security-card h3{margin:0 0 8px;color:var(--lc-app-text);font-size:18px;}
.lc-app-security-card p{margin:0;font-size:14px;}

.lc-app-error{padding:14px;color:#b42318;background:#fff4f4;border-color:#ffd1d1;}

.lc-app-fallback-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    margin-bottom:12px;
}
.lc-app-fallback-head strong{display:block;color:var(--lc-app-text);font-size:18px;}
.lc-app-fallback-head span{display:block;color:var(--lc-app-muted);font-size:13px;}
.lc-app-fallback-head a{
    background:var(--lc-app-color);
    color:#fff;
    text-decoration:none;
    border-radius:10px;
    padding:10px 14px;
    font-weight:700;
}

/* Elementos heredados que no deben duplicarse */
.lc-app-url-box,
.lc-app-security-card{display:none!important;}

@media (max-width:900px){
    .lc-app-device-grid{grid-template-columns:1fr;}
}

@media (max-width:720px){
    .lc-app-os2-shell{padding:14px 12px 24px;}
    .lc-app-main-card,
    .lc-app-device-card,
    .lc-app-qr-key-card{padding:16px;}
    .lc-app-head{gap:14px;align-items:center;}
    .lc-app-icon-preview{width:64px;height:64px;min-width:64px;}
    .lc-app-head h2{font-size:21px;}
    .lc-app-head p{font-size:14px;}
    .lc-app-device-grid{gap:12px;}
    .lc-app-device-card h3{font-size:18px;}
    .lc-app-install-actions,
    .lc-app-actions,
    .lc-app-qr-actions{display:grid;grid-template-columns:1fr;}
    .lc-app-install-open,
    .lc-app-actions .lc-os2-btn,
    .lc-app-qr-actions .lc-os2-btn{width:100%;min-width:0;}
    .lc-app-qr-key-card h2{font-size:21px;}
    .lc-app-qr-box img{max-width:250px;}
    .lc-app-fallback-head{align-items:flex-start;}
}

@media (max-width:420px){
    .lc-app-head{align-items:flex-start;}
    .lc-app-icon-preview{width:58px;height:58px;min-width:58px;}
    .lc-app-head h2{font-size:20px;}
}

/* Estado del instalador v1.2.4 */
.lc-app-head{display:block;}
.lc-app-icon-preview{display:none!important;}
.lc-app-install-actions{
    display:grid;
    justify-items:center;
    gap:12px;
}
.lc-app-install-open{
    border:0;
    cursor:pointer;
}
.lc-app-install-status{
    display:none;
    width:min(100%,680px);
    padding:12px 14px;
    border-radius:10px;
    border:1px solid var(--lc-app-border);
    background:#f9fafb;
    color:var(--lc-app-muted);
    font-size:13px;
    line-height:1.45;
    text-align:left;
}
.lc-app-install-status.is-visible{display:block;}
.lc-app-install-status.is-success{background:#ecfdf3;border-color:#b7ebc6;color:#176b35;}
.lc-app-install-status.is-info{background:#eff6ff;border-color:#bfdbfe;color:#1e4f8f;}
.lc-app-install-status.is-warning{background:#fff7ed;border-color:#fed7aa;color:#9a4612;}
.lc-app-install-status.is-error{background:#fff1f2;border-color:#fecdd3;color:#a51d32;}
.lc-app-device-card.is-current-platform{
    border-color:#ffbf91;
    box-shadow:0 0 0 2px rgba(255,106,0,.08),var(--lc-app-shadow);
}
.lc-app-device-card.is-install-attention{
    animation:lcAppAttention .75s ease-in-out 2;
}
@keyframes lcAppAttention{
    0%,100%{transform:translateY(0);box-shadow:var(--lc-app-shadow);}
    50%{transform:translateY(-3px);box-shadow:0 10px 24px rgba(255,106,0,.18);}
}
