/********************cambiar color general********************/

:root{
    --bg-color: #49001F;
}

iframe{
    border-radius: 20px;
}
/***************************************/

/****************le mueves el margin mamo la pagina********************/

.bg-default {
    background-color: #ffffff;
    margin-top: -80px; /*************margin de todas las secciones******************/
    
}

@media (max-width: 992px){
    .bg-default {
    background-color: #ffffff;
    margin-top: -50px;
    
}
}

@media (max-width: 768px){
    .bg-default {
    background-color: #ffffff;
    margin-top: -20px;
    
}

}

/*********************************************************************/

/******************apartado de las de gobierno y gobierno.php*****************/

.container-cards-presidentes{

    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding: 100px;

}

@media (max-width: 505px){
   .container-cards-presidentes{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding: 0px;

} 
}

.cards-presidentes{

    width: 200px;
    height: 400px;
    margin: auto;
    border-radius: 20px;
    padding: 5px 0px;
    background-color: transparent;
    cursor: pointer;
    opacity: 0;
    transition: background-color 0.7s ease-in-out, transform 0.8s ease-in-out, width 0.7s ease, filter 0.7s ease-in-out;
    
    filter: grayscale(100%); /*Filtro gris*/

}


.cards-presidentes:hover .etiqueta-presidentes{
    display: block;
    animation: etiqueta 0.6s ease forwards, fadeIn 0.6s ease forwards;
    
}


.cards-presidentes:hover{
    width: 300px;
    transform: scale(1.2);
    filter: grayscale(0%);
    background-color: var(--bg-color);
}

.etiqueta-presidentes{
    max-width: 80%;
    max-height: 40%;
    display: none;
    position: absolute;
    top: 220px;
    left: 0px;
    background-color: #00000082;
    padding: 5px 10px;
    border-radius: 0px 20px 20px 0px;
    max-width: 80%;
    box-sizing: border-box;
    


}

.text-presidentes{
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    text-shadow: none;
    transition: text-shadow 0.6s ease;

}
.text-presidentes:hover{
    text-shadow:  0 0 10px #fff,
    0 0 20px #fff;
}
.subtext-presidentes{
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    border-radius: 20px;
    margin-top: 0px;
    margin-bottom: 5px;
}

@keyframes etiqueta{
    0%{
        width: 0;
        height: 0;
    }
    100%{
        width: 75%;
        height: auto;
    }
}


.cards-presidentes:nth-child(1){
    animation: fadeIn 0.8s ease forwards 0.5s, slideLeftGob 0.9s ease forwards 0.5s;
    left: 0;
}

.cards-presidentes:nth-child(2){
    animation: fadeIn 0.8s ease forwards 1s, slideLeftGob 0.9s ease forwards 1s;
    left: 100px;
}
.cards-presidentes:nth-child(3){
    animation: fadeIn 0.8s ease forwards 1.5s, slideLeftGob 0.9s ease forwards 1.5s;
    left: 200px;
}
.cards-presidentes:nth-child(4){
    animation: fadeIn 0.8s ease forwards 2s, slideLeftGob 0.9s ease forwards 2s;
    left: 300px;
}

.cards-presidentes:nth-child(5){
    animation: fadeIn 0.8s ease forwards 2.5s, slideLeftGob 0.9s ease forwards 2.5s;
    left: 0;
}

.cards-presidentes:nth-child(6){
    animation: fadeIn 0.8s ease forwards 3s, slideLeftGob 0.9s ease forwards 3s;
    left: 100px;
}
.cards-presidentes:nth-child(7){
    animation: fadeIn 0.8s ease forwards 3.5s, slideLeftGob 0.9s ease forwards 3.5s;
    left: 200px;
}
.cards-presidentes:nth-child(8){
    animation: fadeIn 0.8s ease forwards 4s, slideLeftGob 0.9s ease forwards 4s;
    left: 300px;
}

.cards-presidentes:nth-child(9){
    animation: fadeIn 0.8s ease forwards 4.5s, slideLeftGob 0.9s ease forwards 4.5s;
    left: 300px;
}


@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes slideLeftGob{
    from{
        transform: translateX(-50px);
    }
    to {
        transform: translateX(0);
    }
}


.img-cards-presidentes{
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    
}

/******************************************************************************/


/*******************img logo del footer.php**********************/

.img-logo-footer{
    width: 245px;
}

/***************************************************************/

/**********************top bar********************************/

/* Navbar */
/* Animaciones de entrada y salida */
@keyframes fadeInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-top {
    background-color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: center;
    /*position: fixed;*/
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: fadeInDown 0.7s ease-in-out; /* Animación de entrada */
}

.navbar-top.hide {
    animation: fadeOutUp 0.7s ease-in-out; /* Animación de salida */
}

/* Caja de búsqueda */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 5px 10px;
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Efecto de hover en el buscador */
.search-box:hover {
    box-shadow: 0 0 15px rgba(105, 0, 44, 0.5);
    transform: scale(1.05);
}

