body {
    font-family: 'Lora', Georgia, serif;
    margin: 0;
    display: flex;
        flex-direction: column;
        min-height: 100vh;

}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Montserrat', sans-serif;
  }

  a{
    color: var(--links);
  }
  a:hover{
    opacity: 0.8;
  }
#content {
    padding: 1em;
    flex: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

header {
    background: var(--accent);

    /*  padding: 1em; */
}

.header-top {
    padding: 1em;
}

header img {
    width: auto;
    height: 5em;
}



header .bottom {
    height: 15em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

img.site-thumbnail-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header .site-title {
    z-index: 9;
    color: white;
    background: #2c2c2cc4;
    padding: 0 1rem;
    border-radius: 8px;
}

.site-title p.subtitle-header {
  font-size: 1.5rem;
} 

.search-filters{
    margin: 1em 0;
}




.thumbnail-item-show img {
    margin: auto;
    display: block;
    max-height: 70vh;
}
.media-list{
    /* text-align: center; */
}
.media-list img {
    max-height: 20em;
    width: auto;
    /* margin: auto; */
    display: block;
}

.property img {
    max-height: 7rem;
    width: auto;
    /* margin: auto; */
    display: block;
}

dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 2em;
    row-gap: 0.5em;
    margin: 2em 0;
  }
  
  dl .property {
    display: contents; /* Esto permite que dt y dd participen en la grid directamente */
  }
  
  dt {
    font-weight: bold;
    text-transform: uppercase;
    grid-column: 1;
    white-space: nowrap;
    padding-top: 0.5em;
    border-top: 1px solid #ccc;
  }
  
  dd {
    grid-column: 2;
    margin: 0;
    padding-top: 0.5em;
    border-top: 1px solid #ccc;
  }
  
  .value-content {
    display: block;
    line-height: 1.5;
  }
  
  .item-sets dd a {
    display: inline-block;
    margin-right: 1em;
    text-decoration: none;
    color: #1a0dab;
  }
  

  .logo-1 {
    justify-content: center;
}

.banner-item-set {
    height: 15em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    
    margin: -1em -1em 0 -1em;
}

.banner-item-set  img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.banner-item-set-title- {
    position: absolute;
    background: #2c2c2cc4;
    padding: 0 1rem;
    border-radius: 8px;
}

.search-filters .filter-label{
    
}
.search-filters .filter-value{
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
#advanced-search #page-actions {
    text-align: end;
}

.search-filters {
    padding: 0.5em;
    background-color: #f9f9f9;
    border-left: 3px solid #ccc;
    margin-bottom: 1em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
  }
  
  .search-filters .filter {
    display: flex;
    align-items: center;
    margin-bottom: 0.4em;
    flex-wrap: wrap;
  }
  
  .search-filters .filter-label {
    font-style: italic;
    font-weight: 500;
    color: #444;
    margin-right: 0.5em;
  }
  
  .search-filters .filter-value {
    background-color: #eee;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold; /* negrita */
  }
  
  

  /* tab item-set show */
  .tab-content {
    display: flex;
    /* justify-content: center; */
    background: #2c2c2cc4;
    width: 80%;
    margin: auto;
    margin-top: 0.5rem;
    z-index: 9;
    position: relative;
    border-radius: 8px;
}

body:has(header .bottom) .tab-content{
    margin-top: -2.5rem;
}

