:root {
  --blue:    #0032bc;
  --blue2:   #0028a0;
  --blue3:   #4d78e8;
  --blueXL:  #EEF3FF;
  --blueL:   #C5D3FA;
  --green:   #16A34A;
  --greenXL: #DCFCE7;
  --white:   #FFFFFF;
  --bg:      #F4F6FF;
  --text:    #0D1A3F;
  --muted:   #4A6ABF;
  --line:    #DDE4F5;
  --shadow:  0 8px 32px rgba(0,50,188,.10);
  --max:     1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden }
a { text-decoration: none; color: inherit }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,50,188,.06);
  transition: background .3s;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -.3px;
  color: var(--blue);
}
.nav-logo span { color: var(--text) }
.nav-links { display: flex; gap: 28px; list-style: none }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text); transition: color .2s }
.nav-links a:hover { color: var(--blue) }
.nav-cta {
  background: var(--blue); color: #fff;
  padding: 9px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue2) }
.back-btn {
  font-size: 14px; font-weight: 600; color: var(--blue);
  border: 1.5px solid var(--blueL); border-radius: 8px;
  padding: 7px 16px; transition: background .2s;
}
.back-btn:hover { background: var(--blueXL) }

/* ── HERO ── */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  padding: 120px 40px 64px;
  background: linear-gradient(135deg, #001880 0%, #0032bc 60%, #4d78e8 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/img/hero.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.25);
}
.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5vw, 54px); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 16px;
}
.hero-title .accent { color: #7eb3ff }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 36px; max-width: 560px }

/* ── SEARCH BOX ── */
.search-box {
  background: #fff; border-radius: 16px;
  padding: 24px 28px; max-width: 700px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.search-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end }
.search-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px }
.search-field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px }
.search-field input,
.search-field select {
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 10px 14px; font-size: 14px; color: var(--text);
  background: #fff; outline: none; transition: border .2s;
}
.search-field input:focus,
.search-field select:focus { border-color: var(--blue) }
.search-btn {
  background: var(--blue); color: #fff;
  border: none; cursor: pointer;
  padding: 10px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: background .2s; white-space: nowrap;
}
.search-btn:hover { background: var(--blue2) }

/* ── STATS STRIP ── */
.stats-strip {
  display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap;
}
.strip-stat { display: flex; align-items: center; gap: 12px }
.strip-num { font-size: 28px; font-weight: 800; color: #fff }
.strip-lbl { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.4 }
.strip-div { width: 1px; background: rgba(255,255,255,.25); align-self: stretch }

/* ── SECCIONES ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px }
section { padding: 64px 0 }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800;
  color: var(--text); line-height: 1.2;
}
.green-line { width: 48px; height: 4px; background: var(--blue); border-radius: 2px; margin-top: 14px }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px }

/* ── GRID DE EMPLEOS ── */
.empleo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.empleo-card {
  background: #fff; border-radius: 16px;
  border: 1.5px solid var(--line);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.empleo-card:hover { box-shadow: var(--shadow); transform: translateY(-3px) }
.empleo-img-wrap { position: relative; height: 180px; overflow: hidden }
.empleo-img { width: 100%; height: 100%; object-fit: cover }
.empleo-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.tag-full  { background: var(--blueXL); color: var(--blue) }
.tag-part  { background: var(--greenXL); color: var(--green) }
.tag-remote{ background: #FEF3C7; color: #92400E }
.empleo-body { padding: 18px 20px 20px }
.empleo-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px }
.empleo-empresa { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 6px }
.empleo-loc { font-size: 13px; color: var(--muted); margin-bottom: 10px }
.empleo-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px }
.empleo-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px }
.amenity {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  background: var(--blueXL); color: var(--blue); border-radius: 6px;
}
.empleo-footer { display: flex; align-items: center; justify-content: space-between }
.btn-ver {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 700;
  transition: background .2s;
}
.btn-ver:hover { background: var(--blue2) }

/* ── PAGINACIÓN ── */
.paginacion { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap }
.pag-btn {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--text); background: #fff;
  transition: all .2s;
}
.pag-btn:hover { border-color: var(--blue); color: var(--blue) }
.pag-btn.active { background: var(--blue); color: #fff; border-color: var(--blue) }
.pag-info { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted) }

