/* ===== Consig Invest | Marketing Hub ===== */
:root {
  --navy: #081230;
  --navy-2: #0c1a42;
  --navy-3: #122253;
  --royal: #1E4FD8;
  --royal-hover: #2a5ef0;
  --cyan: #31D6F0;
  --amber: #FFC24B;
  --red: #FF5A6E;
  --green: #3DDC8E;
  --text: #EAF0FF;
  --text-dim: #9FACD1;
  --border: rgba(49, 214, 240, 0.15);
  --radius: 14px;
  --font-title: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--navy);
  background-image: radial-gradient(circle at 80% -10%, rgba(30, 79, 216, 0.25), transparent 55%),
                    radial-gradient(circle at 0% 110%, rgba(49, 214, 240, 0.08), transparent 50%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Header ===== */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 18, 48, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(49, 214, 240, 0.35);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.brand-slash { color: var(--cyan); }
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--royal);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 79, 216, 0.35);
}
.btn-primary:hover { background: var(--royal-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-wide { width: 100%; margin-top: 16px; }
.btn-header {
  background: rgba(49, 214, 240, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(49, 214, 240, 0.4);
  font-size: 0.8rem;
  padding: 9px 14px;
}
.btn-header:hover { background: rgba(49, 214, 240, 0.22); }
.link-btn {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #fff; }

/* ===== Tabs ===== */
.tabs {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 12px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  padding: 12px 18px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--cyan);
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-bottom-color: var(--navy-2);
}

/* ===== Sub-tabs (ROI) ===== */
.subtabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--navy-3);
  border: 1px solid rgba(159, 172, 209, 0.25);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.subtab:hover { color: var(--text); border-color: var(--cyan); }
.subtab.active {
  color: #fff;
  background: var(--royal);
  border-color: var(--royal);
  box-shadow: 0 4px 14px rgba(30, 79, 216, 0.4);
}
.subtab.active svg path { fill: #fff; }
.subtab-hint { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; }

/* ===== Panels ===== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }
.panel {
  display: none;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: clamp(20px, 4vw, 40px);
}
.panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

h1 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
h2 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--cyan);
}
.lead { color: var(--text-dim); margin-bottom: 24px; max-width: 680px; }
.hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 10px; max-width: 640px; }

/* ===== Forms ===== */
.tool-form { margin-bottom: 8px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1 1 260px; }
.field-row .btn { flex: 0 0 auto; }

input[type="text"], input[type="number"], select {
  background: var(--navy);
  border: 1px solid rgba(159, 172, 209, 0.25);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, select:focus { outline: none; border-color: var(--cyan); }

.form-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 26px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ===== Alerts / banners ===== */
.alert {
  background: rgba(255, 194, 75, 0.1);
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 0.92rem;
}
.result-banner {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 22px 0 14px;
  background: var(--navy-3);
  border: 1px solid var(--border);
}
.result-banner .result-detail {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.result-banner.ok { border-color: var(--green); }

/* ===== Gauges ===== */
.h2-note { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--text-dim); }
.gauges { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.gauge-card {
  flex: 1 1 150px;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gauge-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }

/* ===== Metric cards ===== */
.metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}
.metric-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.metric-card .m-label { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.metric-card .m-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 6px;
  word-break: break-word;
}
.m-value.good { color: var(--green); }
.m-value.mid { color: var(--amber); }
.m-value.bad { color: var(--red); }
.metric-card.highlight { border-color: var(--cyan); background: rgba(49, 214, 240, 0.06); }

/* ===== Opportunities ===== */
.opps-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.opps-list li {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.opps-list .savings { font-family: var(--font-mono); color: var(--amber); font-weight: 700; white-space: nowrap; }

/* ===== Quiz / checklist ===== */
.quiz { list-style: none; counter-reset: q; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.quiz li {
  counter-increment: q;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.quiz li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.8rem;
}
.quiz .q-text { flex: 1 1 300px; font-size: 0.92rem; }
.quiz .q-opts { display: flex; gap: 6px; }
.quiz .q-opts label {
  cursor: pointer;
  border: 1px solid rgba(159, 172, 209, 0.3);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.15s;
}
.quiz .q-opts input { display: none; }
.quiz .q-opts label:has(input[value="1"]:checked) {
  background: rgba(61, 220, 142, 0.15);
  border-color: var(--green);
  color: var(--green);
}
.quiz .q-opts label:has(input[value="0"]:checked) {
  background: rgba(255, 90, 110, 0.15);
  border-color: var(--red);
  color: var(--red);
}

.missing-list { margin-top: 6px; }
.missing-list h3 { font-family: var(--font-title); font-size: 0.95rem; margin-bottom: 10px; color: var(--amber); }
.missing-list ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.missing-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 8px 12px;
  background: rgba(255, 194, 75, 0.07);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
}

.tips-block {
  margin-top: 24px;
  background: rgba(49, 214, 240, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.tips-block h3 { font-family: var(--font-title); font-size: 1rem; margin-bottom: 12px; color: var(--cyan); }
.tips-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tips-block li { font-size: 0.9rem; color: var(--text-dim); padding-left: 18px; position: relative; }
.tips-block li::before { content: "▸"; color: var(--cyan); position: absolute; left: 0; }
.tips-block li strong { color: var(--text); }

/* ===== Conversores ===== */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.conv-card {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  transition: all 0.15s;
}
.conv-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(49, 214, 240, 0.12);
}
.conv-card .c-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.conv-card .c-title { font-family: var(--font-title); font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 4px; }
.conv-card .c-desc { font-size: 0.8rem; color: var(--text-dim); display: block; }

.privacy-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--green);
  background: rgba(61, 220, 142, 0.1);
  border: 1px solid rgba(61, 220, 142, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.conv-options {
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.conv-options label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 140px;
}
.conv-options input[type="range"] { accent-color: var(--cyan); padding: 0; }

#conv-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  padding: 10px 0;
}
#conv-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 14px; }
#conv-done .done-banner {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--green);
}
#conv-done .file-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
#conv-done .file-list a { align-self: flex-start; }

/* ===== Dropzone ===== */
.dropzone {
  border: 2px dashed rgba(49, 214, 240, 0.4);
  border-radius: var(--radius);
  background: rgba(49, 214, 240, 0.04);
  color: var(--text-dim);
  text-align: center;
  padding: 46px 20px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 18px;
}
.dropzone svg { color: var(--cyan); margin-bottom: 10px; }
.dropzone:hover, .dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(49, 214, 240, 0.1);
  color: var(--text);
}

/* ===== CTA block ===== */
.cta-block {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(30, 79, 216, 0.25), rgba(49, 214, 240, 0.08));
  border: 1px solid rgba(30, 79, 216, 0.5);
  border-radius: var(--radius);
  padding: 26px;
}
.cta-block h3 { font-family: var(--font-title); font-size: 1.1rem; margin-bottom: 8px; }
.cta-block p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; max-width: 560px; }

/* ===== Misc ===== */
.disclaimer { font-size: 0.78rem; color: var(--text-dim); margin-top: 14px; }
.hidden { display: none !important; }
.footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 26px 16px 40px;
}
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Loading spinner ===== */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Mobile ===== */
@media (max-width: 560px) {
  .header-inner { justify-content: center; text-align: center; }
  .brand { flex-direction: column; gap: 6px; }
  .quiz li { flex-direction: column; align-items: flex-start; }
  .quiz .q-opts { align-self: stretch; }
  .quiz .q-opts label { flex: 1; text-align: center; }
  .panel { border-radius: var(--radius); }
  .field-row .btn { flex: 1 1 100%; }
}
