/* Virginia Key Jobs — design-preserving external stylesheet. */
:root {
  --color-primary: #0B2A6B;
  --color-accent: #199BE0;
  --color-accent-highlight: #1A9BE0;
  --color-ink: #0E1B33;
  --color-body: #2B3A55;
  --color-white: #ffffff;
  --color-paper: #F2F6FB;
  --color-border: #C9D6EC;
  --font-body: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-size-hero: 84px;
  --font-size-section: 56px;
  --font-size-body: 19px;
}


    body {
      margin: 0;
      background: var(--color-white)
    }

    a {
      color: var(--color-primary)
    }

    a:hover {
      color: var(--color-accent-highlight)
    }

    input,
    select {
      font-family: var(--font-body)
    }

    /* Animaciones de entrada */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .animate-on-load {
      opacity: 0;
      animation: fadeInUp 0.8s ease-out forwards;
    }

    .delay-1 {
      animation-delay: 0.2s;
    }

    .delay-2 {
      animation-delay: 0.4s;
    }

    .delay-3 {
      animation-delay: 0.6s;
    }

    /* Estilos para estado del formulario */
    .form-message {
      display: none;
      padding: 24px;
      border-radius: 6px;
      text-align: center;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 24px;
      text-transform: uppercase;
    }

    .form-success {
      background: #E8F5E9;
      color: #2E7D32;
      border-top: 6px solid #2E7D32;
      flex-direction: column;
      gap: 10px;
    }

    .form-error {
      color: #D32F2F;
      font-size: 16px;
      margin-bottom: 16px;
      display: none;
    }
    @media screen and (max-width: 768px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    overflow-x: clip;
  }

  /* Top information strip */
  .site-header {
    padding: 12px 14px !important;
    gap: 8px !important;
    font-size: 14px !important;
    text-align: center;
  }

  /* Hero section */
  .site-hero {
    padding: 36px 18px !important;
  }

  .site-hero > div {
    gap: 30px !important;
  }

  .site-hero > div > div:first-child {
    flex: 1 1 100% !important;
    gap: 20px !important;
  }

  .site-hero h1 {
    font-size: clamp(42px, 10vw, 62px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.5px !important;
    overflow-wrap: break-word;
  }

  .site-hero p {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

  .site-hero > div > div:first-child > div:last-child {
    width: 100%;
    gap: 10px !important;
  }

  .site-hero a {
    flex: 1 1 100%;
    width: 100%;
    min-height: 52px !important;
    padding: 10px 16px !important;
    box-sizing: border-box;
    font-size: 21px !important;
    text-align: center;
  }

  /* Hero image grid */
  .site-hero > div > div:last-child {
    flex: 1 1 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* About section */
  #resume {
    scroll-margin-top: 16px;
  }

  .site-about {
    padding: 44px 18px !important;
  }

  .site-about > div {
    gap: 28px !important;
  }

  .site-about img {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: none !important;
    max-height: 420px;
    aspect-ratio: 4 / 3 !important;
    object-position: center !important;
  }

  .site-about h2,
  .site-jobs h2,
  #resume h2 {
    font-size: clamp(36px, 8vw, 46px) !important;
    line-height: 1 !important;
    overflow-wrap: break-word;
  }

  .site-about p,
  .site-jobs p,
  #resume p {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  /* Investment highlight */
  .site-about > div > div > div:last-child {
    gap: 12px !important;
  }

  .site-about > div > div > div:last-child > div:first-child {
    font-size: clamp(42px, 10vw, 56px) !important;
  }

  /* Job categories */
  .site-jobs {
    padding: 44px 18px !important;
  }

  .site-jobs > div {
    gap: 26px !important;
  }

  .site-jobs > div > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .site-jobs > div > div:nth-child(2) > article {
    padding: 20px 16px !important;
    min-width: 0;
  }

  .site-jobs > div > div:nth-child(2) > article > h3:nth-child(2) {
    font-size: 23px !important;
    line-height: 1.05 !important;
    overflow-wrap: break-word;
  }

  /* Resume section */
  #resume {
    padding: 44px 18px !important;
  }

  #resume > div {
    gap: 28px !important;
  }

  #resume > div > div {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }

  #resume > div > div:first-child img {
    object-position: center !important;
    max-height: 300px;
  }

  /* Resume form */
  #resumeFormContainer {
    padding: 22px 18px !important;
    gap: 16px !important;
    width: 100%;
  }

  #resumeFormContainer > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  #resumeFormContainer input:not([type="checkbox"]):not([type="file"]),
  #resumeFormContainer select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px !important;
  }

  #fileContainer {
    padding: 20px 12px !important;
    overflow-wrap: anywhere;
  }

  #submitBtn {
    width: 100%;
    padding: 12px 14px !important;
    font-size: 21px !important;
    line-height: 1.15;
    white-space: normal;
  }

  .form-message {
    padding: 22px 16px !important;
    font-size: 22px !important;
  }

  /* Footer */
  .site-footer {
    padding: 30px 18px !important;
  }

  .site-footer > div {
    gap: 14px !important;
  }

  .site-footer > div > div:first-child {
    font-size: 26px !important;
    line-height: 1.1 !important;
  }

  .site-footer > div > div {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 480px) {

  /* Give smaller phones more usable space */
  .site-header {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
  }

  .site-hero h1 {
    font-size: clamp(36px, 10vw, 48px) !important;
  }

  .site-hero > div > div:last-child {
    gap: 8px !important;
  }

  .site-jobs > div > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .site-jobs > div > div:nth-child(2) > article {
    padding: 22px !important;
  }

  #resumeFormContainer {
    padding: 20px 14px !important;
  }

  #resumeFormContainer label {
    overflow-wrap: anywhere;
  }
}
  

