/* -------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');



body
{
background-color:#221b30;
  box-sizing: border-box;    /* Asegura que el borde esté incluido en el tamaño total de la página */
  margin: 0;                 /* Elimina márgenes que puedan afectar el borde */
  padding: 20px;                /* Elimina cualquier padding que interfiera con el borde */
  
  height: auto !important;
  border-width: 2px; /* Grosor del borde */
  border-style: solid; /* Estilo sólido */
  border-image: repeating-linear-gradient(
    to bottom,
    #d4af37,    /* Dorado claro */
    #b8860b 50px,  /* Dorado más oscuro */
    #ffcc00 100px, /* Dorado brillante */
    #d4af37 150px  /* Volvemos al dorado claro para repetir */
  ) 5; /* Borde degradado aplicado */

}
.h-100 {
  height: auto !important;
}

h1,h2,h3,h4
{
color:#FFFFFF

}
h1
{
	display:none;
}
h2 {

  font-family: "Montserrat", system-ui;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* Ajusta el tamaño del texto del título */
  color: white; /* Ajusta el color del texto */
  position: relative;
}

h2::before,
h2::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid #ffc107; /* Color de las líneas azules */
  margin: 0 15px; /* Espacio entre la línea y el texto */
}

h2::before {
  margin-right: 15px; /* Margen entre el texto y la línea izquierda */
}

h2::after {
  margin-left: 15px; /* Margen entre el texto y la línea derecha */
}

.icono-megafono {
  max-width: 180px;

  position: absolute;
  top: -33px;  animation: float 1.1s ease-in-out infinite;
    transform-origin: center bottom;
}
.icono-megafono img{
  width: 100%;
  height:auto;

 }
 
 
@keyframes float {
	0% {

		transform: translatey(0px);
	}
	50% {

		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

@keyframes pendulum {
  0%, 100% {
      transform: rotate(0deg);
  }
  50% {
      transform: rotate(5deg);
  }


}

@keyframes slidein {
  0% {
      left: 100%;
  }
  100% {
    left: -100%;
  }

}




/*cards categorias*/

/* Contenedor de la tarjeta con perspectiva */
.card-container {
  perspective: 1000px;
  display: inline-block;
  margin: 20px;
}

/* Estilos generales para la tarjeta */
.card {
  width: 260px;
  height: 250px; /* Aumenta ligeramente la altura para hacer espacio */
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  border: 2px solid rgba(255, 255, 255, 0.6); /* Borde blanco semitransparente */
  border-radius: 10px; /* Esquinas redondeadas */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Estilo para la parte frontal de la tarjeta */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px; /* Esquinas redondeadas en ambas caras */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombra sutil en ambas caras */
}

/* Estilo del frente de la tarjeta */
.card-front {
  background-color: #3d465f; /* Color frontal */
  color: white;
  font-family: "Montserrat", system-ui;
  font-optical-sizing: auto;
  font-weight: 900;
  border-radius: 10px; /* Redondear esquinas */
}



/* Efecto hover para rotar la tarjeta */
.card-container:hover .card, .card-container:focus-within .card {
  transform: rotateY(180deg);
}


/* Estilo para la parte trasera de la tarjeta */
.card-back {
  background-color: #3d465f; /* Color trasero */
  color: white;
  transform: rotateY(180deg);
  overflow-y: auto; /* Activa el scroll vertical */
  padding: 10px; /* Ajusta el padding para reducir el espacio */
  border-radius: 10px; /* Redondear esquinas */
  display: block; /* Elimina el centramiento vertical */
  text-align: left; /* Alinea el texto a la izquierda */
}

/* Estilo para el contenido de la parte trasera */
.card-back p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}




/*************GANDORES********************/
/* Fondo gris con degradado */
.image-block-container {

  margin: 0;
  padding: 0;  padding: 30px;
  border-radius: 20px;
}

.image-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Ajusta según el ancho */
  gap: 20px;
  justify-items: center;
}

.image-item {
  text-align: center;
  padding: 20px;

}

