.logo-nodos-hidden{
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}
.logo-nodos-show{
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

/* Overlay + modal */


.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;            /* visible con .is-open */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-overlay.is-open { display: flex; }

.popup-modal {
  background: #fff;
  width: min(50vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 3px solid #004851;
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  background: #004851;
}

.popup-title { font-size: 1.125rem; font-weight: 600; margin: 0; }

.popup-close {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #fff;

}
.popup-close:hover { background: #f2f2f2; color: #444;}

.popup-content {
  padding: 18px;
  overflow: auto;
  line-height: 1.55;
}

.popup-footer {
  padding: 12px 18px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.btn {
  appearance: none;
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { background: #f7f7f7; }
.btn.primary { background: #111; color: #fff; border-color: #111; }
.btn.primary:hover { filter: brightness(1.05); }

/* Bloquear scroll cuando el modal esté abierto */
html.popup-open { overflow: hidden; }

a.disabled{
  color: #ccc;
  cursor: no-drop;
}
a.disabled img{
  filter: grayscale(100%) opacity(20%);
}
.block-sectores a.disabled{
  border: 2px solid #ccc!important;
}
.block-sectores a.disabled span{
  color:#ccc!important;
}
.tarjetas a.disabled{
  border: 2px solid #ccc!important;
}

.pag-ericc-full .links-secundarios a.disabled{
  color: #ccc!important;
  cursor: no-drop;
}
.pag-ericc-full .links-secundarios a.disabled:hover{
  background-color: #00485155!important;
 
}
/*
.block-sectores
.block-ic-txt
.cabecera-home
*/

.accordion-button:not(.collapsed){
  
  color: #fff!important;
  background-color:var(--color-accent-orange)!important;
  box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 #004851;
}


.img-responsive{
  max-width: 100%;
  height: auto;
}
.center{
  text-align: center;
}

.quienes details{
  padding: 1em 2em;
}

.quienes section h4{
  background-color: #156082;
  color: #fff;
  padding: 1em;
  border-radius: 5px;
}

.quienes section ul{
 list-style: none;
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr 1fr 1fr;
}

.quienes section ul li{
  border: 1px solid #444;
  border-radius: 5px;
  padding: 1em;
  background-color: #e0ece8;
}

.grid-marco{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr);
  grid-template-areas:
    "set-a set-a set-a ."
    "set-b set-c set-d set-e"
    "set-f set-f set-f set-f";
  border: 4px solid #44546a;
  
}

/* asigna cada área */
.grid-marco .set-a{ grid-area: set-a;}
.grid-marco .set-b{ grid-area: set-b; }
.grid-marco .set-c{ grid-area: set-c; }
.grid-marco .set-d{ grid-area: set-d; }
.grid-marco .set-e{ grid-area: set-e; }
.grid-marco .set-f{ grid-area: set-f; }

/* opcional: estilo base para ver el layout */
/*
.grid-marco > *{
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  background: #f8fafc;
}
*/
.grid-marco .title{
  background-color:#4472c4;
  color: #fff;
  padding: 1em;
  text-align: center;
  margin: 1em;
}
.grid-marco .dest{
  background-color: #d6dce5;
  padding: 1em;
  margin: 1em;
}
.grid-marco ul{
  border: 1px solid #44546a;
  margin: 1em;
}

/* Responsive: apila en móvil */
@media (max-width: 768px){
  .grid-marco{
    grid-template-columns: 1fr;
    grid-template-areas:
      "set-a"
      "set-b"
      "set-c"
      "set-d"
      "set-e"
      "set-f";
  }
}

.set-f{
  background-color: #44546a;
  color: #fff;
  text-align: center;
}

.set-f h2{
  color: #fff;
  margin-bottom: 35px;
}

.home-content .wrapper-content .cabecera-home .links .link-bg-img a span{
  font-size: 21px;
}
.home-content .wrapper-content .cabecera-home .links .link-bg-img a:hover span{
  font-size: 21px;
}
.home-content .wrapper-content .cabecera-home .links .link-bg-img a img{
  min-height:168px;
  height: 80%;
}
.home-content .wrapper-content .cabecera-home .links{
  max-width: 800px;
}
#popup-buttons .agree-button{
  border: 2px solid #fff;
  color: #fff;
  border-radius: 5px;
}
#popup-buttons .agree-button:hover{
  border: 2px solid #fff;
  background-color:#266261;
  color: #fff;
  border-radius: 5px;
}

#popup-buttons .decline-button{
  background-color: #ebebeb;
  color: #004851;
  border-radius: 5px;
}

.green-separator{
  width: 100%;
  border-bottom: 2px solid #266261;
  margin-bottom: 1.5em;
}
.home-content .wrapper-content .cabecera-home .links .link-bg-img a span{
  padding: 5px 10px!important;
}