/*
Theme Name:  Astra child theme
Description: Tema hijo para hacer personalizaciones de código
Author:      Talento Corporativo
Author URL:  https://talentocorporativo.com/
Template:    astra
Version:     1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* Color global de enlaces */
a {
  color: #96014b;
}

/* Menú principal */
#main-menu .menu li:nth-child(2),
#main-menu .menu li:nth-child(3) {position: relative}
	#main-menu .menu li:nth-child(3) {margin-left: 1em}
    #main-menu .menu li:nth-child(2)::after,
    #main-menu .menu li:nth-child(3)::after {
        bottom: -1rem;
		color: #fff;
        content: 'Empresa y Asesor';
        font-size: 10px;
        left: 50%;
        position: absolute;
        text-align: center;
        transform: translateX(-50%);
        width: 100%
    }
		#main-menu .menu li:nth-child(3)::after {content: 'Trabajador'}
		.home #main-menu .menu li:nth-child(2)::after,
		.home #main-menu .menu li:nth-child(3)::after {color: #444}
		#page #main-menu .menu li:nth-child(3) a:hover {color: #910048;}

    /* Catalán */
    #main-menu .menu li:nth-child(2):lang(ca)::after {content: 'Empresa i Assessor'}
    #main-menu .menu li:nth-child(3):lang(ca)::after {content: 'Treballador'}

