:root { --bg:#f6f7fb; --card:#ffffff; --text:#172033; --muted:#667085; --line:#d9deea; --brand:#1d4ed8; --brand2:#0f766e; }
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--brand); text-decoration:none; font-weight:700; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:16px 28px; background:var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; }
.brand { display:flex; align-items:center; gap:12px; color:var(--text); }
.brand-logo { width:54px; height:54px; object-fit:contain; flex:0 0 auto; }
.brand-text { font-size:22px; line-height:1.05; }
nav { display:flex; gap:18px; }
.container { max-width:1080px; margin:0 auto; padding:32px 20px 60px; }
.hero, .result, .cta, .form-card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:28px; margin-bottom:28px; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.hero-home { display:grid; grid-template-columns:180px minmax(0,1fr); gap:26px; align-items:center; }
.hero-logo-wrap { display:flex; justify-content:center; align-items:center; }
.hero-logo { width:170px; max-width:100%; height:auto; display:block; }
.hero-home-copy h1 { margin-top:6px; }
h1 { font-size:42px; line-height:1.05; margin:8px 0 12px; }
h2 { margin-top:28px; }
.lead, .hero p, .card p, .cta p { color:var(--muted); font-size:18px; line-height:1.55; }
.eyebrow { color:var(--brand2); text-transform:uppercase; letter-spacing:.08em; font-weight:700; font-size:13px; }
.button { display:inline-block; margin-top:12px; background:var(--brand); color:white; padding:12px 18px; border-radius:12px; border:0; cursor:pointer; font-size:16px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.grid.two { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:20px; }
.pill { display:inline-block; background:#e0f2fe; color:#075985; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:700; }
fieldset { border:1px solid var(--line); border-radius:14px; padding:18px; margin:18px 0; }
legend { font-weight:700; padding:0 8px; }
.option { display:block; padding:10px 12px; margin:8px 0; border:1px solid var(--line); border-radius:10px; background:#fbfcff; }
.option:hover { background:#f1f5ff; }
.row { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
input[type="text"], input[type="email"] { width:100%; padding:10px; border:1px solid var(--line); border-radius:10px; margin-top:6px; }
.score { background:#eef2ff; padding:12px 14px; border-radius:12px; display:inline-block; }
.table-wrap { overflow:auto; background:var(--card); border-radius:14px; border:1px solid var(--line); }
table { border-collapse:collapse; width:100%; min-width:850px; }
th, td { padding:12px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; }
th { background:#f8fafc; }
@media (max-width: 640px) { h1 { font-size:32px; } .topbar { align-items:flex-start; flex-direction:column; gap:10px; } .brand-logo { width:48px; height:48px; } .hero-home { grid-template-columns:1fr; text-align:left; } .hero-logo-wrap { justify-content:flex-start; } .hero-logo { width:120px; } }

.wide { margin-bottom:18px; }
.note { color:var(--muted); border-left:4px solid var(--line); padding-left:12px; font-size:16px; }
.card h2 { margin-top:0; }

.text-block { white-space: pre-line; }


/* Resultado — devolutiva organizada */
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}
.result-hero__copy,
.result-panel,
.result-summary-card,
.result-section,
.next-step-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15,23,42,.055);
}
.result-hero__copy { padding: 30px; }
.result-hero__copy h1 { margin-bottom: 14px; }
.result-panel {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.result-panel__item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.result-panel__item.full { grid-column: 1 / -1; }
.result-panel__item span,
.section-kicker,
.mini-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.result-panel__item strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}
.result-panel__item.full strong { font-size: 18px; }
.result-summary-card {
  padding: 24px 26px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: center;
  border-left: 6px solid var(--brand2);
}
.result-summary-card h2,
.result-section h2,
.next-step-box h2 { margin: 0; }
.result-summary-card p,
.reading-box p,
.insight-card p,
.action-card p,
.next-step-box p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.result-section { padding: 24px; margin-bottom: 20px; }
.result-section--main { border-top: 5px solid var(--brand); }
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.reading-box {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.reading-box.soft { background: #f8fafc; }
.reading-box .text-block { margin-top: 0; }
.note {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand2);
  border-radius: 12px;
  margin: 18px 0 0;
  padding: 14px 16px;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.insight-card,
.action-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcff;
  padding: 20px;
}
.insight-card h3,
.action-card h3 { margin: 0 0 10px; }
.insight-card.positive { border-top: 5px solid var(--brand2); }
.insight-card.warning { border-top: 5px solid #b45309; }
.insight-card.action { border-top: 5px solid var(--brand); }
.action-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wide-action { grid-column: 1 / -1; }
.next-step-box {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.next-step-box h2 {
  font-size: 26px;
  line-height: 1.2;
  max-width: 800px;
}
.next-step-box .button { white-space: nowrap; margin-top: 0; }
@media (max-width: 860px) {
  .result-hero,
  .result-summary-card,
  .insight-grid,
  .action-layout { grid-template-columns: 1fr; }
  .next-step-box { align-items: flex-start; flex-direction: column; }
  .next-step-box .button { white-space: normal; }
}
@media (max-width: 640px) {
  .result-hero__copy,
  .result-panel,
  .result-summary-card,
  .result-section,
  .next-step-box { padding: 20px; }
  .result-panel { grid-template-columns: 1fr; }
  .result-panel__item.full { grid-column: auto; }
  .result-panel__item strong { font-size: 20px; }
  .next-step-box h2 { font-size: 22px; }
}

.brand small { display:block; color:var(--muted); font-size:11px; font-weight:700; letter-spacing:.03em; margin-top:2px; }
.auth-card { max-width:620px; margin:0 auto; }
.compact-form { margin-top:18px; }
.compact-form label { display:block; font-weight:700; margin-bottom:14px; }
input[type="password"] { width:100%; padding:10px; border:1px solid var(--line); border-radius:10px; margin-top:6px; }
.alert { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:12px; padding:12px 14px; margin:16px 0; font-weight:700; }
.admin-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; }
.button.secondary { background:#f1f5f9; color:var(--text); border:1px solid var(--line); }
@media (max-width: 640px) { .admin-heading { align-items:flex-start; flex-direction:column; } }

/* SEO/GEO content blocks */
.seo-section,
.faq-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.seo-section p,
.faq-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* Admin attribution */
.admin-note {
  background:#f8fafc;
  border:1px solid var(--line);
  border-left:5px solid var(--brand2);
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:18px;
  color:var(--muted);
  line-height:1.5;
}
.admin-note code {
  background:#eef2ff;
  color:var(--brand);
  border-radius:6px;
  padding:2px 6px;
  font-weight:700;
}
.admin-table-wrap table { min-width:1500px; }
.source-pill {
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#ecfeff;
  color:#155e75;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.url-cell {
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
}
