/* =========================================================
   CONFIGURACIÓN GENERAL
   ========================================================= */

:root {
  --navy-1000: #03111c;
  --navy-950: #061a28;
  --navy-900: #09283d;
  --navy-800: #103b55;
  --navy-700: #185675;

  --blue-500: #2c9dcc;
  --blue-300: #78d5ee;
  --blue-100: #dff6fc;

  --red-600: #d7263d;
  --red-500: #ed3f55;
  --red-100: #fff0f2;

  --green-500: #35c879;

  --gray-900: #17242e;
  --gray-700: #52616c;
  --gray-500: #80909b;
  --gray-300: #cbd5dc;
  --gray-200: #dfe6eb;
  --gray-100: #f1f5f7;
  --gray-50: #f8fafb;

  --white: #ffffff;

  --shadow-large:
    0 35px 85px rgba(3, 20, 31, 0.18);

  --shadow-medium:
    0 22px 52px rgba(6, 31, 47, 0.1);

  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(52, 159, 201, 0.09),
      transparent 25%
    ),
    linear-gradient(180deg, #f3f7f9, #eaf0f4);
  color: var(--gray-900);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.application-header {
  position: relative;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding:
    1rem
    clamp(1.2rem, 5vw, 5.5rem);
  border-bottom: 1px solid rgba(37, 91, 119, 0.12);
  background: rgba(248, 251, 252, 0.88);
  backdrop-filter: blur(16px);
}

.application-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.application-brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.application-brand span {
  color: var(--navy-950);
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: 0.045em;
}

.application-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.application-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(53, 200, 121, 0.2);
  border-radius: 999px;
  background: rgba(53, 200, 121, 0.07);
  color: #147347;
  font-size: 0.7rem;
  font-weight: 850;
}

.application-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow:
    0 0 0 5px rgba(53, 200, 121, 0.1),
    0 0 14px rgba(53, 200, 121, 0.42);
}

.back-link {
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 800;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.back-link:hover {
  color: var(--red-600);
  transform: translateX(-3px);
}

/* =========================================================
   ESTRUCTURA PRINCIPAL
   ========================================================= */

.application-main {
  padding:
    clamp(2rem, 5vw, 5rem)
    clamp(1.2rem, 4vw, 4.5rem)
    clamp(4rem, 8vw, 8rem);
}

.application-shell {
  width: min(100%, 1540px);
  display: grid;
  grid-template-columns:
    minmax(340px, 0.72fr)
    minmax(0, 1.28fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
  margin: 0 auto;
}

/* =========================================================
   PANEL DE SELECCIÓN
   ========================================================= */

.selection-introduction {
  position: sticky;
  top: 2rem;
  overflow: hidden;
  border-radius: var(--radius-large);
  background:
    radial-gradient(
      circle at 82% 10%,
      rgba(215, 38, 61, 0.22),
      transparent 26%
    ),
    radial-gradient(
      circle at 10% 85%,
      rgba(59, 170, 211, 0.18),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--navy-1000),
      var(--navy-900)
    );
  color: var(--white);
  box-shadow: var(--shadow-large);
}

.selection-introduction::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(
      rgba(125, 212, 239, 0.17) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(125, 212, 239, 0.17) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
  pointer-events: none;
}

.selection-introduction::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(240, 67, 87, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(240, 67, 87, 0.025),
    0 0 0 110px rgba(240, 67, 87, 0.018);
  pointer-events: none;
}

.selection-introduction-content {
  position: relative;
  z-index: 2;
  padding:
    clamp(2rem, 4vw, 4rem)
    clamp(1.7rem, 3.5vw, 3.6rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  color: var(--blue-300);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 35px;
  height: 3px;
  border-radius: 999px;
  background: var(--red-500);
}

.selection-introduction h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.selection-lead {
  max-width: 560px;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 700;
  line-height: 1.65;
}

.selection-description {
  max-width: 560px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.87rem;
  line-height: 1.72;
}

.selection-code {
  margin-top: 2.2rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(124, 212, 239, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.selection-code span,
.selection-code small {
  display: block;
}

.selection-code span {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.34);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.selection-code strong {
  display: block;
  color: var(--blue-300);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.selection-code small {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}

.selection-criteria {
  margin-top: 2.5rem;
}

.criteria-title {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.selection-criteria article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.selection-criteria article > span {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 213, 238, 0.2);
  border-radius: 9px;
  color: var(--blue-300);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 900;
}

.selection-criteria strong {
  color: var(--white);
  font-size: 0.85rem;
}

.selection-criteria p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.75rem;
  line-height: 1.6;
}

.selection-confidentiality {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--red-500);
  border-radius: 0 12px 12px 0;
  background: rgba(215, 38, 61, 0.08);
}

.selection-confidentiality strong {
  color: #ffb4bd;
  font-size: 0.75rem;
}

.selection-confidentiality p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.7rem;
  line-height: 1.55;
}

/* =========================================================
   PANEL DEL FORMULARIO
   ========================================================= */

.application-form-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(38, 88, 113, 0.12);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-medium);
}