/* Menú hamburguesa */
.mobmenu-panel .wp-mobile-menu .sub-menu li.menu-item {position: relative;}
    .mobmenu-panel .wp-mobile-menu .sub-menu .menu-item:not(.submenu_hamburguesa) {padding-left: 5em !important}
        .mobmenu-panel .wp-mobile-menu .sub-menu .menu-item:not(.submenu_hamburguesa) a {
            font-size: 11px !important;
            letter-spacing: 3px;
            line-height: 20px !important;
            padding: 5px !important
        }
        .mobmenu-panel .wp-mobile-menu .sub-menu .menu-item:not(.submenu_hamburguesa) a:hover {color: #910048 !important}

		.mobmenu-panel .wp-mobile-menu .menu-item:nth-child(6) .sub-menu li.menu-item:nth-child(2):lang(es) a::after,
		.mobmenu-panel .wp-mobile-menu .menu-item:nth-child(6) .sub-menu li.menu-item:nth-child(3):lang(es) a::after {
			content: ' - Empresa y Asesor';
			font-size: 10px;
		}
			.mobmenu-panel .wp-mobile-menu .menu-item:nth-child(6) .sub-menu li.menu-item:nth-child(3):lang(es) a::after {content: ' - Trabajador';}

		.mobmenu-panel .wp-mobile-menu .menu-item:nth-child(6) .sub-menu li.menu-item:nth-child(2):lang(ca) a::after,
		.mobmenu-panel .wp-mobile-menu .menu-item:nth-child(6) .sub-menu li.menu-item:nth-child(3):lang(ca) a::after {
			content: ' - Empresa i Assessor';
			font-size: 10px;
		}
			.mobmenu-panel .wp-mobile-menu .menu-item:nth-child(6) .sub-menu li.menu-item:nth-child(3):lang(ca) a::after {content: ' - Treballador';}


.em-cal-day-date.colored{
	border: 1px solid #cdcdcd;
	position: relative;
}

.em-cal-day-date.colored:after{
	content: ''; /* Necesario para crear el pseudo-elemento */
    position: absolute;
    top: -5px; /* Ajusta la posición vertical */
    right: -5px; /* Ajusta la posición horizontal */
    width: 10px; /* Tamaño del círculo */
    height: 10px; /* Tamaño del círculo */
    background-color: red; /* Color del círculo */
    border-radius: 50%; /* Hace que sea redondo */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Opcional: Añade un sombreado */
}

/** Cuadrícula de eventos **/

/* formulario */
.c-listado-datos form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
  .c-listado-datos form label {
    display: block;
    margin: 0;
    width: 23.5%;
  }
    .c-listado-datos form label:not(:first-child) {margin-left: 2%}
    .c-listado-datos form label:nth-child(4) {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-left: 0;
      width: 49%
    }
    .c-listado-datos form label:nth-child(n+4) {margin-top: 1.5rem}
  .c-listado-datos form label span {display: block}
    .c-listado-datos form label:nth-child(4) p {
      margin: 0;
      width: 48%
    }
  .c-listado-datos form label select,
  .c-listado-datos form label input[type="date"],
  .c-listado-datos form label input[type="text"] {
    border: 1px solid #cdcdcd;
    border-radius: .125rem;
    color: #444;
    padding: .625rem .75rem;
    width: 100%
  }
  .c-listado-datos form .u-quitar-filtros,
  .c-listado-datos form input[type="submit"] {
    align-self: flex-end;
    margin-left: 2%;
  }
    .c-listado-datos form input[type="submit"] {
      line-height: 1.1;
      text-transform: uppercase;
      transition: .3s
    }
      .c-listado-datos form input[type="submit"]:focus,
      .c-listado-datos form input[type="submit"]:hover {
        border-color: #96014b;
        background-color: #96014b;
        transform: scale(1.1);
        transition: .4s
      }
    .c-listado-datos form .u-quitar-filtros a {
      display: inline-block;
      line-height: 1.14;
      padding: .75rem .625rem;
    }
      .c-listado-datos form .u-quitar-filtros a:focus,
      .c-listado-datos form .u-quitar-filtros a:hover {
        color: #000;
        text-decoration: none
      }

/* eventos */
.c-evento{
  align-items: stretch;
  display:flex;
  flex-wrap: wrap;
}
  .c-evento-individual{
    display: block;
    margin-left: 2%;
    padding:0;
    position: relative;
    width: 23.5%;
  }
    .c-evento-individual:nth-child(4n+1){margin-left: 0}
    .c-evento-individual:nth-child(n+5){margin-top: 2rem}
    #main .c-evento .c-evento-individual a {
      box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
      display: block;
      height: 100%;
      text-decoration: none;
      transition: .3s
    }
      #main .c-evento .c-evento-individual a:focus,
      #main .c-evento .c-evento-individual a:hover {
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.15);
        transform: scale(1.05);
        transition: .4s
      }
      #main .c-evento .c-evento-individual.historico a {background: #fcfcfc}
      .c-evento-destacada{display: block}
        .c-evento-destacada img{
          display: inline-block;
          width:100%;
          height:auto;
          aspect-ratio: 16/9;
          object-fit: cover;
        }
          .c-evento-individual.historico img {filter: grayscale(75%)}
  .c-evento-texto{padding: 1rem}
      .c-evento .c-evento-individual h3.c-evento-titulo {
        color: var(--primary-color);
        font-size: 1.125rem;
        font-weight: 500;
        line-height: 1.3
      }
        .c-evento .c-evento-individual.historico h3.c-evento-titulo {color: #666}
        .c-evento .c-evento-individual a:focus h3.c-evento-titulo,
        .c-evento .c-evento-individual a:hover h3.c-evento-titulo {
          color: #000;
          text-decoration: underline
        }
          .c-evento-titulo a:focus::after,
          .c-evento-titulo a:hover::after {
              display: block;
              transition: .9s;
              width: 100%
          }
      .c-evento-individual .c-evento-intro {color: #333}
        .c-evento-individual.historico .c-evento-intro {color: #666}
        .c-evento-individual .c-evento-fecha,
        .c-evento-individual .c-evento-estado {
          background: #96014b;
          border-radius: .25rem;
          color: #fff;
          line-height: 1;
          margin: 0;
          padding: .5rem .625rem;
          position: absolute;
          top: .5rem;
        }
          .c-evento-individual .c-evento-fecha {right: .5rem}
            .c-evento-individual.historico .c-evento-fecha {background: #666}
          .c-evento-individual .c-evento-estado {
            background: #96014b;
            left: .5rem
          }

  .c-evento-boton-enlace{
    display: block;
    background-color: #96014b;
    width:100%;
    padding: 1rem;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    bottom: 0;
    left:0;
    position: absolute;
  }
    .c-evento-boton-enlace:focus,
    .c-evento-boton-enlace:hover{
      font-weight: 900;
      color: #fff
    }

  .c-paginacion {
      align-items: center;
      display: flex;
      justify-content: center;
      margin: 2rem 0 0;
  }
  #main .c-paginacion .current {
    background: #96014b;
    color: #fff;
    display: block;
    line-height: 1.28;
    margin: 0 .5rem;
    padding: .5rem .25rem;
    text-align: center;
    width: 2.25rem;
  }
  #main .c-paginacion a {
    background: #cdcdcd;
    color: #000;
    display: block;
    line-height: 1.28;
    margin: 0 .5rem;
    padding: .5rem .25rem;
    text-align: center;
    text-decoration: none;
    transition: .3s;
    width: 2.25rem;
  }
    #main .c-paginacion a:focus,
    #main .c-paginacion a:hover {
      background: #96014b;
      color: #fff;
      text-decoration: none;
      transform: scale(1.2);
      transition: .4s;
    }
  #main .c-paginacion a.next,
  #main .c-paginacion a.prev {
    background: transparent;
    border: 0;
    padding: .5rem 0;
    width: 7rem
  }
    #main .c-paginacion a.next {margin-right: 0}
    #main .c-paginacion a.prev {margin-left: 0}
    #main .c-paginacion a.next:focus,
    #main .c-paginacion a.next:hover,
    #main .c-paginacion a.prev:focus,
    #main .c-paginacion a.prev:hover {
      color: #000;
      text-decoration: underline;
      transform: scale(1);
    }
  .c-paginacion > span:not(.dots) {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
  }