/* ── STATS ── */
.stats { background: var(--blue); padding: 48px 24px }
.stats-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: center; gap: 64px; flex-wrap: wrap }
.stat-item { text-align: center }
.stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 40px; font-weight: 800; color: #fff }
.stat-lbl { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px }

/* ── FICHA (articulo.php) ── */
.hero-articulo { position: relative; height: 340px; overflow: hidden }
.hero-img { width: 100%; height: 100%; object-fit: cover }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,20,80,.85) 0%, rgba(0,20,80,.3) 100%) }
.hero-tipo { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 6px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.3) }
.hero-titulo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(22px,4vw,38px); font-weight: 800; color: #fff; line-height: 1.2 }
.hero-meta { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap }
.hero-meta span { font-size: 14px; color: rgba(255,255,255,.85) }

.profile-hero { background: var(--blueXL); border-bottom: 1px solid var(--blueL) }
.profile-hero-inner { max-width: var(--max); margin: 0 auto; padding: 28px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap }
.profile-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 10px }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700 }
.badge-blue { background: var(--blueXL); color: var(--blue); border: 1px solid var(--blueL) }
.badge-gold { background: #FEF3C7; color: #92400E }
.profile-meta { display: flex; gap: 20px; flex-wrap: wrap }
.profile-meta span { font-size: 14px; color: var(--muted) }

.profile-wrap { max-width: var(--max); margin: 0 auto; padding: 32px 24px }
.profile-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start }
@media(max-width:860px){ .profile-grid { grid-template-columns: 1fr } }

.card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 24px }
.card h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line) }
.desc-text { font-size: 15px; line-height: 1.8; color: var(--muted) }
.extras-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px }
.extras-list li { background: var(--blueXL); color: var(--blue); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px }

.info-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line) }
.info-item:last-of-type { border-bottom: none }
.info-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px }
.info-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px }
.info-value { font-size: 14px; color: var(--text) }
.info-value a { color: var(--blue) }
.info-value a:hover { text-decoration: underline }

.btn-wa {
  display: block; text-align: center; margin-top: 16px;
  background: #25D366; color: #fff;
  padding: 13px; border-radius: 10px; font-size: 15px; font-weight: 700;
  transition: background .2s;
}
.btn-wa:hover { background: #1ebe5d }
.btn-tel {
  display: block; text-align: center; margin-top: 10px;
  border: 2px solid var(--blue); color: var(--blue);
  padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 700;
  transition: all .2s;
}
.btn-tel:hover { background: var(--blueXL) }

.otros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px }
.otro-card { display: block; background: var(--blueXL); border: 1.5px solid var(--blueL); border-radius: 12px; padding: 16px; transition: box-shadow .2s }
.otro-card:hover { box-shadow: var(--shadow) }
.otro-nombre { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px }
.otro-zona { font-size: 12px; color: var(--muted); margin-bottom: 8px }
.otro-tipo { font-size: 11px; font-weight: 700; background: #fff; color: var(--blue); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--blueL) }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,.85); padding: 48px 24px 24px }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px }
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr 1fr } }
.footer-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px }
.footer-logo span { color: var(--blue3) }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6) }
.footer-col h5 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px }
.footer-col ul { list-style: none }
.footer-col li { margin-bottom: 8px }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .2s }
.footer-col a:hover { color: #fff }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.5) }
.footer-copy a { color: rgba(255,255,255,.7) }

/* ── GALERÍA ── */
.galeria-grid { display: flex; flex-direction: column; gap: 16px }
.galeria-grid img { width: 100%; border-radius: 10px; object-fit: cover }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease }
.reveal.visible { opacity: 1; transform: none }

/* ── RESPONSIVE ── */
@media(max-width:768px){
  nav { padding: 0 20px }
  .hero { padding: 100px 20px 48px }
  .search-row { flex-direction: column }
  .stats-strip { gap: 20px }
  .stats-inner { gap: 32px }
  .empleo-grid { grid-template-columns: 1fr }
  .profile-hero-inner { flex-direction: column }
  .otros-grid { grid-template-columns: 1fr 1fr }
}
