/* Hoja de Estilos General para EBMT by AWERTY */

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css");

/* TARJETAS CATEGORIAS Y SUBCATEGORIAS */
/* class container ebmtcat */

.ebmtcat .row{
    padding-top: 20px;
}

.ebmtcat .card {
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.ebmtcat .card:hover{
    cursor: pointer; 
    transform: scale(1.01);
}

.ebmtcat .card .imgcard{
    overflow: hidden;  
}

.ebmtcat .card img{
     transition: all 1s ease-in-out; 
}

.ebmtcat .card:hover img {
    transform: scale(1.1);
    transform-origin: 50% 50%;
}

.ebmtcat .card .img-fluid{
    height: 85px;
    object-fit: cover;
} 

.ebmtcat h2 {
    margin-top: 10px;
}

.ebmtcat p {
    margin-bottom: 0px;
}

.ebmtcat h2 a {
    font: inherit;
    font-weight: inherit;
    size: inherit;
    color: inherit;
    text-decoration: none;
}

.ebmtcat h2 a:not(.btn):hover {
    text-decoration: none;
}

/* TARJETAS CONTENIDO */
/* class container ebmtcontent */

.ebmtcontent .row{
    padding-top: 20px;
    width: 100%;
}

.ebmtcontent .card {
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.ebmtcontent .card:hover{
    cursor: pointer; 
    transform: scale(1.01);
}

.ebmtcontent .card .imgcard{
    overflow: hidden;  
}

.ebmtcontent .card img{
     transition: all 1s ease-in-out; 
}

.ebmtcontent .card:hover img {
    transform: scale(1.1);
    transform-origin: 50% 50%;
}

.ebmtcontent .card .img-fluid{
    height: 150px;
    object-fit: cover;
} 

.ebmtcontent h2 {
    margin-top: 10px;
}

.ebmtcontent p {
    margin-bottom: 0px;
}

.ebmtcontent h2 a {
    font: inherit;
    font-weight: inherit;
    size: inherit;
    color: inherit;
    text-decoration: none;
}

.ebmtcontent h2 a:not(.btn):hover {
    text-decoration: none;
}

.ebmtcontent .badge.bg-content, .ebmtcat .badge.bg-content  {
    text-decoration: none;
    background-color: #664B8C;
    margin: 5px;
    font-size: 14px;
    font-family: Montserrat;
}

.ebmtcontent .bi {
    padding-right: 5px;
}

.ebmtcontent .badge, .ebmtcat .badge {   
    border-radius: 10px;  
}

.ebmtcontent .badge.ebmtnewlabel, .ebmtcat .badge.ebmtnewlabel{ 
    background-color: white !important;   
    color: black;
}

/* Icono Documentos */
.ebmtdoc {
    background-color: #635282;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    color: white;
}

.ebmtdoccard {
    background-color: #635282;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: white;
}





/* HEADER Y MENUS */
h1.siteTitle {
    font-size: clamp(15px, 4vw, 24px) !important;
}

h1.siteTitle:hover {
    text-decoration: none !important;
}

.static-top .navbar-brand {
    height: inherit; 
}
/* Ocultar Login */
.navbar .loginuser{
    display: none;
}


/* CONTENIDO DETAIL */
/* class container ebmtcontentdetail */

.ebmtcontentdetail {
    padding-top: 20px;
}

.ebmtcontentdetail .card {
    overflow: hidden;  
    margin-bottom: 10px;
}
.ebmtcontentdetail .card-body {
    height: 100%;
}

.ebmtcontentdetail h2 {
    margin-top: 10px;
}

.ebmtcontentdetail p {
    margin-bottom: 0px;
}

.ebmtcontentdetail h2 a {
    font: inherit;
    font-weight: inherit;
    size: inherit;
    color: inherit;
    text-decoration: none;
}

.ebmtcontentdetail h2 a:not(.btn):hover {
    text-decoration: none;
}

.ebmtcontentdetail .ebmtaction {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.ebmtcontentdetail .bi {
    padding-right: 5px;
}

.ebmtcontentdetail .video {
    background-color: #3a3938;    
}

.ebmtcontentdetail a {
    color: #625380 !important;
}
.ebmtcontentdetail a:hover {
    text-decoration: none;    
    color: #3a3938;
}

/* FOOTER */
/* class container footer */

.ebmtfooter {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    margin: 0 10px; 
}

.social-icons i {
    font-size: 20px; 
}

/*Buscador General*/
.ebmtbuscador #searchbox {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0!important;   
}
.ebmtbuscador #searchbutton {
    border-top-left-radius: 0!important;
    border-bottom-left-radius: 0!important;
    color: #635282;
}
.ebmtbuscador #searchbutton:hover {    
        color: var(--bs-btn-hover-color);
        background-color: #635282;
        border-color: #635282;
}

