:root {
  --general-color: #026074;
  --secondary-color: #005365;
  --tertiary-color: #00414f;
  --transparentN10: url(assets/img/path10.png);
}

body{
  background-color: #d4d4d4;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


.head{
  width: 100%;
  background: #fff;
}
.logotype{
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 300ms ease;
  background-color: var(--general-color);
  height: 250px;
  margin-bottom: -35px;
  padding-bottom: 25px;
}

.logotype::after{
  content: "";
  background: url("../img/grecas.png");
  height: 18px;
  width: 100%;
  position: absolute;
  margin-bottom: -290px;
}
.logos-bar{
  background-color: var(--secondary-color);
  display: flex;
  justify-content: start;
  gap: 20px;
  padding: 10px 20px;
  align-items: center;
}

.separador-logo{
  height: 30px;
  width: 1px;
  background-color: #ffffff;
}

h2{
  font-size: 34px;
  font-weight: 600;
  color: var(--general-color);
}
.text-red{
  color: var(--general-color);
}
p{
  color: #313437;
}
.list-num-red{
  list-style: none;
  list-style-position: inside;
}
.list-num-red>li{
  position: relative;
  padding-left: 40px;
}
.list-num-red>li::before {
  content: counter(item) "";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--general-color); /* Color de fondo para el número */
  color: rgb(255, 255, 255); /* Color del número */
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px; /* Bordes redondeados */
}
.list-num-red{
  counter-reset: item;
}

.btn_rosa{
  padding: 8px;
  color: #fff;
  background: #be6a82;
  border: 1px solid #ec99b0;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}

.btn_rosa:hover{
  background: #cb728c;
  border: 1px solid #ec99b0;
  cursor: pointer;
}

.body_page{
  width: 100%;
  height: auto;
  margin-top: -35px;
  background: #fff;
}

/*-----------------------------------------  menu  --------------------------------------*/

.nav{
  height: 75px;
}

.menu{
  z-index: 100;
  border-radius: 8px;
  transition: 0.4s;
  padding: 0;
}

.navbar{
  background: var(--secondary-color) !important;
  /*box-shadow: 0 4px 15px rgb(0,0,0,0.4);*/
  text-align: center;
  align-items: center;
}

.nav-item:active{
  border-bottom: var(--secondary-color) 1px solid;
}
.nav-item{
  padding: 0 10px;
}

.nav-item > .nav-link{
  color: #fff !important;
}

.dropdown-item:focus,
.dropdown-item:active,
.nav-link {
    outline: none; /* Elimina el contorno */
    box-shadow: none; /* Elimina cualquier sombra */
    border: none; /* Asegura que no haya borde */
}

#navbar-brand{
  display: none;
}

.social{
  display: flex;
  flex-direction:row;
  justify-content: space-evenly;
  gap: 10px;
}

.social i{
  color: #fff !important;
}
.social i:hover{
  color: #6a0000 !important;
}
/*-----------------------------------------  banner  --------------------------------------*/

.slider{
  margin-top: -35px;
}

.carousel-item{
  height: calc(100vh - 220px);
}

.carousel-item img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

.carousel-item::after{
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: rgba(0, 0, 0, 0.411);
  position: fixed;
  top: 0;
}


/*--------------------------------------- Animación Slider ----------------------------------------------*/

.text-box{
  z-index: 1;
  position: relative;
  height: calc(100vh - 220px);
  display: flex;
  align-items: end;
  padding-bottom: 60px;
}

/* Caja de título, subtítulo, y botón */
.title-box, .subtitle-box, .button-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 30px;
  margin: 10px 0;
  width: auto;
  display: inline-flex; 
  max-width: 500px;
  justify-content: center;
}
.title-box, .subtitle-box, .button-box h2{
  color: #b11d27;
}

.message{
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  max-width: 800px;
}

.title{
  text-align: center;
  margin-bottom: 40px;
}

.subtitle{
  font-size: 18px;
  max-width: 680px;
  margin: auto;
  color: #717171;
}

.separator{
  height: 140px;
  width: 100%;
}

.separator-inside{
  height: 40px;
  width: 100%;
}

.img-info{
  box-sizing: content-box;
  height: 100%;
}
.img-info img{
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}


@media (min-width: 992px) {
  .img-info {
    box-sizing: content-box;
    height: 100%;
    position: absolute !important;
  }
}

/*--------------------------------------------- numeral ---------------------------------------------*/

.numeral{
  width: 100%;
  height: auto;
  padding: 60px 0 50px 0;
  background: #b11d27;
}

.numeral div div{
  text-align: center;
  color: #fff;
}
.numeral div div h1{
  font-size: 44px; 
  font-weight: 800;
  margin-bottom: -5px;
}
.numeral div div span{
  margin-top: -10px;
}

.counter {
  animation: count 2s ease-in-out forwards;
}

