/* ==========================================================================
   MiCubita · sistema de diseño
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfcff;
  --ink: #0b1226;
  --ink-2: #1c2540;
  --muted: #5a6478;
  --muted-2: #8b93a7;
  --line: #e7eaf3;
  --line-strong: #d7dcea;

  --blue: #1d4ed8;
  --blue-600: #1e40af;
  --blue-50: #eef3ff;
  --blue-100: #dce6ff;
  --red: #d91f3a;
  --red-50: #fdeef1;
  --gold: #f2b01e;
  --green: #0e9f6e;
  --green-50: #e8f8f1;
  --amber-50: #fff7e6;
  --amber: #b7791f;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 38, 0.05);
  --shadow-md: 0 14px 34px -16px rgba(11, 18, 38, 0.22);
  --shadow-lg: 0 30px 60px -28px rgba(11, 18, 38, 0.35);

  --maxw: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ------------------------------- Topbar --------------------------------- */

.flag-line {
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 33%, #fff 33% 66%, var(--red) 66% 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2b5cf0, #14318f);
  box-shadow: 0 6px 14px -6px rgba(29, 78, 216, 0.7);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: auto -20% -55% -20%;
  height: 70%; background: rgba(255, 255, 255, 0.16); border-radius: 50%;
}
.brand-mark svg { width: 21px; height: 21px; position: relative; z-index: 1; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { font-size: 17px; letter-spacing: -0.03em; }
.brand-word span { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-weight: 550; font-size: 14.5px;
  padding: 9px 13px; border-radius: 10px;
}
.nav a:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }
.nav a.is-active { color: var(--blue); background: var(--blue-50); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* -------------------------------- Buttons ------------------------------- */

.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #2a5cf0, #1a3fb4);
  box-shadow: 0 10px 24px -12px rgba(29, 78, 216, 0.75);
}
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(29, 78, 216, 0.85); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #b9c3dd; background: var(--surface-2); }

.btn-soft { background: var(--blue-50); color: var(--blue); }
.btn-soft:hover { background: var(--blue-100); }

