/* =========================================
   Mr.CREDITMIND • Onboarding
   styles.css (Hostinger safe)
   ========================================= */

:root {
  --primary: #303842;
  --accent: #b8a17f;
  --cream: #f0ebe5;

  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(15, 23, 42, 0.10);
  --border-soft: rgba(15, 23, 42, 0.08);
  --text: rgba(15, 23, 42, 0.88);
  --muted: rgba(15, 23, 42, 0.68);
  --muted2: rgba(15, 23, 42, 0.60);
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.08);

  --r: 18px;
  --r2: 14px;
  --rPill: 999px;

  --maxw: 1160px;

  /* Weights (si quieres, cámbialos aquí y listo) */
  --w-title: 800;
  --w-section: 700;
  --w-body: 450;
  --w-meta: 650;
  --w-btn: 650;
  --w-email: 600;

  /* Padding general */
  --pad-x: 0px;
  --pad-y: 54px;
}

/* Reset básico */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #fff;
}

/* IMPORTANTE: el fondo NUNCA debe tapar el contenido */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* 1) patrón guilloché (más parecido al tuyo) */
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='900'%20height='700'%20viewBox='0%200%20900%20700'%3E%3Cg%20fill='none'%20stroke='rgba(48,56,66,0.07)'%20stroke-width='1'%3E%3Cpath%20d='M-80%20110%20C%2090%2030%20210%20210%20380%20130%20C%20550%2050%20670%20230%20850%20140%20C%201030%2050%201150%20230%201330%20140'%20/%3E%3Cpath%20d='M-80%20160%20C%2090%2080%20210%20260%20380%20180%20C%20550%20100%20670%20280%20850%20190%20C%201030%20100%201150%20280%201330%20190'%20/%3E%3Cpath%20d='M-80%20210%20C%2090%20130%20210%20310%20380%20230%20C%20550%20150%20670%20330%20850%20240%20C%201030%20150%201150%20330%201330%20240'%20/%3E%3Cpath%20d='M-80%20260%20C%2090%20180%20210%20360%20380%20280%20C%20550%20200%20670%20380%20850%20290%20C%201030%20200%201150%20380%201330%20290'%20/%3E%3Cpath%20d='M-80%20310%20C%2090%20230%20210%20410%20380%20330%20C%20550%20250%20670%20430%20850%20340%20C%201030%20250%201150%20430%201330%20340'%20/%3E%3Cpath%20d='M-80%20360%20C%2090%20280%20210%20460%20380%20380%20C%20550%20300%20670%20480%20850%20390%20C%201030%20300%201150%20480%201330%20390'%20/%3E%3Cpath%20d='M-80%20410%20C%2090%20330%20210%20510%20380%20430%20C%20550%20350%20670%20530%20850%20440%20C%201030%20350%201150%20530%201330%20440'%20/%3E%3C/g%3E%3C/svg%3E"),
    /* 2) degradado crema sutil */
    radial-gradient(1200px 700px at 18% 0%,
      rgba(240,235,229,0.92) 0%,
      rgba(255,255,255,0.85) 55%,
      rgba(240,235,229,1) 100%),
    linear-gradient(180deg, #ffffff 0%, rgba(240,235,229,1) 100%);

  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 820px 560px, cover, cover;
  background-position: center, center, center;
}

/* Contenedor principal por encima del fondo */
.shell {
  position: relative;
  z-index: 1;
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: var(--pad-y) 0 calc(var(--pad-y) + 20px);
}

/* Header */
.header {
  padding: 0 var(--pad-x);
  margin-bottom: 22px;
}

.headerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brandRow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 34px;
  width: auto;
  display: block;
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--rPill);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: var(--w-meta);
}

.h1 {
  margin: 18px 0 10px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.9px;
  font-weight: var(--w-title);
}

.sub {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: var(--w-body);
}

/* Pills */
.badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--rPill);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.70);
  font-size: 13px;
  color: rgba(15, 23, 42, 0.80);
  font-weight: var(--w-body);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184,161,127,0.14);
  animation: mcmPulse 1.6s ease-in-out var(--d, 0s) infinite;
}

@keyframes mcmPulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  padding: 0 var(--pad-x);
}

/* Cards */
.card {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Left card (informativo) un poco más gris para diferenciar */
.infoCard {
  background: rgba(255,255,255,0.70);
}

/* Top left */
.cardTop {
  padding: 18px 20px 6px;
}

.h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
  font-weight: var(--w-section);
}

.p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.74);
  font-weight: var(--w-body);
}

.questionTitle {
  margin-top: 14px;
  font-size: 13px;
  font-weight: var(--w-section);
  color: rgba(15, 23, 42, 0.78);
}

/* Tabs */
.tabsWrap {
  padding: 14px 20px 4px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tab {
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 10px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  background: rgba(255,255,255,0.72);
  font-weight: var(--w-meta);
}

.tab.isActive {
  border-color: rgba(184,161,127,0.35);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(2,6,23,0.10);
}

.serviceLine {
  margin-top: 10px;
  display: flex;
}

.servicePill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--rPill);
  border: 1px solid rgba(184,161,127,0.18);
  background: rgba(184,161,127,0.08);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.85);
  font-weight: var(--w-meta);
}

/* Docs */
.docsBox {
  padding: 14px 20px 16px;
}

.sectionTitle {
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
  margin-bottom: 10px;
  font-weight: var(--w-meta);
}

.ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.86);
  font-weight: var(--w-body);
}

.note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.72);
  font-size: 13px;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.5;
  font-weight: var(--w-body);
}

/* Support */
.supportBox {
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border-soft);
}

.supportRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.supportLabel {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: var(--w-meta);
}

.supportEmailLink {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.86);
  text-decoration: none;
  font-weight: var(--w-email);
}

.outlineBtnSmall,
.outlineBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.72);
  color: rgba(15, 23, 42, 0.86);
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--w-btn);
  white-space: nowrap;
}

.outlineBtnSmall { padding: 8px 10px; }
.outlineBtn { padding: 10px 12px; }

.outlineBtnSmall i {
  font-size: 16px;
  line-height: 1;
}

/* Micro tip */
.micro {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.58);
  line-height: 1.45;
  font-weight: var(--w-body);
}

/* Privacy */
.privacy {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-soft);
}

.pSmall {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.72);
  font-weight: var(--w-body);
}

/* Right card */
.formCard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255,255,255,0.82); /* + blanco */
}

.formHeader {
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.82);
}

.formTitle {
  font-size: 15px;
  letter-spacing: -0.2px;
  color: rgba(15, 23, 42, 0.92);
  font-weight: var(--w-section);
}

.formHint {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.68);
  font-weight: var(--w-body);
}

/* Iframe: SIEMPRE blanco, como pediste */
.iframeWrap {
  padding: 14px;
}

#onboardingIframe {
  width: 100%;
  height: 1100px; /* tu app.js puede cambiarlo luego */
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  display: block;
}

/* Footer */
.footerBar {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(255,255,255,0.70);
  font-weight: var(--w-body);
}

.footerLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footerDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184,161,127,0.10);
  flex: 0 0 auto;
}

.smallCaps {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: var(--w-meta);
  opacity: 0.85;
}

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .shell {
    width: min(var(--maxw), calc(100% - 28px));
    padding: 40px 0 60px;
  }

  .h1 { font-size: 30px; margin: 16px 0 10px; }
  .sub { font-size: 14px; }

  .grid { grid-template-columns: 1fr; }
  .formHeader { flex-direction: column; align-items: flex-start; }
  .outlineBtn { width: 100%; }
  .logo { height: 28px; }
}