/* ===============================
   RESET + BASE
================================ */
* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #0000;
  color: #333;
}

/* ===============================
   CONTENIDO
================================ */
.contenido {
  margin-left: 260px;
  padding: 40px;
  max-width: 1000px;
}

/* ===============================
   TITULOS
================================ */
h2 {
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 600;
  color: #003480;
}

h3 {
  margin-top: 35px;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

/* ===============================
   FORM CONTROLS
================================ */
label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

input,
select {
  width: 100%;
  padding: 9px 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  border-color: #003480;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 52, 128, 0.1);
}

/* ===============================
   GRID
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ===============================
   CHECKS TRAZABILIDAD
================================ */
.etapa {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.etapa input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.etapa span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.etapa input[type="number"] {
  width: 130px;
  margin: 0;
}

/* ===============================
   BOTONES
================================ */
button {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  background: #003480;
  color: #fff;
  transition: 0.2s ease;
}

button:hover {
  opacity: 0.9;
}


.etapa {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.fecha-etapa {
    font-size: 12px;
    color: #666;
    min-width: 90px;
}

.btn-editar-fecha {
    padding: 4px 8px;
    font-size: 11px;
    background: #6c757d;
    color: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-editar-fecha:hover {
    opacity: 0.9;
}

/* Cards horizontales */
.vacantes-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem;
}

.vacante-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

.vacante-card:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}


.comentario-etapa {
    width: 100%;
    min-height: 60px;
    margin-top: 5px;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
    font-size: 13px;
}

.vacante-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.vacante-card:hover {
    transform: scale(1.02);
}

.vacante-card.cerrada {
    background-color: #e8f5e9;
    border-left: 5px solid #2e7d32;
}

.vacante-card.activa {
    background-color: #ffffff;
}