/*--------------------------------------------- Personnel ---------------------------------------------*/

.name_personnel_box{
  color: #784a98;
  font-size: 24px;
}

.post_personnel_box{
  font-size: 18px;
  color:#474747;
  font-weight: 400;
}

.link_personnel_box:hover{
  color: #b42770 !important;
}

.link_personnel_box{
  color: #784a98 !important;
}

/*--------------------------------------------- Footer ---------------------------------------------*/

.footer{
  width: 100%;
  background: var(--general-color);
  height: auto;
  padding: 80px 0 20px 0;
  color: #fff;
  line-height: 1.8rem;
  border-top: 1px solid var(--secondary-color);
}

.footer ul{
  list-style: none;
}

.footer a{
  color: #fff;
  text-decoration: none;
}

.footer a:hover{
  color: #ffcddc;
  text-decoration: none;
}

.footer p{
  color: #fff;
}
.social-footer{
  background: var(--secondary-color);
}

.social-footer-list{
  margin: 0;
  padding: 25px 0 10px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-footer-list a{
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 5px;
  color: rgba(255, 255, 255, 0.5);
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.social-footer-list a:hover{
  border: 1px solid #fff;
  color: #fff;
  scale: 1.04;
}
/*--------------------------------------------- Galería ---------------------------------------------*/
/* Animaciones de aparición */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clases de animación */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInDown {
  animation-name: fadeInDown;
}

.delay-1s {
  animation-delay: 0.5s;
}

.delay-2s {
  animation-delay: 1s;
}


#logo {
  animation-duration: 0.8s;
  animation-name: slidein;
}

@keyframes slidein {
  from {
    margin-bottom: -100%;
    width: 0px;
  }
  to {
    margin-bottom: 0;
    width: 300px;
  }
}

.photo-gallery {
  color:#313437;
  background-color:#fff;
}

.photo-gallery p {
  color:#7d8285;
}

.photo-gallery{
  font-weight:bold;
  margin-bottom:40px;
  padding-top:40px;
  color:inherit;
}

@media (max-width:767px) {
  .photo-gallery {
    margin-bottom:25px;
    padding-top:25px;
    font-size:24px;
  }
}

.photo-gallery .intro {
  font-size:16px;
  max-width:500px;
  margin:0 auto 40px;
}

.photo-gallery .intro p {
  margin-bottom:0;
}

.photo-gallery .photos {
  padding-bottom:20px;
}

.photo-gallery .item {
  padding-bottom:30px;
}


/*--------------------------------------------- Estructura de personal ---------------------------------------------*/

.personnel{
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 30px;
  background-color: #d3c5df;
  border-radius: 10px;
  margin: 20px 0 20px 0;
  transition: 0.3s;
}

.personnel:hover{
  background: #f5f5f5;
  scale: 1.01;
  box-shadow: 0 2px 8px rgb(0,0,0,0.2);
}

.foto_personnel_box{
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  transition: 0.5s;
  box-shadow: var(--shadow);
}
.foto_personnel_box_group{
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border: 2px solid #fff;
  transition: 0.5s;
  box-shadow: var(--shadow);
}
.personnel_structure img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*------------------------------------------------------ Comunicados ------------------------------------------------------*/



.release{
  display: grid;
  gap: 15px;
  grid-auto-rows: auto;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.release-content{
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  text-align: justify;
  transition: 0.6s; 
  box-shadow: 0 4px 8px rgb(0,0,0,0.1);
  border-radius: 8px;
  background: #fff;
}
.release-content:hover{
  cursor: pointer;
  box-shadow: 0 4px 15px rgb(0,0,0,0.4);
  transform: scale(1.02, 1.03);
}

.release-img{
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.5s;
  box-shadow: var(--shadow);
}
.release-img img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.release-head{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.btn-enter{
  background-color: #b01e29;
  color: #fff;
  padding: 2px;
  border-radius: 8px;
  border: #981a22 1px solid;
  text-align: center;
  width: 80px;
  text-decoration: none;
  display: block;
}

.btn-enter:hover{
  background-color: #981a22;
  border: #b01e29 1px solid;
  text-decoration: none;
  color: #fff;
}


.parallax{
  background-image: url("https://www.pjedomex.gob.mx/imagenes/img1777.jpg");
  min-height: 420px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


.section_inner{
  width:100%; 
  background:#fff;
  margin: 0;
}


/*------------------------------------------------------ Sección Interna ------------------------------------------------------*/
.section-inner{
  background: #fff;
  padding:  0;
}



/*------------------------------------------------------ Button ------------------------------------------------------*/

.button-card{
  width: 250px;
  height: 200px;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-direction: column;
  background-color: #f1f1f1;
  justify-content: center;
  justify-items: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-card a {
    text-decoration: none;
    color: inherit;
}

.button-card:hover{
    transform: scale(1.03);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}