.ebmtbuscador .form-control:focus {
    border: 1px solid #949494 !important;
}

.ebmtsearchheader{
    padding-top: 5px;
    padding-left: 10px;
}

.ebmtsearchfooter .ebmtprevius{
    width: 50%;
}
.ebmtsearchfooter .ebmtnext{
    width: 50%;
}
.ebmtsearchfooter .ebmtnext #nextbutton{
    float: right;
}

.ebmtsearchfooter #nextbutton:hover , .ebmtsearchfooter #previusbutton:hover {
    color: var(--bs-btn-hover-color);
    background-color: #635282;
    border-color: #635282;
}
.ebmtsearchfooter {
    padding-bottom: 20px;
}


#searchfilter .form-select {
    background-color: var(--portalThemeColor12);

}

#searchfilter {
    cursor: pointer;
}

#etiquetafiltro {
    background-color: #635282;
    color: white;
    cursor: pointer;
}


#searchyear {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}


#toggle-filters-btn {
        cursor: pointer;
    background: none;
    border-width: 1px;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    width: 100%;
    color:#625380;
}

/* TARJETAS BUSCADOR */

.ebmtsearch .row{
    padding-top: 0px;
}

.ebmtsearch .card {
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    margin-bottom: 0px !important;
}

.ebmtsearch .card:hover{
    cursor: pointer; 
    transform: scale(1.01);
}

.ebmtsearch .card .imgcard{
    overflow: hidden;  
}

.ebmtsearch .card img{
     transition: all 1s ease-in-out; 
}

.ebmtsearch .card:hover img {
    transform: scale(1.1);
    transform-origin: 50% 50%;
}

.ebmtsearch .card .img-fluid{
    height: 85px;
    object-fit: cover;
    
} 

.ebmtsearch h2 {
    margin-top: 10px;
}

.ebmtsearch p {
    margin-bottom: 0px;
}

.ebmtsearch h2 a {
    font: inherit;
    font-weight: inherit;
    size: inherit;
    color: inherit !important;
    text-decoration: none;
}

.ebmtsearch h2 a:not(.btn):hover {
    text-decoration: none;
}

 .ebmtsearch .badge.bg-content  {
    text-decoration: none;
    background-color: #635282;
    margin: 5px;
    font-size: 14px;
    font-family: Montserrat;
}

 .ebmtsearch .badge.ebmtnewlabel  {
    text-decoration: none;
    background-color: #3a3938;
    margin: 5px;
    font-size: 14px;
    font-family: Montserrat;
}

 .ebmtsearch .badge.ebmtaud  {
    text-decoration: none;
    background-color: #888dbb;
    margin: 5px;
    font-size: 14px;
    font-family: Montserrat;
}

 .ebmtsearch .badge.ebmttopic  {
    text-decoration: none;
    background-color: #189ab4;
    margin: 5px;
    font-size: 14px;
    font-family: Montserrat;
}

.ebmtsearch .badges-row {
    display: flex; 
    flex-wrap: wrap;
}


/* Curvas */

.ebmtcurve1 {
    padding: 0px;
    background: #635282;
}

