:root {
  --red: #E4032A;
  --red-dark: #B4021F;
  --black: #0B0B0D;
  --gray-950: #121214;
  --gray-900: #18181B;
  --gray-100: #F5F5F7;
  --white: #FFFFFF;
  --text: #1C1C1F;
  --muted: #6B6B72;
  --radius: 14px;
  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  z-index: 1000;
  transition: width .1s linear;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 22px 0;
  transition: all .35s var(--ease);
  background: transparent;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(11,11,13,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  transition: transform .3s var(--ease);
}
.logo:hover { transform: translateY(-2px); }
.logo img { height: 32px; width: auto; display: block; }
.logo--footer {
  padding: 10px 18px;
}
.logo--footer img { height: 24px; }
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  transition: color .2s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__social { display: flex; align-items: center; gap: 14px; }
.header__social img {
  width: 24px;
  height: 24px;
  opacity: .9;
  transition: opacity .2s, transform .25s var(--ease);
}
.header__social a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s var(--ease);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(228,3,42,.35);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(228,3,42,.45);
}
.btn--outline {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
}
.btn--outline-dark {
  border-color: rgba(28,28,31,.25);
  color: var(--text);
}
.btn--outline-dark:hover {
  border-color: var(--text);
  background: rgba(28,28,31,.05);
  transform: translateY(-3px);
}
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,.75) 0%, rgba(11,11,13,.55) 40%, rgba(11,11,13,.92) 100%),
    linear-gradient(100deg, rgba(11,11,13,.95) 20%, rgba(228,3,42,.25) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero__tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 18px;
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero__title span { color: var(--red); }
.hero__subtitle {
  color: rgba(255,255,255,.82);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 560px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 20px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* Marquee strip */
.marquee-strip {
  background: var(--red);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-strip__track {
  display: flex;
  gap: 16px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-strip__track span {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: .85rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 110px 0; }
.section--dark { background: var(--gray-950); color: var(--white); }
.section--careers {
  background: linear-gradient(120deg, var(--black) 0%, var(--red-dark) 140%);
  color: var(--white);
}

.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 14px;
}
.eyebrow--light { color: #ff6b85; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 700px;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 20px;
}
.section--dark .section-subtitle { color: rgba(255,255,255,.68); }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.about__text p { color: var(--muted); line-height: 1.8; margin-bottom: 16px; font-size: 1.02rem; }
.about__text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 20px; line-height: 1.25; }
.about__quote {
  border-left: 3px solid var(--red);
  padding: 4px 20px;
  margin-top: 24px;
  font-style: italic;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}
.about__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.18);
}
.about__img img { height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.about__img:hover img { transform: scale(1.05); }
.about--reverse { grid-template-columns: .9fr 1.1fr; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.service-card {
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform .35s var(--ease), border-color .35s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--red);
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(228,3,42,.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: rgba(255,255,255,.65); line-height: 1.7; font-size: .96rem; }

/* Quality (por qué elegir / por qué trabajar) */
.quality {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: center;
}
.quality--reverse { grid-template-columns: .85fr 1.15fr; }
.quality--reverse .quality__badge { order: 1; }
.quality--reverse .quality__text { order: 2; }
.quality__text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 4px 0 18px; line-height: 1.3; }
.quality__text > p { color: var(--muted); line-height: 1.8; font-size: 1.02rem; margin-bottom: 22px; }
.quality__text-p { color: rgba(255,255,255,.72); line-height: 1.8; font-size: 1.02rem; margin-bottom: 22px; }
.quality__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.quality__list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-weight: 500;
  font-size: .98rem;
}
.quality__list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: -1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
}
.quality__list--light li { color: rgba(255,255,255,.88); }

.quality__badge {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 44px 38px;
  text-align: center;
}
.quality__badge--dark {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.quality__badge-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(228,3,42,.12);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.quality__badge-icon svg { width: 32px; height: 32px; }
.quality__badge h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; line-height: 1.35; }
.quality__badge--dark h3 { color: var(--white); }
.quality__badge p { color: var(--muted); line-height: 1.7; font-size: .95rem; }
.quality__badge--dark p { color: rgba(255,255,255,.68); }