/* Animación al hacer clic en el buscador */
.search-box:active {
    transform: scale(0.95);
}

/* Buscador */
.rd-navbar-search {
    display: flex;
    align-items: center;
    position: sticky;
    justify-content: center;
    width: 650px; /*limite del apartado para el input*/
}

.rd-navbar-search-form-input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
    border-radius: 20px 0 0 20px;
    transition: background-color 0.3s ease-in-out;
}

/*************esto viene del style.css pero conecta con este css**************/
.rd-navbar-search-form-input .form-input-top{
    width: 100%;   
    min-height: 47px;
    padding: 12px 70px 12px 28px;
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0;
    border: none;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.15);
}

.form-wrap {
    position: relative;
    width: 100%; /*dandole el 100% al input*/
}

/* Efecto al hacer clic en el input */
.rd-navbar-search-form-input:focus {
    background-color: #F5F5F5;
}

/* Animación al hacer clic en el botón de búsqueda */
.rd-search-form-submit:active {
    transform: scale(0.9);
}
.rd-search{
    /*max-width: 550px;*/
    width: 100%;
}

/* Iconos Sociales */
.social-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}
@media (max-width:730px){
    .social-icons {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-right: 10px;
        margin-bottom: 5px;
        justify-content: center;
    }
}

.social-icons a {
    text-decoration: none;
    background-color: var(--bg-color);
    border-radius: 50%;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Efecto al pasar el cursor sobre los iconos */
.social-icons a:hover {
    background-color: #000000;
    transform: scale(1.2);
}

/* Animación al hacer clic en los iconos */
.social-icons a:active {
    transform: scale(0.9);
}

/* Iconos */
.social-icons a i {
    color: white;
    font-size: 14px;
}

/****************banner de presidente****************/
/*
.banner-completo {
    max-width: 80%;
    height: 700px;
    box-sizing: border-box;
    margin: auto;
    overflow: hidden;
    margin-top: 0;
    border-radius: 5px 25px 5px 25px;
    box-shadow: 0 0 25px #000000;
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
    

}
.section-banner{
    animation: fadein 1s ease-in-out;
    background-color: #ffffff;
    margin-bottom: -60px;
}
@keyframes fadein{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.banner-completo:hover{
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0 50px #000000;
    cursor: pointer;
}

.card-banner {
    width: 100%;
    height: 100%;
    background-color: #000000;
    box-shadow: 0 0 50px #000000;
    border-radius: 5px 25px 5px 25px;
    overflow: hidden;
    position: relative;
    transition: transform 0.6s ease-in-out;
}


.banner-foto {
    width: 100%;
    height: 370px; /* Tamaño ajustado para la foto 
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 2;
    border-radius: 25px;
    margin-top: 30px;
    
}

.foto-principal {
    width: 185px;
    height: 480px;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    z-index: 3;
    mix-blend-mode: multiply;
    margin-right: -300px;
    
    margin-top: 90px;
    filter: drop-shadow(10px 10px 20px #ffffff);
    transition: filter 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.foto-principal:hover{
    transform: scale(1.06);
    filter: drop-shadow(50px 50px 80px #ffffff);
    cursor: pointer;
}


@media (max-width: 768px) {
    .foto-principal {
        max-width: 100%; /* En pantallas más pequeñas, la imagen se ajusta al 100% del ancho 
        margin-right: 0;
        margin-bottom: 150px;
        margin-top: 130px;
    }
    .texto{
        margin: auto;
        margin-right: 150px;
    }
}
.texto{
    position: absolute;
    top: 325px;
    
    color: #ffffff;
    font-size: 45px;
    font-family:Impact;
    font-style: unset;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    z-index: 3;
    
}
.texto{
    opacity: 1;
    visibility: visible;
    z-index: 4;
    cursor: pointer;
}
.banner-foto:hover + .texto{
    opacity: 1;
    visibility: visible;
    z-index: 4;
    cursor: pointer;
}


.banner-carrusel {
    width: 100%;
    height: 100%;
    margin-top: 0;
    overflow: hidden; 
}


.carrusel-img {
    display: flex;
    justify-content: flex-start; 
    align-items: center; 
    width: 100%;
    height: 100%;
    animation: carousel 40s infinite ease-in-out;
    gap: 15px;
}


.img-carrusel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

.carrusel-img .img-carrusel:nth-child(1) {
    animation: crossfade 20s infinite 0s;
}

.carrusel-img .img-carrusel:nth-child(2) {
    animation: crossfade 20s infinite 4s;
}

.carrusel-img .img-carrusel:nth-child(3) {
    animation: crossfade 20s infinite 8s;
}

@keyframes crossfade {
    0% {
        opacity: 0;
    }
    33% {
        opacity: 1;
    }
    66% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}*/

/****************nuevo cards de noticias*****************/

.link-card-noticias{
    text-decoration: none;
    color: #000000;
    
}
.container-container-cards-noticias{
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    /*margin-top: 15px;*/
    gap: 25px;

}
.card-noticias{
    max-width: 300px;
    /*width: 300px;*/
    height: 400px;
    border: 1px solid #000000;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    position: relative; /*es primordial para el posicionamiento del pseudoelemento*/
    border-top: 5px solid var(--bg-color);
    opacity: 0;
    
    animation: fadeInUp 1.2s forwards;
    transition: transform 0.6s ease-in-out, box-shadow 0.5s ease-in-out, background-color 0.4s ease, color 0.5s ease, border-top 0.6s ease, border 0.6s ease;
    
}

@keyframes fadeInUp{
    0%{
        opacity: 0;
        transform: translateX(20px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

.card-noticias:nth-child(1){
    animation-delay: 0.2s;
}
.card-noticias:nth-child(2){
    animation-delay: 0.5s;
}
.card-noticias:nth-child(3){
    animation-delay: 0.7s;
}
.card-noticias:nth-child(4){
    animation-delay: 1s;
}
.card-noticias:nth-child(5){
    animation-delay: 1.3s;
}
.card-noticias:nth-child(6){
    animation-delay: 1.6s;
}
.card-noticias:nth-child(6){
    animation-delay: 1.9s;
}
.card-noticias:nth-child(6){
    animation-delay: 2.2s;
}

.card-noticias:hover{
    transform: scale(1.2);
    box-shadow: 0 0 15px 0 var(--bg-color);
    background-color: transparent;
    border-top: 5px solid var(--bg-color);
    border: 1px solid #ffffff;
}

.card-noticias::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: #ffffff;
    transition: left 0.5s ease; 
    z-index: -1;
  }


  .card-noticias:hover::before {
    left: 0; 
  }

    
    .card-noticias:hover .text-titulo .link-card-noticias,
    .card-noticias:hover .text-noticias .link-card-noticias{
        color: #ffffff;
    }
    .card-noticias:hover .text-categoria .link-card-noticias{
        color: #ffffff;
    }

    .container-categoria{
        width: 0;
        position: absolute;
        z-index: 1;
        margin-top: 50px;
        border-radius: 15px 0 0 15px;
        background-color: #ffffff;
        right: 0;
        margin-top: 85px;
        transition: width 0.6s ease;

    }
    .card-noticias:hover .container-categoria{
        width: 90px;
        background-color: var(--bg-color);

    }
.text-categoria {    
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: #ffffff;
    padding: 5px;
    text-align: center;
    letter-spacing: 2px;
    transition: color 0.7s ease;
}

.container-fecha-noticias{
    width: 0;
    height: 60px;
    position: absolute;
    background-color: #ffffff;
    margin-top: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 1;
    transition: width 0.6s ease;
}

.card-noticias:hover .container-fecha-noticias{
    width: 75px;
}

.card-noticias:hover .container-fecha-noticias{
    background-color: var(--bg-color);
}
.card-noticias:hover .fecha-texto,
.card-noticias:hover .fecha-numero{
    color: #ffffff;
    opacity: 1;
}

.fecha-numero{
    margin: 0;
    text-align: center;
    font-family: impact;
    font-size: 15px;
    margin-top: 5px;
    color: #000000;
    opacity: 0;
    transition: color 0.6s ease, opacity 0.6s ease;
}
.fecha-texto{
    margin: 0;
    font-size: 15px;
    text-align: center;
    font-family: impact;
    color: #000000;
    opacity: 0;
    transition: color 0.6s ease, opacity 0.6s ease;
}
.container-img-noticias{
    width: 100%;
    height: 50%;
}
.img-noticias{
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
    border-radius: 15px;
    filter: grayscale(0%);
    transition: filter 0.5s ease;
    

}

.card-noticias:hover .img-noticias{
    filter: grayscale(0%);
}
.container-tyc-noticias{
    padding: 0 5px;
    height: 65px;
    overflow: hidden;

}


.text-titulo{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    padding: 5px;
    text-align: justify;
    transition: 0.5s ease;
    overflow: hidden;
    text-overflow: ellipsis;
}
.container-text-noticias{
    padding: 0 12px;
    height: 110px;
    overflow: hidden;
}

.text-noticias {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    margin: 0;
    max-width: 100px;
    text-align: justify;
    color: #000000;
    /*padding: 5px;*/
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: 0.5s ease;

}



/********************************************************/

/****************nuevo carrusel de imagenes**************/

.carrusel {
  width: 80%;
  box-sizing: border-box;
  margin: auto;
  transition: transform 0.7s ease-in-out, box-shadow 0.6s ease, width 0.8s ease;
  border-radius: 30px 15px;
}
.carrusel:hover{
    width: 100%;
  transform: scale(1.01);
  box-shadow: 0 0 15px #000000;
}

ul.slides {
  display: block;
  position: relative;
  height: 450px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border-radius: 30px 15px;
}


.slides * {
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

ul.slides input {
  display: none;
}


.slide-container {
  display: block;
}

.slide-image {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-image img {
  width: auto;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text{
  position: absolute;
  bottom: 30%;
  left: 35%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: transparent;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 45px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.3s ease-in-out;
  
}

@media (max-width: 1044px){
    .slide-text{
      position: absolute;
      bottom: 30%;
      left: 35%;
      transform: translateX(-50%);
      z-index: 999;
      background-color: transparent;
      color: #ffffff;
      padding: 10px 20px;
      border-radius: 20px;
      font-size: 35px;
      font-weight: bold;
      font-family: Arial, Helvetica, sans-serif;
      text-align: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 1.3s ease-in-out;
  
}
}

@media (max-width: 635px){
    .slide-text{
      position: absolute;
      bottom: 30%;
      left: 35%;
      transform: translateX(-50%);
      z-index: 999;
      background-color: transparent;
      color: #ffffff;
      padding: 10px 20px;
      border-radius: 20px;
      font-size: 25px;
      font-weight: bold;
      font-family: Arial, Helvetica, sans-serif;
      text-align: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 1.3s ease-in-out;
  
}
}

.carousel-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  font-size: 100px;
  line-height: 600px;
  color: #fff;
}


.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 999;
  text-align: center;
}

.carousel-dots .carousel-dot {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.5;
  margin: 10px;
  cursor: pointer;
}

input:checked + .slide-container .slide-image {
  opacity: 1;
  transform: scale(1);
}

/* visibilidad de las imagenes con los dots */
input:checked ~ .carousel-dots label#img-dot-1 {
  opacity: 1;
}

input:checked ~ .carousel-dots label#img-dot-2 {
  opacity: 1;
}

input:checked ~ .carousel-dots label#img-dot-3 {
  opacity: 1;
}

input#img-1:checked ~ .carousel-dots label#img-dot-1,
input#img-2:checked ~ .carousel-dots label#img-dot-2,
input#img-3:checked ~ .carousel-dots label#img-dot-3 {
opacity: 1;
}

