/* ═══════════════ Siempre Tu Web — estilos ═══════════════ */
:root {
  --ink: #12141A;
  --ink-2: #1C1F27;
  --ink-3: #2E3240;
  --ground: #F4F5F0;
  --paper: #FFFFFF;
  --line: #DCDED6;
  --muted: #4A4E5B;
  --muted-light: #B9BCC6;
  --accent: #3A3FD9;
  --accent-hover: #2C31B8;
  --lime: #C6F432;
  --danger: #B42318;
  --ok: #0F7A5C;
  --radius: 16px;
  --radius-lg: 22px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 30px 60px -30px rgba(18, 20, 26, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ground); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.muted-sm { font-size: 13px; color: var(--muted-light); }
.center { text-align: center; }

/* ─── Botones ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 16px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: var(--ink-3); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: var(--lime); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #B4E21C; color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }

/* ─── Navegación ─── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(244, 245, 240, .88); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px var(--font-display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 16px; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 8px; }
}

/* ─── Hero ─── */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 40px; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: var(--ink); color: var(--lime); padding: 8px 14px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 244, 50, .25); }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); margin: 22px 0 20px; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 580px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6F432' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; flex: none; }

.hero-visual { position: relative; min-height: 420px; }
.mock-browser { background: var(--ink); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); width: 92%; }
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.mock-bar span { margin-left: 12px; font-size: 12px; color: var(--muted-light); background: var(--ink-2); padding: 4px 12px; border-radius: 6px; }
.mock-body { background: var(--ground); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mock-line { height: 12px; border-radius: 4px; background: var(--line); }
.mock-line.dark { background: var(--ink); }
.mock-line.big { height: 26px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w85 { width: 85%; }
.mock-hero { height: 130px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #6E72F0); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards b { height: 54px; border-radius: 8px; background: var(--line); }
.mock-phone { position: absolute; right: 0; bottom: -10px; width: 190px; background: var(--ink); border-radius: 28px; padding: 12px; box-shadow: var(--shadow); border: 3px solid var(--ink-3); }
.mock-notch { width: 60px; height: 6px; border-radius: 6px; background: var(--ink-3); margin: 2px auto 12px; }
.mock-chat { background: #E9EDE2; border-radius: 18px; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; justify-content: flex-end; }
.bubble { font-size: 12px; line-height: 1.35; padding: 8px 10px; border-radius: 12px; max-width: 88%; }
.bubble.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: #D5F5B8; align-self: flex-end; border-bottom-right-radius: 4px; }
.mock-badge { position: absolute; left: -8px; bottom: 40px; display: flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(18,20,26,.4); animation: flotar 4s ease-in-out infinite; }
@keyframes flotar { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock-badge { animation: none; } html { scroll-behavior: auto; } }

.rubros { display: flex; align-items: center; gap: 20px; margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rubros > span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rubros ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rubros a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 16px var(--font-display); color: var(--ink); text-decoration: none; background: var(--paper); transition: border-color .15s, background .15s; }
.rubros a:hover { border-color: var(--ink); color: var(--ink); }
.rubros a.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 560px; }
}
@media (max-width: 480px) {
  .mock-phone { width: 150px; }
  .mock-badge { font-size: 12px; }
}

/* ─── Secciones ─── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--paper); border-block: 1px solid var(--line); }
.section.dark { background: var(--ink); color: var(--ground); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 10px; }
.section-head .sub { margin-top: 16px; font-size: 18px; color: var(--muted); }
.dark .section-head .sub, .dark .sub { color: var(--muted-light); }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.kicker.lime { color: var(--lime); }
.note { margin-top: 28px; color: var(--muted-light); }
.note a { color: var(--lime); }

/* ─── Comparativa ─── */
.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.compare-row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; }
.compare-row > span { padding: 18px 22px; display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); }
.compare-head > span { border-top: 0; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--ground); }
.compare-head .us { background: var(--ink); color: var(--lime); }
.compare .tema { font-weight: 600; }
.compare .ellos { color: var(--muted); }
.compare .ellos svg { color: var(--danger); flex: none; margin-top: 3px; }
.compare .nosotros { background: #F5F6FF; font-weight: 500; }
.compare .nosotros svg { color: var(--ok); flex: none; margin-top: 3px; }
@media (max-width: 760px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .compare-row:first-of-type { border-top: 0; }
  .compare-row > span { border-top: 0; padding: 10px 18px; }
  .compare .tema { padding-top: 18px; font-family: var(--font-display); font-size: 18px; }
  .compare .nosotros { margin: 0 12px 16px; border-radius: 10px; }
}

/* ─── Paquetes ─── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan h3 { font-size: 22px; }
.plan .tag { background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.plan-desc { color: var(--muted-light); }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.price span { font-size: 36px; font-weight: 700; letter-spacing: -.03em; }
.price small { font-size: 15px; color: var(--muted-light); font-family: var(--font-body); }
.plan-meta { font-size: 14px; color: var(--lime); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6F432' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan.featured { background: var(--ground); color: var(--ink); border-color: var(--ground); transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.plan.featured .plan-desc, .plan.featured .price small { color: var(--muted); }
.plan.featured .plan-meta { color: var(--accent); }
.plan.featured .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A3FD9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .plan.featured { transform: none; } }

/* ─── Cotizador ─── */
.quote { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.quote-form fieldset { border: 0; padding: 0; margin: 0; }
.quote-form legend { font: 600 18px var(--font-display); margin-bottom: 14px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; min-height: 64px; justify-content: center; transition: border-color .15s, background .15s; }
.seg small { color: var(--muted); font-size: 13px; }
.seg input:checked + span { border-color: var(--accent); background: #F0F1FF; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg-sm span { min-height: 48px; font-weight: 500; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input { flex: 1; accent-color: var(--accent); height: 28px; }
.range-row output { font: 700 22px var(--font-display); min-width: 36px; text-align: right; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.extras label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 48px; font-size: 15px; }
.extras label:has(input:checked) { border-color: var(--accent); background: #F0F1FF; }
.extras input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.extras span { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.quote-result { position: sticky; top: 96px; background: var(--ink); color: var(--ground); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.qr-label { font-size: 14px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.qr-total { font: 700 clamp(40px, 5vw, 52px)/1 var(--font-display); letter-spacing: -.03em; color: var(--lime); }
.qr-range { color: var(--muted-light); font-size: 15px; }
.qr-items { list-style: none; padding: 12px 0; margin: 0; border-block: 1px solid var(--ink-3); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.qr-items li { display: flex; justify-content: space-between; gap: 12px; }
.qr-items li span:last-child { color: var(--muted-light); }
.qr-mant { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.qr-mant input { accent-color: var(--lime); width: 18px; height: 18px; margin-top: 2px; }
.quote-result .hint { color: var(--muted-light); }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } .quote-result { position: static; } }

/* ─── Proceso ─── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li { border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps .num { font: 700 40px var(--font-display); color: var(--accent); }
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); }

/* ─── Portafolio ─── */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.work { display: flex; flex-direction: column; gap: 8px; }
.work-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb.t1 { background: #E8501C; } .work-thumb.t2 { background: var(--accent); } .work-thumb.t3 { background: var(--ok); }
.thumb-mock { position: absolute; inset: 18% 10% -10%; background: var(--ground); border-radius: 10px 10px 0 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
.thumb-mock b { height: 10px; border-radius: 4px; background: var(--line); }
.thumb-mock b:first-child { width: 35%; background: var(--ink); }
.thumb-mock b:nth-child(2) { width: 80%; height: 16px; }
.thumb-mock b:nth-child(3) { width: 55%; height: 16px; }
.thumb-mock span { margin-top: auto; margin-bottom: 18%; font: 700 20px var(--font-display); }
.demo-tag { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.work-rubro { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.work h3 { font-size: 22px; }
.work p { color: var(--muted); }
.work .work-result { color: var(--ok); font-weight: 600; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ─── Garantías ─── */
.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.guarantees div { border: 1px solid var(--line); background: var(--ground); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.guarantees h3 { font-size: 20px; }
.guarantees p { color: var(--muted); }

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 19px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 30px var(--font-body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; }

/* ─── Contacto / formularios ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 10px 0 16px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--muted-light); }
.contact-list svg { color: var(--lime); flex: none; }
.contact-list a { color: var(--lime); font-weight: 600; }
.card-form { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea, .form-control { font: 400 16px var(--font-body); color: var(--ink); padding: 12px 14px; border: 1px solid #A5A9B4; border-radius: 10px; background: #fff; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(58, 63, 217, .35); border-color: var(--accent); }
.field .input-validation-error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; font-weight: 500; }
.form-error:empty, .form-error.validation-summary-valid { display: none; }
.form-error { background: #FEF3F2; color: var(--danger); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.form-error ul { margin: 0; padding-left: 18px; }
.field-check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.field-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.quote-attached { background: #F0F1FF; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ─── Footer ─── */
.footer { background: var(--ink); color: var(--muted-light); padding: 64px 0 28px; border-top: 1px solid var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand strong { font: 700 22px var(--font-display); color: #fff; }
.footer-brand p { margin-top: 10px; max-width: 340px; }
.footer-h { font: 600 13px var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--muted-light); text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer .libro { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink-3); border-radius: 10px; padding: 8px 12px; color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-3); font-size: 14px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #1FAF55; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45); z-index: 60; transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ─── Páginas internas ─── */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.page .lead { margin-bottom: 32px; }
.page-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.page-card h2 { font-size: 22px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin: 28px 0 10px; font-size: 22px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }

/* ─── Admin ─── */
.admin { padding: 32px 0 64px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; align-items: center; }
.admin-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; background: var(--paper); border: 1px solid var(--line); }
.admin-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-nav form { margin-left: auto; }
.admin h1 { font-size: 30px; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.stat strong { font: 700 28px var(--font-display); }
.stat span { font-size: 14px; color: var(--muted); }
.stat.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.table-box { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--ground); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); white-space: nowrap; }
.badge-Nuevo { background: #E0E2FF; color: #2A2FA8; }
.badge-Contactado { background: #FFF1D6; color: #8A5300; }
.badge-PropuestaEnviada { background: #E3F2FF; color: #0B5394; }
.badge-Ganado { background: #DCF5E8; color: #0B6B4F; }
.badge-Perdido { background: #F1F1F1; color: #555; }
.alert-ok { background: #DCF5E8; color: #0B6B4F; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 8px; } }


/* ═══════════════ v2: secciones nuevas ═══════════════ */
.topbar { transition: box-shadow .2s; }
.topbar.scrolled { box-shadow: 0 8px 24px -16px rgba(18, 20, 26, .35); }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(58, 63, 217, .10), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(198, 244, 50, .18), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 60%);
}
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* Mockup del hero más rico */
.mock-nav { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.mock-nav b { height: 8px; width: 36px; border-radius: 4px; background: var(--line); }
.mock-nav b.logo { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); margin-right: auto; }
.mock-nav b.cta { width: 54px; height: 20px; border-radius: 6px; background: var(--accent); }
.w70 { width: 70%; }
.mock-btns { display: flex; gap: 8px; margin: 4px 0 8px; }
.mock-btns b { width: 90px; height: 28px; border-radius: 8px; background: var(--accent); }
.mock-btns b.ghost { background: transparent; border: 2px solid var(--ink); }
.chat-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: auto; }
.chat-head span { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.mock-chat { min-height: 230px; }
.mock-score { position: absolute; right: 150px; top: -14px; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 16px 30px -18px rgba(18,20,26,.4); }
.mock-score small { font-weight: 400; color: var(--muted); }
.mock-score .ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) 0 92%, var(--line) 0); }
.mock-score .ring b { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; color: var(--ok); font: 700 13px var(--font-display); }
@media (max-width: 480px) { .mock-score { right: auto; left: 0; top: -20px; } }

/* Franja de promesas */
.promesas { background: var(--ink); color: var(--ground); }
.promesas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promesas-grid > div { padding: 28px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--ink-3); }
.promesas-grid > div:first-child { border-left: 0; padding-left: 0; }
.promesas strong { font: 700 clamp(26px, 3vw, 34px) var(--font-display); color: var(--lime); letter-spacing: -.02em; }
.promesas span { font-size: 14px; color: var(--muted-light); }
@media (max-width: 760px) {
  .promesas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promesas-grid > div { padding: 20px 12px; border-left: 0; border-top: 1px solid var(--ink-3); }
  .promesas-grid > div:nth-child(-n+2) { border-top: 0; }
  .promesas-grid > div:nth-child(odd) { padding-left: 0; }
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.service { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(18,20,26,.45); border-color: #C9CCC2; }
.service-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--lime); margin-bottom: 6px; }
.service h3 { font-size: 20px; }
.service p { color: var(--muted); }

/* Dolores del rubro */
.pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pains li { display: flex; gap: 12px; align-items: flex-start; background: #FFF6F4; border: 1px solid #F6D5CF; border-radius: var(--radius); padding: 22px; font-weight: 500; line-height: 1.45; }
.pains svg { color: var(--danger); flex: none; margin-top: 1px; }
.note-dark { margin-top: 28px; color: var(--muted); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.quote-card { margin: 0; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.stars { letter-spacing: 2px; font-size: 18px; color: #C9CCC2; }
.stars .on { color: #E8A317; }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.6; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar { display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 700 16px var(--font-display); }
.quote-card figcaption span { display: flex; flex-direction: column; }
.quote-card small { color: var(--muted); font-size: 14px; }

/* Auditoría gratis */
.audit { background: var(--ink); color: var(--ground); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.audit::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(198,244,50,.22), transparent 70%); pointer-events: none; }
.audit h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 12px; }
.audit p:not(.kicker) { color: var(--muted-light); max-width: 620px; }
@media (max-width: 760px) { .audit { grid-template-columns: 1fr; } }

/* Contacto */
.mini-steps { margin-top: 32px; padding: 20px; border: 1px solid var(--ink-3); border-radius: var(--radius); color: var(--muted-light); }
.mini-steps strong { color: #fff; }
.mini-steps ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* WhatsApp flotante con etiqueta */
.wa-float::before { content: attr(data-tooltip); position: absolute; right: 70px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.wa-float:hover::before, .wa-float:focus-visible::before { opacity: 1; transform: none; }

/* Barra de acciones en móvil */
.mobile-cta { display: none; }
.btn-ghost-light { border-color: var(--ink-3); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
@media (max-width: 640px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 20, 26, .96); backdrop-filter: blur(8px); transition: transform .25s; }
  .mobile-cta.oculto { transform: translateY(110%); }
  .mobile-cta .btn { min-height: 48px; }
  .wa-float { display: none; }
  body:not(.is-admin) .footer { padding-bottom: 96px; }
}

/* Aparición al hacer scroll (solo si hay JS y movimiento permitido) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: none; }

/* Panel: KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--ink); color: var(--ground); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi > span { font-size: 13px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kpi strong { font: 700 32px var(--font-display); color: var(--lime); }
.kpi strong.warn { color: #FFB020; }
.kpi small { color: var(--muted-light); font-size: 12px; }
.origenes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.origenes li { display: flex; justify-content: space-between; gap: 10px; }
.origenes b { color: var(--lime); }

@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .hero-visual { min-height: 340px; }
}

/* ═══════════════ v3: portada estilo vitrina ═══════════════ */
.hero-center { padding-bottom: 32px; }
.hero-copy-center { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 980px; }
.hero-center h1 { font-size: clamp(42px, 7vw, 92px); letter-spacing: -.045em; line-height: .98; margin: 24px 0 22px; }
.hero-center .lead { max-width: 640px; margin-inline: auto; }
.hero-center .cta-row { justify-content: center; margin-bottom: 14px; }
.hero-note { font-size: 14px; color: var(--muted); }

.marquee { margin-top: clamp(40px, 6vw, 72px); overflow: hidden; padding: 20px 0 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: desfile 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes desfile { to { transform: translateX(calc(-50% - 14px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.shot { position: relative; display: block; width: clamp(300px, 34vw, 520px); flex: none; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(18,20,26,.55); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.shot:nth-child(even) { transform: translateY(24px); }
.shot:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(18,20,26,.65); }
.shot img { width: 100%; height: auto; display: block; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ink); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.shot-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted-light); background: var(--ink-2); padding: 3px 10px; border-radius: 6px; }
.shot-label { position: absolute; left: 14px; bottom: 14px; background: rgba(18,20,26,.85); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.rubros-center { justify-content: center; border-top: 0; margin-top: 8px; padding-top: 0; }

/* Hero de rubro con demo real */
.hero-demo { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 40px 80px -36px rgba(18,20,26,.6); transform: rotate(1.2deg); transition: transform .3s; text-decoration: none; }
.hero-demo:hover { transform: rotate(0) translateY(-4px); }
.hero-demo img { width: 100%; height: auto; display: block; }
.hero-demo-tag { position: absolute; right: 16px; bottom: 16px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 999px; }

/* Galería de diseños */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 28px; }
.gal-card { display: flex; flex-direction: column; gap: 16px; }
.gal-img { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 16 / 10; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.gal-img:hover img, .gal-img:focus-visible img { transform: scale(1.04); }
.gal-hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18,20,26,.55); color: #fff; font-weight: 700; font-size: 17px; opacity: 0; transition: opacity .25s; }
.gal-img:hover .gal-hover, .gal-img:focus-visible .gal-hover { opacity: 1; }
.gal-body { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.gal-body h3 { font-size: 22px; margin-top: 2px; }
.gal-desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.gal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gal-card.match .gal-img { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }

/* ═══════════════ v4: vista previa con foto real ═══════════════ */
.dp { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.dp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
.dp-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 6% 7%;
  background: linear-gradient(90deg, rgba(10, 8, 6, .78) 0%, rgba(10, 8, 6, .45) 55%, rgba(10, 8, 6, .05) 100%); color: #fff; }
.dp-nav { display: flex; align-items: center; gap: 8px; }
.dp-nav b { font: 700 clamp(11px, 1.1vw, 15px) var(--dp-font); margin-right: auto; letter-spacing: -.01em; }
.dp-nav i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); }
.dp-title { font: 700 clamp(18px, 2.2vw, 32px)/1.05 var(--dp-font); letter-spacing: -.02em; max-width: 62%; text-wrap: balance; }
.dp-btns { display: flex; gap: 8px; }
.dp-btns i { width: 70px; height: 20px; border-radius: 999px; background: var(--dp-accent); }
.dp-btns i.o { background: transparent; border: 2px solid rgba(255,255,255,.8); width: 60px; }
.gal-img .dp { aspect-ratio: auto; height: 100%; }
.gal-img .dp img { transition: transform .6s ease; }
.gal-img:hover .dp img, .gal-img:focus-visible .dp img { transform: scale(1.04); }
.gal-img .gal-hover { z-index: 2; }
.shot-label { z-index: 2; }
.hero-demo .dp-title { font-size: clamp(20px, 2.6vw, 36px); }
.dp img { color: transparent; }

/* ═══════════════ v5: rubros como tarjetas con foto ═══════════════ */
.rubros-grid-wrap { margin-top: clamp(28px, 4vw, 48px); }
.hero:not(.hero-center) .rubros-grid-wrap { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.rubros-titulo { text-align: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.hero:not(.hero-center) .rubros-titulo { text-align: left; }
.rubros-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rubro-card { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 14px 10px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.rubro-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--line); color: transparent; }
.rubro-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rubro-txt strong { font: 600 16px/1.2 var(--font-display); letter-spacing: -.01em; }
.rubro-txt small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rubro-arrow { flex: none; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.rubro-card:hover { transform: translateY(-3px); border-color: #C9CCC2; box-shadow: 0 18px 36px -26px rgba(18,20,26,.5); color: var(--ink); }
.rubro-card:hover .rubro-arrow { transform: translateX(3px); color: var(--accent); }
.rubro-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.rubro-card.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rubro-card.on small, .rubro-card.on .rubro-arrow { color: var(--lime); }
@media (max-width: 1000px) { .rubros-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .rubros-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rubro-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px; min-height: 0; }
  .rubro-card img { width: 100%; height: 64px; }
  .rubro-arrow { display: none; }
  .rubro-txt small { white-space: normal; }
}

/* ═══════════════ v6: panel demo + vista celular ═══════════════ */
.gal-actions { flex-wrap: wrap; }
.btn-cel { display: inline-flex; align-items: center; gap: 6px; }
.panel-demo { background: var(--ink); color: #E9EAEE; }
.panel-demo h2 { color: #fff; font-size: clamp(32px, 4.4vw, 50px); margin: 10px 0 14px; }
.panel-demo .kicker { color: var(--lime); }
.panel-demo .sub { color: #C3C6CF; max-width: 54ch; }
.panel-demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312141A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.panel-demo-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.panel-demo .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.panel-demo .btn-ghost:hover { border-color: #fff; color: #fff; }
.panel-demo .fine { margin-top: 14px; font-size: 14px; color: #9EA2AE; }
.panel-mock { display: grid; grid-template-columns: 56px 1fr; border-radius: 18px; overflow: hidden; background: #F5F6F8; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); text-decoration: none; color: var(--ink); transition: transform .3s; border: 1px solid rgba(255,255,255,.1); }
.panel-mock:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--ink); }
.pm-side { background: #1C1F27; padding: 18px 12px; display: flex; flex-direction: column; gap: 12px; }
.pm-side i { height: 26px; border-radius: 8px; background: rgba(255,255,255,.08); }
.pm-side i:first-child { background: #B4441F; height: 32px; margin-bottom: 8px; }
.pm-side i.on { background: rgba(255,255,255,.22); }
.pm-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-kpis b { background: #fff; border: 1px solid #E6E7EB; border-radius: 12px; padding: 12px; font: 700 clamp(16px, 2vw, 22px) var(--font-display); }
.pm-kpis small { display: block; font: 500 12px var(--font-body); color: var(--muted); margin-top: 2px; }
.pm-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; background: #fff; border: 1px solid #E6E7EB; border-radius: 12px; padding: 14px; }
.pm-chart i { flex: 1; background: #E9C2B4; border-radius: 5px 5px 2px 2px; }
.pm-chart i.hoy { background: #B4441F; }
.pm-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E6E7EB; border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: none; }
.pm-row .n { background: #FEE4E2; color: #B42318; } .pm-row .p { background: #FEF0C7; color: #93370D; } .pm-row .c { background: #D1E9FF; color: #175CD3; }
@media (max-width: 900px) { .panel-demo-grid { grid-template-columns: 1fr; } }

/* Modal "Ver en celular" */
.cel-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 20px; background: rgba(12,13,18,.82); backdrop-filter: blur(6px); }
.cel-modal[hidden] { display: none; }
.cel-phone { position: relative; width: 390px; height: min(800px, calc(100vh - 40px)); border-radius: 50px; padding: 12px; background: #0B0C10; box-shadow: 0 0 0 2px #2E3240, 0 50px 100px -30px rgba(0,0,0,.9); flex: none; }
.cel-phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 999px; background: #0B0C10; z-index: 2; }
.cel-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 40px; background: #fff; display: block; }
.cel-info { color: #fff; max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.cel-info h3 { font-size: 28px; }
.cel-info p { color: #C3C6CF; }
.cel-info .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cel-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cel-close:hover { background: rgba(255,255,255,.22); }
body.cel-abierto { overflow: hidden; }
@media (max-width: 820px) { .cel-info { display: none; } .cel-phone { width: min(390px, 100%); } }
@media (max-width: 480px) { .cel-modal { padding: 0; } .cel-phone { width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; } .cel-phone::before { display: none; } .cel-phone iframe { border-radius: 0; } .cel-close { top: auto; bottom: 16px; right: 16px; background: #12141A; box-shadow: 0 6px 20px rgba(0,0,0,.5); } }

/* ═══════════════ Panel · tablero de analítica ═══════════════ */
.dash-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.dash-head h1 { margin: 0 0 4px; }
.dash-sub { color: var(--muted); margin: 0; font-size: 15px; }
.dash-rango { display: flex; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.dash-rango a { padding: 7px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.dash-rango a.on { background: var(--ink); color: #fff; }

.dash-vacio { background: #FFF8E6; border: 1px solid #F0D492; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.dash-vacio strong { display: block; margin-bottom: 4px; }
.dash-vacio p { margin: 0; color: var(--muted); font-size: 14px; }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-kpi { background: var(--ink); color: var(--ground); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.dash-kpi > span { font-size: 11px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.dash-kpi strong { font: 700 30px/1.1 var(--font-display); color: #fff; }
.dash-kpi strong.lime { color: var(--lime); }
.dash-kpi strong.ok { color: #6EE7B7; }
.dash-kpi strong.warn { color: #FFB020; }
.dash-kpi small { color: var(--muted-light); font-size: 12px; }

.dash-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.dash-card h2 { font: 700 17px var(--font-display); margin: 0 0 2px; }
.dash-card h2.mt { margin-top: 24px; }
.dash-card-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.dash-nota { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.dash-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }

.dash-leyenda { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 2px; vertical-align: -1px; }
.lg-area { background: var(--accent); }
.lg-unicos { background: #8B8FE8; }
.lg-cons { background: var(--lime); }

/* Gráfico principal */
.dash-svg { width: 100%; height: 280px; display: block; overflow: visible; }
.dash-grid { stroke: var(--line); stroke-width: 1; }
.dash-eje { stroke: #C9CCC2; stroke-width: 1.5; }
.dash-ytxt { fill: var(--muted); font-size: 11px; text-anchor: end; }
.dash-xtxt { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.dash-area { fill: rgba(58, 63, 217, .12); }
.dash-linea { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dash-linea-2 { fill: none; stroke: #8B8FE8; stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.dash-bar-cons { fill: var(--lime); }

/* Embudo */
.dash-embudo { display: flex; flex-direction: column; gap: 10px; }
.emb-fila { display: grid; grid-template-columns: 118px 1fr 48px; gap: 10px; align-items: center; }
.emb-nom { font-size: 13px; color: var(--muted); }
.emb-pista { background: var(--ground); border-radius: 7px; height: 22px; overflow: hidden; }
.emb-barra { height: 100%; border-radius: 7px; }
.emb-barra.p1 { background: var(--ink-3); }
.emb-barra.p2 { background: var(--accent); }
.emb-barra.p3 { background: var(--lime); }
.emb-val { text-align: right; font: 700 15px var(--font-display); }

/* Dispositivo y horas */
.dash-disp { display: flex; flex-direction: column; gap: 10px; }
.disp-barra { height: 26px; border-radius: 8px; background: var(--ink-3); overflow: hidden; }
.disp-movil { height: 100%; background: var(--accent); }
.disp-datos { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.disp-datos strong { color: var(--ink); margin-left: 4px; }
.pt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.pt-movil { background: var(--accent); }
.pt-esc { background: var(--ink-3); }
.dash-horas { width: 100%; height: 112px; display: block; }
.hora-bar { fill: var(--accent); opacity: .8; }

/* Listas con barra */
.dash-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.dash-lista li { display: grid; grid-template-columns: minmax(90px, 1.1fr) 1.4fr 42px; gap: 10px; align-items: center; font-size: 13px; }
.li-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.li-pista { background: var(--ground); border-radius: 6px; height: 16px; overflow: hidden; }
.li-barra { height: 100%; background: var(--accent); border-radius: 6px; }
.li-barra.alt { background: var(--ink-3); }
.dash-lista strong { text-align: right; font: 700 14px var(--font-display); }

.dash-privacidad { color: var(--muted); font-size: 12.5px; background: var(--ground); border-radius: 12px; padding: 14px 16px; margin: 4px 0 0; }

@media (max-width: 640px) {
  .dash-svg { height: 220px; }
  .emb-fila { grid-template-columns: 96px 1fr 40px; }
  .dash-kpi strong { font-size: 25px; }
}

/* ═══════════════ Panel · estructura con barra lateral ═══════════════ */
body.is-admin { background: var(--ground); }
.adm { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.adm-side {
  background: var(--ink); color: var(--ground); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px;
}
.adm-marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.adm-marca strong { display: block; font: 700 15px var(--font-display); color: #fff; line-height: 1.2; }
.adm-marca span { font-size: 11px; color: var(--muted-light); text-transform: uppercase; letter-spacing: .08em; }

.adm-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.adm-grupo {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6B7080;
  font-weight: 700; margin: 16px 0 4px; padding: 0 10px;
}
.adm-grupo:first-child { margin-top: 0; }
.adm-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: #C5C8D2; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.2;
}
.adm-nav a svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adm-nav a:hover { background: var(--ink-2); color: #fff; }
.adm-nav a.on { background: var(--ink-3); color: #fff; }
.adm-nav a.on svg { stroke: var(--lime); }

.adm-side-pie { border-top: 1px solid var(--ink-3); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.adm-verweb { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; color: #C5C8D2; text-decoration: none; font-size: 13.5px; }
.adm-verweb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.adm-verweb:hover { background: var(--ink-2); color: #fff; }
.adm-side-pie form { margin: 0; }
.adm-salir {
  width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--ink-3); color: #C5C8D2; font: 500 13.5px var(--font-body);
}
.adm-salir:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.adm-main { min-width: 0; }
.adm-contenido { max-width: 1180px; padding: 30px 32px 56px; }

/* Las vistas traían su propio contenedor del sitio público: aquí sobra */
.adm-contenido .admin,
.adm-contenido .wrap { max-width: none; padding: 0; margin: 0; width: auto; }

/* Cabecera uniforme en todas las pantallas del panel */
.adm-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.adm-head h1 { margin: 0; font: 700 26px var(--font-display); }
.adm-contenido > .alert-ok { margin-bottom: 18px; }

/* Cuadros alineados: misma tarjeta para tablas y bloques */
.adm-contenido .table-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
.adm-contenido .kpis { margin-bottom: 18px; }

@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  /* La lateral pasa arriba: marca y sesión en una fila, y los accesos en otra que se desliza */
  .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap;
              align-items: center; gap: 8px; padding: 10px 12px; }
  .adm-marca { flex: 1 1 auto; padding: 0; min-width: 0; }
  .adm-marca strong { white-space: nowrap; font-size: 14px; }
  .adm-marca span { display: none; }
  .adm-side-pie { order: 2; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px;
                  border-top: 0; padding: 0; margin: 0; }
  .adm-verweb span { display: none; }
  .adm-verweb { padding: 9px; }
  .adm-nav { order: 3; flex: 1 0 100%; flex-direction: row; gap: 4px;
             overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .adm-nav a { white-space: nowrap; padding: 8px 11px; font-size: 13.5px; }
  .adm-grupo { display: none; }
  .adm-contenido { padding: 18px 14px 40px; }
  .adm-head { gap: 10px; }
  .adm-head h1 { font-size: 21px; }
  /* Las tablas se desplazan dentro de su tarjeta en vez de romper la página */
  .adm-contenido .table-box { overflow-x: auto; }
  .adm-contenido .table-box table { min-width: 560px; }
}
}

/* ═══════════════ Alta de la cuenta del panel ═══════════════ */
.registro-intro { color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.field-ayuda { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.registro-aviso {
  background: #FFF8E6; border: 1px solid #F0D492; border-radius: 12px;
  padding: 13px 15px; margin: 18px 0; font-size: 13px; color: #6B5415; line-height: 1.5;
}
.registro-aviso strong { display: block; margin-bottom: 3px; color: #4A3A0C; }
