html,
body {
  height: 100%;
  font-family: 'Quicksand', serif;
  font-size: 14px;
  color: #58585b;
  background-image: url(../img/ff.png);
  background-repeat: repeat-x;
  background-position: center top;
  background-color: #FFFFFF;
}

/* Barra de redes sociales flotante - ESTILOS COMPLETOS */
.barra-rs {
  position: fixed;
  right: 0;
  bottom: 100px; /* Posicionado más abajo en lugar de centrado verticalmente */
  transform: none;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 5px 0 0 5px;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.barra-rs a {
  display: block;
  text-align: center;
  padding: 16px;
  transition: all 0.3s ease;
  color: white; /* Color del texto/ícono */
  font-size: 20px;
  margin-bottom: 5px;
  border-radius: 3px;
}

/* Aseguramos que los íconos dentro de los enlaces sean blancos */
.barra-rs a i {
  color: white;
}

.barra-rs a:hover {
  background-color: #e94f2d;
  transform: scale(1.1);
}

.facebook {
  background: #3B5998;
  color: white;
}

.youtube {
  background: #bb0000;
  color: white;
}

.instagram {
  background: #f58529;
  color: white;
}

.whatsapp {
  background: #37b849;
  color: white;
}

.linkedin {
  background: #0e76a8;
  color: white;
}

.pqrs {
  background: #37a0b8;
  color: white;
}

.agenda {
  background: #b33adf;
  color: white;
}

.strong {
  font-weight: bold;
  color: #005e20;
}

.row {
  margin-left: 0px;
  margin-right: 0px;
}

[class*="span"] {
  float: left;
  min-height: 1px;
  margin-left: 10px;
}

#header {
  height: auto;
  margin-top: 0px;
  margin-right: auto;
  margin-bottom: 0px;
  margin-left: auto;
}

#top {
  position: absolute;
  right: 0;
}

.logoTop {
  margin-top: 20px;
}

.buscar {
  background-image: url(../img/buscar.png);
  background-repeat: no-repeat;
  background-position: center;
  min-height: 80px;
}

.element-invisible {
  display: none;
}

.finder {
  margin-top: 20px;
  margin-right: auto;
  margin-bottom: 0px;
  margin-left: auto;
}

#lista1 li {
  display: inline;
  padding-left: 3px;
  padding-right: 3px;
}

.cols-2 .column-1,
.cols-2 .column-2,
.cols-3 .column-1,
.cols-3 .column-2,
.cols-3 .column-3 {
  float: left;
  clear: right;
}

.cols-3 .column-1, 
.cols-3 .column-2, 
.cols-3 .column-3 {
  width: 33%;
}

#footer {
  background-image: url(../img/BarraPie.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-color: #FFFFFF;
}

#fazul {
  background-color: #115A8B;
  padding: 10px;
  color: #fff;
}

#gris2 {
  background-color: #115A8B;
  color: #fff;
  padding-top: 30px;
  padding-bottom: 30px;
}

table {
  width: 100%;
}

th, td {
  text-align: left;
  vertical-align: top;
  border-collapse: collapse;
  padding: 5px;
}

#gris {
  text-align: left;
  background-color: #DED6C8;
  padding-top: 20px;
  padding-right: 50px;
  padding-bottom: 20px;
  padding-left: 50px;
  min-height: 400px;
}

/* border-right-style example classes */
.b1 {
  border-right-style: ridge;
}

/* Content */
.divc {
  text-align: center;
  position: relative;
  top: 50%;
  -ms-transform: translateY(50%);
  -webkit-transform: translateY(50%);
  transform: translateY(50%);
}

.cleaner {
  clear: both;
  width: 100%;
  height: 0px;
  font-size: 0px;
}

.cleaner_h10 {
  clear: both;
  width: 100%;
  height: 10px;
}

.cleaner_h20 {
  clear: both;
  width: 100%;
  height: 20px;
}

.cleaner_h40 {
  clear: both;
  width: 100%;
  height: 40px;
}

h1, h2, h3 {
  margin: 0px;
}

h1 {
  letter-spacing: -1px;
  font-size: 36px;
  line-height: 36px;
  color: #005e21;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
}