.form-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding:
    clamp(2rem, 4vw, 3.7rem)
    clamp(1.5rem, 4vw, 3.7rem)
    2rem;
}

.form-kicker {
  margin: 0 0 0.7rem;
  color: var(--red-600);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-panel-header h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.form-panel-header p:last-child {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--gray-700);
  font-size: 0.87rem;
  line-height: 1.65;
}

.application-reference {
  flex: 0 0 auto;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(37, 101, 134, 0.15);
  border-radius: 12px;
  background: var(--gray-50);
  text-align: right;
}

.application-reference span,
.application-reference strong {
  display: block;
}

.application-reference span {
  color: var(--gray-500);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.application-reference strong {
  margin-top: 0.25rem;
  color: var(--navy-800);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

/* Ruta */

.application-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.application-route span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  color: var(--gray-700);
  font-size: 0.68rem;
  font-weight: 800;
}

.application-route span + span {
  border-left: 1px solid var(--gray-200);
}

.application-route i {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(33, 101, 137, 0.16);
  border-radius: 8px;
  color: var(--navy-700);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 900;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

#pilotApplicationForm {
  padding:
    clamp(1.5rem, 4vw, 3.7rem);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-section + .form-section {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--gray-200);
}

.form-section legend {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0;
}

.form-section legend > span {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(31, 107, 146, 0.17);
  border-radius: 13px;
  background: rgba(43, 145, 190, 0.06);
  color: var(--navy-700);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 900;
}

.form-section legend strong,
.form-section legend small {
  display: block;
}

.form-section legend strong {
  color: var(--navy-950);
  font-size: 1.2rem;
  font-weight: 900;
}

.form-section legend small {
  margin-top: 0.2rem;
  color: var(--gray-500);
  font-size: 0.7rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 850;
}

.form-field label b {
  color: var(--red-600);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-small);
  outline: none;
  background: var(--white);
  color: var(--gray-900);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 0 0.95rem;
}

.form-field textarea {
  min-height: 130px;
  padding: 0.9rem 0.95rem;
  line-height: 1.6;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a1adb5;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #9eb1bd;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-500);
  box-shadow:
    0 0 0 4px rgba(44, 157, 204, 0.11);
}

.form-field input:focus:invalid,
.form-field select:focus:invalid,
.form-field textarea:focus:invalid {
  border-color: var(--red-500);
  box-shadow:
    0 0 0 4px rgba(215, 38, 61, 0.09);
}

.form-field > small,
.field-limit {
  display: block;
  margin-top: 0.45rem;
  color: var(--gray-500);
  font-size: 0.65rem;
  line-height: 1.5;
}

.field-limit {
  text-align: right;
}