.waves {
    position:relative;
    width: 100%;
    height:5vh;
    margin-bottom:-7px; /*Fix for safari gap*/
    min-height:30px;
    max-height:50px;
  }

  .parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
  }
  .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
  }
  .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
  }
  .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
  }
  .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
  }
  @keyframes move-forever {
    0% {
     transform: translate3d(-90px,0,0);
    }
    100% { 
      transform: translate3d(85px,0,0);
    }
  }
  /*Shrinking for mobile*/
  @media (max-width: 768px) {
    .waves {
      height:40px;
      min-height:40px;
    }
  }

  /* Rutas Breadcrums */

.ebmtruta .breadcrumb {
    padding-bottom: 0px;
    margin: 0px;
    /* color: red; */
}

.ebmtruta .breadcrumb > li a {
    font-family: Arial;
    font-weight: 600;
    font-size: clamp(13px, 3vw, 15px) !important;
    color: #230353;
}

.ebmtruta .breadcrumb > li a {
    font-family: Arial;
    font-weight: 600;
    font-size: clamp(13px, 3vw, 15px) !important;
    color: #625380;
}



.ebmtruta .breadcrumb > li a:hover {
    text-decoration: none;    
    color: #3a3938;
}


/* Cockies Banner */
#cb-cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; border-radius: 0; display: none; border: none;}
#cb-cookie-banner a{
    color: #635282;
}
#cb-cookie-banner a:hover {
    text-decoration: none;    
    color: #3a3938;
}
.alert-dark {
    --bs-alert-color: #3a3938;
    --bs-alert-bg: #b0b3cf;
    --bs-alert-border-color: #230353;
}



/* LOADING SEARCH */

.cssload-wrap {
  --color-primary: #635282;   /* color principal */
  --color-secondary: #888dbb; /* color secundario */
  --dot-size: 15px;
  --dot-gap: 23px;
  --animation-duration: 2.2s;

  text-align: center;
}
.cssload-container {
  display: inline-block;
}

.cssload-dots {
  display: inline-block;
  position: relative;
}
.cssload-dots:not(:last-child) {
  margin-right: var(--dot-gap);
}

.cssload-dots::before,
.cssload-dots::after {
  content: "";
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  display: inline-block;
}

/* Animación para cada pseudo-elemento */
.cssload-dots::before {
  background-color: var(--color-primary);
  transform: translateY(-200%);
  animation: animBefore var(--animation-duration) linear infinite;
}

.cssload-dots::after {
  background-color: var(--color-secondary);
  transform: translateY(200%);
  animation: animAfter var(--animation-duration) linear infinite;
}

/* Variables por cada punto */
.cssload-dots:nth-child(1) { --i: 1; }
.cssload-dots:nth-child(2) { --i: 2; }
.cssload-dots:nth-child(3) { --i: 3; }
.cssload-dots:nth-child(4) { --i: 4; }
.cssload-dots:nth-child(5) { --i: 5; }
.cssload-dots:nth-child(6) { --i: 6; }
.cssload-dots:nth-child(7) { --i: 7; }
.cssload-dots:nth-child(8) { --i: 8; }
.cssload-dots:nth-child(9) { --i: 9; }
.cssload-dots:nth-child(10) { --i: 10; }

/* Aplicar delays separados */
.cssload-dots::before {
  animation-delay: calc(-1.98s * var(--i));
}

.cssload-dots::after {
  animation-delay: calc(-1.98s * var(--i));
}

/* Animaciones */
@keyframes animBefore {
  0%   { transform: scale(1) translateY(-200%); z-index: 1; }
  25%  { transform: scale(1.3) translateY(0);   z-index: 1; }
  50%  { transform: scale(1) translateY(200%);  z-index: -1; }
  75%  { transform: scale(0.7) translateY(0);   z-index: -1; }
  100% { transform: scale(1) translateY(-200%); z-index: -1; }
}

@keyframes animAfter {
  0%   { transform: scale(1) translateY(200%);  z-index: -1; }
  25%  { transform: scale(0.7) translateY(0);   z-index: -1; }
  50%  { transform: scale(1) translateY(-200%); z-index: 1; }
  75%  { transform: scale(1.3) translateY(0);   z-index: 1; }
  100% { transform: scale(1) translateY(200%);  z-index: 1; }
}