/* Estilo de los dots cuando no están seleccionados */
input#img-1:not(:checked) ~ .carousel-dots label#img-dot-1,
input#img-2:not(:checked) ~ .carousel-dots label#img-dot-2,
input#img-3:not(:checked) ~ .carousel-dots label#img-dot-3 {
  opacity: 0.5;
}

input#img-1:checked ~ .slide-container:nth-of-type(1) .slide-text,
input#img-2:checked ~ .slide-container:nth-of-type(2) .slide-text,
input#img-3:checked ~ .slide-container:nth-of-type(3) .slide-text{
  animation: slideLeft 0.8s ease-in-out;
  opacity: 1;
}

@keyframes slideLeft{
  0%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(-50%);
    
  }
}

@keyframes crossfade {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Apply automatic crossfade to each slide */
ul.slides .slide-container:nth-child(1) .slide-image {
  animation: crossfade 10s infinite 0s; /* First image changes every 30s */
}

ul.slides .slide-container:nth-child(2) .slide-image {
  animation: crossfade 10s infinite 10s; /* Second image starts after 10 seconds */
}

ul.slides .slide-container:nth-child(3) .slide-image {
  animation: crossfade 10s infinite 20s; /* Third image starts after 20 seconds */
}


/*********************************************************/
/****************carusel de videos**************/

/*el boton del carrusel de los videos del index*/
.carousel-control-prev,
.carousel-control-next {
    background-color: rgb(101, 89, 89);
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el cursor */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--bg-color); /* Color más vibrante */
    transform: translateY(-50%) scale(1.2); /* Hace que el botón crezca un poco */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Sombra para resaltar */
}