/** Ficha de eventos **/
.c-ficha-evento-volver {margin: 0 0 3rem}
  .c-ficha-evento-volver a {
    background: #757575;
    border-radius: .25rem;
    color: #fff;
    display: inline-block;
    line-height: 1.2;
    padding: .75rem 2rem .75rem 3rem;
    position: relative;
    text-transform: uppercase;
    transition: .3s
  }
    .c-ficha-evento-volver a:focus,
    .c-ficha-evento-volver a:hover {
      background: #000;
      transform: scale(1.1);
      transition: .4s
    }
    .c-ficha-evento-volver a::before {
      content: '\f053';
      font-family: "Font Awesome 5 Free";
      font-style: normal;
      font-size: 1rem;
      font-weight: 900;
      height: 1.25rem;
      left: 1.5rem;
      line-height: 1;
      position: absolute;
      top: .9375rem;
      transition: .3s;
      width: 1.25rem;
      z-index: 3
    }
      .c-ficha-evento-volver a:focus::before,
      .c-ficha-evento-volver a:hover::before {
        left: 1rem;
        transition: .4s
      }

.c-datos-evento {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 0 5rem
}
  .c-inscribete,
  .c-ficha-evento-info,
  .c-ficha-evento-titulo {
    margin: 2rem 0 0;
    width: 100%
  }
    .u-ficha-evento-titulo {
      color: #96014b;
      font-size: 2.5rem;
      margin: 0
    }
    .u-ficha-evento-subtitulo {
      color: #96014b;
      font-size: 1.75rem;
      margin: 0 0 1rem;
    }
    .c-ficha-evento-info p,
    .c-ficha-evento-info div:first-child {margin: 0 0 1rem}
    .c-ficha-evento-info ul {margin: 0 0 1rem 2rem}
      .c-ficha-evento-info ul li:not(:first-child) {margin: .5rem 0 0}
    .c-ficha-evento-info .u-colabora {margin: 0 0 2rem}
    .c-ficha-evento-info .u-colabora p {
      align-items: center;
      display: flex;
      flex-wrap: wrap;
    }
      .c-ficha-evento-info .u-colabora img {
        /*border: 1px solid #96014b !important;*/
        margin: 0 2rem 2rem 0;
        width: 22%;
      }
    .c-ficha-evento-info .u-evento-mapa p {margin: 0}
      .c-ficha-evento-info iframe {
        display: block;
        height: 15rem;
        width: 100% !important;
        margin-bottom: 1rem;
      }
      .c-ficha-evento-info .retransmision-boton-lateral {
        border-radius: .25rem;
        display: inline-block;
        background-color: #96014b;
        color: #fff;
        text-align: center;
        font-size: 1.125rem !important;
        line-height: 1.2;
        margin: 1rem auto !important;
        max-width: 20rem;
        padding: 1rem 2rem !important;
        transition: .3s;
        text-transform: uppercase;
        font-style: normal !important;
        font-weight: 600;
      }
      .c-ficha-evento-info .retransmision-boton-lateral:focus,
      .c-ficha-evento-info .retransmision-boton-lateral:hover {
        background: #000;
        transform: scale(1.1);
        transition: .4s;
      }
      .c-ficha-evento-info .u-retransmision-texto {
        margin: 1rem 0;
        text-align: center;
        margin: 0 auto;
        font-size: 1.125rem;
        line-height: 1.2;
        font-weight: 400;
        color: #333;
        font-style: italic;
      }
  .c-evento-programa,
  .c-evento-ponentes {
    margin: 2rem 0 0;
    width: 48%
  }
  .c-inscribete {margin: 2rem 0 0}
    .c-inscribete .gform_fields {
      align-items: unset !important;
      display: grid !important;
      flex-wrap: unset !important;
    }
    .c-inscribete .gform_fields label {display: inline-block !important}
    .c-inscribete .gform_fields input[type="radio"] {width: auto !important}
    .c-inscribete .gform_fields h3.gsection_title {font-size: 1.5rem}
    .c-inscribete .gfield--type-section + .gfield--type-radio .gfield_radio {
      align-items: center;
      display: flex;
    }
      .c-inscribete .gfield--type-section + .gfield--type-radio .gfield_radio .gchoice {
        display: block;
        margin: 0 2rem 0 0;
        width: 7rem
      }
        .c-inscribete .gfield--type-section + .gfield--type-radio .gfield_radio .gchoice .gfield-choice-input + label {
          max-width: calc(100% - 18px);
          padding: 0 0 0 .375rem;
          width: 100%
        }
    .c-inscribete .ginput_container_consent {
      background: transparent !important;
      padding: .75rem 0 !important;
    }
    .c-inscribete .gform_footer input[type="submit"] {
      border-radius: .25rem;
      font-size: 1.125rem !important;
      line-height: 1.2;
      margin: 0 auto !important;
      max-width: 20rem;
      padding: 1rem 2rem !important;
      transition: .3s
    }
      .c-inscribete .gform_footer input[type="submit"]:focus,
      .c-inscribete .gform_footer input[type="submit"]:hover {
        background: #000;
        transform: scale(1.1);
        transition: .4s;
      }

