/* public/css/vacantes.css */
/* ---------- Reset y base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f5f1f3;
  color: #333;
}

/* ---------- Botón volver ---------- */
.volver {
  display: inline-block;
  margin: 20px 0 10px 40px;
  background-color: #840028;
  color: #fff;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.25s ease, transform 0.15s ease;
}
.volver:hover {
  background-color: #a10b3e;
  transform: translateY(-2px);
}

/* ---------- Encabezado ---------- */
.site-header {
  background: #840028;
  color: #fff;
  text-align: center;
  padding: 22px;
  animation: fadeInDown 0.8s ease;
}
.site-header .logo {
  height: 52px;
  vertical-align: middle;
  margin-right: 10px;
}
.site-header h1 {
  display: inline-block;
  font-size: 1.9rem;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ---------- Contenedor general ---------- */
.vacantes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding: 50px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ---------- Tarjeta ---------- */
.vacante-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.vacante-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ---------- Título ---------- */
.vacante-card h2 {
  font-size: 1.45rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.35;
  border-left: 5px solid #840028;
  padding-left: 12px;
  letter-spacing: 0.3px;
}

/* ---------- Descripción ---------- */
.descripcion {
  background: #faf7f8;
  border-left: 4px solid #840028;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: #444;
  line-height: 1.7;
  font-size: 0.98rem;
  text-align: justify;
  letter-spacing: 0.2px;
  box-shadow: inset 0 0 0 1px rgba(132,0,40,0.05);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.vacante-card:hover .descripcion {
  background: #fdf9fa;
  box-shadow: inset 0 0 0 1px rgba(132,0,40,0.1);
}

.descripcion p {
  margin-bottom: 10px;
}
.descripcion strong {
  color: #840028;
  font-weight: 600;
}

/* ---------- Requisitos ---------- */
.requisitos-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 12px;
  margin-bottom: 20px;
}
.requisitos-list li {
  margin-bottom: 8px;
  color: #555;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ---------- Botón Ver Más ---------- */
.btn-vermas {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(135deg, #840028, #a10b3e);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 10px rgba(132,0,40,0.2);
}

.btn-vermas:hover {
  background: linear-gradient(135deg, #a10b3e, #b60d45);
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(132,0,40,0.25);
}

/* ---------- Sin vacantes ---------- */
.sin-vacantes {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.15rem;
  color: #777;
  padding: 60px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1e1e1e;
  color: #cfcfcf;
  text-align: center;
  padding: 20px;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  border-top: 3px solid #840028;
}

/* ---------- Animaciones ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsividad ---------- */

/* --- Pantallas grandes (1200px o menos) --- */
@media (max-width: 1200px) {
  .vacantes-container {
    max-width: 1100px;
    gap: 28px;
    padding: 40px;
  }
  .vacante-card {
    padding: 26px 24px;
  }
}

/* --- Tablets horizontales (992px o menos) --- */
@media (max-width: 992px) {
  .vacantes-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
  .vacante-card h2 {
    font-size: 1.35rem;
  }
  .descripcion {
    font-size: 0.95rem;
  }
}

/* --- Tablets verticales y móviles grandes (768px o menos) --- */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 1.7rem;
  }
  .vacantes-container {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .vacante-card {
    padding: 22px 20px;
  }
  .vacante-card h2 {
    font-size: 1.25rem;
  }
  .descripcion {
    font-size: 0.93rem;
    line-height: 1.65;
  }
}

/* --- Móviles pequeños (480px o menos) --- */
@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.4rem;
  }
  .vacantes-container {
    padding: 20px;
    gap: 18px;
  }
  .volver {
    margin: 16px 0 8px 20px;
    font-size: 0.9rem;
    padding: 7px 14px;
  }
  .vacante-card {
    padding: 18px 16px;
  }
  .vacante-card h2 {
    font-size: 1.15rem;
  }
  .descripcion {
    font-size: 0.9rem;
    padding: 12px;
  }
  .btn-vermas {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}
