@media (min-width: 768px) {

  .navbar-toggle {
    display: none
  }
  .topwidget,
  .middlewidget,
  .bottomwidget,
  .contentwidget,
  .price-table {
    padding: 25px 0;
  }

  .price-table .block {
    margin-bottom: 0;
  }

  .navbar-header {
    float: none;
  }

  .main-header {
    margin-bottom: 10px;
    padding-top: 0;
    background: none;
    padding-bottom: 10px;
  }

  .main-header .region {
    margin: 0;
  }

  .main-header .region-search {
    width: auto;
    padding: 5px;
  }

  .carousel-caption {
    background: rgba(0, 0, 0, 0.47);
    padding: 0 15px 30px 14px;
    font-size: 14px;
  }

  .carousel-caption h3 {
    color: #fff;
  }

  .region-primary-menu {
    display: inline-block;
    float: left;
    width: 100%;
    margin: 0;
  }

  .menu-base-theme > li a:hover,
  .menu-base-theme li.active a,
  .menu-base-theme li a.is-active {
    color: var(--color-primary);
  }

  .slideshow {
    display: block;
  }

  .menu-base-theme a {
    border: 0;
  }

  .menu-base-theme a,
  .menu-base-theme a:hover,
  .menu-base-theme a:focus,
  .menu-base-theme a:active,
  .menu-base-theme a.highlighted {
    padding: 13px 10px;
  }

  .menu-base-theme a.has-submenu {
    padding: 13px 36px 13px 24px;
  }

  .menu-base-theme > li {
    border: 0;
  }

  .menu-base-theme ul {
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.74);
    border-radius: 5px;
  }

  .menu-base-theme ul.has-submenu li {
    border-bottom: 1px solid #fff;
  }

  .menu-base-theme ul li {
    border-bottom: 1px solid var(--color-secondary);
    background: #8c86bf;
  }

  .welcome-banner-text h2 {
    font-size: 50px;
  }

  .welcome-banner-text {
    font-size: 14px;
  }

  .bottom-widgets {
    text-align: left;
    padding: 50px 0;
  }

  .credit-link {
    text-align: right;
  }

  .social-media a {
    margin: 0 0 0 3px;
  }

  .comment-wrap .author-details { width: 10%; }

  .primary-menu-wrapper.mobile-nav {
    display: none;
  }

  .owl-carousel .owl-item img {
    max-height: 500px;
  }

  .frontpage-servicios .views-view-responsive-grid__item {
    width: 24%;
  }

  .entity-tree .full-entity-content {
    position: absolute;
    top: 0;
    right: 0;
    flex: 0 0 70%;
    max-width: 70%;
  }

  .entity-tree {
    min-height: 560px;
    overflow-y: scroll;
  }

  .vista-normativas .views-field-title {
    max-width: 89%;
  }
}

@media (max-width: 767px) {

  .navbar-header {
    width: 100%;
  }

  .flexslider .slider-caption, .owl-carousel .slider-caption {
    padding: 10px;
    width: 45%;
  }

  .flexslider .slider-caption, .owl-carousel .slider-title {
    margin: 0;
  }
  .flexslider .slider-caption, .owl-carousel .slider-description {
    /*display: none;*/
  }

  .main-header .region-search {
    float: none;
    padding: 10px 0;
    justify-content: center;
    display: flex;
    width: 100%;
  }

  .vista-noticias .views-view-responsive-grid__item,
  .vista-galerias .views-view-responsive-grid__item,
  .vista-servicios .views-view-responsive-grid__item {
    flex: 0 0 100%;
  }

  .views-exposed-form {
    justify-content: center;
  }

  #block-galerias-imagenes img {
    height: 250px;
    width: 100%;
  }

  .news-image-gallery img {
    height: 150px;
    width: 100%;
  }

  .vista-videos video,
  .vista-videos iframe {
    width: 480px;
    height: 360px;
  }

  .news-image-gallery div:first-child { justify-content: center}

  .news-image-gallery img {
    height: 150px;
    width: 98%;
  }

  [class*=vista-] .views-view-responsive-grid {
    justify-content: center;
  }

  .region-middle-first {
    flex-direction: column;
    box-shadow: inset 0 0 250px white;
  }

  .region-middle-second:before {
    border-bottom: solid 10px white;
    border-right: none;
    width: 100%;
    top: 0;
    transform: rotate(-180deg);
    left: 0;
    height: 0;
  }

  .region-middle-first:after {
    border-bottom: solid 10px white;
    border-right: none;
    width: 100%;
    bottom: 5%;
    transform: rotate(-180deg);
    left: 0;
    height: 0;
  }

  .region-middle-first h2 {
    text-shadow: 1px 1px 1px black;
    text-transform: uppercase;
  }

  .region-middle-first button {
    border: none;
    font-weight: bold;
    color: var(--color-primary);
    width: auto;
    margin: 0 5px;

  }

  .request-buttons {
    justify-content: center !important;
  }

  .region-middle-first [id*=block-block-solicitar] {
    padding: 10px 0;
    text-align: center;
  }

  .region-middle-second {
    margin-bottom: 15px;
  }

  .primary-menu-wrapper.desktop-nav {
    display: none;
  }

  .vista-noticias img,
  .vista-galerias img,
  .vista-servicios img {
    height: 250px;
  }

  .frontpage-servicios .views-view-responsive-grid__item {
    width: 49%;
  }

  .vista-normativas .views-view-responsive-grid__item-inner {
    flex-direction: column;
  }

  .owl-carousel .video-js, .owl-carousel video {
    max-height: 337px !important;
    height: 337px !important;
  }

  #block-business-responsive-theme-views-block-convocatorias-block-1,
  #block-business-responsive-theme-views-block-videos-block-1 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 10%;
    flex: 0 0 100%;
    max-width: 100%;
  }

}

@media (min-width: 768px) and (max-width: 1199px) {
  .vista-noticias .views-view-responsive-grid__item,
  .vista-galerias .views-view-responsive-grid__item,
  .vista-servicios .views-view-responsive-grid__item {
    flex: 0 0 49%;
  }
  .vista-normativas .views-field-title {
    max-width: 83%;
  }
}

@media (max-width: 540px) {
  .node--type-servicios .servicio-header {
    justify-content: center !important;
  }

  .node--type-galeria .node__content img {
    width: 75vw;
    height: auto;
  }

  .frontpage-servicios .views-view-responsive-grid__item {
    width: 100%;
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .owl-carousel .video-js, .owl-carousel video {
    max-height: 450px !important;
    height: 450px !important;
  }
}
