:root {
  /* COLOR */
  --red: #E31F26;
  --gray: #3D3D3D;
  --white: #FFFFFF;
  --black: #000000;
  /* FONT */
  --primary-font: 'Lato', sans-serif;
  /* LAYOUT */
  --max-width: min(95%, 1320px);
}

/* RESETS */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a:focus {
  border: 1px dashed black;
}

a#saltar-info:focus {
  border: 1px dashed white;
}


/*Admin Actions*/



.dnnEditState header {
  position: relative;
  z-index: 0;;
}

.dnnEditState .container-accesibilidad {
  height: fit-content;
}

.dnnEditState.stop-scrolling {
  overflow: visible;
}

.admin_actions {
  position: relative;
}

body.dnnEditState #Form {
  height: 100%;
}

/*Pasar a ax-style*/

.c-red{
  color: #E31F26;
}

.bg-gris{
  background: #F2F2F2;
}

.ct-fondo-rojo {
  background: url(/Portals/0/Images/fondos/fondo.jpeg) 0 0 no-repeat;
  background-size: cover;
}

/*Estilos containers*/
.cont-texto-y-boton>h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
}

.cont-texto-y-boton>h1{
  color: var(--red);
  text-align: center;
} 

.cont-texto-y-boton>a:last-child {
  text-align: center;
  background: var(--red);
  padding: 10px 30px;
  display: block;
  width: fit-content;
  margin: 50px auto 20px;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all .3s;
}

.cont-texto-y-boton>a:last-child:hover {
  background: black;
}

/*---------Estilos header----------*/
/*Barra negra*/
.franja-negra {
  background: black;
}

a#saltar-info {
  border: 1px solid var(--red);
  border-radius: 50px;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 14px;
  color: white;
  transition: all .3s;
  height: fit-content;
  line-height: 0;
}

a#saltar-info:hover {
  background: white;
  color: black;
}

a#accessibility-voz {
  background: white;
  border-radius: 100%;
  height: 30px;
  width: 30px;
  padding: 5px;
  position: relative;
}

.tooltip-voz {
  display: none !important;
  position: absolute;
  background: #fff;
  padding: 7px 10px 7px 10px;
  z-index: 10;
  box-shadow: 0px 0px 8px 0px rgb(0 0 0 / 25%);
  border-radius: 7px;
  top: 43px;
  left: -122px;
  margin: auto;
  pointer-events: none;
  min-width: 275px;
}
.tooltip-voz p {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  color: #444444;
  text-align: center;
}
.tooltip-voz p strong {
  color: var(--red);
  font-size: 15px;
  line-height: 18px;
  padding-bottom: 8px;
  display: block;
}
.tooltip-voz:after {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
  transform: translateX(-50%);
}

#accessibility-voz.active:hover .tooltip-voz {
  display: block !important;
}

button.edsA_propertiesToggle {
  display: flex;
  flex-direction: row-reverse;
}

.edsA_widget {
  position: relative !important;
}

body .edsA_widget .edsA_propertiesToggle::before {
  background-image: url(/Portals/0/skins/ccma/images/iconos/icono-accesibilidad.svg) !important;
  margin-right: -5px !important;
  background-color: #ffffff00 !important;
}

body .edsA_widget .edsA_propertiesToggle:hover::before{
  background-color: #ffffff00 !important;
}

body .edsA_widget.edsA_showButtonTitle .edsA_propertiesToggle > span {
  font-size: 14px !important;
  font-weight: 700;
  flex: 1;
}

body .edsA_widget {
  margin: 0;
  width: 160px !important;
  background: none !important;
  max-height: 35px !important;
  overflow: visible;
}

button.edsA_propertiesToggle {
  width: fit-content !important;
  gap: 3px;
  border-radius: 50px !important;
  padding: 15px 22px !important;
  height: 32px !important;
}

header.edsA_widgetHeader {
  margin: auto !important;
  width: fit-content;
  padding: 0 !important;
}

body .edsA_widget.edsA_widgetOpen {
  width: 100% !important;
}

div#edsA_properties {
  background: white !important;
  border-radius: 10px;
  position: absolute;
  top: 20%;
  width: 290px;
  right: 0;
}

.container-accesibilidad {
  height: 33px;
}

/*Fin barra negra*/

/*Menu*/
#abrirMegamenu {
  background: var(--red);
  color: white;
  text-decoration: none;
  padding: 8px 26px;
  display: flex;
  column-gap: 15px;
  width: fit-content;
  font-weight: 700;
  border-radius: 50px;
  font-size: 14px;
  transition: all .3s;
}

