:root {
  --red: #c31038;
  --navy: #0f1b2d;
  --gray-bg: #f7f8fa;
  --white: #ffffff;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  color: #222;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* HEADER */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: box-shadow 0.3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 68px;
}
.logo img { height: 44px; width: auto; display: block; }
.nav-desktop { display: flex; gap: 1.5rem; align-items: center; }
.nav-desktop a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--red); }

.lang-selector {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
}
.lang-selector span {
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.lang-selector span:hover, .lang-selector span.active {
  background: var(--red);
  color: #fff;
}
.btn-cta {
  background: var(--red);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-cta:hover { background: #a00d2e; transform: translateY(-1px); color: #fff !important; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* SIDE DRAWER */
#side-drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
#side-drawer.open { right: 0; }
#drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
}
#drawer-overlay.show { display: block; }
.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
  margin-bottom: 1rem;
}
.drawer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}
.drawer-nav a:hover { color: var(--red); }
.drawer-cta { margin-top: 1.5rem; text-align: center; }

/* FOOTER */
#site-footer {
  background: var(--navy);
  color: #b0b8c9;
  padding: 3.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: #8a94a8; }
.footer-nav h4, .footer-cta-block h4 {
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: #8a94a8; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-cta-block p { font-size: 0.88rem; color: #8a94a8; line-height: 1.6; margin-bottom: 1rem; }
.footer-logos {
  border-top: 1px solid #1e2d45;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-logos img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-logos img:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid #1e2d45;
  margin-top: 2rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #4a5568;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2f50 60%, #c31038 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  color: #c8d4e8;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* STATS */
.stats-bar {
  background: var(--red);
  color: #fff;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  display: block;
}
.stat-item .label { font-size: 0.85rem; opacity: 0.88; }

/* SECTION */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-sub {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.job-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.job-card:hover { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(0,0,0,0.13); }
.job-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.job-card-body { padding: 1.2rem; flex: 1; }
.job-card-sector {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.job-card-title {
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.job-card-desc { font-size: 0.88rem; color: #6b7280; line-height: 1.5; margin-bottom: 1rem; }
.job-card-footer {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.salary { font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.apply-btn {
  background: var(--red);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.apply-btn:hover { background: #a00d2e; }

/* JOB DETAIL */
.job-hero {
  background: linear-gradient(135deg, var(--navy), #1a2f50);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
}
.job-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.job-hero .badges { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
}
.job-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.job-detail-main h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.5rem 0 0.75rem;
  font-family: 'Playfair Display', serif;
}
.job-detail-main ul { padding-left: 1.3rem; color: #444; font-size: 0.95rem; line-height: 1.8; }
.job-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  align-self: start;
  position: sticky;
  top: 80px;
}
.job-sidebar h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 1rem; }
.job-sidebar .info-row { display: flex; justify-content: space-between; margin-bottom: 0.7rem; font-size: 0.88rem; border-bottom: 1px solid #f0f0f0; padding-bottom: 0.5rem; }
.job-sidebar .info-label { color: #888; }
.job-sidebar .info-val { font-weight: 600; color: var(--navy); text-align: right; }
.apply-box { margin-top: 1.5rem; }
.apply-box a { display: block; text-align: center; padding: 0.9rem; background: var(--red); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1rem; transition: background 0.2s; }
.apply-box a:hover { background: #a00d2e; }
.apply-box small { display: block; text-align: center; color: #888; font-size: 0.78rem; margin-top: 0.5rem; }

/* PAGE HERO generic */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #1a2f50);
  color: #fff;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.page-hero p { color: #c8d4e8; font-size: 1rem; max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.82rem;
  color: #aaa;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb span { margin: 0 0.4rem; }

/* PROCESO STEPS */
.steps { display: flex; flex-direction: column; gap: 2rem; max-width: 760px; margin: 0 auto; }
.step-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  min-width: 52px;
  height: 52px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  flex-shrink: 0;
}
.step-content h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.4rem; }
.step-content p { color: #555; font-size: 0.93rem; line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
}
.faq-q i { color: var(--red); transition: transform 0.3s; font-size: 0.85rem; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
  padding: 0 1.3rem;
}
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item.open .faq-a { max-height: 300px; padding: 0.5rem 1.3rem 1.2rem; }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.news-card:hover { transform: translateY(-4px); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card-body { padding: 1.2rem; }
.news-date { font-size: 0.78rem; color: var(--red); font-weight: 600; margin-bottom: 0.4rem; text-transform: uppercase; }
.news-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; }
.news-card p { font-size: 0.87rem; color: #666; line-height: 1.6; }

/* CONTACT FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 960px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  border: 1.5px solid #ddd;
  border-radius: 7px;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-submit:hover { background: #a00d2e; }
.contact-info h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 1rem; }
.contact-info p { font-size: 0.93rem; color: #555; line-height: 1.7; margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1rem; }
.contact-detail i { color: var(--red); font-size: 1.1rem; margin-top: 2px; }
.contact-detail span { font-size: 0.92rem; color: #444; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .job-detail-grid { grid-template-columns: 1fr; }
  .job-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-desktop, .lang-selector { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; }
}