/* Semantic containers match the original visual layout. */
.site-main { width: 100%; min-width: 0; }
.site-header, .site-footer, .site-main > section { width: 100%; box-sizing: border-box; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 16px; background: var(--color-white); color: var(--color-primary);
  z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; width: auto; height: auto; }
.site-hero a:focus-visible, #resume input:focus-visible,
#resume select:focus-visible, #resume button:focus-visible {
  outline: 3px solid var(--color-primary); outline-offset: 3px;
}
#resumeFormContainer[aria-busy='true'] #submitBtn { cursor: wait; }
@media (prefers-reduced-motion: reduce) {
  .animate-on-load { animation: none; opacity: 1; }
  html:focus-within { scroll-behavior: auto; }
}


/* Premium scroll reveals — progressive enhancement, no layout shifts. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-enabled .motion-reveal:not(.motion-visible),
  html.motion-enabled .motion-image:not(.motion-visible),
  html.motion-enabled .motion-card:not(.motion-visible) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  html.motion-enabled .motion-image:not(.motion-visible) {
    transform: translate3d(0, 22px, 0) scale(.965);
  }
  html.motion-enabled .motion-card:not(.motion-visible) {
    transform: translate3d(0, 35px, 0) scale(.975);
  }
  html.motion-enabled .motion-reveal,
  html.motion-enabled .motion-image,
  html.motion-enabled .motion-card {
    transition: opacity 850ms cubic-bezier(.22, 1, .36, 1),
                transform 950ms cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--motion-delay, 0ms);
  }
  html.motion-enabled .motion-visible {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
  .site-jobs article {
    transition: box-shadow 350ms ease, border-color 350ms ease,
                opacity 850ms cubic-bezier(.22,1,.36,1),
                transform 950ms cubic-bezier(.22,1,.36,1);
  }
  @media (hover: hover) and (pointer: fine) {
    .site-jobs article.motion-visible:hover {
      transform: translate3d(0, -7px, 0) scale(1.012);
      box-shadow: 0 18px 45px rgba(11,42,107,.11);
    }
    .site-hero nav a, #submitBtn {
      transition: transform 280ms cubic-bezier(.22,1,.36,1),
                  box-shadow 280ms ease, background-color 280ms ease !important;
    }
    .site-hero nav a:hover, #submitBtn:not(:disabled):hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 25px rgba(25,155,224,.25);
    }
    .site-hero nav a:active, #submitBtn:not(:disabled):active { transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-reveal, .motion-image, .motion-card {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