.img-circle {
width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 0px solid #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.image-item h3 {
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.image-item p {
  font-size: 14px;
  color: #fff;
  margin: 5px 0 0;
}

/* Efecto de zoom al pasar el ratón por encima de la imagen */
.img-circle:hover {
  transform: scale(1.1); /* Zoom al hacer hover */
}




/*modales*/



/* Fondo del modal y borde general */
.custom-modal-content {
  background: linear-gradient(to bottom, #1a2b4c, #0e162d); /* Degradado azul oscuro */
  border-radius: 15px;
  color: white;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra alrededor del modal */
}

/* Encabezado del modal (botón de cierre) */
.custom-modal-header {
  border-bottom: none;
  padding: 10px;
  text-align: right;
}

.custom-modal-header .btn-close {
  background-color: white;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.custom-modal-header .btn-close:hover {
  opacity: 1;
}

/* Contenido superior del modal (imagen y texto) */
.modal-top-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Imagen dentro del modal */
.modal-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilo del texto dentro del modal */
.modal-text h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  color: #00b3ff; /* Azul más claro */
}

.modal-text h4 {
  font-size: 18px;
  margin: 5px 0;
  color: #00e0e0; /* Azul claro */
}

.modal-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #c4c4c4;
}

/* Video embebido (iframe) */
.modal-video iframe {
  width: 100%;
  height: 315px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Fondo cuadriculado detrás del modal */
body.modal-open::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  z-index: -1;
}


/*****galerias**********/
  .masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));  
    grid-gap: 20px;
    padding: 10px; /* Margen alrededor del grid */
  }

  .masonry-item {
    break-inside: avoid;
    margin: 10px; /* Márgenes de 10px alrededor de cada ítem */
    max-width: 280px; /* Limita el ancho máximo a 250px */
    width: 100%; /* Hace que la imagen ocupe el 100% de su contenedor */
  }

  .masonry-item img {
    width: 100%;
    height: auto; /* Hace que las imágenes sean responsivas */
    display: block;
    border-radius: 5px; /* Opcional: puedes agregar un borde redondeado si quieres */
  }

/* Para pantallas pequeñas */
@media (max-width: 768px) {

  body {
    padding: 5px; /* Reduce el padding general para móviles */
    border-width: 1px; /* Reduce el grosor del borde en móviles */
  }

  h2 {
    font-size: 18px; /* Reduce el tamaño de los títulos */
  }

  h2::before, h2::after {
    margin: 0 10px; /* Reduce el espacio entre las líneas del título */
  }

  .icono-megafono {
    max-width: 100px; /* Ajusta el tamaño del ícono */
  }


  /* Ajustes en las imágenes */
  .image-block-container {
    padding: 15px; /* Ajusta el padding del contenedor de imágenes */
  }

  .image-block {
    grid-template-columns: 1fr; /* Cambia a una columna para móviles */
    gap: 15px; /* Reduce el espacio entre las imágenes */
  }

  .img-circle {
    width: 150px; /* Reduce el tamaño de las imágenes circulares */
    height: 150px;
  }

  .modal-text h2 {
    font-size: 22px; /* Reduce el tamaño del texto en el modal */
  }

  .modal-text h4 {
    font-size: 16px;
  }

  /* Galería de Masonry */
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Ajusta el tamaño mínimo de las imágenes */
    grid-gap: 15px; /* Reduce el espacio entre los elementos */
  }

  .masonry-item {
    max-width: 90%; /* Ajusta el ancho máximo de los ítems en móviles */
  }
}


/* Ajustes generales para la imagen y el video */
.livestream-img {
  width: 100%; /* Asegura que la imagen sea responsiva */
  max-width: 300px; /* Establece un tamaño máximo para la imagen */
  height: auto;
  display: block;
  margin: 0 auto;
}

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive-16by9 {
  padding-top: 56.25%; /* Para mantener la relación 16:9 */
}

.embed-responsive-item {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Estilos específicos para móviles */
@media (max-width: 768px) 
{
  .livestream-img {
    max-width: 200px; /* Reduce el tamaño de la imagen en pantallas pequeñas */
  }

  h2 {
    font-size: 20px; /* Reduce el tamaño del título en móviles */
  }

  .p-5 {
    padding: 15px !important; /* Reduce el padding general para ajustar en móviles */
  }

  .embed-responsive-16by9 {
    padding-top: 56.25%; /* Mantén la relación de aspecto pero ajusta al ancho de pantalla */
  }

  .embed-responsive-item {
    width: 100%;
    height: 100%;
  }
  .card {
  width: 71vw;
}
}
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 100%;
        margin: 0;
    }

    /* Ajustes de padding y texto para pantallas pequeñas */
    .modal-body-content {
        padding: 10px;
    }

    .modal-text h2, .modal-text h4, .modal-text p {
        font-size: 16px;
        text-align: justify;
    }

    /* Hacer las imágenes y videos dentro de los modales responsivos */
    .modal-img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .modal-video {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .modal-video iframe, .modal-video video {
        width: 100%;
        height: auto;
    }
}
    .modal-video {
        display: block;
        max-width: 100%;
        height: auto;
    }

    .modal-video iframe, .modal-video video {
        width: 100%;
        height: auto;
    }
