
/*NOTAS:
siguiendo la estética de adal y atn, los banners deberían tener opacity cuando están normal y dejar de tenerlo cuando se les hace hover
los links de la noticia destacada debería comportarse similar, sin aclarar la ímagen.
Los afiliados deberían tener color y link
corregir destacado en noticia destacada al achicar
el blink lo produce el float
Ver como hago con el banner que se transforma.

*/
#logo img {
  max-height: 7em;
  width: auto;
}
#bloque-logo-accion-social img, #bloque-logo-fundacion img {
  max-height: 5em;
  max-width: 100%;
}
#consulta_beneficiario button {
  background-color: #095078 !important;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 1px;
}
/*sobreescritura modal*/
.modal.fade .modal-dialog {
    height: 100vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-out, opacity 0.15s linear;
    transform: translate(0, 0); 
}
.modal.show .modal-dialog {
    transform: none; 
}

#bottom-header{
  background-color: #fff;
  box-shadow: 0 4px 8px 0px rgb(0 0 0 / 22%) !important;
  padding: 1.2em;
  z-index: 99;
  position: relative;
}
#main{
  background-color: #eee;
  background-image: url('../img/fondo_04.jpg');
  background-repeat: repeat-y;
  background-position: 50% 0%;
  background-size: auto;
}

#post-title
{
  background-color: #000;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  padding-bottom: 2em;
}
#post-title.locales
{
  background-image: url('../img/fondos/fondo_9.jpg');
}

#post-title .row > div
{
  /*height: 100px;*/  
}

#post-title .otras-secciones a
{
  font-size: 1.2em;
  color: #fff;
  font-weight: bold;
}
#post-title .otras-secciones a *
{
  color: #fff;
}

#titulo-seccion span
{
  color: #fff;
}

#grilla-noticias
{
  position: relative;

}
#grilla-noticias-interna.over-title
{
  margin-top: -10em; /* relativo a #post-title.over-title en DAC.CSS */
}

/* INI: SINGLE */
body.single #primary p
{
  font-size: 1.2rem;
}
.single #primary{
  box-shadow: 2px -1px 7px 0px #9d9b9b52;
  z-index: 9;
}
#post-title.noticia {
  background-image: url('../img/main-background.jpg');
  position: relative;
  overflow:hidden;"
  background-position: 50% 50%;
}
#post-title.noticia > .container
{
  position: relative;
  z-index: 1;
}
#post-title .fondo-cabecera {
  position:absolute;
  top: -1em;
  left: -1em;
  right: -1em;
  bottom: -1em;
  background-position: 50% 25%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(4px);
  opacity: .4;
  z-index: -1;
}

#secondary {
  padding: 5rem 0 0 0 ;
}
#ultimas-noticias {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#ultimas-noticias h4 {
  font-size: 1rem;
}
#secondary .card-img-top
{
  width: 100%;
  height: auto;
}
/* FIN: SINGLE */

/* GRILLA NOTICIAS */

#gilla-noticias .noticia .caja
{
  width: 100%;
  /*height: 100%;*/
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 4px;
  overflow: clip;
}
.noticia-imagen img
{
  width: 100%!important;
  height: auto!important;
}

.paginador .nav-previous a,
.paginador .nav-next a
{
  padding: .25em;
  display: inline-block;
  background-color: #fff;
}

/* GENERALES */

#post-itself{
  background-color: #fff;
}
#post-fecha h5, .noticia-descripcion h5{
  font-size: 1.1rem;
  font-weight: 500;
}
#sidebar{
  background-color: transparent;
}
.sidebar-post, #secondary {
  padding: 5em 2em 1em 2em !important;
}
#secondary h3 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
}
.noticia-sidebar {
  padding-bottom: 1em;
}
.noticia-sidebar h4{ 
  font-size: 1.1rem;
}
.noticia-sidebar h4 a{ 
  text-decoration: none !important;
  font-weight: 500;
  color: #292929;
}
.leer-mas {
  color: #2a6fd5!important;
}

/* GALERIAS BRICK/RESPONSIVE */

.gallery,
.wp-block-gallery
{
    margin-top: 1.5em !important;
}
.gallery +*,
.wp-block-gallery +*
{
    margin-top: 1.5em !important;
}
.gallery +.gallery,
.wp-block-gallery +.wp-block-gallery
{
    margin-top: 0 !important;
}

#post-content .gallery-item .gallery-icon,
#post-content .blocks-gallery-item figure
{
  padding-bottom: 1px !important;
  padding-left:   1px !important;
  padding-right:  0 !important;
  padding-top:    0 !important;
  line-height: 0;
}

/* WORDPRESS */

/**
 * 8.0 - Alignments
 */

.alignleft {
	float: left;
	margin: 0.375em 1.75em 1.75em 0;
}

