/* Keep the primary nav on one line on desktop */
@media (min-width: 1200px) {
  .pxp-header .pxp-nav-wrapper,
  .pxp-header .pxp-nav,
  .pxp-header nav.pxp-nav {
    flex-wrap: nowrap;
  }
  .pxp-header .pxp-nav > ul,
  .pxp-header .navbar-nav,
  .pxp-header #menu-empleos-principal,
  .pxp-header .pxp-nav ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
  }
  .pxp-header .pxp-nav a,
  .pxp-header .pxp-nav .menu-item a {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 14px;
    white-space: nowrap;
  }
  .pxp-header .pxp-logo {
    margin-right: 1rem;
    flex-shrink: 0;
  }
  .pxp-header .pxp-user-nav,
  .pxp-header .pxp-header-right {
    flex-shrink: 0;
    margin-left: 0.5rem;
  }
}

.pxp-preloader { display: none !important; }

/* Prevent horizontal scroll site-wide */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}
.pxp-container, .pxp-header-container, .row {
  max-width: 100%;
}
a, p, li, td, .pxp-jobs-card-1-title, .pxp-single-job-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile + tablet (incl. iPhone 15 Pro Max 430 and iPad 768) */
@media screen and (max-width: 1199px) {
  /* Don't leave blank gaps from scroll-reveal animations */
  .pxp-animate-in,
  .pxp-animate-in-top,
  .pxp-animate-in-down {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    animation: none !important;
  }

  /* 16px inputs: stop iOS focus zoom; easier to read */
  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .form-floating > label {
    font-size: 16px !important;
    line-height: 1.4;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  select,
  textarea,
  .form-control,
  .form-select {
    min-height: 44px;
  }

  /* Larger tap targets */
  /* Keep the 3-line hamburger stacked (not in a row) while enlarging the hit area */
  .pxp-nav-trigger a,
  .pxp-nav-trigger button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    margin-left: 8px !important;
  }
  .pxp-logo > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 18px;
    line-height: 1.2;
    max-width: calc(100vw - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pxp-hero-searches-items > a,
  .pxp-footer a,
  .pxp-footer .menu-item a,
  footer a,
  .pxp-nav-mobile > div > ul > li > a,
  .offcanvas a.nav-link,
  .pxp-jobs-list-top a,
  .btn,
  button.btn,
  a.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .pxp-hero-searches-items > a {
    padding: 10px 16px;
    font-size: 15px;
    margin-bottom: 8px;
  }
  .pxp-jobs-card-1-category,
  .pxp-jobs-card-1-location,
  .pxp-jobs-card-1-company,
  .pxp-jobs-card-1-title,
  .pxp-jobs-card-2-category,
  .pxp-jobs-card-2-location,
  .pxp-jobs-card-2-company,
  .pxp-jobs-card-2-title,
  .pxp-jobs-card-2-type {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  /* Stack the default hero search (not only below 576px) so
     "Todas las ubicaciones" is never clipped on phablet/tablet */
  .pxp-hero-form-round,
  .pxp-hero-form-round.pxp-smaller,
  .pxp-hero-form-round.pxp-bigger,
  .pxp-hero-form-round.pxp-large {
    height: auto !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }
  .pxp-hero-form-round form,
  .pxp-hero-form-round.pxp-smaller form,
  .pxp-hero-form-round.pxp-bigger form,
  .pxp-hero-form-round.pxp-large form {
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .pxp-hero-form-round form .pxp-has-left-border,
  .pxp-hero-form-round.pxp-bigger form .pxp-has-left-border,
  .pxp-hero-form-round.pxp-large form .pxp-has-left-border {
    border-left: 0 none !important;
  }
  
  .pxp-hero-form-round form.row,
  .pxp-hero-form-round form .row {
    display: flex !important;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }
  .pxp-hero-form-round form [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    padding-left: 0;
    padding-right: 0;
  }

  .pxp-hero-form-round form button,
  .pxp-hero-form-round.pxp-smaller form button,
  .pxp-hero-form-round.pxp-bigger form button,
  .pxp-hero-form-round.pxp-large form button {
    width: 100% !important;
    height: 48px !important;
    margin: 8px 0 0 0 !important;
    border-radius: 24px !important;
  }
  .pxp-hero-form-round form .form-control,
  .pxp-hero-form-round form .form-select,
  .pxp-hero-form-round form .input-group {
    width: 100%;
    min-width: 0;
  }
  .pxp-hero-form-round form .form-select {
    text-overflow: ellipsis;
  }
  .pxp-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.5px;
  }
  .pxp-hero-caption {
    margin-top: 96px;
  }

  /* Auth pages: drop the 100vh + huge padding that buries the form */
  .pxp-signin-page.pxp-hero,
  .pxp-signup-page.pxp-hero,
  section.pxp-hero.pxp-signin-page,
  section.pxp-hero.vh-100.pxp-signin-page {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 72px;
  }
  .pxp-modal-cta,
  a.pxp-signin-page-btn,
  a.pxp-signup-page-btn,
  .pxp-signin-page-btn,
  .pxp-signup-page-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    background-color: var(--pxpMainColor, #262e5d) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 40px;
  }
  .pxp-modal-cta:hover,
  .pxp-signin-page-btn:hover,
  .pxp-signup-page-btn:hover {
    background-color: var(--pxpMainColorDark, #0a0549) !important;
    color: #fff !important;
  }
  /* Hide Forminator's English native file button once our Spanish control is in place */
  .forminator-field:has(.empleos-file) .forminator-button-upload,
  .forminator-field:has(.empleos-file) button.forminator-button,
  .forminator-file-upload:has(.empleos-file) > button,
  .forminator-file-upload:has(.empleos-file) > span:not(.empleos-file-name):not(.empleos-file-btn) {
    display: none !important;
  }
  .pxp-sign-hero-fig,
  .pxp-sign-hero-form {
    padding-top: 24px !important;
    padding-bottom: 32px !important;
  }
  .pxp-sign-hero-fig img {
    max-height: 140px;
    width: auto;
    margin: 0 auto;
  }
  .pxp-sign-hero-fig h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .pxp-sign-hero-form-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Forms: full-width, comfortable controls */
  .forminator-ui,
  .forminator-custom-form,
  .wpcf7-form,
  .pxp-dashboard-content-details form,
  form.pxp-auth-page {
    max-width: 100%;
  }
  .forminator-button,
  .forminator-button-submit,
  input[type="submit"],
  button[type="submit"] {
    width: 100%;
    min-height: 48px;
    font-size: 16px !important;
  }

  /* Custom file input (Spanish labels via JS) */
  .empleos-file {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  .empleos-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
  }
  .empleos-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--pxpMainColor, #262e5d);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
  }
  .empleos-file-name {
    font-size: 15px;
    color: var(--pxpTextColor, #222);
    flex: 1 1 140px;
  }

  /* Jobs list filter / search toggles already large; keep them full width */
  .pxp-list-side-filter-header,
  .pxp-jobs-search-toggle,
  .pxp-list-toggle {
    min-height: 48px;
  }

  /* Cities grid already stacks; keep cards from overflowing */
  .pxp-cities-card-2 {
    width: 100%;
  }
  .pxp-cities-card-2-image-container {
    overflow: hidden;
  }

  /* Footer link rows */
  .pxp-footer .menu-item,
  footer .menu-item {
    margin-bottom: 4px;
  }
  .pxp-footer a,
  footer a {
    padding: 8px 0;
  }

  /* Offcanvas close control */
  .offcanvas .btn-close,
  .pxp-nav-mobile-container .btn-close {
    min-width: 44px;
    min-height: 44px;
  }
}

@media screen and (max-width: 767px) {
  .pxp-header-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .pxp-single-job-content a {
    overflow-wrap: anywhere;
  }
}

/* Hide leftover "No file chosen" once our widget is in place */
.empleos-file + .forminator-file-upload,
.forminator-field:has(.empleos-file) .forminator-button-upload {
  /* keep layout stable */
}


/* --- Post-a-job company gate (/publicar-empleo/) --- */
.empleos-post-job-gate {
  padding: 112px 0 64px;
  background-color: var(--pxpMainColorLight, #e9f8fe);
  min-height: 70vh;
}
.empleos-post-job-gate-intro {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.empleos-post-job-gate-intro h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.empleos-post-job-gate-intro p,
.empleos-post-job-gate-lead,
.empleos-post-job-gate-notice p {
  color: #39415c;
  font-size: 16px;
  line-height: 1.5;
}
.empleos-post-job-gate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media screen and (min-width: 900px) {
  .empleos-post-job-gate-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.empleos-post-job-gate-card,
.empleos-post-job-gate-notice {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: 0 12px 30px rgba(38, 46, 93, 0.08);
}
.empleos-post-job-gate-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.empleos-post-job-gate-form .pxp-modal-cta,
.empleos-post-job-gate-notice .pxp-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  background-color: var(--pxpMainColor, #262e5d) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px;
}
.empleos-post-job-gate-form .form-control {
  font-size: 16px;
  min-height: 48px;
}


.empleos-post-job-gate-price {
  margin-top: 10px;
  font-size: 16px;
}
.empleos-post-job-gate-price a {
  font-weight: 600;
  text-decoration: underline;
}