a#abrirMegamenu:hover {
  background: black;
}

.mega_menuCCMA {
  position: fixed;
  background: white;
  z-index: 9999;
  width: 50%;
  height: 100vh;
  top: 0;
  right: -50%;
  transition: all .5s;
}

a#abrirMegamenu.active ~ .mega_menuCCMA {
  right: 0;
  z-index: 99999;
}

a#abrirMegamenu.active ~ .overlay-menu {
  display: block;
}

.overlay-menu {
  width: 100%;
  height: 100%;
  background: #000000a1;
  display: block;
  left: 0;
  top: 0;
  position: fixed;
  z-index: 3;
  display: none;
}

a.cerrarMegamenu {
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 0;
}

a.cerrarMegamenu span {
  background: var(--red);
  display: block;
  width: 35px;
  height: 35px;
  padding: 5px;
  text-align: center;
  color: white;
  line-height: 17px;
  margin-left: 12px;
  font-size: 31px;
  font-weight: 400;
  transition: all .3s;
}

a.cerrarMegamenu:hover span {
  background: black;
}

ul.ax-nav_list {
  padding: 0;
  margin: 0;
  background: #EBEBEB;
  position: relative;
}

ul.ax-nav_children_wrapper {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  padding: 0;
  width: 60%;
  padding: 15px 15px 15px 40px;
  background: #EBEBEB;
  height: 100%;
  display: none;
  overflow: overlay;
}

.icon-desplegable-menu.active ~ .ax-nav_children_wrapper {
  display: block;
}

.icon-desplegable-menu.active ~ .ax-nav_link span {
  display: block;
  line-height: 21px;
}

.ax-nav_list>.ax-nav_item >a.ax-nav_link {
  padding: 13px 25px 13px 10px;
  display: flex;
  align-items: center;
  width: 40%;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.ax-nav_list>.ax-nav_item {
  display: flex;
  align-items: center;
  background: white;
}

.ax-nav_list>.ax-nav_item:hover {
  background: none;
}

.icon-desplegable-menu:before {
  content: "+";
  color: var(--red);
  padding-right: 12px;
  display: block;
  width: 25px;
  text-align: center;
  font-weight: bold;
  font-size: 21px;
  padding-left: 8px;
}

.icon-desplegable-menu:hover:before {
  color: black;
  cursor: pointer;
  font-size: 25px;
}

.icon-desplegable-menu.active:before {
  content: "-";
}

ul.ax-nav_children_wrapper li.ax-nav_item {
  list-style: disc;
}

ul.ax-nav_children_wrapper li.ax-nav_item .icon-desplegable-menu {
  display: none;
}

ul.ax-nav_children_wrapper li.ax-nav_item::marker {
  color: var(--red);
}

ul.ax-nav_children_wrapper a.ax-nav_link {
  text-decoration: none;
  line-height: 34px;
  font-size: 15px;
}

ul.ax-nav_children_wrapper a.ax-nav_link:hover span {
  color: var(--red);
}

.redesMegamenu {
  margin-top: 7%;
}

.mega_menuCCMA {
  display: flex;
  flex-direction: column;
  overflow: scroll;
}

.icon-desplegable-menu.active ~ .ax-nav_link:before {
  content: "";
  width: 100%;
  height: 100%;
  background: #ebebeb;
  position: absolute;
  left: -25px;
}

.icon-desplegable-menu.active ~ .ax-nav_link {
  position: relative;
}

.icon-desplegable-menu.active ~ .ax-nav_link span, .icon-desplegable-menu.active {
    z-index: 2;
}

.icon-desplegable-menu{
  text-decoration: none;
}

ul.ax-nav_list ul .icon-desplegable-menu.active ~ .ax-nav_link:before {
  content: none;
}

.searchInputContainer input {
  border-radius: 50px;
  border: 1px solid #7E7E7E;
  padding: 8px 50px 8px 20px;
  outline: none;
  font-size: 14px;
}

ul.searchSkinObjectPreview > li > span {
  font-size: 13px;
  line-height: 17px;
}

ul.searchSkinObjectPreview > li p {
  font-size: 11px;
}

ul.searchSkinObjectPreview > li > a.searchSkinObjectPreview_more {
  font-size: 12px;
}

.searchInputContainer input::placeholder {
  color: black;
}

a#dnn_buscadorCCMA_cmdSearch {
  background: url(/Portals/0/skins/ccma/images/iconos/search.svg) 0 0 no-repeat;
  font-size: 0 !important;
  width: 25px;
  height: 25px;
  display: block;
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
}

.ax-megaMenu {
  display: flex;
  flex-direction: column;
  align-items: end;
}

