/* ============================================================
   Solicitar diagnóstico — página de conversión (Enterprise B2B)
   Hereda el sistema de styles.css; sólo añade lo propio de esta vista.
   ============================================================ */

/* back link en el nav (mismo patrón que las otras páginas) */
.nav-back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--t-body); transition: color .2s ease; }
.nav-back:hover { color: var(--c-ink); }
.nav-back svg { transform: rotate(180deg); }

.ct-page { background: var(--c-white); }

/* ---------- Encabezado / hero ---------- */
.ct-hero {
  position: relative;
  padding: calc(72px * var(--density)) 0 calc(40px * var(--density));
  overflow: hidden;
}
.ct-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 88% -30%, rgba(103,182,239,.28) 0%, rgba(103,182,239,0) 62%);
}
.ct-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.ct-hero h1 {
  font-size: clamp(34px, 4.2vw, 56px); font-weight: 700; letter-spacing: -.035em;
  line-height: 1.02; margin-top: 20px; text-wrap: balance;
}
.ct-hero h1 .flow { color: var(--c-blue); }
.ct-hero-sub {
  font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--t-body);
  margin-top: 20px; max-width: 600px; font-weight: 400;
}
.ct-hero-trust {
  margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px;
}
.ct-trust-item {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--t-mut);
}
.ct-trust-item svg { color: var(--c-blue); flex: none; }

/* ---------- Layout principal ---------- */
.ct-main { padding: 0 0 calc(108px * var(--density)); }
.ct-grid {
  display: grid; grid-template-columns: 1.42fr 1fr; gap: 40px;
  align-items: start;
}
@media (max-width: 1020px) {
  .ct-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Tarjeta del formulario ---------- */
.ct-form-card {
  background: var(--c-white);
  border: 1px solid rgba(12,34,56,.10);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 40px 40px 36px;
}
@media (max-width: 560px){ .ct-form-card { padding: 28px 22px 26px; border-radius: 20px; } }

.ct-fieldset { border: 0; padding: 0; margin: 0; }
.ct-fieldset + .ct-fieldset { margin-top: 34px; padding-top: 32px; border-top: 1px solid rgba(12,34,56,.08); }
.ct-legend {
  display: flex; align-items: center; gap: 11px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-mut); margin-bottom: 22px;
}
.ct-legend .ct-step-dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--c-blue-light-wash); color: var(--c-blue); letter-spacing: 0;
}

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .ct-row { grid-template-columns: 1fr; } }
.ct-field { display: flex; flex-direction: column; margin-top: 18px; }
.ct-field:first-child, .ct-row .ct-field { margin-top: 0; }
.ct-row + .ct-field { margin-top: 18px; }

.ct-field label, .ct-block-label {
  font-size: 13.5px; font-weight: 600; color: var(--t-strong);
  margin-bottom: 9px; letter-spacing: -.005em;
}
.ct-field label .opt { font-weight: 500; color: var(--t-mut); font-size: 12.5px; }

.ct-input, .ct-select, .ct-textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--t-strong);
  background: #fff; border: 1.5px solid rgba(12,34,56,.16); border-radius: 13px;
  padding: 14px 16px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none; appearance: none;
}
.ct-input::placeholder, .ct-textarea::placeholder { color: #9aa0a8; }
.ct-input:hover, .ct-select:hover, .ct-textarea:hover { border-color: rgba(12,34,56,.30); }
.ct-input:focus, .ct-select:focus, .ct-textarea:focus {
  outline: none; border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(6,0,213,.12);
}
.ct-textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.ct-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7077' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 44px; cursor: pointer;
}
.ct-select:invalid, .ct-select.placeholder { color: #9aa0a8; }

/* chips de selección múltiple (problemas) */
.ct-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--t-body);
  background: #fff; border: 1.5px solid rgba(12,34,56,.16); border-radius: 11px;
  padding: 10px 15px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ct-chip:hover { border-color: rgba(6,0,213,.40); color: var(--c-ink); }
.ct-chip .ct-chip-check {
  width: 16px; height: 16px; border-radius: 5px; flex: none;
  border: 1.5px solid rgba(12,34,56,.28); display: grid; place-items: center;
  color: #fff; transition: background .15s ease, border-color .15s ease;
}
.ct-chip[aria-pressed="true"] {
  border-color: var(--c-blue); background: var(--c-blue-light-wash); color: var(--c-blue);
}
.ct-chip[aria-pressed="true"] .ct-chip-check { background: var(--c-blue); border-color: var(--c-blue); }

/* presupuesto: control segmentado */
.ct-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 460px){ .ct-seg { grid-template-columns: repeat(2, 1fr); } }
.ct-seg-opt {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--t-body);
  background: #fff; border: 1.5px solid rgba(12,34,56,.16); border-radius: 12px;
  padding: 13px 8px; cursor: pointer; text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ct-seg-opt small { display: block; font-size: 11px; font-weight: 500; color: var(--t-mut); margin-top: 3px; }
