@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --navy: #06192b;
  --navy-2: #0b2d4e;
  --blue: #1677e8;
  --sky: #49d4ff;
  --ink: #071422;
  --muted: #66788d;
  --paper: #f4f8fc;
  --line: #dce6f0;
  --white: #fff;
  --green: #13a86b;
  --yellow: #f1b43e;
  --red: #d94b4b;
  --shadow: 0 28px 70px rgba(6, 25, 43, .17);
  --soft-shadow: 0 18px 36px rgba(6, 25, 43, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; font-weight: 900; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; font-weight: 900; }
h3 { font-size: 24px; line-height: 1.18; font-weight: 850; }
p { font-size: 17px; line-height: 1.55; color: var(--muted); }

.dark-page {
  background:
    radial-gradient(circle at 82% 36%, rgba(22,119,232,.32), transparent 34%),
    linear-gradient(130deg, #061525 0%, #0c3158 58%, #11599e 100%);
  color: white;
}
.dark-page p { color: #d7e8fa; }
.light-page {
  background:
    radial-gradient(circle at 92% 8%, rgba(22,119,232,.12), transparent 27%),
    linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
}

.site-nav {
  position: fixed;
  left: max(18px, calc((100vw - 1216px) / 2));
  right: max(18px, calc((100vw - 1216px) / 2));
  top: 16px;
  z-index: 50;
  height: 58px;
  border-radius: 30px;
  background: rgba(4, 16, 29, .9);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 46px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  padding: 0 18px 0 24px;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #118dff; font-weight: 900; line-height: .9; }
.brand span:last-child { font-size: 11px; }
.brand-mark { width: 30px; height: 30px; position: relative; display: inline-block; }
.brand-mark:before { content: ""; position: absolute; inset: 4px; background: #118dff; clip-path: polygon(0 55%,18% 55%,18% 100%,0 100%,0 55%,26% 55%,46% 75%,84% 12%,100% 20%,52% 100%); }
.site-nav nav { flex: 1; display: flex; justify-content: center; gap: 28px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 760; }
.site-nav nav a:hover { color: white; }

.btn {
  border: 0;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: white;
  font-weight: 850;
  font-size: 14px;
  box-shadow: 0 16px 32px rgba(22,119,232,.26);
  cursor: pointer;
}
.btn-secondary { background: #eef5ff; color: var(--blue); box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.7); box-shadow: none; }
.btn-green { background: var(--green); box-shadow: 0 18px 34px rgba(19,168,107,.22); }
.btn-block { width: 100%; }

.container { max-width: 1216px; margin: 0 auto; padding: 0 24px; }
.hero, .page-section { min-height: 100vh; padding: 118px 0 72px; display: flex; align-items: center; }
.hero-grid, .two-col { display: grid; grid-template-columns: 1fr 520px; gap: 76px; align-items: center; width: 100%; }
.two-col.wide { grid-template-columns: 1fr 620px; }
.eyebrow { font-size: 12px; font-weight: 900; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; }
.copy p { margin-top: 20px; max-width: 690px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 38px; padding-top: 28px; max-width: 620px; }
.proof strong { display: block; font-size: 31px; line-height: 1; color: white; }
.proof span { display: block; margin-top: 7px; font-size: 13px; color: #c8ddf4; font-weight: 650; }

.panel, .card {
  background: white;
  color: var(--ink);
  border: 1px solid #e1eaf3;
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
  padding: 30px;
}
.panel-dark, .card-dark { background: var(--navy); color: white; border-color: rgba(255,255,255,.08); box-shadow: var(--shadow); }
.panel-dark p, .card-dark p { color: #d8e7f7; }
.score-num { width: 88px; height: 88px; border-radius: 28px; background: linear-gradient(145deg, var(--blue), var(--sky)); color: white; display: grid; place-items: center; font-size: 36px; font-weight: 950; }
.score-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.progress { height: 10px; border-radius: 99px; background: #e4ecf5; overflow: hidden; margin: 26px 0; }
.progress span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--yellow), var(--green)); }
.line-row, .flow-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 760; font-size: 15px; }
.flow-row { padding: 18px; border: 1px solid #e1eaf3; border-radius: 18px; background: white; box-shadow: var(--soft-shadow); }
.dot, .check { width: 32px; height: 32px; border-radius: 12px; background: #e8f7f0; color: var(--green); display: grid; place-items: center; font-weight: 950; flex: 0 0 auto; font-size: 14px; }
.dot-blue { background: #e8f2ff; color: var(--blue); }
.dot-yellow { background: #fff4dd; color: #a36c12; }
.dot-red { background: #fdecec; color: var(--red); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.product-card { min-height: 330px; display: flex; flex-direction: column; }
.product-card ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.product-card li { color: var(--muted); font-weight: 700; font-size: 15px; }
.card-dark li { color: #d7e6f7; }
.product-card li:before { content: "✓"; color: var(--blue); font-weight: 950; margin-right: 10px; }
.price { font-size: 42px; font-weight: 920; color: var(--blue); line-height: 1; margin: 18px 0 8px; }
.mt-auto { margin-top: auto; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field, input, select, textarea {
  width: 100%;
  border-radius: 16px;
  background: #f3f7fb;
  border: 1px solid #dfe8f2;
  color: var(--ink);
  font-weight: 700;
  padding: 14px 16px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.option { border: 1px solid #d7e2ee; background: white; color: var(--ink); border-radius: 18px; padding: 17px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 800; }
.option input { width: auto; }

.result-card { max-width: 930px; margin: 110px auto 60px; }
.status-ring { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yellow) 0 72%, #e6edf5 72% 100%); }
.status-ring.verde { background: conic-gradient(var(--green) 0 82%, #e6edf5 82% 100%); }
.status-ring.rojo { background: conic-gradient(var(--red) 0 42%, #e6edf5 42% 100%); }
.status-ring span { width: 80px; height: 80px; border-radius: 50%; background: white; display: grid; place-items: center; font-size: 28px; font-weight: 950; }
.result-flex { display: flex; align-items: center; gap: 24px; margin: 28px 0; }

.footer { max-width: 1216px; margin: 0 auto; padding: 30px 24px 50px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); }
.footer strong { display: block; color: var(--ink); }

.admin-body { background: #f3f7fb; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-side { background: var(--navy); color: white; padding: 30px 28px; }
.admin-side small { color: #a8bed4; display: block; margin-top: 40px; }
.admin-menu { margin-top: 56px; display: grid; gap: 9px; }
.admin-menu a { padding: 13px 15px; border-radius: 14px; color: #b8cadf; font-weight: 760; font-size: 14px; }
.admin-menu a:hover { background: rgba(22,119,232,.18); color: white; }
.admin-main { padding: 38px 44px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: white; border: 1px solid #e1eaf3; border-radius: 22px; box-shadow: var(--soft-shadow); padding: 20px; }
.kpi span { color: var(--muted); font-size: 13px; font-weight: 820; }
.kpi strong { display: block; margin-top: 8px; font-size: 34px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.table-card { background: white; border: 1px solid #e1eaf3; border-radius: 22px; box-shadow: var(--soft-shadow); padding: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 18px; }
th { text-align: left; color: var(--muted); font-size: 12px; padding-bottom: 13px; }
td { border-top: 1px solid #edf2f7; padding: 15px 8px 15px 0; font-weight: 720; vertical-align: top; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 850; background: #fff3d9; color: #976713; }
.pill.verde { background: #e8f8f0; color: #0d7c4e; }
.pill.rojo { background: #fdecec; color: #b33333; }

.notice { padding: 14px 16px; border-radius: 16px; background: #eef5ff; color: var(--blue); font-weight: 750; margin: 16px 0; }
.error { background: #fdecec; color: #a72a2a; }

@media (max-width: 900px) {
  .site-nav { left: 16px; right: 16px; }
  .site-nav nav { display: none; }
  .site-nav .btn { display: none; }
  .hero-grid, .two-col, .two-col.wide, .admin-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero, .page-section { padding-top: 96px; align-items: flex-start; }
  .proof, .cards-3, .kpis, .form-grid, .options { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-main { padding: 26px 18px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  h2 { font-size: clamp(30px, 10vw, 42px); }
  p { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-nav { height: 56px; padding: 0 18px; }
  .brand span:last-child { font-size: 10px; }
  .hero { min-height: auto; padding-bottom: 42px; }
  .hero .panel { margin-top: 10px; }
  .diagnostic-layout { gap: 18px; }
  .diagnostic-form { order: 1; padding: 22px; }
  .diagnostic-copy { order: 2; }
  .diagnostic-copy h1 { font-size: 34px; }
  .diagnostic-copy p, .diagnostic-copy .flow-row { display: none; }
  .option { min-height: 58px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .result-card { margin: 92px 16px 40px; }
  .result-flex { align-items: flex-start; }
  .footer { flex-direction: column; }
}
