body {font-size:16px;background-color: white;}

#div2{
      transition: display .8s;
      display: none;
    }
     
    #div1:hover ~ #div2{
      display: block;
    }

#div1 {
  width: 200px;
  height: 200px;
  transition: width 2s, height 3s;
}

#div1:hover {
  width: 300px;
  height: 300px;
}

.div3 {
  position: relative;
text-align: center;
}

.div4 {
 text-align: center;
}

.div3 .div4 {
  position: absolute;  
  top: 0;  
  left: 0;
  opacity: 0;
  transition: .5s;
}

#content{
max-width: 1024px;
font-size:12px;
}

.div3:hover .div4 {
  opacity: 1;
}
header {
padding: 0;
margin: 0;}

header h1{
max-width: 100%;
padding: 0;
margin: 0;
width: 100%;
height: 134px;}

header nav {
max-width: 100%;
margin: 0 !important;
background: #b1322c;
width: 100%;
}
header nav ul.navigation > li > a,
header nav ul.navigation > li > .parent-link > a,
header nav ul.navigation > li.active > a,
header nav ul.navigation > li.active > .parent-link > a {
  color: white !important;
}

#content{
text-align: justify;
max-width: 100%;
}

.contseleinicio{
background: #f1f2f4;
padding-top: 29px;
}

.contseleinicio span {
color: #b43232;
font-weight: bold;
}

header nav ul.navigation > li > a
{
background: #b1322c;
opacity: 1;
padding: 14px;
}

header nav ul.navigation > li > a:hover{
background: #b1322c;
}

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
}

.BlockH{
width: 49%;
display: inline-block;
vertical-align: top;
}

#simple-pages-breadcrumbs a:link {
color: #b1322c !important;
}

.contseleinicio div p img {
width:246px;
height: 83px;

}

.resource-list .item a {
color: #920b0b !important;
}

.div4 img, .div3 img  {
    right: -21px;
    max-width: 179px;
cursor:pointer;}


.search-results-wrapper{width:100% !important;}

.field {margin:0px;}

#advanced-search-form{max-width: 500px;}

.form-search button.search-submit {
    float: left;
    margin: 12px;}

footer{padding: 0;
margin: 0;}


/* Sub-menu boxes styling (Listado por) */
#content .sub-menu .navigation li {
  background-color: #ffffff !important;
  border: 1px solid #B0B0B0 !important;
  transition: all .5s ease !important;
}

#content .sub-menu .navigation li a {
  color: #920b0b !important;
  transition: color .5s ease !important;
}

#content .sub-menu .navigation li:hover,
#content .sub-menu .navigation li:has(a:hover) {
  background-color: #920b0b !important;
}

#content .sub-menu .navigation li:hover a,
#content .sub-menu .navigation li:has(a:hover) a {
  color: #ffffff !important;
}

/* Pastilla de busqueda centrada dentro del menu rojo */
@media screen and (min-width: 851px) {
  #search {
    position: absolute !important;
    top: 142px !important;
    bottom: auto !important;
    left: auto !important;
    right: 25px !important;
    width: 250px !important;
    max-width: 25% !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
  }

  #search form {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  #search form input[type=text] {
    width: 100% !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 14px !important;
    padding: 0 35px 0 15px !important;
    border-radius: 50px !important;
    border: 1px solid #dedede !important;
    background: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
  }

  #search form button[type=submit] {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50px !important;
    background: transparent !important;
    color: #868889 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
  }

  #search form button[type=submit]:before {
    content: "\f002" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: static !important;
    font-size: 14px !important;
    line-height: 32px !important;
    color: #868889 !important;
  }
}
