:root {
  --red: #ed0018;
  --black: #111314;
  --ink: #211817;
  --gray: #8f9aa4;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #000;
  font-family: Inter, Arial, sans-serif;
}

button,
a,
input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.contact-page {
  overflow-x: hidden;
  background: #fff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .78s cubic-bezier(.22, .68, .26, 1),
    transform .78s cubic-bezier(.22, .68, .26, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #090909;
}

.contact-hero--modx {
  margin-top: 2rem;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/contacto/Isuzu_sitio2026_contacto1.jpg") center / cover no-repeat;
  filter: brightness(.72) contrast(1.24) saturate(1.08);
  transform: scale(1.01);
}

.contact-hero__shade {
  display: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(520px, 620px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: 120px 0 170px;
}

.contact-hero__copy {
  position: relative;
  min-width: 0;
  max-width: 470px;
  padding-left: 28px;
}

.contact-hero__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 5px;
  height: 120px;
  background: var(--red);
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(21px, 2.35vw, 28px);
  line-height: 1.14;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
}

.hero-form {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(34px, 4vw, 46px);
  border-radius: 14px;
  background: rgba(255,255,255,.93);
  color: #222;
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}

.hero-form h2,
.job-modal__form h2 {
  margin: 26px 0 12px;
  color: var(--red);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.1;
  font-weight: 900;
}

.hero-form p {
  margin: 0 0 26px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-form select {
  width: 64%;
  min-height: 32px;
  border: 2px solid rgba(237,0,24,.48);
  color: #333;
  background: transparent;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 36px;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.job-modal__form input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid #bfc3c6;
  border-radius: 0;
  background: transparent;
  color: #222;
  outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.job-modal__form input:focus {
  border-bottom-color: var(--red);
}

.form-grid select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--red) 50%),
    linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-grid textarea {
  grid-column: 1 / -1;
  height: 90px;
  padding-top: 22px;
  resize: vertical;
}

.switch-submit,
.outline-pill {
  --knob-width: 132px;
  --knob-shift: 64px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 198px;
  min-width: 198px;
  min-height: 48px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.switch-submit::before,
.outline-pill::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: var(--knob-width);
  border-radius: 999px;
  background: var(--red);
  transition: transform .3s ease, background .3s ease;
}

.switch-submit span,
.outline-pill span {
  position: absolute;
  left: 5px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--knob-width);
  height: calc(100% - 10px);
  transform: translateY(-50%);
  transition: transform .3s ease;
}

.switch-submit:hover::before,
.outline-pill:hover::before {
  transform: translateX(var(--knob-shift));
  background: #050505;
}

.switch-submit:hover span,
.outline-pill:hover span {
  transform: translate(var(--knob-shift), -50%);
}

.hero-form .switch-submit {
  width: auto;
  min-width: 198px;
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.hero-form .switch-submit::before {
  display: none;
}

.hero-form .switch-submit span {
  position: static;
  width: auto;
  height: auto;
  transform: none;
}

.hero-form .switch-submit:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.hero-form .switch-submit:hover span {
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.contact-wave {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -1px;
  z-index: 1;
  width: 112%;
  min-width: 1280px;
  height: clamp(190px, 24vw, 360px);
  pointer-events: none;
  background: url("/assets/contacto/waves-hero-superior.png") center bottom / 100% auto no-repeat;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-50%);
  animation: contactWaveReveal 3s cubic-bezier(.25, 1, .5, 1) .35s forwards;
}

@keyframes contactWaveReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.social-callout {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 94px 24px 82px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(237,0,24,.92), rgba(206,0,22,.96)),
    url("/assets/contacto/redform_back.png") center / cover no-repeat;
}

.social-callout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: clamp(74px, 11vw, 128px);
  background: url("/assets/contacto/waves-hero-inferior.png") center top / 100% auto no-repeat;
  pointer-events: none;
}

.social-callout__inner {
  width: min(560px, 100%);
}

.social-callout h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.08;
  font-weight: 900;
}

.social-callout i {
  display: block;
  width: min(310px, 80%);
  height: 2px;
  margin: 28px auto 24px;
  background: rgba(255,255,255,.48);
}

.social-callout__icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-callout__icons a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: transform .2s ease;
}

.social-callout__icons a:hover {
  transform: translateY(-2px);
}

.social-callout__icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.job-cta {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background: #fff url("/assets/contacto/Isuzu_sitio2026_contacto_bolsaTrabajo.jpg") center / cover no-repeat;
}