/* Efecto al hacer clic */
.carousel-control-prev:active,
.carousel-control-next:active {
    transform: translateY(-50%) scale(1); /* Evita que se agrande más */
    background-color: var(--bg-color); /* Color aún más oscuro al presionar */
}

/* Estilo para el contenedor del video */
.video-container iframe {
    width: 100%;
    height: 215px;
    border-radius: 20px;
  }

  /* Ajustamos la altura mínima de la columna de Facebook */
  .col-md-6 {
    min-height: 200px;
    padding: 5px;
  }

  /* Aseguramos que la página de Facebook ocupe el 100% del espacio disponible */
  .fb-page {
    flex-grow: 5;
    border-radius: 20px;
  }


/************************el no carrusel********************/

.video-container-youtube {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .video-youtube {
    width: 45%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
  }
  .iframe-youtube {
    width: 100%;
    height: 100%;
  }

  /**********************tramites y servicios***************/

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* Buscador */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    max-width: 100%;
    padding: 10px;
}

.search-container input {
    width: 100%;
    max-width: 800px;
    padding: 12px;
    border: 2px solid var(--bg-color);
    background-color: #fff;
    color: #000000;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
    border-radius: 25px;
}

/* Efectos en la barra de búsqueda */
.search-container input:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(105, 0, 44, 0.3);
}

.search-container input:focus {
    box-shadow: 0 0 15px rgba(105, 0, 44, 0.5);
    border-color: #9A003D;
    transform: scale(1.05);
}