/*-------Fin estilos header-------*/

/*Formularios Xmod Pro*/

.xmp-form {
  background: white;
  border-radius: 10px;
  padding: 5% !important;
  display: flex;
  flex-wrap: wrap;
}

label.xmp-form-label {
  font-weight: bold;
  font-family: var(--secondary-font);
}

.xmp-form-row input, .xmp-form-row select {
  width: 100% !important;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid #7E7E7E;
  font-family: 'Lato';
  outline: none;
}

.xmp-form-row {
  width: 49%;
  margin: 0 !important;
  margin-bottom: 14px !important;
  padding: 1% !important;
}

.xmp-form-row:first-child {
  width: 100%;
}

.xmp-form-row input:focus, .xmp-form-row select:focus {
  border: 1px solid var(--red);
}

.xmp-form-row:last-child {
  width: 100%;
}

.xmp-form-row:last-child input[type="submit"] {
  background: var(--red);
  border: none;
  color: white;
  border-radius: 50px;
  width: fit-content !important;
  display: block;
  font-weight: 700;
  transition: all .3s;
}

.xmp-form-row:last-child:hover input[type="submit"]{
  background: black;
}

.xmp-form-row:last-child .xmp-form-label {
  display: none !important;
}

.xmp-form-row:last-child span {
  display: none;
}

.xmp-form-row:nth-last-child(3) {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  align-items: center;
  gap: 10px;
}

input[type="checkbox"] {
  width: 20px !important;
  filter: hue-rotate(148deg);
}

.xmp-form-row:nth-last-child(3) label {
  width: 100%;
}

.xmp-FormBibliotecaVirtual .xmp-form-row:first-child {
    width: 49%;
}

.xmp-FormBibliotecaVirtual .xmp-form-row:nth-child(5) {
    width: 100%;
}

/*form Biblioteca virtual*/
.xmp-FormBibliotecaVirtual .xmp-form-row:first-child {
  width: 49%;
}

.xmp-FormBibliotecaVirtual .xmp-form-row:last-child(4) {
  width: 100%;
} 

.form-xmodPro_autenticacion {
  max-width: 400px;
  margin: 40px auto;
}

.form-xmodPro_autenticacion .xmp-form-row {
  flex-direction: column;
  width: 100%;
}

/*Fin formularios Xmod pro*/ 

/*Tablas*/
.normal table {
  width: 100% !important;
  margin: 20px 0;
}

.normal table th {
  background: #eeeeee;
  padding: 12px;
  text-align: center;
  border: 1px solid #dedede;
}

.normal table td {
  padding: 12px;
  border: 1px solid #dedede;
  text-align: center;
}

/*fin tablas*/

/*Tabs CCMA*/
.ui-tabs-tab a {
  border: none !important;
  box-shadow: none !important;
  text-align: center;
  margin: 0 0 !important;
  width: 100%;
  color: black !important;
  font-weight: 700;
  padding: 15px !important;
  cursor: pointer;
  transition: all .3s;
  font-size: 15px;
}

.ui-tabs-anchor:hover {
  background: var(--red);
  color: white !important;
}

.ui-state-active a {
  background: var(--red) !important;
  color: white !important;
  font-family: var(--primary-font) !important;
  font-weight: 700;
  border: none !important;
  outline: none !important;
}

li.ui-tabs-tab {
  background: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ui-tabs-nav {
  background: #D8D8D8 !important;
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 10px 10px 0 0 !important;
}

.livetabsdefault .ui-helper-clearfix:after {
  content: none !important;
}

.livetabsdefault .ui-widget {
  padding: 0;
}

.ui-tabs {
  border: 0 !important;
}

.ui-tabs-tab a:last-child {
  border-top-right-radius: 10px !important;
}

.ui-tabs-tab a:first-child {
  border-top-left-radius: 10px !important;
}

.ui-tabs-panel {
  border: 1px solid #dddddd !important;
}
/*Fin tabs CCMA*/

@media (max-width:768px){
  .cont-texto-y-boton>a:last-child  {
    margin: 30px auto 20px;
  }

  .xmp-form-row{
    width: 100% !important;
  }

  div#dnn_imagen_formulario h2 {
    margin: 20px 0 25px;
}

.tablasCCMA {
  width: 100%;
  overflow: overlay;
}

.tablasCCMA table {
  width: 768px !important;
}

.ui-tabs {
  width: 768px !important;
}

.livetabsdefault {
  overflow: overlay;
}

.ui-tabs-tab a {
  padding: 10px !important;
  font-size: 14px;
}
}