@media (max-width: 900px) {
  .quality, .quality--reverse { grid-template-columns: 1fr; }
  .quality--reverse .quality__badge { order: -1; }
}

/* Gallery (scrolling) */
.gallery { overflow: hidden; margin-top: 20px; }
.gallery__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: galleryScroll 100s linear infinite;
}
.gallery:hover .gallery__track { animation-play-state: paused; }
@keyframes galleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery__item {
  position: relative;
  display: block;
  width: 340px;
  height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.gallery__item:hover { transform: translateY(-6px); }
.gallery__item-photo { width: 100%; height: 100%; object-fit: cover; }
.gallery__item-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
}
.gallery__item-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
}

/* Careers */
.careers { display: flex; justify-content: center; }
.careers__content { max-width: 680px; text-align: center; }
.careers__content p:not(.eyebrow) { color: rgba(255,255,255,.82); line-height: 1.8; font-size: 1.05rem; margin: 20px 0 32px; }
.careers__email { color: rgba(255,255,255,.7) !important; margin-top: 16px !important; font-weight: 600; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}
.contact-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s;
  border: 1px solid transparent;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  border-color: var(--red);
}
.contact-card__icon { font-size: 2rem; margin-bottom: 14px; }
.contact-card__icon--img { width: 40px; height: 40px; margin-left: auto; margin-right: auto; }
.contact-card__icon--img img { width: 100%; height: 100%; object-fit: contain; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-weight: 500; word-break: break-word; }

/* Location / Map */
.location {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-top: 70px;
  padding-top: 60px;
  border-top: 1px solid #eee;
}
.location__text h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.location__address {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.location__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0,0,0,.15);
  aspect-ratio: 4 / 3;
}
.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .location { grid-template-columns: 1fr; margin-top: 50px; padding-top: 40px; }
  .location__map { order: -1; }
}

/* Footer */
.footer { background: var(--black); color: rgba(255,255,255,.6); padding: 40px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo--footer { font-size: 1.1rem; }
.footer a { font-weight: 600; color: var(--white); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero__tag.reveal.is-visible { transition-delay: .05s; }
.hero__title.reveal.is-visible { transition-delay: .15s; }
.hero__subtitle.reveal.is-visible { transition-delay: .25s; }
.hero__cta.reveal.is-visible { transition-delay: .35s; }

/* Responsive */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(78%, 320px);
    height: 100vh;
    background: var(--gray-950);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transition: right .4s var(--ease);
    z-index: 950;
  }
  .nav.open { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,.4); }
  .nav a { font-size: 1.05rem; }
  .menu-toggle { display: flex; z-index: 960; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about { grid-template-columns: 1fr; }
  .about__img { order: -1; }
  .services { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .gallery__item { width: 260px; height: 180px; }
  .gallery__item-logo { width: 44px; height: 44px; top: 10px; right: 10px; }
}

/* Modal de postulación */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,11,13,.72);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 42px 40px;
  box-shadow: 0 40px 90px rgba(0,0,0,.4);
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}
.modal__close:hover { background: #e8e8ea; }
.modal__step h3 { font-size: 1.4rem; font-weight: 800; margin: 6px 0 12px; line-height: 1.3; }
.modal__hint { color: var(--muted); margin-bottom: 22px; font-size: .96rem; }
.modal__success-icon { font-size: 2.6rem; margin-bottom: 8px; }
#stepSuccess { text-align: center; padding: 20px 0; }
#stepSuccess p { color: var(--muted); line-height: 1.7; margin-bottom: 26px; }

/* Formulario de postulación */
.apply-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 24px;
}
.apply-form__full { grid-column: 1 / -1; }
.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.apply-form input,
.apply-form select,
.apply-form textarea {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 400;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1.5px solid #e2e2e5;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.apply-form textarea { resize: vertical; }

@media (max-width: 560px) {
  .modal__dialog { padding: 32px 22px; }
  .apply-form__grid { grid-template-columns: 1fr; }
}