/* Grid de tarjetas */
.grid-container {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Tarjetas */
.card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Efectos en las tarjetas */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card:active {
    transform: scale(0.9);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Íconos y texto con color primario */
.card i {
    font-size: 50px;
    color: var(--bg-color);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.card h2 {
    font-size: 20px;
    color: var(--bg-color);
    margin-bottom: 5px;
    transition: color 0.3s;
}

.card p {
    color: var(--bg-color);
    font-size: 14px;
    transition: color 0.3s;
}

/* Cambio de color en hover */
.card:hover i,
.card:hover h2,
.card:hover p {
    color: #000000 !important;
}

/* Animación de entrada */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*************menu nuevo*******************/
/* Reset y fuente */
/* Barra de navegación */
.page-header-2 {
    width: 100%;
    z-index: 150;
    background-color: #fff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.7s ease;
    animation: slideDown 0.7s ease-in-out; /* Se aplica la animación */
}

.page-header-2.sticky {  
   /* position: fixed;*/
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar_menu_mejorado {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    border-top: 0px solid #000000;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out;
    animation: slideDown 0.7s ease-in-out; /* Se aplica la animación */
}

/*.navbar_menu_mejorado:hover {
    background-color: #ffffff;
}*/

/* Logo del sitio */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

/* Menú de navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    transition: color 0.3s;
    position: relative;
}

/* Línea animada debajo de cada enlace */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--bg-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

/* Efecto hover */
.nav-links a:hover {
    color: var(--bg-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menú responsive */
@media (max-width: 768px){
    .sub-menu{
        display: none !important; /*este tiene un limite d edisplay para submenu que solo se mostrara cuando este a un maximo de 768px*/
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 10px;
    }
}

 /*sub opciones del menu mejorado*/
.sub-menu {
    display: none; /* Ocultar los submenús por defecto */
    width: 250px;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000a8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 150px;
    z-index: 100;
  }
  */
  .sub-menu li {
    list-style: none;
  }
  
  .sub-menu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #fafafa;
    transition: background-color 0.3s;
  }
  
  .sub-menu li a:hover {
    background-color: #f1f1f1;
  }

  /* Mostrar el submenu con animación cuando se pasa el mouse */
.rd-nav-item:hover .sub-menu {
    display: block;
    animation: slideIn 0.3s ease-out;
  }
  
  /* Animación de deslizamiento */
  @keyframes slideIn {
    0% {
      opacity: 0;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Estilos de los elementos de navegación */
.nav-links .rd-nav-item {
    position: relative;
  }
  
  .rd-nav-link {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
  
  .rd-nav-link:hover {
    background-color: #ddd;
    border-radius: 15px;
  }

  /***********menu hamburguesa*********/

/* Estilos en pantallas pequeñas */
@media (max-width: 425px), (max-width: 768px) {
    /* Mostrar el botón de hamburguesa */
    .rd-navbar-toggle {
        display: flex;
    }
    /* Estilo base para el menú */
.nav-links {
    display: none; /* Se esconde el menú de manera predeterminada */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro */
    z-index: 9998;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Animación suave */
    transform: translateY(-100%);
}

/* Estilo cuando el menú está activo */
.nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Enlaces del menú */
.nav-links li {
    list-style: none;
    margin: 15px 0;
}

.nav-links li a {
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #f39c12; /* Color de resaltado */
    background-color: #69002c68;
}

/* Botón de hamburguesa - diseño moderno */
.rd-navbar-toggle {
    display: none; /* Se oculta en pantallas grandes */
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10000; /* Asegura que el botón de hamburguesa esté siempre arriba */
    cursor: pointer;
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Líneas del botón hamburguesa */
.rd-navbar-toggle .bar {
    width: 30px;
    height: 4px;
    background-color: #000000;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Animación del botón hamburguesa cuando está activo */
.rd-navbar-toggle.active .top {
    transform: rotate(45deg);
    top: 6px;
}

.rd-navbar-toggle.active .middle {
    opacity: 0;
}

.rd-navbar-toggle.active .bottom {
    transform: rotate(-45deg);
    bottom: 6px;
}
}

/*******************sepa que sea la caja turno******************/

/***************************fue de dstyle***************************/
.cajaturno{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    margin: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.cajacontenedor{
    
    width:240px;
    height:260px;
    background: black;
    border-radius:5%;
}

/***********************style.css****************************/

/**********botones**********/
.button-primary, .button-primary:focus {
    color: #000000;
    /*background-color: var(--bg-color);*/
    border-color: var(--bg-color);
    font-size: 10px;
    border-radius: 15px;
}
.button-primary:hover, .button-primary:active {
    color: #ffffff;
    background-color: #151515;
    border-color: #151515;
}
.button-primary.button-ujarak::before {
    background: #151515;
}
.button-primary.button-pipaluk, .button-primary.button-pipaluk:focus {
    background: transparent;
}
.button-primary.button-pipaluk::before, .button-primary.button-pipaluk:focus::before {
    background: #69002C;
    border-color: #151515;
}
.button-primary.button-pipaluk::after, .button-primary.button-pipaluk:focus::after {
    border-color: #151515;
}
.button-primary.button-pipaluk:hover, .button-primary.button-pipaluk:active {
    color: #151515;
    background: transparent;
}
.button-primary.button-wapasha, .button-primary.button-wapasha:focus {
    color: #69002C;
    background: transparent;
}
.button-primary.button-wapasha::before, .button-primary.button-wapasha:focus::before {
    border-color: #69002C;
}
.button-primary.button-wapasha::after, .button-primary.button-wapasha:focus::after {
    border-color: #151515;
}
.button-primary.button-wapasha:hover, .button-primary.button-wapasha:active {
    color: #151515;
    background: transparent;
}
/*********footer***********/

/*** Footers*/
.box-footer-small {
    padding-top: 45px;
}
.footer-brand + p {
    margin-top: 22px;
}

/*diseños de los icono de las redes*/

.footer-brand a {
    color: var(--bg-color); /* Color blanco */
    font-size: 30px; /* Tamaño de los iconos */
    margin: 0 10px; /* Espaciado entre los iconos */
    text-decoration: none; /* Sin subrayado */
    transition: color 0.6 ease-in-out;
}

.footer-brand a i {
    display: inline; /* Asegura que el icono sea de bloque */
}

.footer-brand a:hover {
    color: #000000;
}

@media (min-width: 480px) {
    .box-footer {
        padding: 40px 30px;
    }
}
@media (min-width: 992px) {
    .box-footer * + .rd-form {
        margin-top: 8px;
    }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .box-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (min-width: 1800px) {
    .box-footer {
        padding: 60px 60px 50px;
    }
}
.box-footer-form {
    padding: 30px 20px;
    background: #69002C;
}
.box-footer-form .form-input {
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.box-footer-form .form-label {
    top: 25px;
}
.box-footer-form textarea.form-input {
    height: 116px;
    max-height: 197px;
}
.box-footer-form .button {
    min-width: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.box-footer-form .form-wrap + * {
    margin-top: 10px;
}
.ios .box-footer-form .form-label,.iphone .box-footer-form .form-label,.ipad .box-footer-form .form-label,.mac-os .box-footer-form .form-label {
    top: 13px;
    transform: none;
}
.box-footer-2-title {
    letter-spacing: .025em;
}
.box-footer-2-text {
    letter-spacing: .025em;
    color: #9b9b9b;
}
* + .box-footer-2-text {
    margin-top: 8px;
}
@media (min-width: 768px) {
    .box-footer-2 {
        border: none;
    }
}
@media (min-width: 992px) {
    .box-footer-2 {
        padding: 35px 30px 25px;
    }
    .box-footer-2 .footer-contacts li + li {
        margin-top: 28px;
    }
    .box-footer-form {
        padding: 35px 25px;
    }
    .box-footer-2-text + .footer-contacts {
        margin-top: 40px;
    }
}
@media (min-width: 1200px) {
    .box-footer-2-text + .footer-contacts {
        margin-top: 50px;
    }
}
.footer-variant-2 {
    text-align: center;
    letter-spacing: 0;
}
.footer-variant-2 .form-label,.footer-variant-2 .form-input {
    text-align: center;
}
.footer-variant-2 .rights {
    font-size: 14px;
}
.footer-variant-2 .rd-form * + .button {
    margin-top: 10px;
}
.footer-variant-2 * + .rd-form {
    margin-top: 25px;
}
.footer-variant-2 * + .group-lg {
    margin-top: 30px;
}
.footer-variant-2 * + .row {
    margin-top: 24px;
}

/********************************************/
/*.footer-variant-2 * + .footer-contacts {
    margin-top: 22px;
    padding-top: 32px;
    border-top: 1px solid #d7d7d7;   
}*/
/*********************************************/
@media (min-width: 768px) {
    .footer-variant-2 {
        text-align: left;
    }
}
/*******************************************/
/*.footer-variant-2-content {
    padding: 50px 0;
}*/
/*@media (min-width: 768px) {
    .footer-variant-2-content {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}*/
/********************************************/
.footer-variant-2-bottom-panel {
    padding: 30px 0;
}
.footer-contacts {
    text-align: left;
    font-size: 0;
    line-height: 0;
}
.footer-contacts .icon {
    vertical-align: middle;
    text-align: left;
    min-width: 21px;
    font-size: 24px;
    line-height: 24px;
    color: #eda407;
}
.footer-contacts .fa-envelope {
    font-size: 20px;
}
.footer-contacts .fa-clock-o {
    font-size: 22px;
}
.footer-contacts .link-phone {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .025em;
}
.footer-contacts .link-location {
    max-width: 192px;
}
.footer-contacts p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .025em;
}
.footer-contacts a {
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1.5;
}
.footer-contacts a, .footer-contacts a:focus, .footer-contacts a:active {
    color: #151515;
}
.footer-contacts a:hover {
    color: #69002C;
}
.footer-contacts li + li {
    margin-top: 18px;
}
* + .footer-contacts {
    margin-top: 28px;
}
.footer-social-list-2 .icon {
    font-size: 16px;
}
.footer-social-list-2 a, .footer-social-list-2 a:focus, .footer-social-list-2 a:active {
    color: #151515;
}
.footer-social-list-2 a:hover {
    color: #eda407;
}
.footer-modern {
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg-color);
}
.footer-modern .footer-variant-2-bottom-panel {
    background: #ffffff;
}
.footer-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    line-height: 2;
    font-weight: 500;
    margin-bottom: -5px;
    margin-left: -20px;
}
.footer-link-list:empty {
    margin-bottom: 0;
    margin-left: 0;
}
.footer-link-list > * {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 5px;
    margin-left: 20px;
}
.footer-link-list a, .footer-link-list a:focus, .footer-link-list a:active {
    color: #151515;
}
.footer-link-list a:hover {
    color: #eda407;
}
@media (min-width: 768px) {
    .footer-link-list {
        justify-content: flex-start;
    }
}
@media (min-width: 992px) {
    .footer-link-list {
        justify-content: space-between;
    }
}

.section-tranparencia{
    height: 400px;
}

.section-prefooter {
    position: relative;
}
.section-prefooter .rd-google-map {
    height: 250px;
}
@media (min-width: 768px) {
    .section-prefooter .rd-google-map-wrap {
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .section-prefooter .rd-google-map {
        width: inherit;
        height: inherit;
    }
}

/*************ui top  boton para subir***************/

/*** ToTop*/
.ui-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 100;
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 50%;
    line-height: 38px;
    color: #ffffff;
    background: var(--bg-color);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    transition: .45s all ease-in-out;
    transform: translate3d(0, 100px, 0);
}
.ui-to-top:hover {
    color: #ffffff;
    background: #111111;
    text-decoration: none;
}
.ui-to-top:focus {
    color: #ffffff;
}
.ui-to-top.active {
    transform: translate3d(0, 0, 0);
}
html.mobile .ui-to-top,html.tablet .ui-to-top {
    display: none !important;
}
@media (min-width: 768px) {
    .ui-to-top {
        width: 50px;
        height: 50px;
        line-height: 46px;
        right: 30px;
        bottom: 30px;
    }
}
@media (min-width: 1600px) {
    .ui-to-top {
        right: 12px;
    }
}

/******************tramites.php********************/
/*******buscador del apartado de tramites**********/

.card-buscador-tramites {
    margin: auto;
    margin-top: 50px;
    width: 90%;
    padding: 5px;
    min-height: 200px;
    box-sizing: border-box;
    background-color: #969696;
    border-radius: 20px;
    box-shadow: 0px 0px 50px #898989;
    padding: 15px;
    border: 0px solid #fff;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s, color 0.5s ease-in-out, border 0.6s ease-in-out;
    
  }

  .card-buscador-tramites:hover{
    background-color:#ffffff;
    box-shadow: 0px 0px 50px #aeaeae;
    transform: scale(1.1);
}

.contenedor-buscador-tramites{
    width: 100%;
    min-height: 40px;
    margin: auto;
    margin-bottom: 0;
    box-sizing: border-box;
    justify-content: center;
    display: flex;
    border: 0px solid #000000;
    margin-top: -10px;
    padding: 5px;
    border-radius: 20px;
    background-color: #ffffff;  
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out; 
}

.card-buscador-tramites:hover .contenedor-buscador-tramites{
    border: 1px solid #000000;
}

.texto-buscador{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;

}
.card-buscador-tramites:hover .texto-buscador{
    color: #000000;
}

.input-buscador-tramites{
    align-items: center;
    margin: auto;
    align-items: center;
    border-radius: 20px;
    border: 0px solid #000000;
    width: 100%;
    outline: none;
    height: 20px;
    padding: 5px;

}
.contenedor-boton-tramites{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.boton-buscador-tramites{
    /*width: 150px;*/
    margin-top: 10px;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border: 0px solid #ffffff;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(350deg, #000000, var(--bg-color));
    color: #ffffff;
    transition: color 0.4s ease, background 0.4s ease, transform 0.3s ease-in-out;
    text-align: center;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;

}


.boton-buscador-tramites:hover{
    background: linear-gradient(350deg, #757575, #ffffff);
    color: #000000;
}


/******************apartado de los cards*********************/
.card-card-tramites {
    width: 100%;
    display: flex;
    padding: 0px;
    flex-wrap: wrap;
  }


  .card-tramites {
    margin: auto;
    margin-top: 50px;
    width: 400px;
    height: 450px;
    background-color: #9e9e9e;
    border-radius: 20px;
    box-shadow: 0px 0px 50px #818181;
    padding: 15px;
    border: 0px solid #fff;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    transition: transform 0.4s ease-in-out;
  }

  .card-tramites:hover{
    background-color: #fff;
    box-shadow: 0px 0px 50px #ffffff;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    transform: scale(1.1);
}
  
  .card-tramites:hover .gif-front{
    content: url('../gifs/output-onlinegiftools.gif');
  }
  .card-front:hover{
    transform: scale(1.12);
  }

  .container-gif{
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
  }
  .gif-front{
    max-width: 200px;
    height: 200px;
    filter: grayscale(100%);
  }

/******************apartado del boton del card***********************/

.btn-card{
    /*width: 100px;*/
    height: 50px;
    margin-top: 10px;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border: 0px solid #ffffff;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(350deg, #000000, var(--bg-color));
    color: #ffffff;
    transition: color 0.4s ease, background 0.4s ease, transform 0.3s ease-in-out;
    text-align: center;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    
}

.btn-card:hover {
    background: linear-gradient(350deg, #757575, #ffffff);
    color: #000000;
    
}
    
/************apartado del texto del card************/

.text-card{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  justify-content: center;
  transition: color 0.5s ease-in;
  margin: 0;
}
.card-tramites:hover .text-card{
  color: #000000;
}

/************************************************************************/

/*********apartado dentro de tramites.php - solicitar tramites*********/

/******************apartado tramitesDe*********************/
.card-card-tramitesDe {
    width: 100%;
    display: flex;
    padding: 0.33;
    flex-wrap: wrap;
  }

  .backcard-tramitesDe{
    background-color: #ffffff;
    width: 90%;
    max-width: 850px;
    min-height: 800px;
    display: flex;
    border-radius: 25px;
    margin-top: 5px;
    margin: auto;
    z-index: 1;
    transition: box-shadow 0.7s ease-in-out;
  }

  .backcard-tramitesDe:hover{
    box-shadow: 0 0 25px #a8a8a8;

  }

  .card-tramitesDe {
    margin: auto;
    margin-top: 50px;
    max-width: 100%;
    width: 90%;
    min-height: 685px;
    background-color: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0px 0px 50px var(--bg-color);
    padding: 15px;
    border: 0px solid #fff;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    transition: transform 0.4s ease-in-out;
  }

  .card-tramitesDe:hover{
    background-color: #ffffff;
    box-shadow: 0px 0px 50px #ffffff;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    transform: scale(1.02);
}
  
  
  .card-front:hover{
    transform: scale(1.12);
  }

  .container-gif{
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
  }
  .gif-tramitesDe{
    max-width: 200px;
    height: 200px;
    filter: grayscale(100%);
  }

/******************apartado del boton del card***********************/
.container-gif-btn{
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}
.btn-card{
    /*width: 100px;*/
    height: 50px;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border: 0px solid #50b;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, var(--bg-color), #ffffff);
    color: #000000;
    transition: color 0.4s ease, background 0.4s ease, transform 0.3s ease-in-out;
    text-align: center;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    
}


.btn-card::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border-radius: 25px;
    border: 2px solid linear-gradient(250deg, #ffffff, #ffffff8b);
}
.btn-card:hover{
  background: linear-gradient(350deg, var(--bg-color), #ffffff);
    color: #ffffff;
    /*border-color: #5725fc;*/
    transform: scale(1.1);
    border-radius: 25px;
}
/************apartado del texto del card************/
.container-gif-texto{
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}
.text-card{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  justify-content: center;
  font-style: normal;
  transition: color 0.5s ease-in, font-style 0.5s ease;
}
.card-tramitesDe:hover .text-card{
  color: #000000;
  font-style: oblique;

}

/******top texto card*********/

.container-gif-top-texto{
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}
.top-text-card{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 35px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  justify-content: center;
  transition: color 0.5s ease-in, text-decoration 0.6s ease-in-out;content: '';
  background-color: var(--bg-color);
  transition: width 0.8s ease;
  border-radius: 30px;
}

.card-tramitesDe:hover .top-text-card{
  color: #000000;
  width: 100%;
}

/*******apartado typing text*******/

.container-typing{
  width: 90%;
  height: 65px;
  min-height: 60%;
  margin: auto;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.typing-text{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  white-space: normal;
  overflow: hidden;
  border-right: 3px solid #000000 ;
  width: 0;
  font-weight: bold;
  color: #000000;
  text-align: center;
  justify-content: center;
  font-style: normal;
  transition: color 0.5s ease-in, font-style 0.5s ease;
  word-wrap: initial;
  
}
.card-tramitesDe:hover .typing-text{
  animation: typing 4s steps(40) 1s forwards, blinkeo 0.75s step-end infinite;
}
@keyframes typing{
  to{
    width: 90%;
  }
}
@keyframes blinkeo{
  50%{
    border-color: transparent;
  }
}
.card-tramites:hover .typing-text{
  color: #000000;

}

/************************************************************************/

/*****************apartado de notcias recientes**************/

.categoria-noticia{
    background: var(--bg-color);
    border-radius: 30px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    padding: 7px;
    font-size: 11;
    font-weight: bold;
    transition: transform 0.6s ease-in-out, background-color 0.6s ease-in-out;
}
.categoria-noticia:hover{
    transform: scale(1.1);
    background-color: #000000;
}