/* ══════════════════════════════════════════════════════════════
   Fenix Trading — base de estilos (variante "Acero")
   Geometría angular con chaflán en las esquinas, titulares en Saira
   mayúsculas con tracking ancho, filetes de 1px, papel gris azulado.
   El azul de marca (#0074BD, tomado del logo) aparece sólo como
   acento: obligatorios, foco, numeración y opción elegida. La
   estructura la sostiene la tinta azul-negra.

   Las etiquetas de campo van en caja alta y legible a propósito:
   en mayúsculas apretadas, a 13px, se vuelven ilegibles.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Paleta */
  --bg:        #eff2f5;
  --panel:     #ffffff;
  --field:     #f8fafc;
  --edge:      #dde4ea;
  --edge2:     #d3dbe3;
  --edge3:     #a3b1bf;

  --ink:       #0b1b2b;
  --ink2:      #17324b;
  --muted:     #4d5c6b;
  --muted2:    #8493a1;

  /* Azul de marca: es el color exacto del logo, no el del CSS viejo. */
  --brand:     #0074bd;
  --brand2:    #005a94;
  --brand3:    #4aa3d8;
  --brand-soft: rgba(0, 116, 189, .07);

  --error:     #b3261e;
  --req:       var(--brand);

  --ch:        16px;   /* tamaño del chaflán */
  --maxw:      1240px;

  /* Alias heredados, por si algún archivo viejo todavía los referencia. */
  --line:      var(--edge);
  --radius:    0;
  --radius-sm: 0;

  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Utilidad de chaflán: corta arriba-izquierda y abajo-derecha. */
.cut {
  clip-path: polygon(
    var(--ch) 0, 100% 0,
    100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%,
    0 100%, 0 var(--ch)
  );
}

/* ─── Página y contenedor ─── */
.page { min-height: 100vh; padding: 0 32px 90px; }
.card {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ─── Encabezado: texto a la izquierda, logo a la derecha ─── */
.card__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 30px 0 28px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--edge);
  text-align: left;
}
.card__head-txt { min-width: 0; }

.card__badge {
  flex: none;
  width: auto; height: auto;
  margin: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
/* multiply funde el fondo blanco opaco del PNG con el gris de la página,
   para que el logo no se vea como un recuadro. */
.card__badge img {
  height: 170px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
/* Por si quedara el ícono SVG viejo en algún form sin migrar. */
.card__badge svg { width: 34px; height: 34px; color: var(--brand); }

.card__title {
  font-family: "Saira", "Inter", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
/* Segundo nivel: qué tipo de cuenta es. */
.card__kicker {
  font-family: "Saira", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 56ch;
}

/* ─── Campos ─── */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.req { color: var(--req); font-weight: 600; }

/* La ayuda va DEBAJO del control: arriba empuja el input y rompe la
   línea base de la fila en la grilla. */
.field__hint {
  display: block;
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.45;
  margin: 7px 0 0;
}

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--edge2);
  border-radius: 0;
  outline: none;
  transition: border-color .17s ease-out, box-shadow .17s ease-out, background .17s ease-out;
}
.field select { cursor: pointer; }
.field input::placeholder { color: var(--muted2); }
.field input:hover, .field select:hover { border-color: var(--edge3); }
/* Foco: filete de marca + barra vertical a la izquierda. */
.field input:focus, .field select:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}
.field input.invalid, .field select.invalid {
  border-color: var(--error);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--error);
}
.field input[type="file"] {
  width: 100%;
  padding: 18px;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px dashed var(--edge3);
  background: var(--field);
  cursor: pointer;
}

/* Campo fecha */
.field__date { position: relative; }
.field__date input[type="text"] { padding-right: 46px; }
.field__date-picker {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  opacity: 0; border: 0; padding: 0;
  cursor: pointer;
}
.field__date-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none; border: 0;
  color: var(--muted2);
  pointer-events: none;
}
.field__date-btn svg { width: 18px; height: 18px; }

/* ─── Errores ─── */
.error {
  min-height: 16px;
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--error);
}

/* ─── Botones ─── */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.btn {
  height: 48px;
  padding: 0 26px;
  font-family: "Saira", "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background .18s ease-out, color .18s ease-out, box-shadow .18s ease-out;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink2); }

.btn--outline { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge2); }
.btn--outline:hover { background: var(--field); box-shadow: inset 0 0 0 1px var(--edge3); }

.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); background: rgba(11, 27, 43, .05); }

/* ─── Éxito ─── */
.success {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--brand);
  box-shadow: inset 4px 0 0 var(--brand);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.5;
}
.success a { color: var(--brand2); }
.success svg { width: 22px; height: 22px; flex: none; color: var(--brand); }

/* ─── Barra de progreso (queda por compatibilidad) ─── */
.progress { margin-bottom: 26px; }
.progress__top {
  display: flex;
  justify-content: space-between;
  font-family: "Saira", "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress__track { position: relative; height: 4px; background: var(--edge); overflow: hidden; }
.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--brand);
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

/* ─── Responsive ─── */
/* En angosto el encabezado se apila: logo arriba, texto abajo. */
@media (max-width: 860px) {
  .card__head { flex-direction: column-reverse; align-items: flex-start; gap: 22px; }
  .card__badge img { height: 118px; }
}
@media (max-width: 900px) {
  .page { padding: 0 18px 90px; }
  .card__title { font-size: 34px; }
  .card__kicker { font-size: 19px; }
}
@media (max-width: 560px) {
  .card__title { font-size: 27px; }
  .card__kicker { font-size: 16px; }
  .card__subtitle { font-size: 14.5px; }
  .actions { gap: 8px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
