/* Regular (400) */
@font-face {
  font-family: 'Poppins';
  src: url('fuente/Poppins-Regular.woff2') format('woff2'),
       url('fuente/Poppins-Regular.woff') format('woff'),
       url('fuente/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Poppins';
  src: url('fuente/Poppins-SemiBold.woff2') format('woff2'),
       url('fuente/Poppins-SemiBold.woff') format('woff'),
       url('fuente/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-y: scroll;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.escudo {
  width: 40%
}

.personajes {
  width: 80%
}

.admon{
  width: 35%;
}

/* ===================== */
/* NAVIGATION STYLES     */
/* ===================== */
.nav {
  background-color: #1b4573;
  height: 100px;
  color: #fff;
  z-index: 1000;
  position: relative;
}

.nav__container {
  display: flex;
  height: 100%;
  width: 95%;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav__menu {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  gap: 2em;
  position: relative;
  overflow: visible;
}

.nav__item {
  color: #fff;
  text-decoration: none;
  position: relative;
  --clippy: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.nav__item_icon {
  padding-right: 3px;
}

.nav__item::after {
  content: "";
  display: block;
  background: #fff;
  width: 100%;
  margin-top: 5px;
  height: 3px;
  clip-path: var(--clippy);
  transition: clip-path .5s;
}

.nav__item:hover {
  --clippy: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav__label,
.nav__input {
  display: none;
}

.nav__group {
  position: relative;
}

.nav__item--hover:hover .nav__submenu {
  display: flex;
}

.nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1b4573;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 220px;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 0 0 6px 6px;
}

.nav__subitem {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  --clippy: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.nav__subitem::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 20px;
  width: calc(100% - 40px);
  height: 2px;
  background-color: #fff;
  clip-path: var(--clippy);
  transition: clip-path 0.5s ease;
}

.nav__subitem:hover {
  background-color: #1b4573;
  --clippy: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.nav__toggle {
  display: none;
}


.carrusel{
  border-radius: 20px;
}

.carousel-item img {
  transition: transform 1s ease, opacity 1s ease;
}
.carousel-item.active img {
  transform: scale(1.05);
  opacity: 1;
}
.carousel-item img {
  opacity: 0.7;
}

.titulo_carrusel{
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  color: #fff;
}

.carousel-item {
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background-color: rgba(0, 0, 0, 0.5); /* fondo semitransparente institucional */
  padding: 10px 20px;
  border-start-end-radius: 6px;
  text-align: center;
  color: #fff;
}

.carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

.fecha{
  font-size: medium;
  line-height: 1.2;
}

.img-principal {
  width: 550px;
  max-height: 550px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

#imagen_nota,
#img_1,
#img_2 {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#imagen_nota.loaded,
#img_1.loaded,
#img_2.loaded {
  opacity: 1;
  transform: scale(1);
}

.modal-xl-80 {
  max-width:80%;
}

#modal_carrusel img {
  max-height: 90vh;
  object-fit: contain;
}

.titulo_nota{
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}

.fecha_nota{
  text-align: end;
  color: #9c9c9a;
}

.texto_nota {
  text-align: justify;
}

.clear-below {
  clear: both;
}

.nota-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.nota-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.nota-footer {
  height: 6px;
  background: #1b4573;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.nota-card:hover .nota-footer {
  opacity: 1;
  transform: translateY(0);
}

.boton-accion {
  width: max-content;
  display:inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-color: #fff;
  padding: 5px 20px 5px 20px;
  border-radius: 20px;
}

.boton-ver     { background-color: #1b4573; color: white; }

.boton-accion:hover {
  background: #C38033;
  padding: 5px 20px 5px 20px;
  color: #fff;
  border-radius: 20px;
  justify-content: center;
  filter: brightness(1.1);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.card-municipio {
  overflow: hidden;
  position: relative;
}

.imagen-curva {
  height: 250px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: clip-path 0.4s ease;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 85%,
    50% 100%,
    0% 85%
  );
}

/* Hover: quitar curvatura */
.card-municipio:hover .card-img-top {
  clip-path: inset(0 0 0 0);
}

/* Botón animado */
.boton-curvo {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-municipio:hover .boton-curvo {
  opacity: 1;
  transform: translateY(0);
}

.swiper {
  padding: 20px;
}
.swiper-slide {
  width: auto;
  max-width: 350px;
}

.swiper-pagination-bullet-active {
  background-color: #1b4573; 
}
.card-municipio {
  margin: auto;
}


.card_fracciones .botones-hover {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card_fracciones:hover .botones-hover {
  opacity: 1;
  pointer-events: auto;
}

.lift-glow {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 1px solid transparent;
}

.lift-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}


.buscador_sipot{
  width: 100%;
}

.borde_buscador{
  background: #1B4573;
  background: linear-gradient(90deg,rgba(27, 69, 115, 1) 0%, rgba(87, 199, 133, 1) 100%);
  border-radius: 30px 30px 0px 0px;
}

.borde_sipot{
  background: #1B4573;
  background: linear-gradient(90deg,rgba(27, 69, 115, 1) 0%, rgba(87, 199, 133, 1) 100%);
  border-radius: 0px 0px 30px 30px;
}

.plataforma_inicio{
  display: grid;
  justify-content: center;
  align-items: center;
}

.aside_marco {
  display: flex;  
  justify-content: center;
}

.borde_aside{
  background: #076585;  
  background: -webkit-linear-gradient(to bottom, #c3803352, #c3803352);  
  background: linear-gradient(to bottom, #c3803352, #c3803352); 
  border-radius: 50%;
  width: 100%;
}

.titulo_card{
  font-size: 1.2em;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
  background-color: #C38033;
}

.img_card{
  width: 250px;
  height: 180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.encabezado_modal {
  background-color: #1b4375;
  color: #fff;
}

.back_footer{
  height: auto;
  background-color: #1b4375;
  color: #fff;
}

lite-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.card_media {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

}

.card_icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-size: cover;
}

.card_icon--facebook {
  background-image: url(../assets/facebook.svg);
}

.card_icon--youtube {
  background-image: url(../assets/youtube.svg);
}

.card_icon--email {
  background-image: url(../assets/email.svg);
}

/* Estado inicial: oculto y desplazado */
.inicio-animado {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* Estado visible: ya animado */
.inicio-animado.visible {
  opacity: 1;
  transform: translateY(0);
}


@media screen and (max-width: 768px) {
  .nav__label {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
  }

  .nav__input,
  .nav__toggle {
    position: absolute;
    opacity: 0; /* ocultos pero clickeables */
  }

  .nav__menu {
    position: absolute;
    top: 100px;
    right: 0;
    width: 70%;
    background-color: #1b4573;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 1em;
    display: none;
    z-index: 2000;
  }

  .nav__input:checked ~ .nav__menu {
    display: flex;
  }

  .nav__submenu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
  }

  .nav__toggle:checked ~ .nav__submenu {
    display: flex;
  }


  .carousel-caption {
    padding: 8px 12px;
    font-size: 14px;
  }

  .carousel-caption h4 {
    font-size: 16px;
    margin: 0;
  }

  .titulo_carrusel {
    color: #fff;
    text-decoration: none;
  }

  .admon {
    width: 80%;
  }

  .img-principal {
    width: 100%;
    max-height: none;
    height: auto;
  }

  .back_footer {
    height: auto;
  }
 
  .borde_aside {
    max-width: 150px; 
  }

}




/* Comienza estilos para loader */
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-facebook div {
  display: inline-block;
  position: relative;
  left: 8px;
  width: 16px;
  background: #fff;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}

@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }

  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}

.loader {
  background-color: #1b4573;
  background-image: url(../img/personajes.png), url(../img/personajes.png);
  background-size: 30%, 30%;
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  clip-path: circle(150% at 100% 0);
  transition: clip-path 0.8s ease-in-out;
}

.loader2 {
  clip-path: circle(0% at 100%);
  display: none;
}

/* Termina estilos de loader */

/*!
 * Hover.css (http://ianlunn.github.io/Hover/)
 * Version: 2.3.2
 * Author: Ian Lunn @IanLunn
 * Author URL: http://ianlunn.co.uk/
 * Github: https://github.com/IanLunn/Hover

 * Hover.css Copyright Ian Lunn 2017. Generated with Sass.
 */

/* Bob */
@-webkit-keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }

  50% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }

  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}

@keyframes hvr-bob {
  0% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }

  50% {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
  }

  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}

@-webkit-keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}

@keyframes hvr-bob-float {
  100% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
  }
}

.hvr-bob {
  display: flex;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}

.hvr-bob:hover,
.hvr-bob:focus,
.hvr-bob:active {
  -webkit-animation-name: hvr-bob-float, hvr-bob;
  animation-name: hvr-bob-float, hvr-bob;
  -webkit-animation-duration: .3s, 1.5s;
  animation-duration: .3s, 1.5s;
  -webkit-animation-delay: 0s, .3s;
  animation-delay: 0s, .3s;
  -webkit-animation-timing-function: ease-out, ease-in-out;
  animation-timing-function: ease-out, ease-in-out;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-direction: normal, alternate;
  animation-direction: normal, alternate;
}

/** Estilos para la flecha que sube **/
.scroll-top-wrapper {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  text-align: center;
  z-index: 99999999;
  background-color: #1b4573;
  width: 50px;
  height: 50px;
  line-height: 45px;
  right: 20px;
  bottom: 20px;
  border-radius: 10px;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
.scroll-top-wrapper:hover {background-color: #C38033;}
.scroll-top-wrapper.show {
  visibility:visible;
  cursor:pointer;
  opacity: 1.0;
}
.scroll-top-wrapper i.fa {line-height: inherit;}