/* =========================================================
   ESXTi · Sistema visual
   1. Base        2. Público     3. Auth
   4. Panel       5. Cotizador   6. Documento imprimible
   ========================================================= */

:root {
  --ink: #0C1B2A;
  --ink-2: #16283C;
  --ink-3: #22384F;
  --orange: #F26522;
  --orange-d: #DE5514;
  --orange-soft: #FFF1E8;
  --paper: #FFFFFF;
  --bg: #F4F6F8;
  --bg-2: #FAFBFC;
  --muted: #67788A;
  --muted-2: #8A98A8;
  --line: #E3E8EE;
  --line-2: #EDF1F5;
  --green: #15803D;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(12, 27, 42, .07);
  --shadow-lg: 0 30px 70px rgba(12, 27, 42, .16);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Barlow', 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: #1B2733;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.ico { flex: none; }

/* ---------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 101, 34, .25); }
.btn-primary:hover { background: var(--orange-d); }
.btn-outline { border-color: #D8E0E8; background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: #F1F4F7; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-danger { background: #B91C1C; color: #fff; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; transition: .16s;
}
.icon-btn:hover { background: #F1F4F7; color: var(--ink); }
.icon-danger:hover { background: #FDECEC; color: #B91C1C; }

/* ---------------------------------------------------------- público */
.site { background: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { flex: none; }
.brand-logo { height: 32px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link {
  font-size: 13.5px; font-weight: 500; color: #46586B; position: relative;
  padding: 6px 0; transition: color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}

/* hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 92px 0 104px;
}
.hero-glow {
  position: absolute; width: 780px; height: 780px; right: -240px; top: -320px;
  background: radial-gradient(circle, rgba(242, 101, 34, .30), transparent 62%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.eyebrow-light { color: #FF9B63; }
.hero h1 {
  color: #fff; font-size: clamp(46px, 5.6vw, 74px); font-weight: 700;
  line-height: .98; letter-spacing: -.035em; margin: 0 0 22px;
}
.hero h1 .accent { color: var(--orange); }
.hero .lead {
  font-size: 17.5px; line-height: 1.6; color: #B7C4D3; max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero-checks { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-checks li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #A9B9C9; }
.hero-checks .ico { color: #FF9B63; }

.hero-visual { position: relative; padding: 6px 10px; min-width: 0; }
.mini-doc {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .38);
  transform: rotate(-2.2deg); color: #1B2733;
}
.mini-top {
  background: var(--ink-2); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mini-logo { height: 17px; width: auto; }
.mini-title { text-align: right; }
.mini-title b { display: block; font-family: var(--display); font-size: 13px; color: #fff; letter-spacing: .06em; }
.mini-title span { display: block; font-size: 8px; color: #FF9B63; letter-spacing: .12em; margin-top: 2px; }
.mini-body { padding: 18px 18px 20px; }
.mini-label { font-size: 7px; letter-spacing: .16em; color: var(--orange); font-weight: 700; }
.mini-name { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 5px; }
.mini-sub { font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.mini-table { margin: 14px 0 12px; border-top: 1px solid var(--line); }
.mini-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line-2);
  font-size: 10.5px; color: #46586B;
}
.mini-row b { color: var(--ink); font-weight: 600; }
.mini-total {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; border-radius: 6px; padding: 9px 12px;
}
.mini-total span { font-size: 8px; letter-spacing: .14em; color: #AFC0D0; }
.mini-total b { font-family: var(--display); font-size: 16px; color: #fff; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font-size: 11px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.float-chip .ico { color: var(--orange); }
.chip-a { top: -16px; right: -26px; }
.chip-b { bottom: 18px; left: -30px; transform: rotate(2deg); }

/* trust */
.trustbar { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 22px 18px; border-left: 1px solid var(--line-2); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); }
.trust-item span { font-size: 12px; color: var(--muted); }

/* secciones */
.section { padding: 92px 0; }
.section-alt { background: #F7F8FA; }
.section-tight { padding: 68px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 48px; margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 4px; }
.section-lead { max-width: 400px; font-size: 15px; color: var(--muted); line-height: 1.65; padding-bottom: 4px; }
.section-head.compact { margin-bottom: 26px; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-card {
  display: flex; flex-direction: column; min-height: 232px;
  padding: 26px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; transition: .22s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D6DEE7; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.service-icon {
  width: 50px; height: 50px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange-soft); color: var(--orange);
}
.service-num { font-family: var(--display); font-size: 13px; color: #C3CED9; font-weight: 600; letter-spacing: .1em; }
.service-card h3 { font-size: 22px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.service-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 22px;
  font-size: 13px; font-weight: 600; color: var(--orange);
}
.service-link .ico { transition: transform .18s; }
.service-card:hover .service-link .ico { transform: translateX(4px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 2px solid var(--line); padding-top: 24px; }
.step-num { font-family: var(--display); font-size: 46px; font-weight: 700; color: #E4EAF0; line-height: 1; }
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.cta-band {
  background: var(--ink); border-radius: 26px; padding: 52px 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; width: 460px; height: 460px; right: -120px; top: -220px;
  background: radial-gradient(circle, rgba(242, 101, 34, .28), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin: 4px 0 10px; }
.cta-band p { color: #B7C4D3; font-size: 14.5px; max-width: 460px; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; flex: none; position: relative; z-index: 1; }

/* servicio */
.page-hero { background: #F7F8FA; padding: 40px 0 62px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 34px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.page-hero h1 { font-size: clamp(40px, 5vw, 62px); margin: 4px 0 14px; }
.page-lead { font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.6; }
.service-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 56px; align-items: start; }
.service-article h2 { font-size: 30px; margin-bottom: 14px; }
.service-article > p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.notice-card {
  display: flex; gap: 16px; padding: 22px; margin: 28px 0 36px;
  background: var(--orange-soft); border: 1px solid #FFE1CE; border-radius: 14px;
}
.notice-icon {
  width: 42px; height: 42px; border-radius: 11px; background: #fff; color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.notice-card b { color: var(--ink); font-size: 14px; }
.notice-card p { color: #8A5A3C; font-size: 13.5px; margin-top: 4px; line-height: 1.6; }
.article-sub { font-size: 18px; margin-bottom: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: #3C4C5C; }
.check-list .ico { color: var(--orange); margin-top: 2px; }
.check-list.small li { font-size: 13.5px; }

.service-aside { position: sticky; top: 100px; }
.contact-card {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 28px;
  position: relative; overflow: hidden;
}
.contact-card h3 { color: #fff; font-size: 26px; margin: 6px 0 10px; }
.contact-card p { color: #B7C4D3; font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
.contact-lines { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-lines a { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #C9D6E2; }
.contact-lines a:hover { color: #fff; }
.aside-note { display: flex; justify-content: space-between; padding: 16px 4px 0; font-size: 12px; color: var(--muted); }
.aside-note b { color: var(--ink); }
.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-service {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
  transition: .18s;
}
.mini-service:hover { border-color: #CFD9E3; box-shadow: var(--shadow); }
.mini-service-ico { color: var(--orange); display: inline-flex; }
.mini-service b { display: block; font-size: 13.5px; color: var(--ink); }
.mini-service small { font-size: 11px; color: var(--muted); }
.mini-service > .ico { margin-left: auto; color: #B8C5D2; }

/* footer */
.site-footer { background: var(--ink); color: #AFC0D0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 14px; }
.footer-tag { font-size: 13px; line-height: 1.6; max-width: 280px; color: #8FA3B8; }
.footer-col h4 { color: #fff; font-family: var(--font); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: #AFC0D0; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11.5px; color: #7C90A6;
}
.footer-bottom a { color: #FF9B63; }

/* ---------------------------------------------------------- auth */
.auth-body { background: #F6F7F9; }
.auth-shell { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }
.auth-brand {
  background: var(--ink); color: #fff; padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 42px;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; width: 620px; height: 620px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(242, 101, 34, .26), transparent 64%);
}
.auth-brand-top, .auth-quote, .auth-foot { position: relative; z-index: 1; }
.auth-logo img { height: 34px; width: auto; }
.auth-kicker { font-size: 10px; letter-spacing: .2em; color: #8FA3B8; margin-top: 26px; }
.auth-title { color: #fff; font-size: clamp(32px, 3.4vw, 46px); margin: 12px 0 16px; letter-spacing: -.03em; }
.auth-title span { color: var(--orange); }
.auth-lead { color: #AFC0D0; font-size: 15px; max-width: 430px; line-height: 1.65; }
.auth-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.auth-list li { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #C9D6E2; }
.auth-list .ico { color: #FF9B63; }
.auth-quote {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px; padding: 18px 20px; max-width: 400px; backdrop-filter: blur(6px);
}
.auth-quote-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; color: #8FA3B8; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.auth-quote-head b { color: #FF9B63; }
.auth-quote-row { display: flex; justify-content: space-between; font-size: 12px; color: #C9D6E2; padding: 7px 0; }
.auth-quote-row b { color: #fff; font-weight: 500; }
.auth-quote-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.auth-quote-total span { font-size: 10px; letter-spacing: .14em; color: #8FA3B8; }
.auth-quote-total b { font-family: var(--display); font-size: 20px; color: var(--orange); }
.auth-foot { font-size: 11px; color: #6F8498; letter-spacing: .06em; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-panel { width: 100%; max-width: 430px; }
.auth-mobile-logo { display: none; margin-bottom: 28px; }
.auth-mobile-logo img { height: 30px; width: auto; }
.auth-form-head { margin-bottom: 26px; }
.auth-form-head h2 { font-size: 32px; margin: 4px 0 8px; }
.auth-form-head p { color: var(--muted); font-size: 14px; }
.auth-legal { font-size: 11px; color: var(--muted-2); margin-top: 26px; text-align: center; }
.auth-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.55; margin-top: 10px; }
.auth-note code, .form-section-help code { background: #EEF2F6; padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.auth-links a:hover { color: var(--orange); }

/* forms */
.form-stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #4A5C6E; }
.field label em { color: var(--orange); font-style: normal; }
.field label small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted-2); font-size: 10.5px; }
.field input, .field select, .field textarea, .select {
  width: 100%; height: 44px; border: 1px solid #DCE3EA; border-radius: 9px;
  padding: 0 12px; font-size: 14px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 101, 34, .13);
}
.field input.is-readonly { background: #F5F7F9; color: var(--muted); }
.field-note { font-size: 11.5px; color: var(--muted-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.field-full { grid-column: 1 / -1; }
.form-section { border-top: 1px solid var(--line-2); padding-top: 18px; margin-top: 6px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section-title { font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.form-section-title span { font-family: var(--display); color: var(--orange); font-size: 12px; letter-spacing: .1em; }
.form-section-help { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--orange); }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert .ico { margin-top: 1px; }
.alert-error { background: #FDECEC; border-color: #F7D2D2; color: #A12424; }
.alert-info { background: #EEF4FF; border-color: #D9E5FB; color: #1E4C9A; }
.alert-success { background: #E9F8EF; border-color: #CDEFD9; color: #166534; }
.alert-list ul { margin: 6px 0 0; padding-left: 18px; }

.req-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 7px; }
.req-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.req-list .ok { color: #166534; }
.req-list .bad { color: #A12424; }

.flashes { display: grid; gap: 10px; margin-bottom: 18px; }
.flash {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 10px; font-size: 13px; border: 1px solid transparent;
}
.flash-ico { display: inline-flex; }
.flash-success { background: #E9F8EF; border-color: #CDEFD9; color: #166534; }
.flash-error { background: #FDECEC; border-color: #F7D2D2; color: #A12424; }
.flash-info { background: #EEF4FF; border-color: #D9E5FB; color: #1E4C9A; }

/* ---------------------------------------------------------- panel */
.admin-body { background: var(--bg); }
.admin-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 50;
  background: var(--ink); padding: 22px 18px; display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar-brand { padding: 2px 6px 22px; }
.sidebar-brand img { height: 30px; width: auto; }
.sidebar-cta { margin-bottom: 22px; box-shadow: none; }
.sidebar-label { display: block; font-size: 9.5px; letter-spacing: .16em; color: #6C8199; margin: 16px 10px 7px; font-weight: 600; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 9px; font-size: 13px; color: #B7C4D3; position: relative;
}
.sidebar-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-link.is-active { background: rgba(255, 255, 255, .09); color: #fff; font-weight: 500; }
.sidebar-link.is-active::before {
  content: ''; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 3px;
  background: var(--orange); border-radius: 0 3px 3px 0;
}
.sidebar-user {
  margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange);
  color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
  flex: none;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-info strong { display: block; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { display: block; color: #7C90A6; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .icon-btn { color: #7C90A6; margin-left: auto; }
.sidebar-user .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.admin-main { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 30px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-toggle { display: none; }
.topbar-eyebrow { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.topbar-title h1 { font-size: 20px; margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar-date { font-size: 11px; color: var(--muted-2); letter-spacing: .04em; }
.admin-content { padding: 26px 30px 64px; width: 100%; max-width: 1400px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-head h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 2px 0 4px; }
.page-head p { color: var(--muted); font-size: 13.5px; }
.page-head .eyebrow { margin-bottom: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-label .ico { color: var(--orange); }
.stat-value { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.stat-foot { font-size: 11.5px; color: var(--muted-2); }
.stat-accent { background: var(--ink); border-color: var(--ink); }
.stat-accent .stat-label { color: #AFC0D0; }
.stat-accent .stat-value { color: #fff; }
.stat-accent .stat-foot { color: #8FA3B8; }

.dash-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 16px; align-items: start; }
.dash-side { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; }
.card-head h3 { font-size: 16px; }
.card-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.card-head-actions .select { width: auto; max-width: 270px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--orange); white-space: nowrap; }
.card-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-eyebrow { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #FF9B63; font-weight: 600; }
.profile-card { padding: 20px; }
.profile-card h3 { color: #fff; font-size: 22px; margin: 6px 0 2px; }
.profile-card > p { color: #8FA3B8; font-size: 12px; }
.profile-rows { margin: 14px 0 16px; display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.profile-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.profile-rows span { color: #8FA3B8; }
.profile-rows b { color: #fff; font-weight: 500; text-align: right; }
.quick-links { display: grid; padding: 4px 8px 10px; }
.quick-links a { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 8px; font-size: 12.5px; color: #3C4C5C; }
.quick-links a:hover { background: #F5F7F9; color: var(--ink); }
.quick-links a .ico:first-child { color: var(--orange); }
.quick-links a .ico:last-child { margin-left: auto; color: #C3CED9; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  text-align: left; font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 9px 14px; background: var(--bg-2);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--bg-2); }
.ta-r { text-align: right; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 11px; color: var(--muted-2); }
.folio-link { font-weight: 600; color: var(--ink); font-size: 12px; }
.folio-link:hover { color: var(--orange); }
.row-actions { display: inline-flex; align-items: center; gap: 2px; }
.row-actions form { display: inline; }
.row-actions .icon-btn { width: 30px; height: 30px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.is-draft { background: #EEF1F4; color: #5A6B7C; }
.is-sent { background: #E8F0FE; color: #1D4ED8; }
.is-won { background: #E6F6EC; color: #15803D; }
.is-lost { background: #FDECEC; color: #B91C1C; }

.empty-state { padding: 44px 24px; text-align: center; }
.empty-state .empty-ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--orange-soft);
  color: var(--orange); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.empty-state h4 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 380px; margin: 0 auto 16px; }
.empty-state.small { padding: 28px 20px; }
.empty-state.small p { margin: 0; }

/* filtros */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-field { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search-field .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-field input {
  width: 100%; height: 40px; border-radius: 9px; border: 1px solid #DCE3EA;
  padding: 0 12px 0 38px; font-size: 13px; background: #fff;
}
.search-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 101, 34, .12); }
.select { height: 40px; padding: 0 34px 0 12px; font-size: 13px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2367788A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.select-sm { height: 36px; font-size: 12.5px; }
.filter-bar .select { width: auto; min-width: 190px; }
.filter-count { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }
.table-card { overflow: hidden; }

/* formulario de cotización */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.quote-main { min-width: 0; }
.quote-main > .card { margin-bottom: 16px; }
.form-card { padding-bottom: 18px; }
.form-card > .grid-2, .form-card > .grid-3, .form-card > .field, .form-card > .hint-box,
.form-card > .logo-row, .form-card > .form-actions, .form-card > .items, .form-card > .items-empty { margin-left: 20px; margin-right: 20px; }
.form-num { font-family: var(--display); color: var(--orange); font-size: 11px; letter-spacing: .12em; margin-right: 6px; }
.card-head h3 { display: block; }
.form-actions { margin-top: 8px; }
.form-two { display: flex; gap: 16px; margin: 0 20px; align-items: flex-start; }
.form-two .field { flex: 1 1 0; min-width: 0; margin-bottom: 8px; }
.form-two textarea { display: block; }
.ta-wrap { height: 200px; border: 1px solid #DCE3EA; border-radius: 9px; overflow: hidden; background: #fff; }
.ta-wrap textarea { width: 100%; height: 100%; border: 0; border-radius: 0; resize: none; padding: 10px 12px; }
.ta-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 101, 34, .13); }
.retention-row {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin: 0 20px 12px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 9px; background: #FBFCFD;
}
.retention-row .check { font-size: 12.5px; color: var(--ink); }
.retention-row .field { margin: 0; width: 88px; }
.retention-row .field input { height: 36px; }
.retention-row .field-note { flex: 1 1 100%; margin: 0; }
[hidden] { display: none !important; }

.hint-box { display: flex; gap: 10px; padding: 11px 14px; border-radius: 9px; background: #F5F7F9; color: var(--muted); font-size: 12px; }
.hint-box .ico { color: var(--orange); }

.items { display: grid; gap: 0; }
.item-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 72px 108px 100px 32px;
  gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-2);
}
.item-row:last-child { border-bottom: 0; }
.item-index { font-family: var(--display); font-size: 11px; color: #B8C5D2; padding-top: 22px; letter-spacing: .06em; }
.item-desc { display: grid; gap: 4px; min-width: 0; }
.item-desc input { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; background: transparent; color: var(--ink); }
.item-desc input { border-bottom: 1px solid #EDF1F5; border-radius: 0; }
.item-desc input:hover { border-color: #E7ECF1; background: #FBFCFD; }
.item-desc input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 2px rgba(242, 101, 34, .1); }
.item-cat { font-size: 10px !important; letter-spacing: .08em; text-transform: uppercase; color: #B0552A !important; font-weight: 600; }
.item-title { font-size: 13.5px !important; font-weight: 600; }
.item-detail { font-size: 11.5px !important; color: var(--muted) !important; }
.item-field { display: grid; gap: 4px; }
.item-field label, .item-total label { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.item-field input { height: 36px; border: 1px solid #DCE3EA; border-radius: 7px; padding: 0 8px; font-size: 12.5px; width: 100%; }
.item-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px rgba(242, 101, 34, .12); }
.item-total { text-align: right; padding-top: 2px; }
.item-total b { display: block; font-size: 12.5px; color: var(--ink); margin-top: 4px; }
.item-row .js-remove { margin-top: 16px; }
.items-empty { padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; }
.items-empty p { margin-bottom: 10px; }

.quote-side { position: sticky; top: 88px; }
.summary-card { padding: 18px; }
.summary-label { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 12px; }
.summary-rows { display: grid; gap: 9px; font-size: 12.5px; }
.summary-rows > div { display: flex; justify-content: space-between; color: var(--muted); }
.summary-rows b { color: var(--ink); font-weight: 500; }
.summary-total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.summary-total span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.summary-total b { font-family: var(--display); font-size: 30px; color: var(--ink); letter-spacing: -.02em; }
.summary-total small { width: 100%; text-align: right; font-size: 10px; color: var(--muted-2); }
.summary-advance { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted); }
.summary-actions { display: grid; gap: 8px; margin-top: 16px; }
.summary-hint { display: flex; gap: 6px; align-items: center; font-size: 10px; color: var(--muted-2); margin-top: 12px; }

/* vista */
.view-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.view-bar-main { display: flex; gap: 12px; align-items: flex-start; }
.view-bar-main > .icon-btn { margin-top: 4px; }
.view-eyebrow { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.view-bar h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0; }
.view-bar p { font-size: 12.5px; color: var(--muted); }
.view-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-form { display: inline-flex; }
.view-hint { display: flex; gap: 10px; align-items: center; background: #FFF8F2; border: 1px solid #FFE2CE; color: #8A4B22; padding: 10px 14px; border-radius: 9px; font-size: 12px; margin-bottom: 16px; }
.view-hint .ico { color: var(--orange); flex: none; }
.more-menu { position: relative; }
.more-panel {
  display: none; position: absolute; right: 0; top: 40px; z-index: 20; min-width: 170px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: var(--shadow);
}
.more-panel.is-open { display: block; }
.more-panel form { display: block; }
.more-panel button {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: none; border: 0; border-radius: 7px; font-size: 12.5px; color: #3C4C5C; cursor: pointer; text-align: left;
}
.more-panel button:hover { background: #F5F7F9; }
.more-panel button.danger { color: #B91C1C; }
.more-panel button.danger:hover { background: #FDECEC; }

/* ---------------------------------------------------------- ajustes */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; border-color: var(--orange); }
.tab .ico { color: var(--orange); }

.logo-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #FBFCFD; }
.logo-preview { width: 180px; height: 74px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 8px; flex: none; }
.logo-preview img { max-height: 100%; width: auto; }
.logo-fields { display: grid; gap: 6px; font-size: 12px; }
.logo-fields input[type=file] { font-size: 12px; }
.settings-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.catalog-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.catalog-list { display: grid; padding: 0 8px 10px; }
.catalog-item { display: grid; grid-template-columns: 1fr auto 32px; gap: 12px; align-items: center; padding: 10px; border-top: 1px solid var(--line-2); }
.catalog-item b { display: block; font-size: 12.5px; color: var(--ink); margin: 2px 0; }
.catalog-item small { display: block; font-size: 11px; color: var(--muted-2); }
.catalog-price { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cat-tag { font-size: 9px; letter-spacing: .1em; color: var(--orange); font-weight: 600; }
.info-card { margin-top: 16px; padding-bottom: 10px; }
.info-card .check-list { padding: 0 20px 10px; }

/* ---------------------------------------------------------- documento */
.sheet-wrap { padding: 8px 0 48px; overflow-x: auto; }
.sheet {
  width: 8.5in; min-height: 11in; margin: 0 auto 24px; background: #fff;
  box-shadow: 0 24px 60px rgba(12, 27, 42, .18);
  display: flex; flex-direction: column; position: relative;
  font-family: var(--font); color: #1B2733; font-size: 10pt;
}
.sheet-band {
  height: 1.16in; background: #0C1B2A; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .55in; flex: none;
}
.sheet-logo { height: .5in; width: auto; }
.logo-plate { background: #fff; border-radius: 8px; padding: 6px 10px; display: inline-flex; }
.logo-plate img { height: .4in; width: auto; }
.sheet-heading { text-align: right; }
.sheet-heading h1 {
  color: #fff; font-family: var(--display); font-size: 27pt; font-weight: 700;
  letter-spacing: .01em; line-height: 1;
}
.sheet-heading p { color: #F26522; font-size: 8.5pt; letter-spacing: .16em; font-weight: 600; margin-top: 4pt; }
.sheet-body { padding: .34in .55in 0; display: flex; flex-direction: column; flex: 1; }

.sheet-client { display: grid; grid-template-columns: 1.55fr .95fr; gap: .28in; }
.sheet-client-main { border-left: 3px solid #F26522; padding-left: .2in; }
.sheet-label { font-size: 7pt; letter-spacing: .16em; color: #F26522; font-weight: 700; }
.sheet-client h2 { font-size: 13.5pt; margin: 3pt 0 1pt; }
.sheet-company { font-size: 8.7pt; color: #1B2733; }
.sheet-client-meta { margin-top: 7pt; display: grid; gap: 2.5pt; }
.sheet-client-meta p { font-size: 7.6pt; color: #67788A; display: grid; grid-template-columns: .66in 1fr; column-gap: 5pt; align-items: baseline; }
.sheet-client-meta span { font-size: 6.4pt; letter-spacing: .08em; text-transform: uppercase; color: #93A3B5; }
.sheet-client-meta b { color: #1B2733; font-weight: 600; }
.sheet-details { background: #F5F7F9; padding: .13in .16in; }
.sheet-details dl { margin: 5pt 0 0; display: grid; gap: 3.2pt; }
.sheet-details dl > div { display: flex; justify-content: space-between; gap: 8pt; }
.sheet-details dt { font-size: 6.3pt; letter-spacing: .1em; color: #93A3B5; }
.sheet-details dd { margin: 0; font-size: 7.4pt; font-weight: 600; color: #1B2733; text-align: right; }
.sheet-subject { margin: .17in 0 .12in; font-size: 8.6pt; color: #3C4C5C; }
.sheet-subject b { color: #F26522; }
.sheet-section {
  font-size: 8.2pt; font-weight: 700; letter-spacing: .16em; color: #0C1B2A;
  border-bottom: 1px solid #E1E7ED; padding-bottom: 4pt; margin-bottom: 5pt;
  text-transform: uppercase;
}
.sheet-section span { color: #F26522; font-family: var(--display); margin-right: 7pt; }

.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th {
  background: #0C1B2A; color: #fff; font-size: 6.6pt; letter-spacing: .08em;
  font-weight: 600; text-align: left; padding: 5.5pt 6pt;
}
.sheet-table td { padding: 6.5pt 6pt; border-bottom: 1px solid #EDF1F5; font-size: 8.4pt; vertical-align: middle; }
.sheet-table .c-num { text-align: center; color: #93A3B5; font-family: var(--display); font-size: 7.4pt; width: .3in; }
.sheet-table th.c-num { color: #AFC0D0; }
.sheet-table .c-qty { text-align: center; width: .45in; }
.sheet-table .c-money { text-align: right; width: 1.02in; white-space: nowrap; }
.sheet-table .c-desc .cat { display: block; font-size: 5.9pt; letter-spacing: .12em; color: #F26522; font-weight: 700; }
.sheet-table .c-desc b { display: block; font-size: 8.5pt; color: #1B2733; }
.sheet-table .c-desc small { display: block; font-size: 6.8pt; color: #67788A; margin-top: 1pt; }
.sheet-table .strong { font-weight: 700; color: #0C1B2A; }

.sheet-totals { width: 3.4in; margin: 7pt 0 0 auto; }
.sheet-totals .trow { display: flex; justify-content: space-between; padding: 3.2pt 0; border-bottom: 1px solid #EDF1F5; font-size: 8.1pt; color: #67788A; }
.sheet-totals .trow b { color: #1B2733; font-size: 8.5pt; }
.sheet-totals .discount b { color: #F26522; }
.sheet-totals .total { background: #0C1B2A; color: #fff; border: 0; padding: 7pt 9pt; margin-top: 2pt; align-items: center; }
.sheet-totals .total span { color: #fff; font-size: 9.4pt; font-weight: 700; letter-spacing: .1em; }
.sheet-totals .total b { color: #F26522; font-family: var(--display); font-size: 13.5pt; }
.sheet-advance { text-align: right; font-size: 6.8pt; color: #8A98A8; margin-top: 3pt; }

.sheet-strip {
  display: grid; grid-template-columns: 1.55fr .95fr; gap: .16in;
  background: #F5F7F9; padding: .12in .16in; margin-top: .2in;
}
.sheet-strip > div > span { display: block; font-size: 6.6pt; letter-spacing: .16em; color: #F26522; font-weight: 700; margin-bottom: 3pt; }
.sheet-strip p { font-size: 7.2pt; color: #67788A; line-height: 1.4; }
.sheet-strip p b { color: #1B2733; font-size: 7.3pt; }
.sheet-strip p.muted { font-size: 6.7pt; color: #8A98A8; margin-top: 2pt; font-style: italic; }
.sheet-note { font-size: 6.8pt; color: #8A98A8; margin-top: .1in; }
.sheet-note b { color: #1B2733; }
.sheet-foot {
  margin-top: auto; display: flex; justify-content: space-between; gap: 10pt;
  border-top: 1px solid #E1E7ED; padding: 5pt 0 4pt; font-size: 6.8pt; color: #8A98A8;
}
.sheet-foot b { color: #0C1B2A; }

/* página 2 */
.sheet-mini { display: flex; align-items: center; justify-content: space-between; padding: .32in .55in 0; }
.sheet-logo-dark { height: .3in; width: auto; }
.sheet-mini span { font-size: 7.3pt; letter-spacing: .09em; color: #67788A; }
.sheet-mini-rule { margin: .07in .55in 0; height: 2pt; background: #F26522; }
.sheet-body-2 { padding-top: .17in; }
.sheet-eyebrow { font-size: 7pt; letter-spacing: .2em; color: #F26522; font-weight: 700; }
.sheet-title2 { font-size: 17.5pt; margin: 3pt 0 4pt; }
.sheet-lead { font-size: 7.9pt; color: #67788A; line-height: 1.45; max-width: 6.6in; }
.sheet-body-2 .sheet-section { margin-top: .17in; }
.sheet-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 4pt .24in; }
.sheet-cond { font-size: 7.4pt; color: #67788A; line-height: 1.4; }
.sheet-cond b { color: #1B2733; }
.sheet-terms { display: grid; gap: 6pt; }
.sheet-term { display: grid; grid-template-columns: .27in 1fr; gap: 2pt; }
.sheet-term .term-num { font-family: var(--display); color: #F26522; font-size: 7.8pt; padding-top: 1pt; }
.sheet-term h4 { font-size: 7.6pt; letter-spacing: .07em; color: #0C1B2A; text-transform: uppercase; }
.sheet-term p { font-size: 7.55pt; color: #67788A; line-height: 1.42; margin-top: 1.5pt; }
.sheet-signs { display: grid; grid-template-columns: 1fr 1fr; gap: .5in; margin-top: .24in; }
.sheet-signs .sign > span { font-size: 6.6pt; letter-spacing: .16em; color: #F26522; font-weight: 700; }
.sheet-signs .sign-line { border-top: 1px solid #C9D3DD; margin: .3in 0 4pt; }
.sheet-signs .sign b { display: block; font-size: 8.4pt; color: #1B2733; }
.sheet-signs .sign small { display: block; font-size: 6.8pt; color: #67788A; }
.sheet-signs .sign p { font-size: 6.6pt; color: #8A98A8; margin-top: 8pt; }
.sheet-cta {
  margin-top: auto; background: #0C1B2A; color: #fff; padding: .13in .2in;
  display: flex; align-items: center; justify-content: space-between; gap: 16pt;
}
.sheet-cta span { display: block; font-size: 6.4pt; letter-spacing: .16em; color: #F26522; font-weight: 700; }
.sheet-cta b { display: block; font-size: 10pt; color: #fff; margin-top: 2pt; }
.sheet-cta-right { text-align: right; }
.sheet-cta-right span { color: #A7B6C6; letter-spacing: .02em; font-weight: 400; }
.sheet-body-2 .sheet-foot { margin-top: 10pt; }

/* impresión */
@media print {
  @page { size: letter; margin: 0; }
  html, body { background: #fff !important; }
  /* Fuerza la impresión de fondos (banda azul, TOTAL, paneles) */
  .sheet, .sheet * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  .sidebar, .topbar, .no-print, .view-hint, .site-header, .site-footer, .flashes, .sidebar-scrim { display: none !important; }
  .admin-main { margin: 0 !important; }
  .admin-content { padding: 0 !important; max-width: none !important; }
  .sheet-wrap { padding: 0 !important; overflow: visible !important; }
  .sheet { box-shadow: none !important; margin: 0 !important; width: 8.5in; height: 11in; min-height: 11in; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-visual { max-width: 440px; width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-side { position: static; }
  .service-layout { grid-template-columns: 1fr; gap: 34px; }
  .service-aside { position: static; }
  .catalog-grid { grid-template-columns: 1fr; }
  .mini-services { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; z-index: 55;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 26px 18px;
    display: none; margin-left: 0; box-shadow: 0 20px 40px rgba(12, 27, 42, .1);
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .nav-link.is-active::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { margin-left: auto; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.is-open { transform: none; }
  .admin-main { margin-left: 0; }
  .topbar-toggle { display: inline-flex; }
  .sidebar-scrim {
    display: none; position: fixed; inset: 0; background: rgba(12, 27, 42, .45); z-index: 45;
  }
  .sidebar-scrim.is-open { display: block; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-main { min-height: 100vh; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-lead { max-width: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  .ta-wrap { height: 170px; }
  .container { padding: 0 20px; }
  .float-chip { display: none; }
  .hero-grid { gap: 34px; }
  .hero-visual { max-width: 100%; }
  .hero { padding: 64px 0 76px; }
  .hero h1 { font-size: 44px; }
  .hero-checks { gap: 12px; }
  .hero-checks li { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .settings-two { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 20px 18px 50px; }
  .topbar { padding: 12px 18px; }
  .item-row { grid-template-columns: 24px 1fr 32px; gap: 6px; }
  .item-field, .item-total { grid-column: 2; display: inline-grid; grid-template-columns: 60px 1fr; align-items: center; gap: 8px; }
  .item-field label, .item-total label { text-align: left; }
  .item-total { text-align: left; }
  .item-row .js-remove { grid-column: 3; grid-row: 1; margin-top: 2px; }
  .view-actions { width: 100%; }
  .filter-count { margin-left: 0; width: 100%; }
  .mini-services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .sheet { margin: 0 0 16px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 14px; }
  .brand-logo { height: 27px; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .logo-row { flex-direction: column; }
}
