html, body {
      height: 100%;
      margin: 0;
    }


body{
  flex-direction: column;
  display: flex;
  min-height: 100vh;
}

main{
  flex: 1;
}

#contenedor-puestos{
  
  color:var(--bg-text);
  border: 1px solid var(--bg-border);
  border-radius: 5px;
  padding: 1em;
  margin-bottom: 1em;
}

#contenedor-puestos h1{
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: var(--bg-text);
}

#contenedor-puestos p{
  font-size: 1em;
  margin-bottom: 0.5em;
  color: var(--bg-text);
}

mark{
    padding: 0.1em 0.25em;
    border-radius: 0.2em;
    margin: 0.1em 0.2em;
    background-color: darkgrey;
}

.mark-cont{
  font-weight: bold;
  color: #000000;
  background-color: #e4d5d5;
  border-radius: 0.15em;
  padding: 0.2em 0.3em;
  transition: all 1s ease-out;
}

.mark-cont:hover{
  
  background-color: #b7ceec;
  border-radius: 40px;
}

.busqueda-texto{
  color: var(--links);
  font-weight: 700;
  white-space: nowrap;
}

.aviso-noscript{
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--botones);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

summary{
  background-color: var(--botones);
  margin-top:1em;
  padding: 0.5em;
  cursor: pointer;
  transition: all 1s ease-out;
}

summary:has(details[open]) {
  border-radius: 0.5em 0.5em 0em 0em;
}

summary:hover{
  background-color: rgb(55 132 208);
  transition: all 0.5s ease-out;
}

summary p{
  display: inline;
  font-weight: 600;
  font-size: 1em;
  color: #e1e1e1eb;
}

.summary-titulo{
  display: inline;
  align-items: center;
  gap: 0.5em;
}

.summary-cont{
  font-weight: 600;
  font-size: 1em;
  color: #e5e3e3db;
  padding:0.25em;
}

.summary-total{
  color: #eee;
  transition: all 1s ease-out;
  margin-top: 0.40em;
}

.summary-total mark{
  background-color: #facc15;
  color: #000;
  font-weight: bold;
  padding: 0.1em 0.4em 0.1em 0.4em;
  border-radius: 0.3em;
}

.summary-total:hover{
  color: #ddd;
}




.tablaMinisterios-container{
  overflow-x: auto;
  color:rgb(148 163 184 / var(--tw-text-opacity, 1));
  border-color:rgb(255 255 255 / 0.1);
  border-width: 1px;
  border-style: solid;
  border-radius:0rem 0em 0.5em 0.5em;
}

.tablaMinisterios{
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9em;
  text-align: left;
}

.tablaMinisterios thead{
    background-color: rgb(51 65 85 / 0.3);
  }