.alignright {
	float: right;
	margin: 0.375em 0 1.75em 1.75em;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto 1.75em;
}

blockquote.alignleft {
	margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
}

blockquote.alignright {
	margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
}

blockquote.aligncenter {
	margin-bottom: 1.473684211em;
}

/**
 * 12.1 - Captions
 */

.wp-caption {
	margin-bottom: 1.75em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0;
}


#primary #post-content p.wp-caption-text {
	color: #666;
	font-size: 0.8em;
	font-style: normal;
	line-height: 1.6;
	padding-top: 0.25em;
  padding-bottom: .5em;
  border-bottom: 1px solid #999;
  margin: 0 0 1.75em 0!important;
}

.lazy-load-div::before {
    content: ' '!important;
}

/* INI: BOOTSTRAP */

.page-link {
  color: #f70;
  border-color: #ccc;
  border-bottom-color: #f70;
  text-decoration: none;
}
.page-link:hover {
  border-color: #333;
  border-bottom-color: #f70;
  background-color: #333;
  color: #f70;
}
.page-item.active .page-link {
  border-color: #333;
  background-color: #333;
  color: #fff;
}

.search-btn{
	border:none;
	/*padding: 5px 10px;*/
  background-color: transparent;
}
.search-btn .fa {
  font-size: inherit!important
}
#searchform .input-group-text {
  padding: 0;
}

@media (min-width: 1024px) {
  .toc-column-count-2 #toclist {
    -webkit-column-count: 2;
       -moz-column-count: 2;
            column-count: 2;

    -webkit-column-gap: 20px;
       -moz-column-gap: 20px;
            column-gap: 20px;
  }
}
.btn-pdf .wp-block-button__link:before {
  /* .fa-file-pdf:before{content:"\f1c1"} */
  -moz-osx-font-smoothing:grayscale;
  -webkit-font-smoothing:antialiased;
  display:inline-block;
  font-style:normal;
  font-variant:normal;
  text-rendering:auto;
  line-height:1;
  content:"\f1c1";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 1em;
}
.btn-pdf .wp-block-button__link:hover{
  background-color: #900;
  transition: all .25s;
}
/* FIN: BOOTSTRAP */

.encuadre-gris {
  padding: 2em;
  margin: 1em;
}
.encuadre-gris::before,
.encuadre-gris::after{
  border-color: #666;
  width: 33%;
  height: 33%;
}
/* END OF DAC */


/* custom */

/*banners*/
#accion-social-banners {
    background-image: url(../img/fondos/fondo_17.jpg);
    height: 200px;
}
#accion-social-banners .bloque-titulo-texto {
  color: #ffffff;
}

/*beneficios*/

/* SOBREESCRITURA PARA TARJETA SUPERPUESTA*/
.dac-as-beneficios-wrapper {
    margin-top: -180px;
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 20px 20px 0px 0px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 2em 1em;
}
.dac-as-beneficios-wrapper #title h2 {
  font-size: 2rem!important;
}
.boton-condicion {
  position: relative;
  padding: 5em 3em !important;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background-image: url(../img/fondos/fondo_17.jpg);
  background-size: auto;
  transition: transform 0.3s ease;
}
#dac-as-paso-condicion > div:nth-child(1) > div {
  background-position: bottom left;
}
#dac-as-paso-condicion > div:nth-child(2) > div {
  background-position: bottom right;
}
.boton-condicion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2 76 117 / 30%), rgb(2 76 117 / 30%));
  transition: opacity 0.3s ease;
  z-index: 0;
}
.boton-condicion > * {
  position: relative;
  z-index: 1;
}
.boton-condicion:hover::before {
  opacity: 0.3; 
}

.boton-condicion p {
  font-style: normal;
  font-weight: 500;
  font-size: 2rem;
  line-height: 2rem;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 0px;
}
.boton-puntaje {
  padding: 2em;
  gap: 11px;
  background: #F5F5F5;
  border: 1px solid rgba(246, 246, 246, 0.7);
  border-radius: 12px;
  transition: all 0.3s;
}
.boton-puntaje:hover{
  background: #E6E6E6;
  border: 1px solid rgba(246, 246, 246, 1);
}
.boton-puntaje p {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  color: #000000;
  margin-bottom: 0px;
}
.boton-beneficios {
  padding: 20px;
  background: rgba(245, 245, 245, 0.5);
  border: 1px solid rgba(246, 246, 246, 0.7);
  border-radius: 12px;
  transition: all 0.3s;
}
.boton-beneficios:hover{
  background: #E6E6E6!important;
  border: 1px solid rgba(246, 246, 246, 1)!important;
}
.boton-beneficios p {
  font-weight: 600;
  font-size: 1rem;
  line-height: 140%;
  text-align: center;
  color: #000000;
  margin-bottom: 0px;
}
.boton-volver {
  padding: 10px 20px;
  background: #FFFFFF;
  border: 1px solid #D2D2D2;
  border-radius: 50px;
  width: fit-content!important;
  transition: all 0.3s;
}
.boton-volver p {
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
  text-align: center;
  color: #454545;
}
.boton-volver:hover {
  background: #C2E9FF;
  border: 1px solid #76D6FF;
}

