:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --bg-dark: #0b2f45;
  --text: #0b2f45;
  --text-soft: #5b6b7d;
  --text-on-dark: #f5f5f7;
  --accent: #f57f00;
  --teal: #0f9d8a;
  --teal-soft: #e3f4f1;
  --cream: #fff4e8;
  --accent-hover: #e07200;
  --link: #c25e00;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --border: #dcd8d2;
  --radius: 18px;
  --max: 1024px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.47;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.logo-text { letter-spacing: -0.02em; font-weight: 800; color: var(--text); }
.tagline { display: block; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); margin-top: 2px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid var(--border); }
.foot-brand .logo-mark { width: 44px; height: 44px; }
.foot-brand strong { display: block; color: var(--text); font-size: 15px; }
.legal { display: grid; gap: 3px; line-height: 1.6; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 12px; color: var(--text); opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 12px; background: var(--accent); color: #fff;
  padding: 5px 12px; border-radius: 980px;
}
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px 0; transition: .3s; }

/* ---------- BUTTONS ---------- */
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; font-weight: 400; transition: background .2s, color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.link-arrow { color: var(--link); font-size: 19px; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
  text-align: center; padding: 90px 22px 0;
  background: var(--bg-alt); overflow: hidden;
}
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.05;
}
.hero p.sub {
  font-size: clamp(19px, 2.4vw, 28px); color: var(--text-soft);
  max-width: 720px; margin: 14px auto 0; letter-spacing: .007em;
}
.hero-visual {
  max-width: 980px; margin: 60px auto 0; height: 420px;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245,127,0,.6), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(15,157,138,.55), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255,196,120,.35), transparent 50%),
    #0b2f45;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 40px;
}
.avatar-card {
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 22px; width: 190px; color: #fff; text-align: left;
  animation: float 6s ease-in-out infinite;
}
.avatar-card:nth-child(2) { animation-delay: -2s; transform: translateY(-30px); }
.avatar-card:nth-child(3) { animation-delay: -4s; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.avatar-card h4 { font-size: 15px; font-weight: 600; }
.avatar-card small { font-size: 12px; opacity: .7; }
.avatar-card .tag {
  display: inline-block; margin-top: 12px; font-size: 11px;
  padding: 3px 10px; border-radius: 980px; background: rgba(52,199,89,.25); color: #8ff0a4;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- DARK FEATURE ---------- */
.feature-dark {
  background: var(--bg-dark); color: var(--text-on-dark);
  text-align: center; padding: 100px 22px;
}
.feature-dark h2 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.07;
}
.gradient-text {
  background: linear-gradient(90deg, #ffa940, #f57f00, #2ec4b6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.feature-dark p { font-size: 21px; color: #a9bccb; max-width: 640px; margin: 18px auto 0; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  max-width: var(--max); margin: 70px auto 0;
}
.stat strong { display: block; font-size: clamp(40px, 6vw, 64px); font-weight: 700; }
.stat strong { color: #ffa940; }
.stat span { color: #a9bccb; font-size: 17px; }

/* ---------- SECTIONS ---------- */
section.block { padding: 100px 22px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
.section-head p { font-size: 21px; color: var(--text-soft); margin-top: 14px; }

/* Services grid (tiles style) */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: 1260px; margin: 0 auto; padding: 0 12px;
}
.tile {
  border-radius: var(--radius); padding: 56px 40px 0; min-height: 520px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  overflow: hidden; position: relative;
}
.tile h3 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.005em; }
.tile p { font-size: 19px; margin-top: 6px; opacity: .85; }
.tile .btns { margin-top: 16px; }
.tile .btn { font-size: 14px; padding: 8px 16px; }
.tile-icon {
  margin-top: auto; font-size: 150px; line-height: 1; padding-bottom: 30px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.15));
  transition: transform .5s ease;
}
.tile:hover .tile-icon { transform: scale(1.06) translateY(-6px); }
.tile.light { background: var(--bg-alt); color: var(--text); }
.tile.dark { background: var(--bg-dark); color: #f7f5f2; }
.tile.dark .btn-secondary { color: #ffa940; border-color: #ffa940; }
.tile.dark .btn-secondary:hover { background: #ffa940; color: var(--bg-dark); }
.tile.blue { background: linear-gradient(180deg, #e9f7f4, #cdeee8); }
.tile.warm { background: linear-gradient(180deg, #fff3e6, #ffe0c2); }

/* Process */
.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: var(--max); margin: 0 auto;
}
.step {
  background: var(--bg-alt); border-radius: var(--radius); padding: 32px 26px;
  transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 15px; margin-bottom: 20px;
}
.step h4 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* Jobs */
.jobs-wrap { background: var(--bg-alt); }
.jobs { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.job {
  background: #fff; border-radius: 14px; padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: box-shadow .25s;
}
.job:hover { box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.job h4 { font-size: 19px; font-weight: 600; }
.job .meta { color: var(--text-soft); font-size: 14px; margin-top: 2px; }
.job .chip {
  font-size: 12px; padding: 4px 10px; border-radius: 980px; background: var(--teal-soft); color: #0b7a6c;
  margin-right: 6px;
}
.jobs-more { text-align: center; margin-top: 34px; }

/* Testimonial */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
}
.quote cite { display: block; margin-top: 24px; font-style: normal; color: var(--text-soft); font-size: 17px; }

/* CTA */
.cta {
  text-align: center; padding: 110px 22px;
  background: linear-gradient(180deg, #ffffff, var(--cream));
}
.cta h2 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 700; letter-spacing: -0.01em; }
.cta p { font-size: 21px; color: var(--text-soft); margin-top: 10px; }
.cta form {
  display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0;
}
.cta input {
  flex: 1; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border);
  font-size: 17px; font-family: inherit; outline: none; background: #fff;
}
.cta input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,127,0,.18); }
.cta button { border: 0; cursor: pointer; font-family: inherit; }

/* Footer */
footer { background: var(--bg-alt); color: var(--text-soft); font-size: 12px; padding: 40px 22px 24px; }
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.foot-cols h5 { color: var(--text); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.foot-cols ul { list-style: none; display: grid; gap: 8px; }
.foot-cols a:hover { text-decoration: underline; color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 48px; left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 12px 22px 24px; border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav.open .nav-links a { display: block; font-size: 24px; font-weight: 600; padding: 10px 0; opacity: 1; }
  .nav.open .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

  .hero { padding-top: 60px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .hero-visual { height: 300px; padding: 20px; gap: 10px; }
  .avatar-card { width: 140px; padding: 14px; }
  .avatar-card:nth-child(3) { display: none; }
  .tiles { grid-template-columns: 1fr; padding: 0; }
  .tile { min-height: 440px; border-radius: 0; padding: 48px 22px 0; }
  .tile-icon { font-size: 110px; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .process { grid-template-columns: 1fr; }
  .job { flex-direction: column; align-items: flex-start; }
  .cta form { flex-direction: column; }
  section.block { padding: 72px 16px; }
}

/* Imágenes de tarjetas y vacantes */
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile-img { margin-top: auto; width: 100%; max-width: 440px; border-radius: 18px 18px 0 0; display: block; }
.job-thumb { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.job-info { flex: 1; }
@media (max-width: 734px) {
  .job-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 200px; }
}

/* ===== Sistema común (menú, títulos, botones, pie) ===== */
html { scroll-padding-top: 64px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.nav-inner { max-width: 1160px; }
.logo-stack { display: flex; flex-direction: column; line-height: 1.1; }
.logo-stack .tagline { font-size: 8.5px; letter-spacing: .18em; margin-top: 2px; }
.nav-links { gap: 28px; }
.nav-links a { font-size: 13px; }
.nav-cta { font-size: 13px; padding: 8px 16px; font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #0b7a6c; background: var(--teal-soft); padding: 7px 14px; border-radius: 980px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.sec-label { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.sec-title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin-top: 10px; }
.sec-intro { font-size: 19px; color: var(--text-soft); margin-top: 14px; max-width: 640px; }
.center { text-align: center; }
.center .sec-intro { margin-left: auto; margin-right: auto; }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-navy { background: var(--bg-dark); color: #fff; font-weight: 600; }
.btn-navy:hover { background: #134a6a; }
/* FOOTER */
.foot-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.foot-main .logo { margin-bottom: 12px; }
.foot-main p { max-width: 300px; line-height: 1.6; }
.foot-main h5 { color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 12px; }
.foot-main ul { list-style: none; display: grid; gap: 8px; }
.foot-main a:hover { color: var(--text); text-decoration: underline; }

/* Encabezado de páginas internas (mismo estilo que la portada) */
.page-hero {
  text-align: center; padding: 80px 22px 70px;
  background: radial-gradient(circle at 85% 10%, rgba(15,157,138,.12), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(245,127,0,.12), transparent 45%), var(--bg-alt);
}
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-top: 22px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-soft); max-width: 640px; margin: 18px auto 0; }

/* Banda naranja de llamada a la acción */
.band { padding: 0 0 100px; }
.band-inner {
  border-radius: 28px; padding: 56px; color: #fff;
  background: linear-gradient(120deg, #f57f00, #ff9c33 55%, #ffb35c);
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; max-width: 640px; }
.band p { font-size: 18px; margin-top: 10px; opacity: .95; }

@media (max-width: 980px) { .foot-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 734px) {
  .wrap { padding: 0 16px; }
  .foot-main { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 16px 52px; }
  .band-inner { padding: 36px 24px; }
  .band { padding-bottom: 72px; }
}
