/* ═══════════════════════════════════════════════════
   estilos.css — Bolsa Digital de Empleo
   ═══════════════════════════════════════════════════ */

:root {
  --guinda: #852543; --guinda-dark: #6a1d35; --guinda-light: #a3304f;
  --dorado: #C9A84C; --dorado-light: #e8c97a;
  --crema: #E4D9C7; --crema-dark: #d0c4ae;
  --texto: #2c2c2c; --gris: #6b7280; --blanco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background: var(--crema); color: var(--texto); overflow-x: hidden; }
a { text-decoration: none; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar-principal { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 3rem 0 4rem; height: 140px; }
.logo-nav { height: 115px; width: auto; object-fit: contain; }
.navbar-nav { display: flex; align-items: center; gap: .2rem; }
.nav-link {
  font-size: .95rem;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: 6px;
  background: transparent;
  color: var(--guinda);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(133,37,67,.08);
  color: var(--guinda-dark);
}
.navbar-toggler { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.navbar-toggler span { display: block; width: 24px; height: 2px; background: var(--guinda); border-radius: 2px; transition: .2s; }

/* ══════════════════════════════════════
   BANNER PORTADA
══════════════════════════════════════ */
.banner-trabajadores {
  background: var(--crema);
  padding: 1.8rem 3rem;
  line-height: 0;
}
.banner-trabajadores img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

/* ══════════════════════════════════════
   FRANJA INCLUSIÓN
══════════════════════════════════════ */
.franja-inclusion {
  background: var(--crema);
  padding: .8rem 3rem 1.8rem;
  text-align: center;
}
.franja-inclusion p {
  display: inline-block;
  background: var(--guinda);
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  font-style: normal;
  color: #fff;
  line-height: 1.65;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   HERO BUSCADOR
══════════════════════════════════════ */
.hero-index {
  background: var(--crema);
  padding: 0 4rem 6rem;
  text-align: center;
}
.hero-img-title { width: 100%; max-width: 950px; height: auto; margin-bottom: 3.5rem; }

.buscador-container-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  max-width: 820px;
  margin: 0 auto;
}

.buscador-label-imagen {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--texto);
  font-size: 3rem;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.buscador-input-group-imagen {
  display: flex;
  align-items: center;
  background: var(--guinda);
  border: none;
  border-radius: 16px;
  height: 105px;
  flex: 1;
  max-width: 620px;
  min-width: 0;
  padding: 0 1.4rem 0 1.8rem;
  gap: .8rem;
}

.buscador-icon-box {
  background: transparent;
  height: auto;
  width: auto;
  min-width: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  flex-shrink: 0;
}

.lupa-icon {
  font-size: 2.4rem;
  color: #fff;
  transform: scaleX(-1);
  filter: brightness(10);
}

.buscador-input-imagen {
  background: #fff;
  border: none;
  outline: none;
  padding: 0 1.2rem;
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  color: var(--texto);
  height: 66px;
  border-radius: 10px;
  margin: 0;
}

/* ══════════════════════════════════════
   CTA — Las mejores ofertas
══════════════════════════════════════ */
.cta-empresas { background: #fff; padding: 5rem 4rem 5rem 6rem; overflow: visible; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: 0 auto; gap: 4rem; overflow: visible; }

.cta-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 5.5rem;
  color: var(--guinda);
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
}

.cta-glass-container {
  background: #fff;
  padding: 2.8rem 2rem 2.8rem 3rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  overflow: visible;
}

.btn-dinamico {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  background: var(--guinda);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, transform .15s, box-shadow .2s;
  position: relative;
  min-height: 110px;
  overflow: visible;
}
.btn-dinamico:hover {
  background: var(--guinda-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(133,37,67,.3);
}

.btn-icon-circulo {
  width: 140px;
  height: 140px;
  min-width: 140px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  flex-shrink: 0;
  margin-left: -70px;
  margin-right: 1rem;
  position: relative;
  z-index: 2;
  align-self: center;
}

.btn-texto-cta {
  flex: 1;
  padding-right: 1.4rem;
  text-align: center;
  line-height: 1.3;
}

.cta-divider-dinamico { display: none; }

/* ══════════════════════════════════════
   VISITANTES AL PORTAL
══════════════════════════════════════ */
.seccion-visitantes {
  background: #fff;
  padding: 4rem 2rem;
}
.visitantes-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.visitantes-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.visitantes-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}
.visitantes-titulo .vt-principal { color: var(--guinda); display: block; }
.visitantes-titulo .vt-sub { color: var(--texto); display: block; font-size: 2rem; font-weight: 700; }

.visitantes-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--guinda);
  color: #fff;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.visitantes-pill .vp-icon { font-size: 2.4rem; }

.visitantes-ilustracion {
  width: 200px;
  height: auto;
  opacity: .85;
}

/* ══════════════════════════════════════
   VACANTES
══════════════════════════════════════ */
.ultimas-vacantes { padding: 2.5rem 2rem; max-width: 1200px; margin: 0 auto; }
.uvac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.mini-card { background: var(--blanco); border: 1.5px solid var(--crema-dark); border-radius: 12px; padding: 1.2rem; transition: 0.2s; }
.mini-card:hover { border-color: var(--dorado); transform: translateY(-2px); }

/* ══════════════════════════════════════
   STEPPER Y FORMULARIOS
══════════════════════════════════════ */
.form-control { width: 100%; border: 1.5px solid var(--crema-dark); border-radius: 8px; padding: .65rem .9rem; }
.stepper-bar { background: var(--blanco); border-bottom: 1px solid var(--crema-dark); padding: 1rem; display: flex; justify-content: center; }
.step-circle { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--crema-dark); display: flex; align-items: center; justify-content: center; }
.step.active .step-circle { background: var(--guinda); color: #fff; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.seccion-footer { background: #fff; border-top: 1px solid rgba(0,0,0,.07); }
.footer-content { max-width: 100%; margin: 0; padding: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 2rem 2rem 1.5rem;
  align-items: center;
}

.footer-col:first-child {
  align-items: flex-start;
  text-align: left;
  padding-left: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.footer-col:last-child {
  align-items: center;
  text-align: center;
  padding-right: 0.8rem;
}

.footer-col p { font-size: 0.8rem; color: var(--texto); line-height: 1.55; }
.footer-col p a { color: var(--guinda); font-weight: 600; }
.footer-titulo { font-size: 1.3 rem; font-weight: 800; color: var(--guinda); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; }

.logo-page-footer { height: 115px; width: auto; object-fit: contain; }

.redes-sociales {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform .2s, box-shadow .2s;
}
.redes-sociales:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.15); }

.redes-grid {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.4rem;
}

.copyright { background: var(--crema); border-top: 1px solid rgba(0,0,0,.07); padding: 0.7rem 1rem; text-align: center; font-size: 0.78rem; width: 100%; }
.copyright p { color: var(--texto); }
.copyright a { color: var(--guinda); font-weight: 700; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar-toggler { display: flex; }
  .navbar-inner { height: 80px; padding: 0 1rem; }
  .logo-nav { height: 62px; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.1); gap: .4rem; z-index: 99; }
  .navbar-nav.open { display: flex; }
  .nav-link { text-align: center; }

  /* Hero */
  .hero-index { padding: 2.5rem 1.2rem 3.5rem; }
  .hero-img-title { margin-bottom: 2rem; }
  .buscador-container-imagen { flex-direction: column; gap: 0.8rem; padding: 0 0.5rem; }
  .buscador-label-imagen { font-size: 1.4rem; text-align: center; white-space: normal; }
  .buscador-input-group-imagen { max-width: 100%; width: 100%; }

  /* Franja */
  .franja-inclusion { padding: .6rem 1rem 1.2rem; }
  .franja-inclusion p { font-size: .72rem; padding: .9rem 1.2rem; border-radius: 14px; }

  /* CTA */
  .cta-empresas { padding: 3rem 1.2rem; }
  .cta-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .cta-titulo { font-size: 3rem; }
  .cta-glass-container { max-width: 100%; padding: 2rem 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
  .btn-dinamico { justify-content: center; font-size: 0.82rem; }

  /* Visitantes */
  .visitantes-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .visitantes-left { align-items: center; }
  .visitantes-titulo { text-align: center; }
  .visitantes-ilustracion { width: 110px; }
  .visitantes-pill { font-size: 1.7rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
  .footer-col:first-child { align-items: center; text-align: center; padding-left: 0; }
  .footer-col:last-child { align-items: center; text-align: center; padding-right: 0; }
  .redes-grid { justify-content: center; }
}

/* ══════════════════════════════════════
   SECCIÓN ESTADÍSTICAS (conservada)
══════════════════════════════════════ */
.seccion-stats {
  background: linear-gradient(135deg, #2c0d1f 0%, #852543 60%, #a3304f 100%);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.seccion-stats::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(201,168,76,.08);
  border-radius: 50%;
}
.seccion-stats::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.stats-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.stats-header { text-align: center; margin-bottom: 2.5rem; }
.stats-titulo { font-family: 'Montserrat', sans-serif; color: #fff; font-size: 1.9rem; margin-bottom: .4rem; }
.stats-subtitulo { color: rgba(255,255,255,.6); font-size: .88rem; font-family: 'Montserrat', sans-serif; }
.stats-grid-index { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.stat-item-index {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  text-align: center;
  min-width: 150px;
  flex: 1;
  max-width: 180px;
  backdrop-filter: blur(4px);
  transition: transform .2s, background .2s;
}
.stat-item-index:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.stat-icono-index { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto .9rem; }
.stat-num-index { font-family: 'Montserrat', sans-serif; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: .4rem; }
.stat-label-index { font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }
.stat-divisor-index { width: 1px; height: 80px; background: rgba(255,255,255,.15); margin: 0 .5rem; }

@media (max-width: 768px) {
  .stats-titulo { font-size: 1.5rem; }
  .stat-item-index { max-width: calc(50% - 1rem); min-width: 130px; padding: 1.2rem 1rem; }
  .stat-num-index { font-size: 1.6rem; }
  .stat-divisor-index { display: none; }
}