/* ==========================================================================
   Solicitudes — formularios públicos (distribuidor / punto de venta)
   Estética de la landing: esmeralda + Inter + tarjeta translúcida sobre la
   malla de nodos. La malla y la tipografía las aporta el layout guest.
   La audacia vive en el fondo (la malla); aquí todo es limpio y legible.
   ========================================================================== */

:root {
  --sol-emerald: #17a427;
  --sol-emerald-deep: #0f7d1f;
  --sol-mint: #34d399;
  --sol-node: #48bb78;
  --sol-ink: #1a202c;
  --sol-ink-soft: #64748b;
  --sol-line: #e3ece3;
  --sol-radius: 22px;
  --sol-radius-sm: 14px;
  --sol-shadow: 0 24px 60px -20px rgba(15, 125, 31, .28);
}

/* Layout de dos columnas: discurso + formulario */
.sol-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 920px) {
  .sol-shell { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Columna de discurso ---- */
.sol-pitch { padding-top: 6px; }
.sol-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(52, 211, 153, .14);
  color: var(--sol-emerald-deep);
  padding: 7px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  border: 1px solid rgba(23, 164, 39, .18); margin-bottom: 16px;
}
.sol-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.08;
  color: var(--sol-ink); margin: 0 0 14px;
}
.sol-title span { color: var(--sol-emerald); }
.sol-lede {
  font-size: 15px; color: var(--sol-ink-soft); font-weight: 500;
  line-height: 1.6; margin: 0 0 24px; max-width: 46ch;
}

.sol-steps { display: flex; flex-direction: column; gap: 14px; }
.sol-step { display: flex; gap: 14px; align-items: center; }
.sol-step__dot {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
  background: rgba(52, 211, 153, .16); color: var(--sol-emerald-deep);
}
.sol-step__txt strong { display: block; font-size: 14px; color: var(--sol-ink); }
.sol-step__txt span { font-size: 12px; color: var(--sol-ink-soft); font-weight: 600; }

/* Título de sección del formulario */
.sol-form-title { margin: 0 0 18px; font-size: 18px; font-weight: 900; color: var(--sol-ink); }
/* Utilitaria para alternar bloques sin estilos inline */
.sol-hidden { display: none !important; }

/* ---- Campos ---- */
.sol-field { margin-bottom: 16px; }
.sol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .sol-row { grid-template-columns: 1fr; } }

.sol-label {
  display: block; font-size: 11px; font-weight: 800; color: var(--sol-ink-soft);
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px 4px;
}

.sol-input {
  width: 100%; padding: 13px 16px; font-size: 14px; font-weight: 600;
  color: var(--sol-ink); background: #f8faf8;
  border: 1.5px solid var(--sol-line); border-radius: var(--sol-radius-sm);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sol-input::placeholder { color: #aab4aa; font-weight: 500; }
.sol-input:hover { border-color: #cfe0cf; }
.sol-input:focus-visible {
  border-color: var(--sol-emerald);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 164, 39, .12);
}

/* Selects: misma piel + chevron propio */
select.sol-input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 42px; cursor: pointer;
}
select.sol-input:disabled { background-color: #eef1ee; color: #9aa69a; cursor: not-allowed; }

/* ---- Segmentado (tipo de persona) ---- */
.sol-seg { display: flex; gap: 12px; margin-bottom: 16px; }
.sol-seg__opt { flex: 1; cursor: pointer; }
.sol-seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sol-seg__btn {
  display: block; text-align: center; padding: 13px;
  border: 2px solid var(--sol-line); border-radius: var(--sol-radius-sm);
  background: #fff; color: var(--sol-ink-soft); font-weight: 800; font-size: 13px;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.sol-seg__opt input:checked + .sol-seg__btn {
  border-color: var(--sol-emerald); color: var(--sol-emerald-deep);
  background: rgba(52, 211, 153, .12); transform: translateY(-1px);
}
.sol-seg__opt input:focus-visible + .sol-seg__btn {
  box-shadow: 0 0 0 4px rgba(23, 164, 39, .12);
}

/* ---- Documentos ---- */
.sol-docs {
  background: rgba(248, 250, 248, .8); border: 1.5px dashed #c4d8c4;
  border-radius: var(--sol-radius-sm); padding: 18px; margin-top: 4px;
}
.sol-docs__title {
  font-size: 12px; font-weight: 800; color: var(--sol-emerald-deep);
  text-transform: uppercase; letter-spacing: .03em; margin: 0 0 14px;
}
.sol-docs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .sol-docs__grid { grid-template-columns: 1fr; } }
.sol-file { display: block; }
.sol-file input[type="file"] { width: 100%; font-size: 12px; margin-top: 4px; }
.sol-file__name { font-size: 10px; color: var(--sol-emerald-deep); font-weight: 800; margin-top: 5px; min-height: 12px; }

/* ---- Botón principal ---- */
.sol-btn {
  width: 100%; margin-top: 8px; padding: 15px; border: none; cursor: pointer;
  border-radius: var(--sol-radius-sm); font-size: 14px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--sol-emerald), var(--sol-emerald-deep));
  box-shadow: 0 12px 24px -8px rgba(15, 125, 31, .55);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.sol-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -8px rgba(15, 125, 31, .6); }
