:root {
      --azul-principal: #2f6eb7;
      --azul-claro: #77b8e8;
      --azul-borde: #9bc8ea;
      --gris-fondo: #f4f4f4;
      --gris-texto: #6a6a6a;
      --verde: #4caf50;
      --blanco: #ffffff;
      --rojo: #c94b4b;
      --sombra: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: linear-gradient(to bottom, var(--azul-principal) 0 125px, #f7f7f7 125px 100%);
      color: var(--gris-texto);
      min-height: 100vh;
    }

    .topbar {
      height: 125px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 48px;
      color: var(--blanco);
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .main-logo{
        height: 160px;
        width: auto;
        object-fit: contain;
    }

    .main-logo{
        height: 160px !important;
        width: auto !important;
        object-fit: contain;
    }

    .brand-text {
      font-size: 19px;
      font-weight: 700;
      line-height: 1.2;
    }

    .security {
      text-align: right;
      font-size: 15px;
      line-height: 1.5;
      opacity: 0.95;
    }

    .accent-line {
      height: 4px;
      background: linear-gradient(
        to right,
        #43b05c 0% 12%,
        #7f3f98 12% 27%,
        #e45454 27% 44%,
        #f2c94c 44% 61%,
        #43b05c 61% 77%,
        #7f3f98 77% 100%
      );
    }

    .page {
      padding: 18px 20px 50px;
      background-image:
        radial-gradient(circle at 25px 25px, rgba(0,0,0,0.025) 24px, transparent 25px),
        radial-gradient(circle at 85px 85px, rgba(0,0,0,0.02) 24px, transparent 25px);
      background-size: 110px 110px;
      min-height: calc(100vh - 129px);
    }

    .breadcrumb {
      max-width: 980px;
      margin: 0 auto 12px;
      font-size: 14px;
      color: #9da7b1;
    }

    .breadcrumb strong {
      color: var(--azul-claro);
      font-weight: 400;
    }

    .panel {
      max-width: 760px;
      margin: 0 auto;
      background: rgba(255,255,255,0.93);
      border-radius: 4px;
      box-shadow: var(--sombra);
      overflow: hidden;
      border: 1px solid #d7e5f2;
    }

    .panel-header {
      background: var(--azul-claro);
      color: var(--blanco);
      text-align: center;
      padding: 16px 20px;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .panel-body {
      padding: 28px 36px 34px;
    }

    .notice {
      margin: 0 0 22px;
      font-size: 14px;
      color: #7e8a95;
      text-align: center;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 220px 1fr auto;
      gap: 14px 16px;
      align-items: center;
    }

    label {
      color: #74b0df;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.2;
    }

    .required::before {
      content: "*";
      color: var(--rojo);
      margin-right: 2px;
    }

    input {
      width: 100%;
      height: 38px;
      border: 1px solid var(--azul-borde);
      outline: none;
      padding: 8px 10px;
      font-size: 14px;
      border-radius: 2px;
      background: #fff;
      transition: box-shadow 0.2s, border-color 0.2s;
    }

    input:focus {
      border-color: #5da9df;
      box-shadow: 0 0 0 3px rgba(119, 184, 232, 0.18);
    }

    input[readonly] {
      background: #f8fbfe;
      color: #5a6772;
    }

    .hint {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1px solid #b9c7d3;
      color: #93a2b0;
      display: grid;
      place-items: center;
      font-size: 12px;
      cursor: default;
      user-select: none;
      background: #fff;
    }

    .actions {
      margin-top: 26px;
      display: flex;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    button {
      border: none;
      cursor: pointer;
      padding: 12px 28px;
      font-size: 15px;
      font-weight: 700;
      border-radius: 2px;
      transition: transform 0.15s ease, opacity 0.15s ease;
    }

    button:hover {
      transform: translateY(-1px);
    }

    .btn-consultar {
      background: #4f95d6;
      color: white;
    }

    .btn-pagar {
      background: var(--verde);
      color: white;
    }

    .btn-limpiar {
      background: #b4bec7;
      color: white;
    }

    .btn-pagar:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }

    .message {
      margin: 18px auto 0;
      max-width: 620px;
      padding: 12px 14px;
      border-radius: 4px;
      font-size: 14px;
      display: none;
      text-align: center;
    }

    .message.ok {
      background: #eef8ef;
      color: #2e7d32;
      border: 1px solid #cfe9d0;
      display: block;
    }

    .message.error {
      background: #fff1f1;
      color: #b63d3d;
      border: 1px solid #f0c6c6;
      display: block;
    }

    .footnote {
      max-width: 760px;
      margin: 24px auto 0;
      background: rgba(255,255,255,0.75);
      padding: 18px 24px;
      color: #6d6d6d;
      font-size: 13px;
      line-height: 1.7;
      border-radius: 4px;
    }

    .footer-logos {
      max-width: 760px;
      margin: 18px auto 0;
      display: flex;
      justify-content: center;
      gap: 20px;
      color: #6d7d8d;
      font-size: 18px;
      font-weight: 700;
    }

    .payment-logos{
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        flex-wrap: wrap;
    }

    .payment-logo{
        height: 70px;
        width: auto;
        object-fit: contain;
        opacity: 0.95;
    }

    .dev-note {
      max-width: 760px;
      margin: 18px auto 0;
      padding: 14px 18px;
      background: #fffbe8;
      border: 1px solid #f2e2a7;
      color: #836d1f;
      font-size: 13px;
      border-radius: 4px;
    }

    @media (max-width: 820px) {
      .topbar {
        padding: 18px 20px;
        height: auto;
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
      }

      body {
        background: linear-gradient(to bottom, var(--azul-principal) 0 170px, #f7f7f7 170px 100%);
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .hint {
        display: none;
      }

      .panel-body {
        padding: 22px 18px 28px;
      }
    }