.tarjeta-beneficios {
  background: #F6F6F6;
  border-radius: 10px;
  margin: 0px;
  padding: 0px;
}
.tarjeta-beneficios-categoria {
  background: linear-gradient(260.07deg, #C8EFFF 9.41%, #EEF6F9 136.09%);
  border-radius: 10px 10px 0px 0px;
  padding:1.2rem 1.5rem!important;
}
.tarjeta-beneficios-categoria .btn-close {
    padding: 0px;
    width: 10px;
    height: 10px;
  }
.tarjeta-beneficios-categoria p {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #006C9A;
  margin-bottom: 0px;
}
.tarjeta-beneficios-contenido {
  padding: 24px 52px 52px;
}
.tarjeta-beneficios-contenido h4, .tarjeta-beneficios-contenido p {
  text-align: left;
  margin-bottom: 8px !important;
}
.tarjeta-beneficios-contenido hr {
  margin: 14px 0px !important;
}

/* noticias */
#gilla-noticias {
  margin-top: 1em;
  padding-bottom: 3em;
}
.noticia-destacada {
  margin-bottom: 2em;
}
#gilla-noticias .noticia-destacada .caja {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  border-radius: 4px;
  overflow: clip;
}
.noticia-destacada .noticia-imagen {
  width: 50% !important;
  height: 100% !important;
}
.noticia-imagen img{
  height: 200px!important;
  object-fit: cover;
}
.noticia-destacada img {
  height: 300px!important;
  object-fit: cover;
}
.noticia-destacada .noticia-descripcion {
  width: 50%;
  padding: 4em 2em!important;
}
.noticia-descripcion h2 a{
  color: #292929;
}

/*contacto*/
.wpcf7 .formulario-columnas{
  column-count: 2;
  column-gap: 50px;
}

.wpcf7 label{
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #000000;
  width: 100%;
}
.wpcf7 .wpcf7-form-control {
  padding: 8px 12px;
  border: 0.5px solid #C2C2C2;
  border-radius: 2px;
  margin-top: 8px;
  width: 100%;
}
.wpcf7 .wpcf7-file {
  border: none;
  padding: 0;
}
.formulario-aclaracion {
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;
  color: #626262;
}

.wpcf7-submit {
  background: #4183FF;
  border-color: #3e7ae9 !important;
  color: #ffffff;
  border-radius: 4px !important;
  width: revert !important;
}

.formulario-informacion {
  margin-top: 1em;
  gap: 50px;
}


/*FAQ preguntas frecuentes*/
/*
.accordion-item {
  margin-bottom: 12px;
  box-shadow: 0px -1px var(--bs-accordion-border-color);
}*/
.faq-title {
    color: #095078;
}
.accordion-header {
    margin: 0px !important;
}
.faq-answer p {
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 0px!important;
}
.faq-container .faq-icon {
    display: none;
}
.faq-container .accordion-button:not(.collapsed) {
    color: #3babd9;
  }
.faq-container .accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
    border-color: #3babd9;
}

@media screen and (max-width: 767px) {
  /*header*/
  #top-header > div > div{
    justify-content: center;
  }
  #bloque-logo-fundacion, #bloque-logo-accion-social {
    width: 30% !important;
  } 
  #consulta_beneficiario{
    justify-content: center;
  }
  #bottom-header .navbar{
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .modal.show .modal-dialog {
    padding: 2em;
  }
}

@media screen and (max-width: 992px) {
  /*noticias*/
  #gilla-noticias .noticia-destacada .caja {
    flex-direction: column;
  }
  .noticia {
    margin-bottom: 1em;
  }
  .noticia-destacada .noticia-imagen {
    width: 100% !important;
  }
  .noticia-destacada .noticia-descripcion {
    width: 100%;
    padding: 2em 2em!important;
  }
  .noticia-imagen img{
    height: 150px!important;
  }
  .noticia-destacada img {
    height: 300px!important;
  }

  /*contacto*/
  .wpcf7 .formulario-columnas{
    column-count: 1;
  }
}

/* Sección actual en el menú de navegación: fondo gris suave. */
#bottom-header .navbar .navbar-nav > .nav-item.current > .nav-link {
    background-color: #e9e9e9;
    color: #222;
}

/* Oculta la primera fila del wrapper de beneficios.
   Es la que contiene el bloque de título de sección en todas las plantillas. */
.dac-as-beneficios-wrapper > .row:first-child {
    display: none;
}