#content:has(> .banner-item-set) .tab-content {
  margin-top: -1.5rem;
}

  .tab {
    display: flex;
    justify-content: center;
    background-color: #2c2c2c; /* Fondo oscuro como en la imagen */
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    border-radius: 8px;
  }
  
  .tab button {
    background: none;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .tab button:hover {
    color: #ddd;
  }
  
  .tab button.active::after {
    content: "";
    position: absolute;
    left: 25%;
    bottom: 0;
    width: 50%;
    height: 2px;
    background-color: white; /* Línea blanca debajo */
  }
  

  #item-sets-tree {
    font-family: sans-serif;
    /* padding: 1em; */
  }
  
  #item-sets-tree h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
  }
  
  #item-sets-tree ul {
    list-style: none;
    padding-left: 1.5em;
    border-left: 2px dashed #ccc;
    margin-left: 0.5em;
    width: max-content;
  }
  
  #item-sets-tree li {
    margin: 0.8em 0;
    position: relative;
    
  }
  
  #item-sets-tree li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: -1.2em;
    width: 1em;
    height: 2px;
    background-color: #ccc;
  }
  
  #item-sets-tree a.resource-link {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    height: initial;
    
  }
  
  #item-sets-tree a.resource-link:hover .resource-name {
    text-decoration: none;
    color: var(--links);
    opacity: 0.8;
     
  }
  
  #item-sets-tree a.resource-link img {
    width: 10em;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
  
  #item-sets-tree .resource-name {
    font-size: 1rem;
    font-weight: 500;
  }
  
  #item-sets-tree li.current > a {
    font-weight: bold;
    background-color: #727272;
    color: rgb(254, 253, 255);
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 
                0 4px 8px rgba(0, 0, 0, 0.2), 
                inset 0 0 6px rgba(255, 255, 255, 0.1); 
    
  }

  .resource-list .item .resource-link-title {
    color: #333;
  }

  /* .site-main-navigation{
    background-color: #333;

  }
  .site-main-navigation .custom-menu{
    justify-content: center;
  }
  .site-main-navigation>.custom-menu>li >a{
    color: #fff;
  }
 */


.resource-list.view-masonry .item.resource.no-thumbnail .resource-link-title{
  opacity: 1;
  transition: none;
  padding: 0;
  position: initial ;
  pointer-events: auto;
}

.resource-list.view-masonry .item.resource.no-thumbnail .item-details {
  padding: 1em 0.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.resource-list.view-masonry .item.resource.no-thumbnail .item-details:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


.bread-crumbs{
    margin: 1rem 0;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}



/* menu */

.menu-nav li.active > a, .menu-nav-site li.active > a{
  /* color: var(--links); */
  font-weight: 600;
  /* text-decoration: underline; */
}

.menu-nav{
  flex: 3;
  /* width: 100%; */
}
.button-menu-content {
  text-align: end;
  
}

/* Estilos responsive para el menú */
@media (max-width: 768px) {
  div.header-top{
    flex-direction: column;
    align-items: stretch;
  }
  .button-menu-content {
    width: 100%;
  }
  .main-nav .sm,
  .main-nav-site .sm {
    display: none;
    flex-direction: column;
  }

  .main-nav .sm.show,
  .main-nav-site .sm.show {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    margin: 0.2rem 0.5rem;
  }
  .header-search-form {
    display: flex;
    justify-content: center;
}
}

/* En escritorio siempre visible */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  .menu-nav{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .main-nav .sm,
  .main-nav-site .sm {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .main-nav .sm {
   /* justify-content: space-around; */
  }
  .main-nav-site .sm{
    
    background-color: #2c2c2c;
    border: initial;
    padding: 0.5em;
  }

  .main-nav .sm-simple{
    box-shadow: initial;
  }

  .main-nav-site .sm >li, .main-nav-site .sm >li> a{
    color: #fff;
    border: none;
  }
  .main-nav-site .sm-simple a:hover, .main-nav-site .sm-simple a:focus, .main-nav-site .sm-simple a:active, .main-nav-site .sm-simple a.highlighted {
    color: #2c2c2c;
}

.main-nav .sm{
    
  background-color: transparent;
  border: initial;
 
}

.main-nav .sm >li, .main-nav .sm >li> a{
  color: var(--menuColor);
  border: none;
}

.main-nav .sm-simple a:hover, .main-nav .sm-simple a:focus, .main-nav .sm-simple a:active, .main-nav .sm-simple a.highlighted {
  color: #2c2c2c;
}

}


/* Asegurar posición para los menús */

.main-nav-site {
  z-index: 99;
  position: relative;
}


.header-search-form{
  display: flex;
  
  }