.sol-btn:focus-visible { outline: 3px solid rgba(23, 164, 39, .35); outline-offset: 2px; }
.sol-btn:disabled, .sol-btn.is-disabled {
  background: #cbd5cb; box-shadow: none; cursor: not-allowed; transform: none; opacity: .8;
}

.sol-note { font-size: 11px; color: var(--sol-ink-soft); font-weight: 600; line-height: 1.5; margin: 12px 0 0; }
.sol-altlink {
  display: block; text-align: center; margin-top: 14px;
  font-size: 12px; font-weight: 800; color: var(--sol-ink-soft); text-decoration: none;
}
.sol-altlink:hover { color: var(--sol-emerald-deep); }

/* ---- Alertas ---- */
.sol-alert { padding: 14px 16px; border-radius: var(--sol-radius-sm); font-size: 13px; font-weight: 700; margin-bottom: 14px; border: 1px solid transparent; }
.sol-alert--ok { background: rgba(52, 211, 153, .12); color: var(--sol-emerald-deep); border-color: rgba(23, 164, 39, .2); }
.sol-alert--err { background: #fff5f5; color: #c53030; border-color: #fed7d7; }
.sol-alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 600; font-size: 12px; }

/* ---- Honeypot (oculto a humanos) ---- */
.sol-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .sol-input, .sol-seg__btn, .sol-btn { transition: none; }
}

/* ==========================================================================
   Página "solicitud enviada" (confirmación)
   ========================================================================== */
.sol-enviada { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 12px; }
.sol-enviada .sol-title { margin-top: 4px; }
.sol-enviada__lede { margin-left: auto; margin-right: auto; }

.sol-folio {
  background: rgba(248, 250, 248, .85); border: 1px solid var(--sol-line);
  border-radius: var(--sol-radius); padding: 22px 46px; margin: 8px 0 28px;
}
.sol-folio__label { display: block; font-size: 11px; font-weight: 800; color: var(--sol-ink-soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.sol-folio__num { font-size: 28px; font-weight: 900; color: var(--sol-emerald); }

.sol-track { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.sol-track__step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--sol-ink); }
.sol-track__step.is-pending { color: #9aa69a; }
.sol-track__dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; background: var(--sol-emerald); color: #fff; }
.sol-track__step.is-pending .sol-track__dot { background: #e2e8e2; color: #9aa69a; }

.sol-enviada__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.sol-btn--inline { width: auto; display: inline-flex; align-items: center; padding: 14px 28px; margin-top: 0; }
.sol-altlink--inline { margin-top: 0; }

/* Asterisco automático en campos obligatorios (#4) */
.sol-field:has(input[required]) .sol-label::after,
.sol-field:has(select[required]) .sol-label::after { content: " *"; color: #e11d48; font-weight: 900; }
.sol-reqnote { font-size: 12px; font-weight: 600; color: var(--sol-ink-soft); margin: 0 0 14px; }

/* Lista de confianza en la columna izquierda (#1 y #9) */
.sol-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sol-trust li { position: relative; padding-left: 28px; font-size: 13px; font-weight: 600; color: var(--sol-ink-soft); line-height: 1.45; }
.sol-trust li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52,211,153,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f7d1f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
}