.highlighted-field {
  padding: 1.25rem;
  border: 1px solid rgba(215, 38, 61, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(215, 38, 61, 0.04),
      rgba(255, 255, 255, 0)
    );
}

.highlighted-field label {
  color: var(--red-600);
}

/* =========================================================
   CONFIRMACIONES
   ========================================================= */

.confirmation-list {
  display: grid;
  gap: 0.85rem;
}

.confirmation-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--gray-200);
  border-radius: 13px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 0.75rem;
  line-height: 1.55;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.confirmation-option:hover {
  border-color: rgba(39, 126, 168, 0.3);
  background: rgba(44, 157, 204, 0.035);
}

.confirmation-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border: 2px solid var(--gray-300);
  border-radius: 7px;
  background: var(--white);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.confirmation-option input:checked + .custom-check {
  border-color: var(--green-500);
  background: var(--green-500);
}

.confirmation-option input:checked + .custom-check::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.confirmation-option input:focus-visible + .custom-check {
  box-shadow:
    0 0 0 4px rgba(44, 157, 204, 0.13);
}

/* =========================================================
   ENVÍO
   ========================================================= */

.submission-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(215, 38, 61, 0.2),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      var(--navy-1000),
      var(--navy-900)
    );
  color: var(--white);
}

.submission-panel > div > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue-300);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.submission-panel strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}

.submission-panel p {
  max-width: 490px;
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  line-height: 1.55;
}

.submit-button {
  flex: 0 0 auto;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      var(--red-500),
      var(--red-600)
    );
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 14px 28px rgba(215, 38, 61, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(215, 38, 61, 0.34);
}

.submit-button i {
  font-size: 1.1rem;
  font-style: normal;
}

.submission-disclaimer {
  margin: 1rem 0 0;
  color: var(--gray-500);
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */

.application-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding:
    1.2rem
    clamp(1.2rem, 5vw, 5.5rem);
  border-top: 1px solid rgba(111, 189, 220, 0.1);
  background: var(--navy-1000);
  color: rgba(255, 255, 255, 0.38);
}