/*** Responsive ***/
@media screen and (max-width: 1200px) {
  .c-listado-datos form label {width: 22%}
  .c-listado-datos form label:nth-child(4) {width: 46%}
  .c-ficha-evento-titulo {margin-top: 1rem}
  .c-datos-evento {margin-bottom: 4rem}

  #main .c-evento .c-evento-individual:nth-child(n) {
    margin: 0 0 0 2%;
    width: 32%
  }
  #main .c-evento .c-evento-individual:nth-child(3n+1) {margin-left: 0}
  #main .c-evento .c-evento-individual:nth-child(n+4) {margin-top: 2rem}
}
@media screen and (max-width: 950px) {
  .c-listado-datos form label {width: 32%}
  .c-listado-datos form label:nth-child(n+3) {margin-top: 1rem}
  .c-listado-datos form label:nth-child(2),
  .c-listado-datos form label:nth-child(5) {margin-right: 2rem}
  .c-listado-datos form label:nth-child(3) {margin-left: 0}
  .c-listado-datos form label:nth-child(4) {
    order: 4;
    width: 66%
  }
  .c-listado-datos form input[type="submit"] {
    line-height: 1.15;
    order: 5;
    padding: .75rem 2rem
  }
  .c-listado-datos form .u-quitar-filtros {order: 6}
  .c-listado-datos form label:nth-child(4) p {width: 48.5%}
}
@media screen and (max-width: 820px) {
  #main .c-evento .c-evento-individual:nth-child(n) {
    margin: 0 0 0 4%;
    width: 48%
  }
  #main .c-evento .c-evento-individual:nth-child(2n+1) {margin-left: 0}
  #main .c-evento .c-evento-individual:nth-child(n+3) {margin-top: 2rem}
}
@media screen and (max-width: 768px) {
  html {font-size: 81.25% !important}
}
@media screen and (max-width: 767px) {
  #main .c-listado-datos form label:nth-child(n) {
    margin: 0 0 0 4%;
    width: 48%
  }
  #main .c-listado-datos form label:nth-child(odd) {margin-left: 0}
  #main .c-listado-datos form label:nth-child(n+3) {margin-top: 1rem}
  #main .c-listado-datos form label:nth-child(4) {
    margin-left: 0;
    width: 100%
  }
  #main .c-listado-datos form label:nth-child(4) p {width: 48%}
  #main .c-listado-datos form label:nth-child(5) {margin-left: 4%}
  #main .c-listado-datos form .u-quitar-filtros,
  #main .c-listado-datos form input[type="submit"] {
    margin: 2rem calc(25% - 5rem) 0;
    width: 10rem;
  }
  .c-ficha-evento-titulo {margin-top: 0}
  .c-datos-evento {margin-bottom: 3rem}
}
@media screen and (max-width: 640px) {
  .c-evento-programa,
  .c-evento-ponentes {width: 100%}
}
@media screen and (max-width: 580px) {
  #main .c-listado-datos form label:nth-child(n) {
    margin: 0 auto;
    max-width: 32rem;
    width: 100%
  }
  #main .c-listado-datos form label:nth-child(n+2) {margin-top: 1rem}
  #main .c-listado-datos form label:nth-child(4) p {width: 100%}

  #main .c-evento .c-evento-individual:nth-child(n) {
    margin: 0 auto;
    max-width: 32rem;
    width: 100%
  }
  #main .c-evento .c-evento-individual:nth-child(n+2) {margin-top: 2rem}
  #main .c-listado-datos form .u-quitar-filtros,
  #main .c-listado-datos form input[type="submit"] {
    margin: 2rem calc(25% - 5rem) 0;
    width: 10rem;
  }
  .c-ficha-evento-volver {margin-bottom: 2rem}
  .c-datos-evento {margin-bottom: 2rem}
}
@media screen and (max-width: 420px) {
  .c-inscribete .gfield--type-section + .gfield--type-radio .gfield_radio .gchoice:last-child {margin: 0}
}
@media screen and (max-width: 350px) {
  .c-inscribete .gfield--type-section + .gfield--type-radio .gfield_radio .gchoice {margin-right: 1rem}
}

.update-nag,
.notice,
.notice-warning,
.notice-error,
.notice-success,
.error,
.updated {
	display: none !important;
}

div.pum-alerts {
	display: none !important;
}
