.nombre {
  font-size: large;
  display: block;
  height: auto;
  width: 70%;
}

.escudo {
  position: relative;
  margin: 2rem;
  padding: auto;
  width: 100px;
}

.accordion-button {
  background-color: #f5a425;
  color: whitesmoke;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.071);
  font-weight: 800;
}

.accordion-button:hover {
  background-color: rgba(255, 192, 1, 0.737);
}

.accordion-body h5 {
  text-align: left;
}

.dropdown {
  margin: 1rem;
}

.lista_cursos {
  text-align: left;
}

.parrafo {
  color: white;
}

.parrafo2 {
  color: white;
  text-align: justify;
}

.parrafo3 {
  color: black;
  text-align: left;
}

.fondo {
  display: flex;
  justify-content: center;
  align-items: start;
  max-height: 100vh;
}

.redes {
  position: relative;
  display: flex;
  transform-style: preserve-3d;
  /* transform: rotate(-25deg) skew(25deg); */
}
.icono_red {
  position: relative;
  list-style: none;
  width: 60px;
  height: 60px;
  margin: 0 10px;
  transition: 0.1s;
}

.icono_red::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  bottom: -10px;
  left: 0;
  background: #2a2a2a;
  transform-origin: top;
  transform: skew(-41deg);
}

.icono_red::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  left: -10px;
  background: #2a2a2a;
  transform-origin: right;
  transform: skewY(-49deg);
}

.redes li span {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5em;
  transition: 0.5s;
}

.redes li:hover span {
  z-index: 1000;
  box-shadow: -1px 1px 1px rgba(255, 255, 255, 0.05);
  color: #fff;
}

.redes li:hover span:nth-child(5) {
  transform: translate(40px, -40px);
  opacity: 1;
}

.redes li:hover span:nth-child(4) {
  transform: translate(30px, -30px);
  opacity: 0.8;
}

.redes li:hover span:nth-child(3) {
  transform: translate(20px, -20px);
  opacity: 0.6;
}

.redes li:hover span:nth-child(2) {
  transform: translate(10px, -10px);
  opacity: 0.4;
}

.redes li:hover span:nth-child(1) {
  transform: translate(0px, 0px);
  opacity: 0.2;
}

.redes li:nth-child(1):hover span {
  background: #3b5998;
}

.redes li:nth-child(2):hover span {
  background: linear-gradient(125deg, #515bd4, #8134af, #dd2a7b, #f58529);
}

.redes li:nth-child(3):hover span {
  background: #4dc247;
}

.img_redes {
  max-width: 10vw;
  align-items: center;
}

.navegador-tramites {
  color: whitesmoke;
  /* font-weight: bolder; */
}

.navegador-tramites:hover {
  color: whitesmoke;
  border-style: solid;
  border-color: #e0ad5a;
  transition: ease 0.2s;
  cursor: pointer;
}

/* Galería Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  /* grid-auto-rows: minmax(200px, auto); */
  gap: 0.5rem;
  padding: 2rem;
  margin: 0 3rem;
  grid-auto-flow: dense;
}

.gallery img {
  width: 100px;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Estilos Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; /* Oculto por defecto */
  transition: opacity 0.3s;
}

/* Mostrar cuando se hace clic */
.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border: 3px solid white;
}

/* Botón cerrar */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  text-decoration: none;
}

.texto-encima {
  position: absolute; /* Texto absoluto respecto al contenedor */
  top: 87%; /* Centrar verticalmente */
  left: 50%; /* Centrar horizontalmente */
  transform: translate(-50%, -50%); /* Ajuste fino de centrado */
  color: white; /* Color del texto */
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Fondo negro semitransparente para contraste */
  padding: 10px;
}

.formato-imagen-carrusel {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    rgba(0, 0, 0, 0.6)
  );
  width: 100%;
  right: 0;
  left: 0;
}

.fondo-carrusel {
  background-color: rgba(255, 255, 255, 0.3);
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem;
}

@media (max-width: 500px) {
  #carouselExampleDark {
    width: auto;
    height: auto;
    margin: 0 auto;
    padding: 0;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    /* grid-auto-rows: minmax(200px, auto); */
    gap: 1rem;
    padding: 1rem;
    margin: 0.5rem 2rem;
    grid-auto-flow: dense;
  }
}

/* @media (min-width: 400px) {
  #carouselExampleDark {
    width: 60%;
    margin: 0 auto;
    padding: 2rem;
  }
} */

/* background-color: rgba(22, 34, 57, 0.95); 
#f5a425*/