.ct-seg-opt:hover { border-color: rgba(6,0,213,.40); }
.ct-seg-opt[aria-pressed="true"] { border-color: var(--c-blue); background: var(--c-blue-light-wash); color: var(--c-blue); }
.ct-seg-opt[aria-pressed="true"] small { color: var(--c-blue); }

/* submit */
.ct-submit-row { margin-top: 34px; }
.ct-form-card .btn-primary { width: 100%; font-size: 17px; padding: 18px 28px; border-radius: 15px; }
.ct-reassure {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; color: var(--t-mut); text-align: center;
}
.ct-reassure svg { color: var(--c-blue); flex: none; }

/* estado de éxito */
.ct-success { text-align: center; padding: 26px 10px; }
.ct-success-badge {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--c-blue-light-wash); color: var(--c-blue); display: grid; place-items: center;
}
.ct-success h3 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.ct-success p { margin-top: 14px; font-size: 16px; color: var(--t-mut); line-height: 1.55; max-width: 440px; margin-left: auto; margin-right: auto; }
.ct-success .ct-success-meta {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-blue-light-wash); color: var(--c-blue); font-weight: 600; font-size: 14.5px;
  padding: 12px 20px; border-radius: 12px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ct-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1020px){ .ct-aside { position: static; } }

.ct-card {
  background: var(--c-white);
  border: 1px solid rgba(12,34,56,.10);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.ct-card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--c-ink); letter-spacing: -.01em;
}
.ct-card-title svg { color: var(--c-blue); flex: none; }

/* timeline "Qué ocurre después" */
.ct-timeline { margin-top: 24px; display: flex; flex-direction: column; }
.ct-tl-item { display: grid; grid-template-columns: 38px 1fr; gap: 16px; }
.ct-tl-rail { display: flex; flex-direction: column; align-items: center; }
.ct-tl-num {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  background: var(--c-blue); color: #fff; box-shadow: 0 6px 16px rgba(6,0,213,.26);
}
.ct-tl-line { flex: 1; width: 2px; background: rgba(6,0,213,.18); margin: 6px 0; min-height: 16px; border-radius: 2px; }
.ct-tl-item:last-child .ct-tl-line { display: none; }
.ct-tl-body { padding-bottom: 24px; }
.ct-tl-item:last-child .ct-tl-body { padding-bottom: 0; }
.ct-tl-body h4 { font-size: 16px; font-weight: 600; color: var(--c-ink); letter-spacing: -.01em; }
.ct-tl-body .ct-tl-when { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--c-blue); background: var(--c-blue-light-wash); padding: 2px 9px; border-radius: 20px; vertical-align: middle; }
.ct-tl-body p { font-size: 14px; color: var(--t-mut); line-height: 1.5; margin-top: 5px; }

/* tarjeta de refuerzo (lateral) */
.ct-cal-card { background: var(--c-blue-light-wash); border-color: rgba(6,0,213,.10); }
.ct-cal-sub { font-size: 13.5px; color: var(--t-body); margin-top: 8px; line-height: 1.55; }

.ct-reassure-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.ct-reassure-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.ct-reassure-ico {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--c-blue); color: #fff; box-shadow: 0 5px 14px rgba(6,0,213,.24); margin-top: 1px;
}
.ct-reassure-txt { display: flex; flex-direction: column; line-height: 1.35; }
.ct-reassure-txt b { font-size: 15px; color: var(--c-ink); font-weight: 700; letter-spacing: -.01em; }
.ct-reassure-txt span { font-size: 13.5px; color: var(--t-mut); margin-top: 3px; line-height: 1.5; }

.ct-quote {
  margin: 24px 0 0; padding-top: 22px; border-top: 1px solid rgba(6,0,213,.12);
}
.ct-quote > svg { color: var(--c-blue); }
.ct-quote blockquote {
  margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--c-ink);
  font-weight: 500; letter-spacing: -.01em; text-wrap: pretty;
}
.ct-quote figcaption { margin-top: 14px; display: flex; flex-direction: column; line-height: 1.3; }
.ct-quote figcaption b { font-size: 14px; color: var(--c-ink); font-weight: 700; }
.ct-quote figcaption span { font-size: 12.5px; color: var(--t-mut); margin-top: 2px; }

/* franja inferior de confianza */
.ct-logos { margin-top: 0; }
.ct-logos .ct-logos-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t-mut); }
.ct-logos-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 14px; }
.ct-logo-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--t-body);
  background: #fff; border: 1px solid rgba(12,34,56,.10); border-radius: 10px; padding: 9px 14px;
}
.ct-logo-pill svg { color: var(--c-blue); }