.btn-red { background: linear-gradient(135deg, #e6364f, #b3122a); }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* --------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -18%, #dbe6ff 0%, rgba(219, 230, 255, 0) 62%),
    radial-gradient(700px 420px at -10% 10%, #eef2ff 0%, rgba(238, 242, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 78, 216, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 380px at 60% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 54px;
  padding-top: 74px;
  padding-bottom: 80px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue); background: #fff; border: 1px solid var(--blue-100);
  padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.14); }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin: 20px 0 0;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #1d4ed8, #5b8bff 60%, #1d4ed8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin-top: 18px; font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--muted); max-width: 540px; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px;
  padding-top: 24px; border-top: 1px dashed var(--line-strong);
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item .ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--blue);
}
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* Tarjeta de tasas del hero */
.rate-card {
  position: relative;
  background: linear-gradient(165deg, #0d1734, #16244f 58%, #0d1734);
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.rate-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px;
  background: radial-gradient(circle, rgba(91, 139, 255, 0.55), transparent 65%);
  filter: blur(6px);
}
.rate-card-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.rate-card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: #cdd8f5; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #9ff0cf;
  background: rgba(14, 159, 110, 0.16); border: 1px solid rgba(14, 159, 110, 0.35);
  padding: 5px 9px; border-radius: 999px;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #2ee6a8; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.rate-rows { margin-top: 20px; display: grid; gap: 10px; position: relative; z-index: 1; }
.rate-row {
  display: flex; align-items: baseline; justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px; padding: 13px 15px;
}
.rate-row .lbl { font-size: 12px; color: #b9c6e8; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.rate-row .val { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.rate-row .val small { font-size: 12px; font-weight: 600; color: #9fb0d8; margin-left: 4px; }

.rate-card-calc {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative; z-index: 1;
}
.rate-card-calc label { font-size: 12px; color: #b9c6e8; font-weight: 600; }
.rate-input-row { display: flex; gap: 8px; margin-top: 8px; }
.rate-input-row input {
  flex: 1; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 600;
  outline: none; min-width: 0;
}
.rate-input-row input:focus { border-color: #7ea2ff; }
.rate-result { margin-top: 12px; font-size: 13px; color: #cdd8f5; }
.rate-result strong { color: #fff; font-size: 22px; display: block; letter-spacing: -0.02em; }
.rate-foot { margin-top: 14px; font-size: 11.5px; color: #8ea1cc; position: relative; z-index: 1; }

/* -------------------------------- Sections ------------------------------ */

.section { padding: 78px 0; }
.section.tight { padding: 54px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.kicker {
  font-size: 12.5px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; }
.section-head p { margin-top: 13px; color: var(--muted); font-size: 16.5px; }

/* --------------------------- Tarjetas de servicio ----------------------- */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.service-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), #6d9bff);
  opacity: 0; transition: opacity 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd8f0; }
.service-card:hover::before { opacity: 1; }
.service-card.red::before { background: linear-gradient(90deg, var(--red), #ff7d8f); }
.service-card.gold::before { background: linear-gradient(90deg, #d99a10, #ffcf5c); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 18px;
}
.icon-badge.red { background: var(--red-50); color: var(--red); }
.icon-badge.gold { background: #fff6e0; color: #a9740a; }
.icon-badge svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 21px; }
.service-card p { color: var(--muted); margin-top: 9px; font-size: 14.8px; flex: 1; }

.service-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.service-meta .from { font-size: 12.5px; color: var(--muted); }
.service-meta .from strong { display: block; color: var(--ink); font-size: 19px; letter-spacing: -0.02em; }
.service-link { font-weight: 650; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* --------------------------------- Pasos -------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong); font-weight: 800; color: var(--blue);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; font-size: 17px;
}
.step h4 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }
.step::after {
  content: ""; position: absolute; top: 30px; left: 58px; right: -26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 13px);
}
.step:last-child::after { display: none; }

/* --------------------------------- Stats -------------------------------- */

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat-cell { background: #fff; padding: 22px 24px; }
.stat-cell strong { display: block; font-size: 27px; letter-spacing: -0.03em; }
.stat-cell span { font-size: 13px; color: var(--muted); }

/* -------------------------------- Combos -------------------------------- */

.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.combo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.2s;
}
.combo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.combo-emoji {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: #fff8e8; border: 1px solid #f6e7c3; margin-bottom: 14px;
}
.combo-card h4 { font-size: 17px; }
.combo-card .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.combo-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.combo-list li { font-size: 13px; color: var(--ink-2); padding-left: 20px; position: relative; }
.combo-list li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
}
.combo-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ------------------------------ Testimonios ----------------------------- */

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.quote-card p { margin: 12px 0 18px; font-size: 14.8px; color: var(--ink-2); }
.quote-who { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #dbe6ff, #b7c9ff); color: #1e40af; font-weight: 700; font-size: 14px;
}
.quote-who strong { display: block; font-size: 14px; }
.quote-who span { font-size: 12px; color: var(--muted); }

/* ---------------------------------- FAQ --------------------------------- */

.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0; font-weight: 650; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--blue); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* ---------------------------- Banner CubaCREA --------------------------- */

.crea-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d1734, #1a2a5c 60%, #101c40);
  color: #fff; border-radius: 24px; padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  box-shadow: var(--shadow-lg);
}
.crea-banner::after {
  content: ""; position: absolute; right: -80px; top: -100px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(242, 176, 30, 0.35), transparent 65%);
}
.crea-banner h3 { font-size: clamp(22px, 2.6vw, 30px); }
.crea-banner p { color: #c3cfee; margin-top: 9px; max-width: 560px; font-size: 15px; }
.crea-banner .btn { position: relative; z-index: 1; background: #fff; color: #0d1734; }

/* --------------------------------- Footer ------------------------------- */

.site-footer { background: #0a1128; color: #c3cce4; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 58px 0 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-word span { color: #8d9bc0; }
.footer-blurb { margin-top: 15px; font-size: 13.8px; color: #93a0c2; max-width: 300px; line-height: 1.65; }
.footer-col h5 { color: #fff; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col a, .footer-col span { display: block; color: #98a5c6; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09); padding: 22px 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #7e8bad;
}
.pay-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pay-chip {
  font-size: 11px; font-weight: 700; color: #cdd7f0; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px; padding: 4px 8px; letter-spacing: 0.03em;
}
.footer-legal { padding: 0 0 34px; font-size: 11.5px; color: #6d7a9c; line-height: 1.65; max-width: 940px; }

/* ==========================================================================
   Páginas internas
   ========================================================================== */

.page-head {
  background: linear-gradient(180deg, #fff, #f7f9ff);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}
.page-head .breadcrumb { font-size: 13px; color: var(--muted-2); margin-bottom: 12px; }
.page-head .breadcrumb a { color: var(--muted); }
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 640px; font-size: 16.5px; }

.page-body { padding: 38px 0 80px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.layout.wide { grid-template-columns: minmax(0, 1fr) 420px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
}
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.panel-head h2, .panel-head h3 { font-size: 19px; letter-spacing: -0.02em; }
.panel-head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.panel-num {
  width: 28px; height: 28px; border-radius: 9px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: 0 0 auto;
}

/* -------------------------------- Formularios --------------------------- */

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.field .req { color: var(--red); }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.13);
}
.input.is-error, .select.is-error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 31, 58, 0.1); }
.textarea { min-height: 88px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6478' d='M6 8 0 1.4 1.4 0 6 4.8 10.6 0 12 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.input-group { display: flex; }
.input-group .prefix {
  display: flex; align-items: center; padding: 0 13px; border: 1px solid var(--line-strong); border-right: 0;
  border-radius: 11px 0 0 11px; background: var(--surface-2); font-size: 14px; font-weight: 650; color: var(--ink-2);
}
.input-group .input { border-radius: 0 11px 11px 0; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: #b9c3dd; }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(29, 78, 216, 0.8); }

/* Opciones tipo tarjeta (canales, pago) */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: 13px; background: #fff; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.choice:hover { border-color: #b9c3dd; }
.choice input { margin-top: 3px; accent-color: var(--blue); width: 17px; height: 17px; flex: 0 0 auto; }
.choice strong { display: block; font-size: 14.5px; }
.choice span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.choice:has(input:checked) { border-color: var(--blue); background: #f7faff; box-shadow: 0 0 0 1px var(--blue) inset; }
.choice .badge-extra { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-50); padding: 3px 8px; border-radius: 999px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.checkbox input { margin-top: 2px; accent-color: var(--blue); width: 16px; height: 16px; flex: 0 0 auto; }

/* --------------------------- Grid de productos -------------------------- */

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card {
  position: relative; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 15px 16px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { border-color: #b9c3dd; transform: translateY(-1px); }
.product-card.is-selected {
  border-color: var(--blue); background: #f8faff;
  box-shadow: 0 0 0 1px var(--blue) inset, 0 10px 22px -16px rgba(29, 78, 216, 0.7);
}
.product-card .pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-card .pc-top > span:first-child { flex: 1; min-width: 0; }
.product-card .pc-name { display: block; font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.product-card .pc-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.product-card .pc-price { display: block; font-size: 17px; font-weight: 750; margin-top: 10px; letter-spacing: -0.02em; }
.product-card .pc-price small { font-size: 11px; color: var(--muted); font-weight: 600; }
.product-card .pc-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--green-50); color: #067a55; padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.product-card .pc-check {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff; display: none; place-items: center; font-size: 12px;
  box-shadow: 0 4px 10px -4px rgba(29, 78, 216, 0.9);
}
.product-card.is-selected .pc-check { display: grid; }
.pc-emoji {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: #fff6e2; border: 1px solid #f4e4bd; margin-bottom: 12px;
  line-height: 1;
}
.pc-tag-abs { position: absolute; top: 14px; right: 14px; }

/* ------------------------------ Resumen --------------------------------- */

.summary {
  position: sticky; top: 90px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 24px;
}
.summary h3 { font-size: 16px; margin-bottom: 16px; }
.summary .item {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px;
}
.summary .item .th {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: 15px; flex: 0 0 auto;
}
.summary .item strong { display: block; font-size: 14px; }
.summary .item span { font-size: 12px; color: var(--muted); }

.summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--muted); }
.summary-row strong { color: var(--ink); font-size: 14px; }
.summary-divider { border: 0; border-top: 1px dashed var(--line-strong); margin: 12px 0; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 4px; }
.summary-total span { font-size: 13px; color: var(--muted); font-weight: 600; }
.summary-total strong { font-size: 28px; letter-spacing: -0.03em; }
.summary-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; margin-top: 10px; }
.summary .btn { margin-top: 16px; }

.payout-box {
  background: linear-gradient(150deg, #0f1c3f, #1a2b5e); color: #fff;
  border-radius: 14px; padding: 18px; margin: 14px 0;
}
.payout-box .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #a9b8e0; font-weight: 700; }
.payout-box .amt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.payout-box .amt small { font-size: 14px; font-weight: 650; color: #b9c6e8; margin-left: 5px; }
.payout-box .meta { font-size: 11.5px; color: #93a3cc; margin-top: 6px; }

/* -------------------------------- Timeline ------------------------------ */

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line-strong); color: var(--muted-2); font-size: 12px; z-index: 1;
}
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-item.current .tl-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.12); }
.tl-item strong { font-size: 14px; display: block; }
.tl-item span { font-size: 12px; color: var(--muted); }
.tl-item p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* -------------------------------- Badges -------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--green-50); color: #067a55; }
.badge.warn { background: var(--amber-50); color: var(--amber); }
.badge.info { background: var(--blue-50); color: var(--blue); }
.badge.bad { background: var(--red-50); color: var(--red); }
.badge.neutral { background: #f1f3f9; color: var(--muted); }

.alert {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  border: 1px solid;
}
.alert.info { background: var(--blue-50); border-color: var(--blue-100); color: #17358f; }
.alert.warn { background: var(--amber-50); border-color: #f3e0b4; color: #7a5a12; }
.alert.bad { background: var(--red-50); border-color: #f7ccd4; color: #97132a; }
.alert.ok { background: var(--green-50); border-color: #c5ecdc; color: #06674a; }
.alert strong { font-weight: 700; }

/* -------------------------------- Tablas -------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
thead th {
  text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted-2); background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 750;
  white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody td:first-child { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
td .sub { font-size: 11.5px; color: var(--muted-2); display: block; margin-top: 2px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------- KPI cards ------------------------------ */

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  box-shadow: var(--shadow-sm);
}
.kpi .k-lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .k-val { font-size: 26px; font-weight: 780; letter-spacing: -0.03em; margin-top: 6px; }
.kpi .k-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.kpi .k-sub.up { color: #067a55; }

/* --------------------------------- Admin -------------------------------- */

.admin-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #0a1128; color: #c3cce4; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { color: #fff; margin-bottom: 26px; padding: 0 8px; }
.admin-side nav { display: grid; gap: 4px; }
.admin-side nav a {
  color: #96a3c7; font-size: 14px; font-weight: 550; padding: 10px 12px; border-radius: 9px;
  display: flex; align-items: center; gap: 10px;
}
.admin-side nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.admin-side nav a.is-active { background: rgba(91, 139, 255, 0.16); color: #fff; }
.admin-side .side-foot { position: absolute; bottom: 18px; left: 16px; right: 16px; font-size: 11px; color: #6d7a9c; }
.admin-main { padding: 26px 30px 60px; background: var(--bg); min-height: 100vh; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 24px; letter-spacing: -0.03em; }
.admin-topbar .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 46px; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #5b8bff, #1d4ed8); min-height: 4px;
  transition: height 0.4s ease;
}
.bar-col span { font-size: 10.5px; color: var(--muted-2); }

/* --------------------------------- Toast -------------------------------- */

.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: grid; gap: 9px; }
.toast {
  background: #0d1734; color: #fff; padding: 13px 17px; border-radius: 12px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; max-width: 360px;
  animation: toastIn 0.25s ease;
}
.toast.ok { border-left: 3px solid #2ee6a8; }
.toast.bad { border-left: 3px solid #ff6b81; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* -------------------------------- Utils --------------------------------- */

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, #eef1f8 25%, #f7f9ff 37%, #eef1f8 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state .big { font-size: 34px; margin-bottom: 10px; }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; padding-top: 52px; padding-bottom: 60px; }
  .hero-lead { max-width: none; }
  .rate-card { max-width: 520px; }
  .service-grid, .combo-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .layout, .layout.wide { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .admin-side .side-foot { position: static; margin-top: 18px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px 18px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open a { padding: 12px; }
  .nav-toggle { display: flex; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 11px 14px; }

  .section { padding: 52px 0; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .service-grid, .combo-grid, .quote-grid, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .crea-banner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 18px 16px 50px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (max-width: 520px) {
  .brand-word span { display: none; }
  .brand-word strong { font-size: 16px; }
  .hero h1 { font-size: 32px; }
}

@media print {
  .site-header, .site-footer, .summary .btn, .toast-wrap { display: none !important; }
  body { background: #fff; }
}