.job-cta__content {
  width: min(420px, calc(100% - 48px));
  justify-self: end;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  margin-right: clamp(40px, 11vw, 150px);
  padding: 48px 0;
  text-align: center;
}

.job-cta h2 {
  max-width: 380px;
  margin: 0;
  color: #050505;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.outline-pill {
  color: #fff;
  font-size: 14px;
}

.contact-info {
  min-height: 610px;
  display: grid;
  place-items: center;
  padding: 110px 24px;
  color: #fff;
  background: #000;
  text-align: center;
}

.contact-info__inner {
  width: min(560px, 100%);
}

.contact-info img {
  width: clamp(86px, 7vw, 118px);
  margin-bottom: 28px;
}

.contact-info p {
  margin: 0 auto 26px;
  max-width: 560px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.28;
}

.contact-info a {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--red);
  text-decoration: none;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.contact-info h2 {
  margin: 0 0 24px;
  color: rgba(255,255,255,.86);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  font-weight: 400;
}

.contact-info address {
  margin: 0 auto;
  max-width: 700px;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.75vw, 23px);
  font-style: normal;
  line-height: 1.3;
}

.job-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(255,255,255,.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .52s cubic-bezier(.22, .68, .26, 1);
}

.job-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.job-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff url("/assets/contacto/Isuzu_sitio2026_home_BolsaTrabajo_modalback.jpg") center / cover no-repeat;
  opacity: .96;
  transform: translateY(12px) scale(1.01);
  filter: blur(8px);
  transition:
    opacity .58s cubic-bezier(.22, .68, .26, 1),
    transform .58s cubic-bezier(.22, .68, .26, 1),
    filter .58s cubic-bezier(.22, .68, .26, 1);
}

.job-modal.is-open .job-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.job-modal__close {
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.job-modal__form {
  width: min(560px, 46vw);
  height: 100%;
  display: grid;
  align-content: center;
  gap: 22px;
  margin-left: clamp(54px, 7.5vw, 98px);
  padding: clamp(36px, 8vw, 96px) 0;
  color: #171717;
}

.job-modal__form h2 {
  max-width: 560px;
  margin: 0 0 18px;
  color: #171717;
  font-size: 20px;
  font-weight: 500;
}

.job-modal__form .switch-submit {
  margin-top: 54px;
}

.job-cta .outline-pill {
  justify-self: center;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .contact-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 96px;
  }

  .hero-form {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .job-cta {
    min-height: 440px;
    background-position: center;
  }

  .job-cta__content {
    align-self: end;
    justify-self: center;
    margin: 0;
    padding-bottom: 42px;
  }

  .job-modal__panel {
    min-height: 100%;
    overflow-y: auto;
  }

  .job-modal__form {
    width: min(560px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 96px 0 64px;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    min-height: 1280px;
    align-items: start;
  }

  .contact-hero::before {
    background-image: url("/assets/contacto/Isuzu_sitio2026_contacto1_MOB.jpg");
  }

  .contact-hero__inner {
    width: calc(100% - 28px);
    padding: 620px 0 210px;
  }

  .contact-hero__copy {
    position: absolute;
    left: 50%;
    top: 30px;
    width: min(100%, 286px);
    padding-left: 18px;
    text-align: center;
    transform: translateX(-50%) !important;
  }

  .contact-hero h1 {
    font-size: 19px;
    line-height: 1.12;
  }

  .contact-hero__copy::before {
    height: 100%;
  }

  .hero-form {
    padding: 28px 20px;
  }

  .hero-form p {
    max-width: 310px;
    font-size: 12px;
  }

  .hero-form select {
    width: 100%;
  }

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

  .form-grid textarea {
    grid-column: auto;
  }

  .contact-wave,
  .social-callout::before {
    left: 50%;
    right: auto;
    width: 178%;
    min-width: 720px;
    transform: translateX(-50%);
    background-size: 100% auto;
  }

  .social-callout {
    min-height: 320px;
    padding-top: 80px;
  }

  .contact-info {
    min-height: 540px;
  }

  .contact-info a {
    margin-bottom: 58px;
  }

  .job-modal__close {
    right: 16px;
    top: 16px;
  }

  .job-modal__form {
    width: calc(100% - 44px);
    min-height: 100vh;
    padding: 88px 0 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .contact-wave {
    clip-path: none;
  }
}