.application-footer p {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .application-shell {
    grid-template-columns: 1fr;
  }

  .selection-introduction {
    position: relative;
    top: auto;
  }

  .selection-introduction h1 {
    max-width: 15ch;
  }

  .selection-criteria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .criteria-title {
    grid-column: 1 / -1;
  }

  .selection-criteria article {
    display: block;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
  }

  .selection-criteria article > span {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 820px) {
  .application-header-actions {
    gap: 0.8rem;
  }

  .application-status {
    display: none;
  }

  .application-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-route span:nth-child(3),
  .application-route span:nth-child(4) {
    border-top: 1px solid var(--gray-200);
  }

  .application-route span:nth-child(3) {
    border-left: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .selection-criteria {
    grid-template-columns: 1fr;
  }

  .criteria-title {
    grid-column: auto;
  }

  .submission-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .application-header {
    min-height: 70px;
  }

  .application-brand img {
    width: 37px;
    height: 37px;
  }

  .application-brand span {
    font-size: 1rem;
  }

  .back-link {
    font-size: 0.7rem;
  }

  .application-main {
    padding:
      1rem
      0.75rem
      4rem;
  }

  .selection-introduction,
  .application-form-panel {
    border-radius: 20px;
  }

  .selection-introduction-content {
    padding:
      2.3rem
      1.4rem;
  }

  .selection-introduction h1 {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
  }

  .form-panel-header {
    flex-direction: column;
    padding:
      2rem
      1.35rem
      1.6rem;
  }

  .form-panel-header h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .application-reference {
    text-align: left;
  }

  .application-route {
    display: none;
  }

  #pilotApplicationForm {
    padding:
      1.5rem
      1.15rem
      2rem;
  }

  .form-section legend {
    align-items: flex-start;
  }

  .highlighted-field {
    padding: 1rem;
  }

  .application-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .application-header {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .application-brand span {
    display: none;
  }

  .selection-introduction-content {
    padding:
      2.1rem
      1.15rem;
  }

  .form-section legend > span {
    width: 40px;
    height: 40px;
  }

  .confirmation-option {
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   AJUSTE DE LEGIBILIDAD DEL FORMULARIO
   ========================================================= */

.form-section legend strong {
  font-size: 1.35rem;
}

.form-section legend small {
  font-size: 0.78rem;
}

.form-field label {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-size: 1rem;
}

.form-field input,
.form-field select {
  min-height: 56px;
  padding-right: 1rem;
  padding-left: 1rem;
}

.form-field textarea {
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.form-field > small,
.field-limit {
  margin-top: 0.55rem;
  font-size: 0.74rem;
}

.confirmation-option {
  font-size: 0.82rem;
}

.application-route span {
  font-size: 0.74rem;
}

.policy-link {
  color: var(--navy-700);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(24, 86, 117, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.18s ease,
    text-decoration-color 0.18s ease;
}

.policy-link:hover {
  color: var(--red-600);
  text-decoration-color: currentColor;
}

.policy-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(44, 157, 204, 0.18);
  outline-offset: 3px;
}

/* =========================================================
   ESTADOS DEL ENVÍO
   ========================================================= */

.form-status {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 14px;
}

.form-status[hidden] {
  display: none;
}

.form-status strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.87rem;
  font-weight: 900;
}

.form-status p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.6;
}

.form-status.is-success {
  border-color: rgba(53, 200, 121, 0.22);
  background: rgba(53, 200, 121, 0.07);
  color: #126b42;
}

.form-status.is-error {
  border-color: rgba(215, 38, 61, 0.2);
  background: rgba(215, 38, 61, 0.065);
  color: #a81d31;
}

.field-limit.is-low {
  color: var(--red-600);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

#pilotApplicationForm[aria-busy="true"] {
  cursor: progress;
}

#pilotApplicationForm input:disabled,
#pilotApplicationForm select:disabled,
#pilotApplicationForm textarea:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

/* =========================================================
   DOSSIER INSTITUCIONAL — POSTULACIÓN
   ========================================================= */

.application-dossier {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  gap: 1rem;
  align-items: center;

  margin-top: 1.7rem;
  padding: 1rem 1.15rem;

  border:
    1px solid rgba(46, 102, 140, 0.16);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #f7fafc,
      #ffffff
    );

  box-shadow:
    0 12px 28px rgba(10, 43, 65, 0.05);
}

.application-dossier__icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(40, 112, 150, 0.18);

  border-radius: 11px;

  background:
    rgba(49, 132, 173, 0.06);

  color: #237da7;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;

  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.application-dossier__copy {
  min-width: 0;
}

.application-dossier__copy > span {
  display: block;

  margin-bottom: 0.22rem;

  color: var(--red-600);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;

  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.application-dossier__copy strong {
  display: block;

  margin-bottom: 0.25rem;

  color: var(--navy-950);

  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.35;
}

.application-dossier__copy p {
  max-width: 680px;

  margin: 0;

  color: #667788;

  font-size: 0.7rem;
  line-height: 1.5;
}

.application-dossier > a {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  gap: 0.65rem;

  padding: 0.65rem 0.85rem;

  border:
    1px solid rgba(22, 66, 94, 0.2);

  border-radius: 10px;

  color: var(--navy-900);

  font-size: 0.72rem;
  font-weight: 900;

  white-space: nowrap;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.application-dossier > a:hover {
  transform: translateY(-1px);

  border-color:
    rgba(22, 66, 94, 0.42);

  background: #f2f7fa;
}

@media (max-width: 760px) {
  .application-dossier {
    grid-template-columns:
      auto
      1fr;
  }

  .application-dossier > a {
    grid-column: 1 / -1;

    width: 100%;

    justify-content: center;
  }
}