/* Renovo Studio · Editorial premium SaaS theme */
:root {
  --bg: #faf8f3;
  --bg-soft: #f3efe6;
  --bg-card: #ffffff;
  --ink: #1a1816;
  --ink-2: #2a2622;
  --ink-soft: #6a655d;
  --ink-line: #e3ddd0;
  --accent: #b25c20;
  --accent-2: #d49a6e;
  --accent-soft: #f1e4d4;
  --green: #2d6a4f;
  --red: #b73239;
  --gold: #c9a66b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26,24,22,.05);
  --shadow-md: 0 8px 24px rgba(26,24,22,.08);
  --shadow-lg: 0 18px 48px rgba(26,24,22,.13);
  --t-fast: 150ms ease;
  --t-med: 280ms cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.muted { color: var(--ink-soft); }
.small { font-size: 13.5px; }
.icn { width: 18px; height: 18px; flex-shrink: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 780px; }
section { padding: 110px 0; }
.ornament { text-align: center; color: var(--accent); font-family: 'Fraunces', serif; font-size: 22px; letter-spacing: 14px; margin: 50px 0; opacity: .65; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,248,243,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ink-line); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-links { display: none; gap: 32px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { transition: color var(--t-fast); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (min-width: 920px) { .nav-links { display: flex; } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 24px; border-radius: 10px; font-weight: 500; font-size: 14.5px; transition: all var(--t-fast); border: 1px solid transparent; white-space: nowrap; }
.btn.full { width: 100%; justify-content: center; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #8c4716; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* HERO */
.hero { padding: 120px 28px 90px; max-width: 1080px; margin: 0 auto; text-align: center; }
.hero-trust-top { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.badge-trust { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-soft); background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: 999px; padding: 6px 12px; }
.badge-trust svg { color: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 920px; margin: 0 auto 24px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero-sub { font-size: clamp(17px, 1.4vw, 20.5px); color: var(--ink-soft); max-width: 640px; margin: 0 auto 34px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; color: var(--ink-soft); font-size: 13.5px; }

/* PROOF */
.proof { padding: 60px 0; background: var(--bg-soft); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.proof-quote { font-family: 'Fraunces', serif; font-size: clamp(20px, 2.6vw, 28px); font-style: italic; text-align: center; line-height: 1.4; max-width: 780px; margin: 0 auto 18px; }
.proof-attribution { text-align: center; color: var(--ink-soft); font-size: 14px; letter-spacing: 0.4px; }

/* DATA */
.data { background: var(--bg); padding: 100px 0; }
.data-grid { display: grid; gap: 64px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1020px; margin: 0 auto; padding: 0 32px; }
.data-item { border-left: 2px solid var(--accent); padding-left: 24px; }
.data-num { font-family: 'Fraunces', serif; font-size: 60px; font-weight: 600; line-height: 1; margin-bottom: 14px; letter-spacing: -0.03em; }
.data-num sup { font-size: 28px; vertical-align: super; opacity: 0.65; }
.data-label { font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.data-source { font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; font-style: italic; opacity: .75; }

/* SECTION HEADINGS */
.section-intro { text-align: center; margin-bottom: 68px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-eyebrow { font-size: 11.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; display: block; }
.section-title { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 16px; line-height: 1.15; }
.section-lead { color: var(--ink-soft); font-size: 17.5px; line-height: 1.55; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.feat { background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 34px 28px; transition: all var(--t-med); }
.feat:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat-num { font-family: 'Fraunces', serif; font-style: italic; font-size: 22px; color: var(--accent); margin-bottom: 16px; opacity: 0.85; }
.feat h3 { font-size: 22px; margin-bottom: 10px; }
.feat p { color: var(--ink-soft); font-size: 15px; }

/* PRICING */
.plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 34px 26px; display: flex; flex-direction: column; gap: 18px; position: relative; transition: all var(--t-med); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan.featured { border: 2px solid var(--ink); transform: scale(1.025); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 5px 14px; border-radius: 30px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.plan-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.plan-price { font-family: 'Fraunces', serif; font-size: 50px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.plan-price small { display: block; font-size: 13.5px; color: var(--ink-soft); font-weight: 400; margin-top: 6px; font-family: 'Inter', sans-serif; }
.plan-list { list-style: none; flex: 1; }
.plan-list li { padding: 7px 0; font-size: 14px; color: var(--ink-soft); position: relative; padding-left: 22px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 6px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg); }
.precio-meta { text-align: center; margin-top: 36px; color: var(--ink-soft); font-size: 13.5px; }

/* GARANTIA */
.garantia { background: linear-gradient(180deg, transparent, var(--bg-soft) 25%, transparent); text-align: center; padding: 90px 0; }
.garantia-symbol { font-family: 'Fraunces', serif; font-size: 64px; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.garantia h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.garantia p { font-size: 17px; color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

/* FAQ */
.faq-item { background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: var(--radius); margin-bottom: 12px; transition: border-color var(--t-fast); }
.faq-item[open] { border-color: var(--ink); }
.faq-item summary { padding: 22px 26px; font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 300; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 26px 22px; color: var(--ink-soft); }

/* CTA FINAL */
.cta-final { padding: 130px 0; text-align: center; background: var(--bg-soft); }
.cta-final h2 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 24px; line-height: 1.1; max-width: 780px; margin-left: auto; margin-right: auto; }
.cta-final h2 em { font-style: italic; color: var(--accent); font-weight: 600; }

/* FOOTER */
.footer { background: var(--ink); color: rgba(250,248,243,.78); padding: 60px 0 32px; }
.footer .muted { color: rgba(250,248,243,.55); }
.footer-inner { display: grid; gap: 30px; grid-template-columns: 1fr; padding-bottom: 32px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid rgba(250,248,243,.12); padding-top: 22px; font-size: 12.5px; text-align: center; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr; align-items: end; } .footer-links { justify-content: flex-end; } }

/* MODALS */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26,24,22,.58); backdrop-filter: blur(7px); }
.modal-card { position: relative; background: var(--bg-card); border-radius: var(--radius-lg); padding: 38px 34px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 48px); overflow-y: auto; }
.modal-card.wide { max-width: 640px; }
.modal-card.wizard-card { max-width: 560px; padding: 32px 36px 36px; }
.modal-close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: var(--ink-soft); padding: 8px; border-radius: 8px; display: inline-flex; }
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.auth-logo { margin: 0 auto 16px; display: block; border-radius: 12px; }
.auth-tabs { display: flex; gap: 6px; margin: 18px 0 22px; border-bottom: 1px solid var(--ink-line); }
.tab { background: transparent; border: none; padding: 10px 14px; font-size: 14px; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tab.active { color: var(--accent); border-color: var(--accent); }
.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; }
.auth-form label, .field label { font-size: 13px; color: var(--ink-soft); font-weight: 500; display: flex; flex-direction: column; gap: 5px; }
.auth-form label small, .field label small { font-weight: 400; opacity: .85; }
.auth-form input, .field input, .field textarea, .field select {
  background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: 8px;
  padding: 11px 14px; font-size: 14.5px; color: var(--ink); font-family: inherit;
}
.auth-form input:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(178,92,32,.13); }

/* WIZARD */
.wiz-progress { height: 4px; background: var(--bg-soft); border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.wiz-bar { height: 100%; background: var(--accent); transition: width var(--t-med); }
.wiz-step { display: flex; flex-direction: column; gap: 18px; }
.wiz-icon { width: 56px; height: 56px; background: var(--accent-soft); color: var(--accent); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.wiz-icon svg { width: 28px; height: 28px; }
.wiz-step h3 { font-size: 26px; }
.wiz-step p { color: var(--ink-soft); }
.wiz-video { width: 100%; aspect-ratio: 16/9; background: var(--ink); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--bg); font-size: 14px; position: relative; overflow: hidden; }
.wiz-video::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(212,154,110,.25), transparent 50%), radial-gradient(circle at 75% 65%, rgba(212,154,110,.15), transparent 50%); }
.wiz-video span { position: relative; z-index: 1; font-family: 'Fraunces', serif; font-style: italic; opacity: .7; }
.wiz-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* CHECKOUT MODAL */
.pay-summary { background: var(--bg-soft); border-radius: 12px; padding: 18px 20px; margin: 18px 0; display: flex; justify-content: space-between; align-items: center; }
.pay-summary .pay-label { font-size: 13px; color: var(--ink-soft); }
.pay-summary .pay-amount { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; line-height: 1; }
.pay-summary .pay-old { text-decoration: line-through; color: var(--ink-soft); font-size: 14px; margin-right: 6px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.pay-method { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: all var(--t-fast); }
.pay-method:hover { border-color: var(--ink); background: var(--bg-soft); }
.pay-method svg { color: var(--ink-soft); }

/* =============== STUDIO APP =============== */
.page-app { overflow: hidden; }
.page-app .nav, .page-app .hero, .page-app section:not(.studio section), .page-app .footer, .page-app .ornament, .page-app .proof { display: none !important; }

.studio { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.studio[hidden] { display: none; }

.sidebar { background: #1a1a2e; color: #e0e0f0; padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(255,255,255,0.04); }
.sidebar-brand { padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-brand .sb-toggle { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 6px; color: #8a8ab0; cursor: pointer; transition: all 0.15s ease; }
.sidebar-brand .sb-toggle:hover { background: rgba(255,255,255,0.1); color: #e0e0f0; }
.sidebar * { color: #c0c0d8; }
.tier-banner { background: linear-gradient(135deg, rgba(233,69,96,0.08), rgba(124,58,237,0.08)); border: 1px solid rgba(233,69,96,0.2); border-radius: 12px; padding: 14px 16px; font-size: 12px; }
.tier-banner .tier-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; color: #f0f0f5; letter-spacing: -0.01em; }
.tier-banner .tier-meta { color: #8a8ab0; font-size: 11.5px; margin-top: 4px; }
.tier-banner .tier-cta { margin-top: 8px; font-size: 11.5px; color: #e94560; cursor: pointer; font-weight: 600; }
.tier-banner .tier-cta:hover { color: #ff5a75; }

.nav-vertical { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding: 4px 0; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all 0.15s ease; border: 1px solid transparent; color: #8a8ab0; position: relative; }
.nav-item .icn { width: 20px; height: 20px; color: #6a6a8a; transition: color 0.15s ease; }
.nav-item:hover { background: rgba(255,255,255,0.04); color: #e0e0f0; }
.nav-item:hover .icn { color: #a0a0c0; }
.nav-item.active { background: rgba(233,69,96,0.1); color: #f0f0f5; border-color: rgba(233,69,96,0.15); font-weight: 600; }
.nav-item.active .icn { color: #e94560; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: #e94560; border-radius: 0 3px 3px 0; }
.nav-item.admin-only { display: none; }
.role-admin .nav-item.admin-only { display: flex; }

.sidebar-foot { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.biz-selector label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #6a6a8a; display: block; margin-bottom: 6px; font-weight: 600; }
.biz-selector select { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; color: #e0e0f0; font-size: 13px; font-family: 'Inter', sans-serif; }
.biz-selector select option { background: #1a1a2e; color: #e0e0f0; }
.user-foot { font-size: 12px; color: #6a6a8a; padding: 2px; }
.role-switch { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 3px; }
.role-switch button { flex: 1; background: transparent; border: none; color: #6a6a8a; font-size: 11px; padding: 7px 8px; border-radius: 8px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; transition: all 0.15s ease; }
.role-switch button.active { background: linear-gradient(135deg, #e94560, #7c3aed); color: white; box-shadow: 0 2px 8px rgba(233,69,96,0.3); }
.sidebar .btn-ghost { color: #8a8ab0; border-color: rgba(255,255,255,0.08); background: transparent; border-radius: 10px; font-size: 12.5px; padding: 9px 14px; }
.sidebar .btn-ghost:hover { background: rgba(255,255,255,0.04); color: #e0e0f0; }

.main { background: var(--bg); padding: 36px 44px; overflow-y: auto; height: 100vh; }
.main-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.main-header h1 { font-size: 38px; margin-bottom: 4px; }
.main-header .crumb { font-size: 11.5px; color: var(--ink-soft); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 6px; }
.header-actions { display: flex; gap: 8px; }

/* Banner saldo crítico */
.balance-warning { background: rgba(183,50,57,.08); border: 1px solid rgba(183,50,57,.3); color: var(--red); padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.balance-warning strong { color: var(--ink); }
.balance-warning a { color: var(--accent); text-decoration: underline; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.card-header h3 { font-size: 20px; }
.card + .card { margin-top: 22px; }

/* Stats */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 26px; }
.stat { background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 20px 22px; }
.stat-label { font-size: 11.5px; color: var(--ink-soft); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; font-weight: 500; }
.stat-value { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 600; line-height: 1; }
.stat-delta { font-size: 12.5px; color: var(--green); margin-top: 8px; }
.stat-delta.neg { color: var(--red); }

/* Charts container */
.chart-wrap { position: relative; height: 260px; }

/* Forms */
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row.full { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field textarea { resize: vertical; min-height: 110px; }
.field-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* Suggestions */
.suggestion { background: var(--bg-soft); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 18px 20px; margin-top: 12px; }
.suggestion-tone { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.suggestion-text { width: 100%; border: 1px solid var(--ink-line); border-radius: 8px; padding: 10px 12px; font-family: inherit; font-size: 14.5px; background: var(--bg-card); color: var(--ink); }
.suggestion-rationale { font-size: 13px; color: var(--ink-soft); font-style: italic; margin: 10px 0; }
.suggestion-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Lists / tables */
.list { list-style: none; }
.list-item { border-bottom: 1px solid var(--ink-line); padding: 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.list-item:last-child { border-bottom: none; }
.list-item h4 { font-size: 16px; font-weight: 600; font-family: 'Inter', sans-serif; margin-bottom: 4px; }
.list-item .meta { color: var(--ink-soft); font-size: 13px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-weight: 500; color: var(--ink-soft); padding: 11px 14px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; border-bottom: 1px solid var(--ink-line); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--ink-line); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-soft); }

/* Badges */
.badge { display: inline-block; padding: 3px 11px; border-radius: 30px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px; }
.badge-pending { background: var(--bg-soft); color: var(--ink-soft); }
.badge-approved { background: rgba(45,106,79,.13); color: var(--green); }
.badge-viral { background: rgba(178,92,32,.14); color: var(--accent); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius); margin: 14px 0; font-size: 14px; border: 1px solid; }
.alert-info { background: rgba(178,92,32,.08); border-color: var(--accent-soft); color: var(--ink); }
.alert-success { background: rgba(45,106,79,.08); border-color: rgba(45,106,79,.3); color: var(--green); }
.alert-error { background: rgba(183,50,57,.08); border-color: rgba(183,50,57,.3); color: var(--red); }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty h3 { color: var(--ink); margin-bottom: 10px; font-size: 22px; }
.empty p { max-width: 420px; margin: 0 auto 20px; }

/* Spinner */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--ink-line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-cell { background: var(--bg-card); border: 1px solid var(--ink-line); border-radius: 10px; padding: 12px; min-height: 96px; font-size: 12.5px; cursor: pointer; transition: all var(--t-fast); }
.cal-cell:hover { border-color: var(--ink); transform: translateY(-1px); }
.cal-cell.viral { border-color: var(--accent); background: rgba(178,92,32,.04); }
.cal-cell .cal-day { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.cal-cell .cal-topic { color: var(--ink-soft); line-height: 1.4; }
.cal-cell .cal-viral { font-size: 10px; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

/* Photo gallery */
.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 16px; }
.gal-item { aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 10px; border: 1px solid var(--ink-line); position: relative; cursor: pointer; transition: transform var(--t-fast); }
.gal-item:hover { transform: scale(1.02); }
.gal-item .gal-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55)); border-radius: 10px; opacity: 0; transition: opacity var(--t-fast); display: flex; align-items: flex-end; padding: 10px; color: white; font-size: 11px; }
.gal-item:hover .gal-overlay { opacity: 1; }
.dropzone { border: 2px dashed var(--ink-line); border-radius: 12px; padding: 40px 20px; text-align: center; color: var(--ink-soft); cursor: pointer; transition: all var(--t-fast); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* Admin panel */
.admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }

/* Responsive */
.m-topbar, .m-tabbar, .m-overlay { display: none; }
@media (max-width: 880px) {
  .studio, body.sb-collapsed .studio { grid-template-columns: 1fr; }
  .m-topbar { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 56px; align-items: center; gap: 12px; padding: 0 14px; background: rgba(250, 248, 243, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ink-line); z-index: 60; }
  .m-topbar .m-biz { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; color: var(--ink-soft); }
  .m-burger { background: #fff; border: 1px solid var(--ink-line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 288px; max-width: 84vw; height: 100%; z-index: 80; transform: translateX(-103%); transition: transform .28s cubic-bezier(.2, .8, .25, 1); box-shadow: 24px 0 60px rgba(26, 24, 22, .2); overflow-y: auto; }
  body.mnav-open .sidebar { transform: none; }
  .m-overlay { display: block; position: fixed; inset: 0; background: rgba(26, 24, 22, .38); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.mnav-open .m-overlay { opacity: 1; pointer-events: auto; }
  .sb-toggle { display: none; }
  .main { padding: 72px 16px calc(88px + env(safe-area-inset-bottom)); height: auto; min-height: 100vh; }
  .m-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: rgba(250, 248, 243, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--ink-line); z-index: 60; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .m-tabbar button { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--ink-soft); padding: 6px 2px; border-radius: 10px; font-family: inherit; }
  .m-tabbar button svg { width: 21px; height: 21px; }
  .m-tabbar button.active { color: var(--accent); }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .kpi4 { grid-template-columns: 1fr 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .card { overflow-x: auto; }
  .report-sheet { padding: 24px 16px; }
  .rs-kpis { grid-template-columns: repeat(3, 1fr); }
  .rs-kpi { border-bottom: 1px solid var(--ink-line); }
  #renoPanel { right: 10px; left: 10px; width: auto; bottom: calc(92px + env(safe-area-inset-bottom)); }
  #renoFab { bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Landing compacta (Manus #19) */
  .nav-inner { padding: 10px 14px; }
  .nav-cta .btn-ghost { display: none; }
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-mock { display: none; }
}

/* ===== Toasts (sustituyen alert) ===== */
#toasts { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: var(--bg); padding: 13px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 30px rgba(26,24,22,.25); display: flex; align-items: center; gap: 10px; animation: toastIn .25s cubic-bezier(.2,.9,.3,1.2); max-width: 340px; }
.toast.ok::before { content: '✓'; color: #7fc8a0; font-weight: 700; }
.toast.warn { background: #7a3e16; } .toast.warn::before { content: '!'; color: var(--amber, #e8a13a); font-weight: 800; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ===== Siguiente mejor acción (motor proactivo) ===== */
.next-actions { background: linear-gradient(135deg, #1a1816, #2e2a26); border-radius: 16px; padding: 20px 22px; margin-bottom: 22px; color: var(--bg); }
.next-actions h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #d49a6e; margin-bottom: 12px; font-weight: 600; }
.na-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.na-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(250,248,243,.08); border: 1px solid rgba(250,248,243,.16); color: var(--bg); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; cursor: pointer; transition: all .15s ease; }
.na-chip:hover { background: rgba(250,248,243,.16); transform: translateY(-1px); }
.na-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #e8a13a; }
.na-chip.urgent .dot { background: #e05d44; box-shadow: 0 0 0 3px rgba(224,93,68,.25); }
.na-chip.done { opacity: .55; cursor: default; } .na-chip.done .dot { background: #7fc8a0; }


/* ===== Informe de impacto ===== */
.report-sheet { background: #fff; border: 1px solid var(--ink-line); border-radius: 16px; padding: 34px 38px; max-width: 820px; }
.rs-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 22px; }
.rs-brand { font-family: 'Fraunces', Georgia, serif; font-size: 19px; font-weight: 600; }
.rs-sub { color: var(--ink-soft); font-size: 13.5px; }
.rs-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.rs-kpi { background: var(--bg); border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px; text-align: center; }
.rs-kpi .n { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; }
.rs-kpi .l { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; margin-top: 3px; }
.rs-kpi.hot { background: var(--ink); border-color: var(--ink); } .rs-kpi.hot .n { color: var(--accent-2); } .rs-kpi.hot .l { color: rgba(250,248,243,.7); }
.rs-sec { margin-bottom: 16px; } .rs-sec h4 { font-size: 15px; margin-bottom: 4px; } .rs-sec p, .rs-sec li { font-size: 13.5px; color: var(--ink-soft); }
.rs-sec ul { padding-left: 18px; }
.rs-foot { border-top: 1px solid var(--ink-line); margin-top: 20px; padding-top: 12px; font-size: 11px; color: var(--ink-soft); }
@media print {
  .sidebar, .no-print, #toasts { display: none !important; }
  .studio { display: block !important; } .main { padding: 0 !important; }
  .report-sheet { border: none; max-width: 100%; padding: 0; }
  body { background: #fff; }
}


/* ===== Voz de marca: presets ===== */
.voice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.vchip { border: 1px solid var(--ink-line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .15s ease; }
.vchip:hover { border-color: var(--ink); transform: translateY(-1px); }
.vchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* ===== Semáforo de márgenes ===== */
.mbadge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; white-space: nowrap; }
.m-red { background: #fdeaea; color: #9d1f1f; } .m-orange { background: #fdf1e3; color: #a35a00; }
.m-yellow { background: #fbf6dd; color: #7a6a00; } .m-green { background: #e7f3ec; color: #2d6a4f; }
.m-dgreen { background: #2d6a4f; color: #fff; }

/* ═══════════ v1.7.1 · REFINEMENT PASS — elegancia y micro-interacción ═══════════ */
/* Tarjetas: profundidad sutil y respuesta al cursor */
.card { transition: box-shadow .25s ease, transform .25s ease; }
.card:hover { box-shadow: 0 10px 34px rgba(26,24,22,.07); }
.stat { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity .2s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,24,22,.08); }
.stat:hover::before { opacity: 1; }
.stat-value { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Formularios: foco visible y consistente (accesible y elegante) */
input, textarea, select { transition: border-color .18s ease, box-shadow .18s ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(178,92,32,.13); }
input::placeholder, textarea::placeholder { color: #b5aea3; }

/* Botones: peso y respuesta táctil */
.btn { letter-spacing: .1px; }
.btn:active { transform: scale(.985); }
.btn-primary:focus-visible, .btn-ghost:focus-visible { box-shadow: 0 0 0 3px rgba(178,92,32,.25); }

/* Tablas de datos: legibilidad corporativa */
.data-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.data-table thead th { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--ink); text-align: left; }
.data-table tbody td { padding: 12px; border-bottom: 1px solid var(--ink-line); font-size: 14px; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Sidebar: jerarquía y acento activo */
.sidebar { background: linear-gradient(180deg, #1a1816 0%, #211d1a 100%); }
.nav-item { position: relative; }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: var(--accent-2); }

/* Listas y sugerencias */
.list-item { transition: background .15s ease; border-radius: 10px; }
.list-item:hover { background: var(--bg-soft); }
.suggestion { border: 1px solid var(--ink-line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.suggestion:hover { border-color: var(--accent-2); box-shadow: 0 6px 18px rgba(26,24,22,.06); }

/* Estados vacíos con presencia */
.empty { text-align: center; padding: 56px 24px; color: var(--ink-soft); }
.empty h3 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }

/* Scrollbar acorde a la marca */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d8d2c6; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* Cabeceras de vista: aire y separación editorial */
.main-header { padding-bottom: 18px; border-bottom: 1px solid var(--ink-line); margin-bottom: 24px; }
.main-header h1 { letter-spacing: -0.02em; }

/* Selector de idioma y de negocio: coherentes con el tema oscuro */
.biz-selector select { transition: border-color .18s ease; }
.biz-selector select:hover { border-color: rgba(250,248,243,.35); }

/* Movimiento global suave al cambiar de vista */
.main > * { animation: viewIn .28s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


/* ═══════════ v1.8.0 · LANDING HERO + DASHBOARD COMMAND CENTER ═══════════ */
/* Hero dos columnas con mockup */
@media (min-width: 980px) {
  .hero-v2 { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; text-align: left; max-width: 1200px; padding-top: 88px; }
  .hero-v2 .hero-trust-top, .hero-v2 .hero-actions { justify-content: flex-start; }
  .hero-v2 h1 { font-size: clamp(38px, 4.4vw, 56px); margin-left: 0; }
  .hero-v2 .hero-sub { margin-left: 0; }
}
.hero-mock { background: #fff; border: 1px solid var(--ink-line); border-radius: 18px; box-shadow: 0 30px 80px rgba(26,24,22,.16); overflow: hidden; transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); animation: mockFloat 7s ease-in-out infinite; }
@keyframes mockFloat { 0%,100% { transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(0); } 50% { transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(-10px); } }
.hm-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--ink-line); background: var(--bg-soft); }
.hm-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ddd6c9; }
.hm-bar span:nth-child(1) { background: #e8968f; } .hm-bar span:nth-child(2) { background: #eecf8f; } .hm-bar span:nth-child(3) { background: #9fd0b1; }
.hm-bar i { margin-left: 10px; font-style: normal; font-size: 11px; color: var(--ink-soft); background: #fff; border: 1px solid var(--ink-line); border-radius: 6px; padding: 2px 10px; }
.hm-body { display: grid; grid-template-columns: 74px 1fr; min-height: 320px; }
.hm-side { background: var(--ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.hm-sun { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(180deg, #e8a13a 0 55%, transparent 55%); border: 2px solid rgba(250,248,243,.3); margin-bottom: 6px; }
.hm-side b { height: 7px; border-radius: 4px; background: rgba(250,248,243,.18); }
.hm-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.hm-chip { display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 12px; width: fit-content; }
.hm-chip span { width: 7px; height: 7px; border-radius: 50%; background: #e8a13a; box-shadow: 0 0 0 3px rgba(232,161,58,.3); }
.hm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hm-kpis > div { background: #fff; border: 1px solid var(--ink-line); border-radius: 10px; padding: 10px; text-align: center; }
.hm-kpis i { display: block; font-style: normal; font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; }
.hm-kpis u { text-decoration: none; font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .8px; }
.hm-chart { background: #fff; border: 1px solid var(--ink-line); border-radius: 10px; padding: 10px; height: 74px; }
.hm-chart svg { width: 100%; height: 100%; }
.hm-row { height: 12px; border-radius: 6px; background: #efe9dd; }
/* Reveal editorial */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.nav.scrolled { box-shadow: 0 8px 30px rgba(26,24,22,.09); }
/* Dashboard command center — premium v2 */
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ink-line); }
.dh-hi { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; margin-bottom: 6px; }
.dash-hero h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
.dh-cta { display: flex; gap: 10px; }
.kpi4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 22px 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all 0.15s ease; }
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-label { font-size: 10.5px; color: var(--ink-soft); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.stat-value { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat-delta { font-size: 12px; color: var(--success); margin-top: 8px; font-weight: 500; }
.stat-delta.neg { color: var(--danger); }
.spark { width: 100%; height: 30px; color: var(--accent); margin-top: 10px; opacity: .9; }
.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-col { display: flex; flex-direction: column; gap: 22px; }
.impact-card { background: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 100%); border-color: rgba(233,69,96,0.15); }
.impact-card h3, .impact-card .imp-row b { color: #f0f0f5; }
.imp-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px; color: rgba(240,240,245,0.7); }
.imp-row:last-child { border-bottom: none; }
.imp-row b { font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; }
.sys-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--ink-soft); }
.sys-row i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sys-row i.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.sys-row i.warn { background: var(--warning); box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 14px 12px; font-size: 13px; font-family: 'Inter', sans-serif; font-weight: 500; transition: all .15s ease; backdrop-filter: blur(8px); }
.qa:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(233,69,96,0.1); color: var(--accent); }
/* Motor proactivo: filas de trabajo */
.na-rows { display: flex; flex-direction: column; gap: 8px; }
.na-row { display: flex; align-items: center; gap: 12px; background: rgba(250,248,243,.07); border: 1px solid rgba(250,248,243,.13); border-radius: 12px; padding: 11px 14px; }
.na-row .dot { width: 8px; height: 8px; border-radius: 50%; background: #e8a13a; flex-shrink: 0; }
.na-row.urgent .dot { background: #e05d44; box-shadow: 0 0 0 3px rgba(224,93,68,.25); }
.na-row.done .dot { background: #7fc8a0; }
.na-txt { flex: 1; font-size: 14px; color: var(--bg); }
.na-go { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); color: var(--ink); border: none; border-radius: 8px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; font-family: inherit; transition: all .15s ease; }
.na-go:hover { background: var(--accent-2); }


/* ═══ v1.8.1 · quick-wins de venta ═══ */
.eco-strip { padding: 26px 0; border-bottom: 1px solid var(--ink-line); }
.eco-strip .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.eco-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.eco-logos { display: flex; gap: 26px; flex-wrap: wrap; }
.eco-logos i { font-style: normal; font-family: 'Fraunces', serif; font-size: 16.5px; font-weight: 600; color: #b7afa2; transition: color .2s ease; }
.eco-logos i:hover { color: var(--ink); }
.proof-card { display: flex; gap: 34px; align-items: center; background: var(--bg); border: 1px solid var(--ink-line); border-radius: 20px; padding: 34px 38px; box-shadow: var(--shadow-md); }
.proof-metric { text-align: center; flex-shrink: 0; padding-right: 30px; border-right: 1px solid var(--ink-line); }
.proof-metric b { display: block; font-family: 'Fraunces', serif; font-size: 62px; font-weight: 600; line-height: 1; color: var(--accent); }
.proof-metric span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; line-height: 1.5; display: block; margin-top: 8px; }
.proof-card .proof-quote { text-align: left; font-size: clamp(17px, 2vw, 21px); margin-bottom: 12px; }
.proof-card .proof-attribution { text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill-founder { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 11px; letter-spacing: .5px; }
@media (max-width: 720px) { .proof-card { flex-direction: column; } .proof-metric { border-right: none; padding-right: 0; border-bottom: 1px solid var(--ink-line); padding-bottom: 18px; } }
.garantia-strip { display: inline-flex; align-items: center; gap: 9px; background: #e7f3ec; color: var(--green); border: 1px solid #cbe4d6; border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 600; margin-top: 18px; }
.plan-for { font-size: 12.5px; color: var(--ink-soft); font-style: italic; min-height: 34px; margin-top: -8px; }


/* ═══════════ v1.9.0 · CONFIANZA: sidebar clara, tour, misión ═══════════ */
.sidebar { background: #fff !important; border-right: 1px solid var(--ink-line); color: var(--ink); }
.sidebar .nav-item { color: var(--ink-soft); }
.sidebar .nav-item .icn { color: #b3aa9c; }
.sidebar .nav-item:hover { background: var(--bg-soft); }
.sidebar .nav-item.active { background: var(--accent-soft); color: var(--ink) !important; border-color: transparent; }
.sidebar .nav-item.active .icn, .nav-item.active::before { color: var(--accent); background: var(--accent); }
.tier-banner { background: var(--bg-soft) !important; border: 1px solid var(--ink-line) !important; color: var(--ink) !important; }
.tier-banner * { color: var(--ink) !important; }
.sidebar .biz-selector label { color: var(--ink-soft); }
.sidebar .biz-selector select { background: #fff; border: 1px solid var(--ink-line); color: var(--ink); }
.sidebar .biz-selector select option { background: #fff; color: var(--ink); }
.sidebar-foot { border-top: 1px solid var(--ink-line) !important; }
.sidebar .user-foot { color: var(--ink-soft); }
.sidebar .btn-ghost { border-color: var(--ink-line); color: var(--ink); }
.sidebar-brand a { display: inline-block; transition: opacity .15s ease; }
.sidebar-brand a:hover { opacity: .75; }
/* scroll: nunca cortar el final */
.main { padding-bottom: 90px !important; }
/* Tour guiado */
.tour-hl { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; position: relative; z-index: 210; background: var(--accent-soft) !important; }
#tourTip { position: fixed; z-index: 220; width: 320px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(26,24,22,.35); animation: toastIn .25s ease; }
#tourTip .tt-step { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; font-weight: 700; }
#tourTip p { font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }
#tourTip .tt-actions { display: flex; justify-content: flex-end; gap: 8px; }
#tourTip .btn-ghost { border-color: rgba(250,248,243,.3); color: var(--bg); }
/* Misión */
.mision { background: var(--ink); color: var(--bg); text-align: center; }
.mision .section-title { color: var(--bg); }
.mision .section-title em { color: var(--accent-2); }
.mision-text { max-width: 640px; margin: 0 auto 18px; color: rgba(250,248,243,.8); font-size: 16.5px; line-height: 1.65; }


/* ═══ v1.9.1 · Nav consolidada + HOY elegante + fix fuga landing ═══ */
/* La landing JAMÁS dentro de la app */
body.page-app .eco-strip, body.page-app header.hero, body.page-app section, body.page-app .proof,
body.page-app .ornament, body.page-app .mision, body.page-app footer { display: none !important; }
/* Pestañas internas (Contenido / Finanzas) */
.tabbar { display: flex; gap: 6px; border-bottom: 1px solid var(--ink-line); margin-bottom: 24px; }
.tabbtn { background: none; border: none; border-bottom: 2.5px solid transparent; padding: 10px 18px; font-family: inherit; font-size: 14.5px; color: var(--ink-soft); transition: all .15s ease; margin-bottom: -1px; }
.tabbtn:hover { color: var(--ink); }
.tabbtn.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
#subview .main-header { display: none; }
/* Panel HOY: elegancia editorial clara */
.next-actions { background: #fff; border: 1px solid var(--ink-line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 20px 24px; }
.next-actions h3 { color: var(--ink-soft); }
.na-row { background: var(--bg); border: 1px solid var(--ink-line); }
.na-row .na-txt { color: var(--ink); }
.na-row.done .na-txt { color: var(--ink-soft); }
.na-go { background: var(--ink); color: var(--bg); }
.na-go:hover { background: var(--accent); color: #fff; }


/* ═══ v1.9.2 · Facturas pro + Guía integrada ═══ */
.rowlink { cursor: pointer; }
.rowlink:hover td { background: var(--accent-soft); }
.inv-card { max-width: 760px; max-height: 88vh; overflow-y: auto; }
.inv-img { width: 100%; border: 1px solid var(--ink-line); border-radius: 12px; margin: 14px 0; }
.tab-desc { color: var(--ink-soft); font-size: 14px; margin: -10px 0 18px; }
.guide-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 28px 32px; margin-bottom: 22px; }
.guide-hero h3 { color: var(--bg); font-size: 22px; margin-bottom: 6px; }
.guide-hero .muted { color: rgba(250,248,243,.7); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px; }
.gcard { background: #fff; border: 1px solid var(--ink-line); border-radius: 14px; padding: 20px; cursor: pointer; transition: all .18s ease; }
.gcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gcard .icn { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; }
.gcard b { display: block; font-family: 'Fraunces', serif; font-size: 17px; margin-bottom: 5px; }
.gcard p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.guide-support b { display: block; margin-bottom: 4px; }


/* ═══ v1.9.3 · informe corporativo + edición negocio ═══ */
.rs-head2 { justify-content: space-between; align-items: flex-start; }
.rs-brandcol { display: flex; align-items: center; gap: 10px; }
.rs-meta { text-align: right; }
.rs-doctype { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.rs-sub2 { font-size: 10.5px; color: #9a938a; margin-top: 3px; }
.rs-sec h4 i { font-style: normal; color: var(--accent); font-family: 'Fraunces', serif; margin-right: 8px; }


/* ═══ v1.9.5 · sidebar plegable + salud + borrar ═══ */
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; }
.sb-toggle { background: none; border: 1px solid var(--ink-line); border-radius: 8px; padding: 7px 9px; color: var(--ink-soft); transition: all .15s ease; }
.sb-toggle:hover { color: var(--ink); border-color: var(--ink); }
body.sb-collapsed .studio { grid-template-columns: 76px 1fr; }
body.sb-collapsed .sidebar { padding: 22px 12px; }
body.sb-collapsed .sidebar-brand a, body.sb-collapsed .tier-banner, body.sb-collapsed .sidebar-foot { display: none; }
body.sb-collapsed .nav-item { justify-content: center; font-size: 0; gap: 0; padding: 12px; }
body.sb-collapsed .nav-item .icn { width: 20px; height: 20px; }
body.sb-collapsed .nav-item.active::before { left: -6px; }
.del-btn { background: none; border: none; color: #c0392b; font-size: 15px; opacity: .55; padding: 4px 8px; border-radius: 6px; transition: all .15s ease; }
.del-btn:hover { opacity: 1; background: #fdeaea; }


/* ═══ v0.1.0 · RESET — iconos visibles + escandallo por ración ═══ */
.sidebar .nav-item { color: #4a463f; }
.sidebar .nav-item .icn { color: #8a8278; }
.sidebar .nav-item:hover .icn, .sidebar .nav-item.active .icn { color: var(--accent); }
.dose-in { width: 74px; padding: 7px 9px; border: 1px solid var(--ink-line); border-radius: 8px; font-family: inherit; text-align: right; }
.dish-card { border-left: 4px solid var(--accent); }
.dish-totales { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink); align-items: center; }
.dish-totales span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); }
.dish-totales b { font-family: 'Fraunces', serif; font-size: 21px; }


/* ═══ v0.2.0 · sidebar contraste FINAL + camino + familias + fb ═══ */
.sidebar .nav-item { color: #3f3a34 !important; font-weight: 500; }
.sidebar .nav-item .icn { color: #6a655d !important; }
.sidebar .nav-item:hover .icn, .sidebar .nav-item.active .icn { color: var(--accent) !important; }
.sb-toggle { background: var(--bg-soft) !important; color: #3f3a34 !important; border-color: #d8d2c6 !important; }
.fam-row td { background: var(--bg-soft); font-size: 11px !important; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; padding: 7px 12px !important; }
.carta-resumen { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.camino-progress { position: relative; background: var(--bg-soft); border: 1px solid var(--ink-line); border-radius: 999px; height: 30px; max-width: 760px; margin-bottom: 20px; overflow: hidden; }
.camino-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.camino-progress span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.hito { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px dashed var(--ink-line); }
.hito:last-child { border-bottom: none; }
.hito-check { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; background: var(--bg-soft); border: 1.5px solid var(--ink-line); color: var(--ink-soft); flex-shrink: 0; }
.hito.done .hito-check { background: var(--green); border-color: var(--green); color: #fff; }
.hito-label { flex: 1; font-size: 14.5px; }
.hito.done .hito-label { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(45,106,79,.4); }
.hito-ok { font-size: 12px; color: var(--green); font-weight: 700; }
.fb-invite { background: #fff; border: 1px solid var(--ink-line); border-radius: 18px; padding: 26px; text-align: center; }
.fb-q { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 16px; }
.fb-faces { display: flex; gap: 14px; justify-content: center; margin-bottom: 12px; }
.fb-faces button { background: var(--bg); border: 1px solid var(--ink-line); border-radius: 14px; padding: 14px 22px; font-size: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .18s ease; font-family: inherit; }
.fb-faces button span { font-size: 12.5px; color: var(--ink-soft); }
.fb-faces button:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }


/* ═══ v0.3.0 · RENO chatbot + informe inversor ═══ */
#renoFab { position: fixed; bottom: 26px; right: 26px; z-index: 240; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff; border: none; font-size: 24px; box-shadow: 0 10px 34px rgba(26,24,22,.3); transition: transform .18s ease; }
#renoFab:hover { transform: scale(1.08); }
body.page-landing #renoFab, body.page-landing #renoPanel { display: none; }
#renoPanel { position: fixed; bottom: 96px; right: 26px; z-index: 241; width: 372px; max-width: calc(100vw - 40px); height: 520px; max-height: 72vh; background: #fff; border: 1px solid var(--ink-line); border-radius: 18px; box-shadow: 0 24px 70px rgba(26,24,22,.25); display: none; flex-direction: column; overflow: hidden; }
#renoPanel.open { display: flex; animation: toastIn .22s ease; }
.reno-head { background: var(--ink); color: var(--bg); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.reno-head b { font-family: 'Fraunces', serif; font-size: 17px; }
.reno-head span { display: block; font-size: 11px; color: rgba(250,248,243,.65); }
.reno-x { background: none; border: none; color: var(--bg); font-size: 15px; opacity: .7; }
.reno-x:hover { opacity: 1; }
#renoLog { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.reno-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.reno-msg.u { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.reno-msg.b { align-self: flex-start; background: #fff; border: 1px solid var(--ink-line); border-bottom-left-radius: 4px; }
.reno-go { align-self: flex-start; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; font-family: inherit; margin: 2px 0; }
.reno-go:hover { background: #8c4716; }
.reno-inp { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ink-line); background: #fff; }
.reno-inp input { flex: 1; border: 1px solid var(--ink-line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 13.5px; }
@media print { #renoFab, #renoPanel { display: none !important; } }
/* Informe inversor */
.rs-exec { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
.rs-exec-tag { display: block; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.rs-two { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--ink-line); border-radius: 12px; padding: 14px 18px; }
.rs-chart { width: 100%; height: 92px; }
.rs-conf { text-align: center; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #9a938a; margin-top: 18px; }
@media print { .rs-two { break-inside: avoid; } }


/* ═══ v0.3.1 · chips RENO + cupones + informe fino ═══ */
.reno-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.reno-chips button { background: #fff; border: 1px solid var(--ink-line); border-radius: 999px; padding: 9px 14px; font-size: 12.5px; text-align: left; font-family: inherit; color: var(--ink); transition: all .15s ease; }
.reno-chips button:hover { border-color: var(--accent); background: var(--accent-soft); }
.coupon-off td { opacity: .45; }
.cup-tgl { min-width: 40px; }
.rs-kpi .n { letter-spacing: -0.02em; }
.rs-sec { padding-bottom: 4px; }
.rs-sec h4 { border-bottom: 1px solid var(--ink-line); padding-bottom: 6px; margin-bottom: 8px; }


/* ═══ v0.3.2 · edición en línea + vida ═══ */
.coupon-editing td { background: var(--accent-soft); }
.ce-in { padding: 8px 10px; border: 1px solid var(--accent); border-radius: 8px; font-family: inherit; font-size: 13.5px; }
.view-loading > * { animation: none !important; opacity: .35; filter: saturate(.6); transition: none; }
#renoFab::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(178,92,32,.5); animation: renoPulse 2.6s ease-out infinite; }
@keyframes renoPulse { 0% { transform: scale(.9); opacity: .8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }


/* ═══ v0.3.3 · INFORME CONSULTORÍA ═══ */
.report-sheet { border: none; box-shadow: 0 2px 40px rgba(26,24,22,.10); padding: 48px 54px; font-family: 'Inter', sans-serif; }
.report-sheet .rs-head2 { border-bottom: none; padding-bottom: 0; margin-bottom: 6px; }
.report-sheet .rs-head2::after { content: ''; display: block; }
.rs-rule { height: 3px; background: var(--ink); margin: 10px 0 2px; }
.rs-rule + .rs-rule-thin { height: 1px; background: var(--ink); margin-bottom: 22px; }
.rs-doctype { color: var(--ink); }
.rs-kpis { gap: 0; border: 1px solid var(--ink-line); border-radius: 0; }
.rs-kpi { border: none; border-right: 1px solid var(--ink-line); border-radius: 0; background: #fff; padding: 16px 10px; }
.rs-kpi:last-child { border-right: none; }
.rs-kpi.hot { background: #fff; }
.rs-kpi.hot .n { color: var(--ink); }
.rs-kpi.hot .l { color: var(--ink-soft); }
.rs-kpi .n { font-size: 24px; }
.rs-kpi .l { font-size: 9.5px; }
.rs-exec { background: #fff; border: none; border-left: 3px solid var(--ink); border-radius: 0; font-size: 13px; }
.rs-sec h4 { border-bottom: 1px solid var(--ink); font-size: 13px; letter-spacing: .3px; text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 700; }
.rs-sec h4 i { font-family: 'Inter', sans-serif; font-size: 11px; }
.rs-sec p { font-size: 12.5px; line-height: 1.65; color: #3f3a34; }
.rs-two { border: 1px solid var(--ink-line); border-radius: 0; }
.rs-foot { border-top: 2px solid var(--ink); font-size: 10px; }
/* PDF compacto: 1 página A4 */
.report-sheet.pdf-mode { box-shadow: none; padding: 30px 38px; max-width: 760px !important; }
.pdf-mode .rs-kpi { padding: 10px 8px; }
.pdf-mode .rs-kpi .n { font-size: 19px; }
.pdf-mode .rs-exec { font-size: 11.5px; padding: 10px 14px; margin-bottom: 12px; }
.pdf-mode .rs-sec { margin-bottom: 10px; }
.pdf-mode .rs-sec p { font-size: 11px; line-height: 1.5; }
.pdf-mode .rs-sec h4 { font-size: 11.5px; margin-bottom: 5px; padding-bottom: 4px; }
.pdf-mode .rs-two { padding: 8px 12px; gap: 10px; grid-template-columns: 1fr 220px; }
.pdf-mode .rs-chart { height: 64px; }
.pdf-mode .rs-head2 svg { width: 30px; height: 30px; }
.pdf-mode .rs-conf { margin-top: 10px; }
.pdf-mode .dish-totales b { font-size: 16px; }


/* ═══ v0.3.4 · confirmación propia (adiós ventanas nativas) ═══ */
.rv-confirm-overlay { position: fixed; inset: 0; background: rgba(26,24,22,.38); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 9000; opacity: 0; transition: opacity .16s ease; }
.rv-confirm-overlay.open { opacity: 1; }
.rv-confirm-overlay.closing { opacity: 0; }
.rv-confirm { background: var(--paper, #fdfbf7); border-radius: 16px; padding: 26px 28px 22px; max-width: 380px; width: calc(100% - 48px); box-shadow: 0 24px 60px rgba(26,24,22,.28); text-align: center; transform: translateY(8px) scale(.97); transition: transform .16s ease; }
.rv-confirm-overlay.open .rv-confirm { transform: none; }
.rv-confirm-icon { font-size: 26px; margin-bottom: 8px; }
.rv-confirm p { font-size: 14.5px; line-height: 1.55; color: var(--ink); margin: 0 0 18px; }
.rv-confirm-btns { display: flex; gap: 10px; justify-content: center; }
.btn-danger { background: #b3341f; color: #fff; border: 1px solid #b3341f; }
.btn-danger:hover { background: #98290f; }
.rv-prompt-input { width: 100%; resize: vertical; border: 1px solid var(--ink-line, #e0ddd8); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; font-family: inherit; line-height: 1.5; margin-bottom: 14px; background: var(--bg-soft, #f8f6f2); color: var(--ink, #1a1816); }


/* ═══ v0.3.5 · informe consultoría v3 ═══ */
.rs-refrow { display: flex; gap: 26px; flex-wrap: wrap; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 2px; margin: 16px 0 22px; font-weight: 600; }
.rs-kpi .n { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 27px; letter-spacing: -0.01em; }
.rs-sec h4 { font-family: 'Fraunces', Georgia, serif; text-transform: none; font-size: 15.5px; letter-spacing: 0; font-weight: 600; }
.rs-sec h4 i { color: #b25c20; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.rs-chart2 { display: flex; gap: 18px; align-items: stretch; height: 104px; padding: 4px 6px 0; }
.rs-bcol { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.rs-bval { font-size: 12px; font-weight: 600; font-family: 'Fraunces', Georgia, serif; color: var(--ink); min-height: 15px; line-height: 1; }
.rs-btrack { width: 100%; max-width: 46px; flex: 1; display: flex; align-items: flex-end; border-bottom: 1.5px solid var(--ink); }
.rs-bfill { width: 100%; background: var(--ink); border-radius: 1px 1px 0 0; }
.rs-blbl { font-size: 8.5px; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.rs-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pdf-mode .rs-chart2 { height: 72px; gap: 12px; }
.pdf-mode .rs-refrow { margin: 10px 0 14px; padding: 5px 2px; }


/* ═══ v0.3.6 · vida global + RENO aprende ═══ */
@media (prefers-reduced-motion: no-preference) {
  #main > * { animation: rvRise .42s cubic-bezier(.16, .84, .3, 1) backwards; }
  #main > *:nth-child(2) { animation-delay: .045s; }
  #main > *:nth-child(3) { animation-delay: .09s; }
  #main > *:nth-child(4) { animation-delay: .135s; }
  #main > *:nth-child(5) { animation-delay: .18s; }
  #main > *:nth-child(n+6) { animation-delay: .22s; }
}
@keyframes rvRise { from { opacity: 0; transform: translateY(9px); } }
#main.no-anim > * { animation: none !important; }
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26, 24, 22, .09); }
.stat-value, .rs-kpi .n, .dash-kpi b { font-variant-numeric: tabular-nums; }
.btn { transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.965); }
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: rgba(178, 92, 32, .045); }
.nav-item { transition: background .15s ease, color .15s ease, padding-left .15s ease; }
.nav-item:hover { padding-left: 18px; }
.reno-fbrow { display: flex; gap: 6px; margin: -2px 0 8px 6px; }
.reno-fbrow button { background: #fff; border: 1px solid var(--ink-line); border-radius: 999px; width: 32px; height: 27px; font-size: 13px; cursor: pointer; line-height: 1; transition: all .15s ease; }
.reno-fbrow button:hover { border-color: var(--accent); transform: translateY(-1px); }


/* ═══ v0.3.7 · placeholders inequívocos ═══ */
input::placeholder, textarea::placeholder { color: #b8b1a6 !important; font-style: italic; opacity: 1; }


/* ═══ v0.4.0 · dropzone facturas ═══ */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--ink-line); border-radius: 14px; padding: 26px 18px; text-align: center; cursor: pointer; color: var(--ink-soft); font-size: 15px; transition: all .18s ease; background: #fff; margin-bottom: 12px; }
.dropzone b { color: var(--ink); font-size: 15.5px; }
.dropzone.ready { border-color: #4a8c64; border-style: solid; background: #f3f9f5; }


/* ═══ v0.4.1 · paleta de comandos + intención + vacíos + cristal ═══ */
#cmdk { position: fixed; inset: 0; z-index: 8000; background: rgba(26, 24, 22, .35); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; opacity: 0; transition: opacity .15s ease; }
#cmdk.open { opacity: 1; }
.cmdk-panel { width: min(560px, calc(100vw - 32px)); background: rgba(253, 251, 247, .88); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-radius: 16px; box-shadow: 0 30px 80px rgba(26, 24, 22, .35); overflow: hidden; border: 1px solid rgba(26, 24, 22, .08); transform: translateY(-8px) scale(.98); transition: transform .15s ease; }
#cmdk.open .cmdk-panel { transform: none; }
.cmdk-panel input { width: 100%; border: none; background: transparent; padding: 18px 20px; font-size: 16px; font-family: inherit; outline: none; border-bottom: 1px solid var(--ink-line); color: var(--ink); }
.cmdk-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.cmdk-item.sel, .cmdk-item:hover { background: rgba(178, 92, 32, .12); }
.cmdk-hint { padding: 9px 16px; font-size: 11px; color: var(--ink-soft); border-top: 1px solid var(--ink-line); display: flex; gap: 16px; }
kbd.kk { border: 1px solid var(--ink-line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 11px; background: #fff; font-family: inherit; color: var(--ink); }
.kk-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; text-align: right; }
.intent-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: linear-gradient(120deg, #fdf6ec, #faf1e2); border: 1px solid #ecd9bd; border-radius: 14px; padding: 13px 16px; margin-bottom: 16px; font-size: 14.5px; flex-wrap: wrap; }
.intent-card > div { display: flex; gap: 8px; align-items: center; }
.empty-state { text-align: center; padding: 36px 16px; }
.es-icon { font-size: 36px; margin-bottom: 8px; }
.empty-state b { font-family: 'Fraunces', Georgia, serif; font-size: 17.5px; display: block; }
.empty-state p { max-width: 430px; margin: 7px auto 0; }
.rv-confirm { background: rgba(253, 251, 247, .82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(26, 24, 22, .07); }
#renoPanel { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
@media (max-width: 880px) { .kk-hint { display: none; } }


/* ═══ v0.4.2 · gráfico panel legible + empatía ═══ */
.dchart { padding: 4px 2px 2px; }
.dchart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; flex-wrap: wrap; }
.dchart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.dk-r { background: #1a1816; } .dk-c { background: #b25c20; } .dk-f { background: #d9c8ae; }
.dchart-bars { display: flex; gap: 10px; align-items: stretch; height: 200px; }
.dc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dc-col b { font-family: 'Fraunces', Georgia, serif; font-size: 13.5px; min-height: 17px; line-height: 1; }
.dc-track { flex: 1; width: 100%; max-width: 44px; display: flex; align-items: flex-end; border-bottom: 1.5px solid var(--ink-line); }
.dc-fill { width: 100%; display: flex; flex-direction: column; border-radius: 4px 4px 0 0; overflow: hidden; }
.dc-fill i { display: block; width: 100%; min-height: 3px; }
.dc-col span { font-size: 10.5px; color: var(--ink-soft); text-transform: capitalize; }
.dc-col.today span { color: var(--accent); font-weight: 700; }
.empathy-card { display: flex; align-items: center; gap: 14px; background: #fdf9f0; border: 1px solid #ecdfc3; border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; font-size: 15px; flex-wrap: wrap; }
.empathy-card b { font-family: 'Fraunces', Georgia, serif; }
.empathy-card p { margin: 3px 0 0; max-width: 520px; }
.empathy-card button { margin-left: auto; }


/* ═══ v1.1.0 · banner modo demo (Bug 2) ═══ */
#demoBanner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; background: linear-gradient(135deg, #1a1816, #2e2a26); color: #faf8f3; font-size: 14px; box-shadow: 0 -6px 24px rgba(26,24,22,.2); }
#demoBanner span { font-weight: 500; }
@media (max-width: 880px) { #demoBanner { bottom: calc(64px + env(safe-area-inset-bottom)); font-size: 13px; padding: 10px 12px; } }

/* ═══ v10.1 T5+T21 · pulido premium (vía variables, ambos temas) ═══ */
input:focus, textarea:focus, select:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-glow); outline: none; }
.btn-primary { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active, .btn-primary:active, .btn-ghost:active { transform: scale(.97); }
.card { transition: transform .18s ease, box-shadow .18s ease, background-color .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shimmer, .generating { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-card) 50%, var(--bg-soft) 75%) !important; background-size: 200% 100% !important; animation: rvShimmer 1.4s infinite; color: transparent !important; border-radius: var(--radius); }
@keyframes rvShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══ v10.1 lote 2 · premium global (append-only, vía variables, ambos temas) ═══ */
.plan-urg{margin-top:10px;font-size:12.5px;color:var(--accent);font-weight:600;text-align:center}
.plan.featured{box-shadow:0 0 0 2px var(--accent),var(--shadow-lg);position:relative}
/* T7 KPI badges de cambio */
.kpi-badge,.stat-delta.up,.badge-up{color:var(--green);font-weight:700}
.kpi-badge.warn,.badge-warn{color:var(--gold)}
.kpi-badge.down{color:var(--red)}
.stat-value,.rs-kpi .n,.kpi-number,.dc-bval{font-variant-numeric:tabular-nums;letter-spacing:-.01em}
/* T22 empty states */
.empty-state,.es{text-align:center;padding:40px 20px;color:var(--ink-soft)}
.empty-state .es-emoji,.es-emoji{font-size:40px;display:block;margin-bottom:10px;opacity:.85}
.empty-state b{font-family:'Fraunces',Georgia,serif;font-size:17px;color:var(--ink);display:block;margin-bottom:4px}
/* T16 barras de margen horizontales (helper) */
.mbar{height:10px;border-radius:6px;background:var(--bg-soft);overflow:hidden;margin-top:6px}
.mbar>i{display:block;height:100%;border-radius:6px;background:var(--green)}
.mbar.mid>i{background:var(--gold)}.mbar.low>i{background:var(--red)}
/* T6 hero number con gradiente coral (si se usa .hero-number) */
.hero-number{background:var(--gradient-hero,linear-gradient(135deg,var(--accent),#7c3aed));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-weight:800;letter-spacing:-.03em}
/* animación de entrada de sección (T21 refuerzo) */
.card,.stat{will-change:transform}
/* T23 responsive: cards apilan, hero reduce */
@media(max-width:1024px){.kpi4,.stats.kpi4,.dash-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:640px){.kpi4,.stats.kpi4{grid-template-columns:1fr 1fr!important}.hero-number{font-size:2.4rem}.dash-hero h1{font-size:1.5rem}}

/* ═══ v2.4 T6 · hero metric dashboard ═══ */
.hero-metric{text-align:center;padding:30px 24px;margin-bottom:16px}
.hero-metric .hero-label{font-size:12.5px;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.09em;font-weight:600}
.hero-number{font-size:3.4rem;line-height:1.04;margin:6px 0;font-weight:800}
.hero-sublabel{font-size:16px;color:var(--ink)}
.hero-progress{height:8px;background:var(--bg-soft);border-radius:6px;margin:14px auto;max-width:440px;overflow:hidden}
.hero-bar{height:100%;background:var(--gradient-hero,linear-gradient(135deg,var(--accent),#7c3aed));border-radius:6px;transition:width 1.2s ease}
.hero-roi{font-size:13.5px;color:var(--ink-soft)}

/* ═══ v2.5 · COHESIÓN VISUAL (unifica viejo+nuevo, append-only, ambos temas) ═══ */
/* Tipografía Inter consistente + jerarquía */
.view-header h2,.dash-hero h1{font-family:'Inter',-apple-system,sans-serif;font-weight:700;letter-spacing:-.02em}
.view-header .muted,.tab-desc{color:var(--ink-soft)}
/* Tarjetas: todas al mismo lenguaje glass/soft */
.card,.stat,.next-actions,.gcard,.suggestion,.fb-invite,.rs-two{background:var(--bg-card);border:1px solid var(--ink-line);border-radius:var(--radius-lg,16px);box-shadow:var(--shadow-sm)}
.card:hover,.stat:hover,.gcard:hover{box-shadow:var(--shadow-md)}
/* KPIs (T7 look) */
.stats.kpi4{gap:16px}
.stat{padding:18px 20px}
.stat .stat-label{font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-soft);font-weight:600}
.stat .stat-value{font-size:1.9rem;font-weight:800;letter-spacing:-.02em;margin:2px 0}
.stat .stat-delta{font-size:12px;color:var(--ink-soft)}
/* Botones: primario coherente con acento del tema */
.btn-primary{background:var(--accent);color:#fff;border:none;box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--accent-hover,var(--accent));box-shadow:var(--shadow-md)}
.btn-ghost{border:1px solid var(--ink-line);background:transparent;color:var(--ink)}
/* Next-actions (motor) más integrado */
.next-actions{background:linear-gradient(135deg,var(--accent),#7c3aed);color:#fff}
.next-actions h3,.next-actions .na-chip{color:#fff}
.next-actions .na-chip{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2)}
/* Badges de estado con la paleta nueva */
.badge-approved{background:var(--success-bg);color:var(--success)}
.badge-pending{background:var(--warning-bg);color:var(--warning)}
/* Espaciado de vistas */
.main{padding:32px 40px}
@media(max-width:880px){.main{padding:72px 16px calc(88px + env(safe-area-inset-bottom))}}