h2 {
  letter-spacing: 0px;
  font-size: 24px;
  line-height: 28px;
  padding-bottom: 20px;
  color: #e94f2d;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
}

h3 {
  letter-spacing: 0px;
  font-size: 22px;
  line-height: 28px;
  padding-bottom: 10px;
  margin-top: 10px;
  color: #00a210;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  text-align: center;
}

h4 {
  font-size: 24px;
  font-weight: normal;
  color: #39b54a;
  font-family: 'Lato', sans-serif;
  text-align: center;
}

h5 {
  color: #00a210;
  font-size: 18px;
  font-weight: normal;
  font-family: 'Lato', sans-serif;
}

.center {
  text-align: center;
}

a {
  color: #005E20;
}

a:link {
  text-decoration: none;
  color: #E94F2D;
}

a:visited {
  text-decoration: none;
  font-weight: bold;
  color: #333333;
}

a:hover {
  text-decoration: underline;
  color: #e94f2d;
}

.pull-left {
  float: left;
  margin-bottom: 10px;
}

.form-search input, .form-inline input {
  padding: 20px;
  font-size: 15px;
  border: none !important;
  background-color: transparent;
  margin-top: 20px;
  width: 210px;
  margin-left: 10px;
}

p.lateral {
  line-height: 19px;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  color: #424242;
  text-align: left;
  margin-bottom: 0 !important;
}

.pietxt {
  border: thin silver solid;
  padding: 5px;
}

.search {
  width: auto;
  padding: 10px;
  border: 0;
  margin-left: 20px;
}

.item-separator {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  border-top: 1px solid #d6d6d6;
  clear: both;
  height: 0;
  line-height: 0;
  width: 100%;
  font-size: 0;
  padding: 0;
  margin-bottom: 20px;
}

table.adminform textarea {
  width: 540px;
  height: 400px;
  font-size: 1em;
  color: #000099;
}

.readmore {
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}

.padding {
  padding: 10px;
}

#slide {
  display: block;
}

#oficina {
  display: block;
}

select, textarea, input[type="text"] {
  display: inline-block;
  height: 42px;
  padding: 4px 6px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 20px;
  color: #555555;
  vertical-align: middle;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.input-medium {
  width: 200px;
}

.piep {
  background-color: #617d68;
  color: #fff;
}

.piep li {
  list-style: none;
}

.piep h4 {
  color: #fff;
}

/*Efecto cajas*/
.grid {
  list-style: none;
  text-align: center;
}

/* Common style */
.grid figure {
  position: relative;
  overflow: hidden;
  width: 80%;
  background: #000;
  text-align: center;
  cursor: pointer;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.8;
}

.grid figure figcaption {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.25em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
  pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.grid figure h4 {
  word-spacing: auto;
}

.grid figure h4 span {
  font-weight: 700;
}

.grid figure h4,
.grid figure p {
  margin: 0;
}

.grid figure p {
  letter-spacing: 1px;
}

figure.effect-sadie figcaption::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-linear-gradient(top, rgba(0,94,33,0) 0%, rgba(0,94,33,0.8) 75%);
  background: linear-gradient(to bottom, rgba(0,94,33,0) 0%, rgba(0,94,33,0.8) 75%);
  content: '';
  opacity: 0;
  -webkit-transform: translate3d(0,50%,0);
  transform: translate3d(0,50%,0);
}

figure.effect-sadie h4 {
  position: absolute;
  top: 70%;
  left: 0;
  width: 100%;
  color: #fff;
  -webkit-transition: -webkit-transform 0.35s, color 0.35s;
  transition: transform 0.35s, color 0.35s;
  -webkit-transform: translate3d(0,-50%,0);
  transform: translate3d(0,-50%,0);
}

figure.effect-sadie figcaption::before,
figure.effect-sadie p {
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

figure.effect-sadie p {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  opacity: 0;
  -webkit-transform: translate3d(0,10px,0);
  transform: translate3d(0,10px,0);
}

figure.effect-sadie:hover h4 {
  color: #fff;
  -webkit-transform: translate3d(0,-50%,0) translate3d(0,-20px,0);
  transform: translate3d(0,-50%,0) translate3d(0,-20px,0);
}

figure.effect-sadie:hover figcaption::before,
figure.effect-sadie:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

/* boton galeria */
[class^="os-gallery-tabs-main"] .osgalery-cat-tabs li a.active {
  background: #005E20;
  color: #fff;
}

/* Responsive media queries */
/* Large desktop */
@media (min-width: 1200px) {
  /* Estilos para pantallas grandes */
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
  #header {
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    background-image: url(../img/ff.png);
    background-repeat: repeat-x;
    background-position: center top;
    background-color: #FFFFFF;
    height: auto;
  }

  #slide {
    display: none;
  }

  h3 {
    letter-spacing: 0px;
    font-size: 24px;
    line-height: 20px;
    padding-bottom: 10px;
    margin-top: 10px;
    color: #e94f2d;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    text-align: center;
  }
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
  html,
  body {
    background-image: none;
  }

  #top {
    text-align: center;
    height: 20px;
    padding-bottom: 20px;
    position: absolute;
  }

  #header {
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    background-image: url(../img/ff.png);
    background-repeat: repeat-x;
    background-position: center top;
    background-color: #FFFFFF;
    height: auto;
  }

  #js-mainnav.megamenu.blackwhite {
    background-color: #054D85;
  }

  #gris2 {
    background-color: #115A8B;
    color: #fff;
    text-align: center;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  #gris {
    text-align: left;
    background-color: #DED6C8;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  #socios {
    text-align: center;
  }

  #slide {
    display: none;
  }

  h3 {
    letter-spacing: 0px;
    font-size: 18px;
    line-height: 20px;
    padding-bottom: 10px;
    margin-top: 10px;
    color: #e94f2d;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    text-align: center;
  }
}