.tablaMinisterios tr{
    padding: 0.75em;
    font-weight: 600;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.tablaMinisterios tr:hover{
    background-color: rgb(75 85 99 / 0.3) !important;
    transition: all 0.5s ease-out;
}

.tablaMinisterios tr:nth-child(even){
    background-color: rgb(31 41 55 / 0.2);
}


.tablaMinisterios th, .tablaMinisterios td{
    padding: 0.8em;
}

.tablaMinisterios th{
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.tablaMinisterios th::after{
  content: " ↕";
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
  font-size: 0.85em;
}

.tablaMinisterios th[data-sort-direction="asc"]::after{
  content: " ↑";
}

.tablaMinisterios th[data-sort-direction="desc"]::after{
  content: " ↓";
}

.col-cambios{
  width: 450px;
}

.td-text-large
{
  font-size: 0.9em;
  width: 250px;
}
.td-text-small
{
  width:25px;
}
.td-text-medio
{
  width:40px;
}

.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabla-contenedor{
  margin-top: 1rem;
}

.table-responsive{
  overflow-x: auto;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.5rem;
  background-color: rgb(15 23 42 / 0.35);
}

.table{
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9em;
  text-align: left;
}

.table thead{
  background-color: rgb(51 65 85 / 0.3);
}

.table tbody tr{
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.table tbody tr:nth-child(even){
  background-color: rgb(31 41 55 / 0.2);
}

.table tbody tr:hover{
  background-color: rgb(75 85 99 / 0.3);
}

.table th,
.table td{
  padding: 0.7em 0.8em;
}

.table thead th{
  font-weight: 700;
  white-space: nowrap;
  color: #e2e8f0;
}

.th-text-medio{
  text-align: center;
}

.provincia-link{
  color: #bfdbfe;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.provincia-link:hover{
  color: #ffffff;
}

@media (max-width: 767px){
  .td-text-large,
  .td-text-small,
  .td-text-medio{
    font-size: 1rem;
    width: 100%;
  }

  .th-text-medio{
    text-align: left;
  }
}

.span-vacante{
  color: rgb(134 239 172 / var(--tw-text-opacity, 1));
  background-color: rgb(20 83 45 / var(--tw-bg-opacity, 1));
  font-weight: bold;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  font-weight: 500;
  border-radius: 9999px;
}

.puesto-link{
  color: #bfdbfe;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.puesto-link:hover{
  color: #ffffff;
}

.nuevos-puestos-page{
  max-width: 100%;
}

.nuevos-puestos-section{
  overflow: hidden;
}

.nuevos-puestos-hero{
  margin-bottom: 1.5rem;
}

.nuevos-puestos-kicker{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(96 165 250 / 0.36);
  border-radius: 999px;
  background-color: rgb(37 99 235 / 0.14);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nuevos-puestos-hero h1{
  margin: 0;
  max-width: 15ch;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.nuevos-puestos-hero p{
  max-width: 70ch;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.nuevos-puestos-ayuda{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.nuevos-puestos-ayuda span{
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background-color: rgb(255 255 255 / 0.06);
  color: #dbeafe;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (min-width: 1024px){
  .nuevos-puestos-page{
    max-width: min(96vw, 108rem);
    padding: 1.5rem 2rem 2.5rem;
  }

  .nuevos-puestos-section{
    margin-top: 2rem;
    padding: 2rem;
    border-color: rgb(96 165 250 / 0.2);
    border-radius: 1.25rem;
    background:
      radial-gradient(circle at top left, rgb(37 99 235 / 0.18), transparent 34rem),
      linear-gradient(180deg, rgb(15 23 42 / 0.92), rgb(17 24 39 / 0.78));
    box-shadow: 0 22px 60px rgb(0 0 0 / 0.28);
  }

  .nuevos-puestos-hero{
    display: grid;
    grid-template-columns: minmax(22rem, 0.75fr) minmax(26rem, 1fr);
    gap: 1.5rem 3rem;
    align-items: end;
  }

  .nuevos-puestos-kicker{
    grid-column: 1 / -1;
  }

  .nuevos-puestos-hero p{
    margin: 0;
    font-size: 1rem;
  }

  .nuevos-puestos-ayuda{
    grid-column: 2;
    margin-top: 0;
  }

  .nuevos-puestos-section .tablaMinisterios-container{
    max-height: 68vh;
    border-radius: 1rem;
    background-color: rgb(2 6 23 / 0.36);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  }

  .nuevos-puestos-section .tablaMinisterios{
    min-width: 92rem;
    font-size: 0.82rem;
  }

  .nuevos-puestos-section .tablaMinisterios thead{
    background-color: rgb(15 23 42 / 0.96);
  }

  .nuevos-puestos-section .tablaMinisterios th{
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.85rem 0.7rem;
    background-color: rgb(15 23 42 / 0.96);
    color: #e5edff;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }

  .nuevos-puestos-section .tablaMinisterios td{
    padding: 0.7rem;
    vertical-align: top;
    line-height: 1.35;
  }

  .nuevos-puestos-section .tablaMinisterios tbody tr:hover{
    background-color: rgb(37 99 235 / 0.16) !important;
  }

  .nuevos-puestos-section .tablaMinisterios td:nth-child(1),
  .nuevos-puestos-section .tablaMinisterios td:nth-child(2),
  .nuevos-puestos-section .tablaMinisterios td:nth-child(6),
  .nuevos-puestos-section .tablaMinisterios td:nth-child(7){
    text-align: center;
  }

  .nuevos-puestos-section .tablaMinisterios th:nth-child(4),
  .nuevos-puestos-section .tablaMinisterios td:nth-child(4){
    min-width: 17rem;
  }

  .nuevos-puestos-section .tablaMinisterios th:nth-child(9),
  .nuevos-puestos-section .tablaMinisterios td:nth-child(9){
    min-width: 16rem;
  }

}

.puesto-link-externo::after{
  content: " ↗";
  display: inline-block;
  font-size: 0.9em;
  font-weight: 900;
  margin-left: 0.18em;
}

.puesto-detalle{
  color: var(--bg-text);
  margin: 1.5rem auto 2rem;
  max-width: 72rem;
}

.puesto-hero,
.puesto-card{
  animation: puestoFadeUp 0.45s ease both;
  background: linear-gradient(180deg, rgb(15 23 42 / 0.86), rgb(17 24 39 / 0.76));
  border: 1px solid rgb(148 163 184 / 0.18);
  border-radius: 1rem;
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.18);
}

.puesto-hero{
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.puesto-hero h2{
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.75rem;
}

.puesto-etiqueta{
  color: #bfdbfe;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.puesto-volver,
.puesto-accion{
  color: #bfdbfe;
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.puesto-acciones{
  align-items: center;
  background: rgb(2 6 23 / 0.28);
  border: 1px solid rgb(148 163 184 / 0.14);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.45rem;
}

.puesto-boton{
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgb(191 219 254 / 0.28);
  border-radius: 0.8rem;
  box-shadow: 0 8px 18px rgb(37 99 235 / 0.18);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  gap: 0.45rem;
  justify-content: center;
  min-height: 44px;
  overflow: hidden;
  padding: 0.68rem 0.95rem;
  position: relative;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.puesto-boton::before{
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.18), transparent);
  content: "";
  height: 100%;
  left: -120%;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  transition: left 0.45s ease;
  width: 70%;
}

.puesto-boton:hover{
  border-color: rgb(191 219 254 / 0.55);
  box-shadow: 0 14px 26px rgb(37 99 235 / 0.26);
  transform: translateY(-2px);
}

.puesto-boton:hover::before{
  left: 130%;
}

.puesto-boton:active{
  transform: translateY(0);
}

.puesto-boton-secundario{
  background: rgb(30 41 59 / 0.92);
  box-shadow: none;
  color: #dbeafe;
}

.puesto-boton-secundario:hover{
  background: rgb(51 65 85 / 0.95);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.18);
}

.puesto-resumen{
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.puesto-chip{
  background-color: rgb(37 99 235 / 0.18);
  border: 1px solid rgb(147 197 253 / 0.24);
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
}

.puesto-card:nth-of-type(2){ animation-delay: 0.04s; }
.puesto-card:nth-of-type(3){ animation-delay: 0.08s; }
.puesto-card:nth-of-type(4){ animation-delay: 0.12s; }
.puesto-card:nth-of-type(5){ animation-delay: 0.16s; }

@keyframes puestoFadeUp{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .puesto-hero,
  .puesto-card,
  .puesto-boton,
  .puesto-boton::before{
    animation: none;
    transition: none;
  }
}

.puesto-card{
  margin-top: 1rem;
  padding: 1rem;
}

.puesto-card h2{
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

.puesto-grid{
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 0;
}

.puesto-campo{
  background-color: rgb(17 24 39 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 0.75rem;
  padding: 0.8rem;
}

.puesto-campo dt{
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.puesto-campo dd{
  color: #f8fafc;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.puesto-vacio{
  color: #cbd5e1;
  font-style: italic;
}

.puesto-alerta{
  padding: 1.25rem;
}

.puesto-mapa-info{
  color: #dbeafe;
  margin: 0 0 0.85rem;
}

.puesto-mapa{
  border: 1px solid rgb(148 163 184 / 0.24);
  border-radius: 0.85rem;
  height: 22rem;
  overflow: hidden;
  width: 100%;
}

.puesto-mapa[hidden]{
  display: none;
}

.ocultar{
  display: none;
}
#filtro{
  cursor: pointer;
  font-size: 1em;
  transition: all 1s ease-out;
}

#form-contenedor{
  background-color: rgb(17 115 212 / 0.05);
  border-color:rgb(255 255 255 / 0.1);
  border-width: 1px;
  border-style: solid;
  color:var(--bg-text);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin:0.7em auto;
  text-align: center;
}

form
{
  
}

.label{
  display: block;
  margin-bottom: 0.5rem;
  margin-top:0.5rem;
  font-weight: 500;
  font-size:1em;
  color:rgb(203 213 225 / var(--tw-text-opacity, 1));
  line-height: 1.25rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

select{
  
  background-color:rgb(16 25 34 / 0.2);
  color:rgb(203 213 225 / var(--tw-text-opacity, 1));
  border-color:rgb(255 255 255 / 0.2);
  border-width: 1px;
  border-style: solid;
  padding: 0.5rem;
  border-radius: 0.375rem;
  width:100%
}

select option{
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
  color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}

#btn_enviar
{
  margin-top: 0.5rem;
  background-color: var(--botones);
  font-weight: 700;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  padding-left:1.5rem;
  padding-right:1.5rem;
  padding-top: 0.70rem;
  padding-bottom: 0.70rem;
  border-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  color: var(--bg-text);
  width: 100%;
  cursor: pointer;
}

.secondary{
  margin-top: 0.5rem;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
  font-weight: 700;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  padding-left:1.5rem;
  padding-right:1.5rem;
  padding-top: 0.70rem;
  padding-bottom: 0.70rem;
  border-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  color: var(--bg-text);
  width: 100%;
}

@media (min-width: 768px) {
  #form-contenedor{
    flex-direction: row;
  }
  .buscador-formulario,
  form{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
  }
  .buscador-formulario label{
    display: inline-block;
    margin: 0 0.25rem 0 0;
    white-space: nowrap;
  }
  .buscador-formulario .buscador-input-group{
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
  }
  .buscador-formulario .buscador-input{
    width: 16rem;
    flex: 0 1 16rem;
  }
  .buscador-formulario .buscador-boton,
  .buscador-formulario #btn_enviar{
    width: auto;
    flex: 0 0 auto;
    margin-top: 0;
  }
  .buscador-formulario .puesto-id-error{
    flex-basis: 100%;
    margin: 0.35rem 0 0;
  }
}

.button-icon{
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  #contenedor-puestos{
    padding: 0.75rem;
    border-color: rgb(148 163 184 / 0.18);
    background-color: rgb(15 23 42 / 0.42);
  }

  #contenedor-puestos h1{
    font-size: 1.35rem;
    line-height: 1.25;
  }

  #contenedor-puestos p,
  label,
  select,
  #btn_enviar,
  .secondary{
    font-size: 1rem;
  }

  summary{
    border-radius: 0.65em;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.22);
    padding: 0.9rem 1rem;
    min-height: 48px;
    position: relative;
  }

  summary::marker{
    color: #bfdbfe;
  }

  summary p,
  .summary-titulo,
  .summary-total{
    display: block;
  }

  .summary-titulo{
    padding-right: 1.2rem;
  }

  .summary-titulo p{
    margin: 0.25rem 0 0;
  }

  .summary-total{
    color: #f8fafc;
    font-size: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(255 255 255 / 0.2);
  }

  .summary-cont{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    margin-right: 0.35rem;
    padding: 0;
    border-radius: 999px;
    background-color: rgb(15 23 42 / 0.42);
    color: #ffffff;
    font-size: 0.95rem;
  }

  summary p{
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
  }

  .summary-total mark{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    background-color: #fde047;
  }

  #form-contenedor{
    padding: 1rem;
    background-color: rgb(15 23 42 / 0.72);
    border-color: rgb(148 163 184 / 0.18);
  }

  select,
  #btn_enviar,
  .secondary{
    min-height: 48px;
  }

  select{
    background-color: #0f172a;
    color: #f8fafc;
    border-color: rgb(148 163 184 / 0.38);
  }

  .tablaMinisterios-container{
    overflow-x: visible;
    border: 0;
    border-radius: 0;
  }

  .tablaMinisterios,
  .tablaMinisterios thead,
  .tablaMinisterios tbody,
  .tablaMinisterios tr,
  .tablaMinisterios th,
  .tablaMinisterios td{
    display: block;
    width: 100%;
  }

  .tablaMinisterios{
    border-collapse: separate;
    border-spacing: 0;
    color: #f8fafc;
    font-size: 1rem;
  }

  .tablaMinisterios thead{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .tablaMinisterios tbody tr{
    margin: 0.9em 0;
    padding: 0.8em;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 0.85em;
    background: #111827;
    box-shadow: 0 10px 22px rgb(0 0 0 / 0.22);
  }

  .tablaMinisterios tr:nth-child(even){
    background: #172033;
  }

  .tablaMinisterios tr:hover{
    background: linear-gradient(180deg, rgb(30 64 175 / 0.35), rgb(17 24 39 / 0.8)) !important;
  }

  .tablaMinisterios tbody th,
  .tablaMinisterios tbody td{
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(7.4rem, 42%) 1fr;
    gap: 0.8em;
    align-items: start;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.45;
    padding: 0.68em 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    overflow-wrap: anywhere;
  }

  .tablaMinisterios tbody th:last-child,
  .tablaMinisterios tbody td:last-child{
    border-bottom: 0;
  }

  .tablaMinisterios tbody th::before,
  .tablaMinisterios tbody td::before{
    color: #bfdbfe;
    content: "";
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .tablaMinisterios tbody th:nth-child(1)::before,
  .tablaMinisterios tbody td:nth-child(1)::before{ content: "#"; }
  .tablaMinisterios tbody td:nth-child(2)::before{ content: "Estado"; }
  .tablaMinisterios tbody td:nth-child(3)::before{ content: "D.CDir"; }
  .tablaMinisterios tbody td:nth-child(4)::before{ content: "Unidad"; }
  .tablaMinisterios tbody td:nth-child(5)::before{ content: "Id.Puesto"; }
  .tablaMinisterios tbody td:nth-child(6)::before{ content: "Grupo"; }
  .tablaMinisterios tbody td:nth-child(7)::before{ content: "Nivel"; }
  .tablaMinisterios tbody td:nth-child(8)::before{ content: "C.Específico"; }
  .tablaMinisterios tbody td:nth-child(9)::before{ content: "Descripción"; }
  .tablaMinisterios tbody td:nth-child(10)::before{ content: "Localidad"; }
  .tablaMinisterios tbody td:nth-child(11)::before{ content: "Residencia"; }
  .tablaMinisterios tbody td:nth-child(12)::before{ content: "Observa."; }
  .tablaMinisterios tbody td:nth-child(13)::before{ content: "Últ.Cambios"; }

  .nuevos-puestos-section .tablaMinisterios tbody td:nth-child(12)::before{ content: "Observa."; }
  .nuevos-puestos-section .tablaMinisterios tbody td:nth-child(13)::before{ content: none; }

  .td-text-large,
  .td-text-small,
  .td-text-medio,
  .col-cambios{
    font-size: 1rem;
    width: 100%;
  }

  .puesto-detalle{
    margin-top: 1rem;
  }

  .puesto-hero,
  .puesto-card{
    border-radius: 0.9rem;
  }

  .puesto-grid{
    grid-template-columns: 1fr;
  }

  .puesto-resumen{
    align-items: stretch;
    flex-direction: column;
  }

  .puesto-acciones{
    flex-direction: column;
  }

  .puesto-boton{
    width: 100%;
  }

  .puesto-mapa{
    height: 18rem;
  }

  .puesto-chip,
  .puesto-resumen .span-vacante{
    box-sizing: border-box;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .tablaMinisterios tbody th,
  .tablaMinisterios tbody td{
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.puesto-id-ayuda{
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  text-align: center;
}

.puesto-id-ayuda code{
  color: #bfdbfe;
}

.puesto-id-error{
  color: #fca5a5;
  font-weight: 600;
  margin: 0.75rem 0 0;
  text-align: center;
}

.noEncontrado{
  padding: 1.5rem;
  text-align: center;
}

.noEncontrado h2{
  margin: 0;
  font-size: 1.25rem;
}

.buscardor-input-group,
.buscador-input-group{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

.buscador-input{
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0.70rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  background-color: rgb(16 25 34 / 0.2);
  color: rgb(203 213 225);
  font: inherit;
}

.buscador-boton{
  min-height: 48px;
  background-color: var(--botones);
  font-weight: 700;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  padding: 0.70rem 1.5rem;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  color: var(--bg-text);
  cursor: pointer;
}

@media (max-width: 767px) {
  .buscador-input,
  .buscador-boton{
    width: 100%;
  }
}

.resumen-totales{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 1.25rem;
}

.resumen-tarjeta{
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.9rem;
  background-color: rgb(15 23 42 / 0.42);
}

.resumen-tarjeta-vacantes{
  border-color: rgb(134 239 172 / 0.3);
  background-color: rgb(20 83 45 / 0.16);
}

.resumen-valor{
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.resumen-etiqueta{
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resumen-fila-total{
  color: #ffffff;
  font-weight: 800;
}

.resumen-fila-vacantes{
  color: rgb(134 239 172);
  font-weight: 800;
}

.provincias-mapa-titulo{
  color: #ffffff;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 2rem 0 0.4rem;
}

.provincias-mapa-info{
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.provincias-mapa{
  border: 1px solid rgb(148 163 184 / 0.24);
  border-radius: 0.85rem;
  height: 30rem;
  overflow: hidden;
  width: 100%;
  background-color: #0f172a;
}

.provincias-popup{
  color: #0f172a;
  min-width: 11rem;
}

.provincias-popup strong{
  font-size: 1.05rem;
}

.provincias-popup p{
  margin: 0.35rem 0 0;
}

.provincias-popup p strong{
  font-size: 1rem;
}

@media (max-width: 767px) {
  .provincias-mapa{
    height: 20rem;
  }

  .resumen-tarjeta{
    padding: 0.85rem 1rem;
  }

  .resumen-valor{
    font-size: 1.3rem;
  }
}

.nuevos-puestos-section .provincias-tabla{
  min-width: 0;
  width: 100%;
  font-size: 0.85rem;
}

.provincias-tabla th,
.provincias-tabla td{
  padding: 0.45em 0.5em !important;
  white-space: nowrap;
  text-align: center;
}

.provincias-tabla th:first-child,
.provincias-tabla td:first-child{
  padding-left: 0.5em;
}

.provincias-tabla td:nth-child(2){
  text-align: left;
}

.provincias-tabla .td-text-large,
.provincias-tabla .td-text-small,
.provincias-tabla .td-text-medio{
  width: auto;
}

.provincias-tabla td.td-text-large{
  min-width: 12rem;
}

@media (max-width: 767px) {
  .provincias-tabla tbody th::before,
  .provincias-tabla tbody td::before{
    content: "" !important;
  }

  .provincias-tabla tbody td:nth-child(1)::before{ content: "#" !important; }
  .provincias-tabla tbody td:nth-child(2)::before{ content: "Provincia" !important; }
  .provincias-tabla tbody td:nth-child(3)::before{ content: "Totales" !important; }
  .provincias-tabla tbody td:nth-child(4)::before{ content: "Vacantes" !important; }
  .provincias-tabla tbody td:nth-child(5)::before{ content: "No vacantes" !important; }
  .provincias-tabla tbody td:nth-child(6)::before{ content: "% Vacantes" !important; }
}