/* Landscape phones and down */
@media (max-width: 480px) {
  html,
  body {
    background-image: none;
  }

  #top {
    text-align: center;
    height: 20px;
    padding-bottom: 20px;
    position: relative;
  }

  #js-mainnav.megamenu.blackwhite {
    background-color: #054D85;
  }

  #header {
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    background-image: url(../img/ff.png);
    background-repeat: repeat-x;
    background-position: center top;
    background-color: #FFFFFF;
    height: auto;
  }

  .buscar {
    background-image: url(../img/buscarm.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto;
    min-height: 80px;
  }

  #oficina {
    width: 320px;
    height: 103px;
    background-color: #19A44A;
    display: block;
  }

  #gris2 {
    background-color: #115A8B;
    text-align: center;
    color: #fff;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  #gris {
    text-align: left;
    background-color: #DED6C8;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  #socios {
    text-align: center;
  }

  #slide {
    display: none;
  }

  h3 {
    letter-spacing: 0px;
    font-size: 18px;
    line-height: 20px;
    padding-bottom: 10px;
    margin-top: 10px;
    color: #e94f2d;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    text-align: center;
  }
  
  /* Ajustes para la barra de redes sociales en móviles */
  .barra-rs {
    position: fixed;
    width: 100%;
    right: auto;
    bottom: 0;
    top: auto;
    left: 0;
    transform: none;
    display: flex;
    justify-content: space-around;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0;
  }
  
  .barra-rs a {
    padding: 10px;
    margin: 0;
    display: inline-block;
    border-radius: 0;
  }
}

/* ++++++++++++++  blog  ++++++++++++++ */
.cols-1 {
  display: block;
  float: none !important;
  margin: 0 !important;
}

.cols-2 .column-1 {
  width: 46%;
  float: left;
}

.cols-2 .column-2 {
  width: 46%;
  float: right;
  margin: 0;
}

.cols-3 .column-1 {
  float: left;
  width: 100%;
  padding: 0px 5px;
  margin-right: 4%;
}

.cols-3 .column-2 {
  float: left;
  width: 100%;
  margin-left: 0;
  padding: 0px 5px;
}

.cols-3 .column-3 {
  float: right;
  width: 100%;
  padding: 0px 5px;
}

.items-row {
  overflow: hidden;
  margin-bottom: 10px !important;
}

.column-1,
.column-2,
.column-3 {
  padding: 10px 5px;
}

.column-2 {
  width: 55%;
  margin-left: 40%;
}

.column-3 {
  width: 30%;
}

.pull-none {
  text-align: center;
}
