@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway:400,600&display=swap');
/* General */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* General Header */
nav {
  background: #131c46;
  display: flex;
  top: 0;
  padding-left: auto;
  width: 100%;
  justify-content:space-around;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
      rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 2;
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo img {
  height: 165px;
  width: auto;
  margin-right: 10px;
}

nav .spam{
  color: white;
}


nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
}



/* Dropdown Button */
.dropbtn {
  background-color: #ffffff00;
  color: #fff;
  padding: 16px;
  font-size: 16px;
  border: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background: #131c46;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #fff;
  color: #131c46;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #ffffff00;
}

@media (max-width: 768px) {
  .menu-icon {
      display: block;
  }

  /* Ocultar los links normales */
  .nav-links {
      display: none;
  }
}


.menubar {
  position: absolute;
  top: 0;
  left: -60%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 60%;
  height: 100vh;
  padding: 20% 0;
  background: #131c46;
  transition: all 0.5s ease-in;
  z-index: 1;
}


.menubar ul li a:hover {
  background-color: #ffffff;
}

@media screen and (max-width: 790px) {
  .hamburger {
      display: block;
  }

  nav ul {
      display: none;
  }
}


/* Hero Section */
.hero-section {
background: url('assets/purificacion.JPG') no-repeat center center/cover;
color: black;
text-align: center;
padding: 50px 20px;
position:relative;
height: 60vh;
}

.hero-section p {
font-size: 1.2rem;
margin: 20px 0 30px;
}

.cta-buttons {
display: flex;
justify-content:center;
gap: 20px;
}

.cta-button {
background-color: #183889;
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s ease;
}

.cta-button.secondary {
background-color: #183889;
color: #fff;
}

.cta-button.secondary:hover {
background-color: #fff;
color: #183889;
}

/* Rotating Text */
.rotating-text-wrapper {
height: 36vh; /* Reducido al 60% del valor anterior */
display: flex;
opacity: 70%;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
margin: 0 auto; /* Centramos */
}

.rotating-text-wrapper h2 {
font-size: 2.5em;
margin: 0;
padding: 0.3em;
color: #fff;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
animation-duration: 8s;
animation-iteration-count: infinite;
opacity: 0;
}

.rotating-text-wrapper h2:nth-child(1) {
background-color: #183889;
animation-name: rotating-text-1;
}

@keyframes rotating-text-1 {
0% {
  transform: translateY(200%);
}
33% {
  transform: translateY(100%);
  opacity: 1;
}
34% {
  opacity: 0;
}
}

.rotating-text-wrapper h2:nth-child(2) {
background-color: #183889;
animation-name: rotating-text-2;
}

@keyframes rotating-text-2 {
33% {
  transform: translateY(100%);
  opacity: 0;
}
66% {
  transform: translateY(0);
  opacity: 1;
}
67% {
  opacity: 0;
}
}

.rotating-text-wrapper h2:nth-child(3) {
background-color: rgba(24,56,133);
animation-name: rotating-text-3;
}

@keyframes rotating-text-3 {
66% {
  transform: translateY(0);
  opacity: 0;
}
99% {
  transform: translateY(-100%);
  opacity: 1;
}
100% {
  transform: translateY(-100%);
  opacity: 0;
}
}

/* Responsividad */
@media screen and (max-width: 576px) {
.rotating-text-wrapper {
  height: 50vh; /* Ajustamos proporcionalmente para pantallas pequeñas */
  font-size: 0.6rem;
  margin-top: 20%;
}


}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-section {
    height: 50vh; /* Reducimos la altura para mejorar el espaciado */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centra el contenido */
    padding: 20px;
  }

  .rotating-text-wrapper {
    height: auto; /* Dejamos que el contenido determine la altura */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .rotating-text-wrapper h2 {
    font-size: 2rem; /* Ajustamos el tamaño de los textos */
  }

  .cta-buttons {
    margin-top: 20px; /* Agregamos espacio sobre el botón */
  }

  .cta-button {
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 8px;
    max-width: 280px; /* Ajuste para evitar que el botón sea demasiado ancho */
  }
}



/* ===== Sección Estática: Historia y Tradición ===== */
.hero-static {
  background-image: url('/assets/historia-fondo.jpg'); /* Imagen de fondo */
  background-position: center;
  background-size: cover;
  background-attachment: fixed; /* Hace que el fondo sea fijo */
  background-repeat: no-repeat;
  height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

/* Fondo oscuro para mejorar legibilidad */
.hero-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
  z-index: 1;
}

/* Contenido principal */
.hero-content {
  z-index: 2;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  text-align: center;
}

/* Título */
.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Texto */
.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Botón */
.cta-button {
  background-color: #fff;
  color: #183889;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #183889;
  color: #fff;
  transform: translateY(-3px);
}

/* ===== Responsividad ===== */
@media (max-width: 768px) {
  .hero-static {
    height: 300px; /* Reduce el alto en móviles */
    background-attachment: scroll; /* Evita problemas de fondo fijo en móviles */
  }

  .hero-content {
    padding: 15px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}

/* Sección oculta para mostrar más historia */
.historia-completa {
  background-color: #f9f9f9;
  padding: 60px 20px;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.historia-completa.show {
  display: block;
  opacity: 1;
}


/* ==============================
 Sección: Misión, Visión y Valores (Flip-Cards con Tap en Móviles)
=============================== */

/* Contenedor general de la sección */
.mvv-flip-section {
background: #f9f9f9;
padding: 60px 20px;
text-align: center;
}

/* Título principal */
.section-title {
font-size: 2.5rem;
color: #183889;
margin-bottom: 20px;
}

/* Subtítulo */
.section-subtitle {
font-size: 2rem;
color: #183889;
margin-top: 40px;
margin-bottom: 20px;
}

/* Texto introductorio */
.mvv-flip-intro {
font-size: 1.2rem;
color: #555;
max-width: 800px;
margin: 0 auto 40px auto;
line-height: 1.6;
}

/* Contenedor de tarjetas */
.flip-cards-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
max-width: 1200px;
margin: 0 auto;
}

/* Contenedor para valores (3 columnas en desktop) */
.flip-cards-container.valores-cards {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 1024px) {
.flip-cards-container.valores-cards {
  grid-template-columns: repeat(3, 1fr);
}
}

/* Tarjetas Flip */
.flip-card {
background-color: transparent;
width: 100%;
perspective: 1000px;
position: relative;
overflow: hidden;
cursor: pointer;
}

/* Inner que gira */
.flip-card-inner {
width: 100%;
height: 270px;
transition: transform 0.6s;
transform-style: preserve-3d;
position: relative;
}

/* Efecto hover en desktop */
@media (min-width: 769px) {
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
}

/* Activación con tap en móviles */
@media (max-width: 768px) {
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
}

/* Caras de la tarjeta */
.flip-card-front,
.flip-card-back {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
border-radius: 10px;
padding: 20px;
box-sizing: border-box;
backface-visibility: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: justify;
}

/* Frente */
.flip-card-front {
background-color: #fff;
color: #183889;
}

/* Reverso */
.flip-card-back {
background-color: #183889;
text-align: justify;
color: #fff;
transform: rotateY(180deg);
}

/* Ícono */
.flip-icon {
width: 48px;
height: 48px;
margin-bottom: 12px;
}

/* Título */
.flip-card-front h3, .flip-card-back h3 {
font-size: 1.3rem;
margin: 0;
}

.flip-card-back p {
font-size: 0.9rem;
line-height: 1.4;
text-align: justify;
max-width: 90%;
margin: 0 auto;
}

/* Responsividad extra */
@media (max-width: 768px) {
.mvv-flip-section {
  padding: 40px 10px;
}

.section-title {
  font-size: 2rem;
}

.section-subtitle {
  font-size: 1.6rem;
}

.mvv-flip-intro {
  font-size: 1rem;
  margin-bottom: 25px;
}

.flip-card-inner {
  height: 240px;
}

.flip-icon {
  width: 42px;
  height: 42px;
}

.flip-card-front h3 {
  font-size: 1.2rem;
}

.flip-card-back h3 {
  font-size: 1.1rem;
}

.flip-card-back p {
  font-size: 0.85rem;
}
}



/* ==============================
📌 Sección de Accesos Rápidos - Fondo Fijo + Responsividad
============================== */
.quick-access {
  background-image: url("/assets/presidenca\ baner.png"); /* Imagen de fondo */
  background-size: cover;
  background-position:bottom;
  background-repeat: no-repeat;
  height: 600px;
  text-align: center;
  justify-content: center;
  color: white; /* Ajusta el color del texto si es necesario */
  position: relative;
}

/* Efecto de superposición oscura para mejorar legibilidad */
.quick-access::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad del fondo oscuro */
  z-index: 1;
}

/* Asegurar que el contenido esté sobre la capa oscura */
.quick-access-grid,
.section-title,
.quick-access-intro {
  position: relative;
  z-index: 2;
}

/* ==============================
Diseño de Tarjetas 
============================== */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas por fila en pantallas grandes */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-access-card {
  background: rgba(255, 255, 255, 0.9); /* Fondo semitransparente */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  z-index: 2; /* Asegura que las tarjetas estén sobre el fondo */
}

/* Icono de cada tarjeta */
.quick-access-icon img {
  width: 70px;
  height: 70px;
  margin: 10px auto;
}

/* Contenido de cada tarjeta */
.quick-access-content h3 {
  font-size: 1.4rem;
  color: #183889;
  margin-bottom: 10px;
}

.quick-access-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Botón dentro de cada tarjeta */
.quick-access-link {
  display: inline-block;
  background-color: #183889;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: center;
}

.quick-access-link:hover {
  background-color: #0d204f;
  transform: translateY(-3px);
}

/* ==============================
📌 Responsividad Mejorada 
============================== */

/* 🖥️ En pantallas medianas (2 columnas) */
@media (max-width: 1024px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas por fila */
    gap: 20px; /* Reduce el espacio entre tarjetas */
  }

  .quick-access {
    padding: 50px 15px;
  }

  .quick-access-content h3 {
    font-size: 1.3rem;
  }

  .quick-access-content p {
    font-size: 0.95rem;
  }
}

/* 📱 En dispositivos móviles (1 columna) */
@media (max-width: 768px) {
  .quick-access {
    padding: 40px 10px;
  }

  .quick-access-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 tarjeta por fila */
    gap: 15px;
  }

  .quick-access-card {
    padding: 15px; /* Reduce el padding para ahorrar espacio */
  }

  .quick-access-content h3 {
    font-size: 1.2rem;
  }

  .quick-access-content p {
    font-size: 0.9rem;
  }

  .quick-access-icon img {
    width: 60px;
    height: 60px;
  }

  .quick-access-link {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
}




/* ===== Sección de Noticias ===== */
.noticias-section {
  position: relative;
  background-color: #f9f9f9;
  padding: 40px 20px;
  overflow: hidden; /* Evita que elementos se desborden */
}

.noticias-header {
  text-align: center;
  margin-bottom: 20px;
}

.noticias-header h2 {
  font-size: 2.2rem;
  color: #183889;
}

.noticias-header p {
  font-size: 1rem;
  color: #555;
}

/* Contenedor de Noticias en Pantallas Grandes */
.noticias-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* Efecto de encaje */
  -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iOS */
  padding-bottom: 10px; /* Espaciado para evitar cortes */
  scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.noticias-container::-webkit-scrollbar {
  display: none; /* Oculta scrollbar en Chrome/Safari */
}

/* Tarjetas de Noticias */
.noticia-card {
  flex: 0 0 300px; /* Ancho fijo para que se deslicen */
  max-width: 300px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.noticia-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Imagen dentro de la Tarjeta */
.noticia-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Contenido de la Noticia */
.noticia-content {
  padding: 15px;
}

.noticia-content h3 {
  font-size: 1.4rem;
  color: #183889;
  margin-bottom: 10px;
}

.noticia-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

.noticia-content a {
  text-decoration: none;
  color: #183889;
  font-weight: bold;
}

.noticia-content a:hover {
  color: #131c46;
}

/* Spinner de carga */
.noticias-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ccc;
  border-top: 4px solid #183889;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Ajuste de Noticias en Pantallas Pequeñas */
@media (max-width: 1024px) {
  .noticias-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .noticia-card {
    flex: 0 0 90%; /* Aumenta el ancho en móviles */
    min-width: 280px;
    margin: 10px 0;
  }

  .noticia-card img {
    height: 160px; /* Ajusta la altura de la imagen en móviles */
  }
}



/* ------------------------------------------------
 Footer - Versión con ajustes para móvil
-------------------------------------------------- */
/* ===== Footer ===== */
.footer {
background-color: #131c46;
color: #fff;
padding: 40px 20px;
font-size: 1rem;
}

.footer-container {
display: flex;
flex-direction: column;  /* Apilamos los elementos en columna */
align-items: center;    /* Centramos horizontalmente */
text-align: center;     /* Centramos todo el texto */
gap: 15px;              /* Espaciado entre elementos */
max-width: 1200px;
margin: 0 auto;
}

/* ===== Logo ===== */
.footer-logo {
width: 200px;  /* Se ajusta para que no sea tan grande */
max-width: 100%;
height: auto;
margin-bottom: 10px;
}

/* ===== Información del footer ===== */
.footer-info {
max-width: 500px; /* Limita el ancho del texto para mejor lectura */
font-size: 0.9rem;
}

/* ===== Redes Sociales ===== */
.footer-social {
display: flex;
flex-direction: column; /* Asegura que el título y los íconos se mantengan alineados */
align-items: center;
gap: 10px;
}

.footer-social h4 {
font-size: 1.2rem;
margin-bottom: 5px;
}

.social-links {
display: flex;
gap: 15px;
justify-content: center;
align-items: center;
}

.social-links img {
width: 30px;
height: 30px;
transition: transform 0.3s ease;
}

.social-links img:hover {
transform: scale(1.2);
}

/* ===== Separador final y texto de derechos reservados ===== */
.footer-bottom {
text-align: center;
margin-top: 15px;
border-top: 1px solid rgba(255,255,255,0.3);
padding-top: 10px;
font-size: 0.8rem;
}

/* ===== RESPONSIVIDAD ===== */
@media (max-width: 768px) {
.footer {
  padding: 30px 15px; /* Reduce el padding en pantallas pequeñas */
}

.footer-logo {
  width: 150px; /* Reduce el logo para que no ocupe tanto espacio */
}

.footer-container {
  gap: 10px; /* Reduce el espaciado entre los elementos */
}

.footer-info {
  font-size: 0.85rem;
  max-width: 90%;
}

.footer-social h4 {
  font-size: 1rem;
}

.footer-bottom {
  font-size: 0.75rem; /* Hace el texto más compacto en móviles */
}
}




.social-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Espaciado entre los botones */
  z-index: 1000;
}

.social-btn {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background-color 0.3s;
}

.social-btn img {
  width: 25px;
  height: 25px;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn.facebook:hover {
  background: transparent;
}

.social-btn.twitter:hover {
  background-color: transparent;
}

.social-btn.instagram:hover {
  background-color: transparent;
}

.social-btn.linkedin:hover {
  background-color: transparent;
}


.tiktok {
  display: none;
}

.youtube {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-icon {
      display: block;
  }
}


/* ==============================
 Sección de Trámites
============================== */
.tramites-section {
background: linear-gradient(to right, #e6f2ff, #ffffff); /* Mantén tu gradiente */
padding: 60px 20px;
text-align: center;
}

/* Título principal */
.section-title {
font-size: 2.5rem; /* Ajusta al gusto */
color: #183889;
margin-bottom: 30px;
}

/* Texto introductorio */
.tramites-intro {
font-size: 1.2rem;
color: #555;
margin-bottom: 40px;
max-width: 800px;
margin: 0 auto;
}

/* Contenedor de tarjetas en Grid */
.tramites-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* adaptativo */
gap: 20px;
max-width: 1200px;
margin: 0 auto;
}

/* Tarjeta */
.tramite-card {
display: flex; 
flex-direction: column;   /* Apilamos icono, contenido y botón en columna */
background: #fff;
border: 1px solid #ddd;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
}

/* Hover */
.tramite-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Ícono circular en la parte superior */
.tramite-icon {
width: 80px;
height: 80px;
margin: 20px auto 0;  /* Separación arriba y centrado horizontal */
border-radius: 50%;
background: #fff;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.tramite-icon img {
width: 50%;
height: 50%;
}

/* Contenido central */
.tramite-card-content {
padding: 20px;
flex: 1; /* Para que el botón pueda ir al final */
display: flex;
flex-direction: column;
justify-content: center;
}

.tramite-card-content h3 {
font-size: 1.5rem;
color: #183889;
margin-bottom: 10px;
}

.tramite-card-content p {
font-size: 1rem;
color: #555;
margin-bottom: 10px;
line-height: 1.4; /* Mejor legibilidad */
}

/* Botón */
.tramite-card .tramite-link {
display: inline-block;
text-decoration: none;
font-weight: bold;
color: #fff;
background: #183889;
padding: 10px 20px;
border-radius: 20px;
transition: background-color 0.3s ease, transform 0.3s ease;
margin: 20px auto; /* Centrado horizontal */
}

.tramite-card .tramite-link:hover {
background-color: #0d204f;
transform: translateY(-3px);
}

/* ============= Ajustes para pantallas pequeñas ============= */
@media (max-width: 576px) {
.tramites-section {
  padding: 40px 10px; /* Reduce padding en pantallas muy pequeñas */
}

.section-title {
  font-size: 2rem; /* Ajustar escalado */
}

.tramites-intro {
  font-size: 1rem;
  margin-bottom: 25px;
}

/* Ajustamos el min-width para acomodar mejor las tarjetas en móviles */
.tramites-container {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.tramite-icon {
  width: 60px;
  height: 60px;
}

.tramite-icon img {
  width: 60%;
  height: 60%;
}

.tramite-card-content h3 {
  font-size: 1.3rem;
}

.tramite-card-content p {
  font-size: 0.9rem;
}

.tramite-card .tramite-link {
  font-size: 0.9rem;
  padding: 8px 12px;
  margin: 15px auto; 
}
}




#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}



#mapa {
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9; /* Fondo neutro */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
  max-width: 1200px; /* Ancho máximo */
}

#mapa h2 {
  text-align: center;
  color: #183889; /* Azul institucional */
  font-size: 2rem;
  margin-bottom: 10px;
}

#mapa p {
  text-align: center;
  font-size: 1rem;
  color: #555; /* Gris oscuro */
  margin-bottom: 20px;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden; /* Asegura que el mapa no se salga del borde redondeado */
  border: 2px solid #183889; /* Borde azul */
}

.leaflet-popup-content {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333; /* Texto oscuro */
  text-align: center;
}

.leaflet-popup-content h4 {
  font-size: 1.2rem;
  color: #183889; /* Azul institucional */
  margin: 0 0 5px;
}

.leaflet-popup-content p {
  font-size: 0.9rem;
  margin: 0;
}

.leaflet-popup-tip {
  background: #183889; /* Azul institucional */
}

@media (max-width: 768px) {
  #map {
    height: 300px; /* Reducir la altura para pantallas pequeñas */
  }

  .map-controls button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}


















/* Menu */
#menuglobal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-image: url(assets/purificacion.JPG);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #183889;
  color: #fff !important;
  width: 100%;
  min-height: 100vh;
  z-index: 8888;
}

.globalmenu_telemergencia {
  position: absolute;
  top: 25px;
  right: 100px;
  width: 400px;
  height: 96px;
  border: 1px solid white;
}

.ico_emergencia {
  width: 38px;
  height: 38px;
  background-image: url(../images/icons/icon_telefono.png);
  background-position: center;
  background-size: 90%;
  background-repeat: no-repeat;
}

.globalmenu_telemergencia div {
  text-align: left;
  padding-left: 5px;
  padding-right: 5px;
  float: left;
  border: 1px solid white;
}

.globalmenu_telemergencia div h3 {
  font-size: 10pt;
  color: #fff;
}

.globalmenu_btn_close {
  position: absolute;
  top: 25px;
  right: 75px;
  width: 48px;
  height: 48px;
  background-image: url(assets/ico_menu_btn_close.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 94%;
  cursor: pointer;
  border-bottom: 4px solid transparent;
  z-index: 99;
}

.globalmenu_btn_close:hover {
  border-bottom: 4px solid #3B8DD1;
}

#menuglobal-scrollarea {
  position: relative;
  width: 100% !important;
  height: 100vh !important;
  overflow: auto;
}

#menuglobal-cont {
  position: relative;
  width: 70% !important;
  height: auto;
  padding-right: 17px;
  margin: auto !important;
  padding-top: 90px;
}

.menuglobal-contlst {
  width: 100%;
  height: auto;
}

.menuglobal-listas {
  position: relative;
  height: auto;
  padding-top: 25px !important;
}

.menuglobal-listas-small {
  width: 50%;
  min-height: 20vh;
}

.menuglobal-listas-large {
  width: 100%;
  min-height: 20vh;
}

.menuglobal-lista {
  float: left;
}

.menuglobal-lista hr {
  width: 90%;
  height: 2px;
  border: none;
  background-color: #fff;
  margin-top: 8px;
}

.menuglobal-lista a {
  color: #fff !important;
  background-image: linear-gradient(#fff, #fff);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: .6s;
  padding-left: 2px;
  padding-right: 2px;
  text-shadow: 1px 1px 1px #000;
}

.menuglobal-lista a:hover {
  background-size: 100% 100%;
  color: black !important;
  text-shadow: none;
}

.menulst-dos {
  width: 50%;
}

.menulst-dos div {
  width: 50%;
  float: left;
}

.menulst-uno {
  width: 100%;
}

.menulst-uno div {
  width: 50%;
  float: left;
}

.menuglobal-lista h2 {
  font-size: 24pt;
  color: #fff !important;
}

.menuglobal-lista ul {
  list-style: none;
  padding-left: 33px;
}

.menuglobal-lista ul li {
  font-size: 14pt;
  font-weight: 400;
  word-spacing: 1px;
  padding-top: 8px !important;
  cursor: pointer;
}

#menuglobal-info {
  width: 50%;
  height: auto;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#menuglobal-info div {
  text-align: center;
}

#menuglobal-info div h3 {
  font-size: 11pt;
  font-weight: 400;
  color: #fff !important;
}

#menuglobal-info div h3 a {
  color: #fff;
  background-image: linear-gradient(#8574a5, #1000e9);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: .4s;
  padding-left: 2px;
  padding-right: 2px;
}

#menuglobal-info div h3 a:hover {
  background-size: 100% 100%;
  color: black !important;
}

#menuglobal-info div img {
  width: 340px;
}

.menuglobal-cont-div {
  float: left;
}

#menuglobal-destacadas {
  width: 100%;
  min-height: 34vh;
  height: auto;
}

#menuglobal-destacadas hr {
  width: 95%;
  height: 2px;
  border: none;
  background-color: #fff;
  margin-bottom: 25px;
}

.destacadaGroup {
  width: auto;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 4px;
  float: left;
}

.destacadaGroup h2 {
  color: #fff;
  font-size: 18pt !important;
  margin-bottom: 12px;
}

.group-cuatro {
  width: 30%;
  max-width: 30%;
}

.group-tres {
  width: 40%;
  max-width: 40%;
}

.group-dos {
  width: 30%;
}

.group-border {
  border-right: 1px solid #c1c1c1;
}

.menuglobal-destacada {
  width: 150px;
  height: 112px;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  float: left;
}

.menuglobal-destacada:hover {
  color: #33ccff;
}

.destacada-bg {
  margin: 0 auto;
  width: 50px;
  height: 50px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 8px;
}

.menuglobal-destacada span {
  font-size: 11pt;
}

.globalnav-vermas {
  color: #fff;
  background-size: 0%;
  background-position: center;
  background-repeat: no-repeat;
}

.globalnav-vermas span {
  transition: all 0.6s;
}

.globalnav-vermas:hover span {
  color: transparent;
  cursor: pointer;
}

.globalnav-vermas:hover {
  background-size: 26px;
}


@media only screen and (max-width: 1500px) {
  #menuglobal-cont {
      width: 90% !important;
  }
}

@media only screen and (max-width: 700px) {
  #menuglobal-cont {
      position: absolute;
      width: 98% !important;
      top: 0;
      bottom: 0;
      left: 0;
      right: -15px;
  }

  .globalmenu_btn_close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 48px;
      height: 48px;
      background-size: cover;
      border-bottom: none;
  }

  .globalmenu_btn_close:hover {
      border-bottom: none;
  }

  .menuglobal-listas {
      width: 100%;
      height: auto;
      padding-top: 25px;
  }

  .menulst-dos {
      width: 100%;
      margin-top: 25px;
  }

  .menuglobal-lista h2 {
      font-size: 16pt;
  }

  .menuglobal-lista hr {
      width: 100%;
      margin-top: 5px;
      margin-bottom: 12px;
  }

  .menuglobal-lista ul li {
      font-size: 13pt;
  }

  #menuglobal-destacadas {
      height: auto;
      margin-top: 20px;
      margin-bottom: 25px;
  }

  .menuglobal-destacada {
      width: 33%;
      height: 98px;
      font-size: 10pt;
      padding: 5px;
  }

  .destacada-bg {
      width: 38px;
      height: 38px;
  }

  .destacadaGroup h2 {
      font-size: 16pt !important;
      margin-top: 10px;
  }

  .group-cuatro {
      width: 100%;
      max-width: 100%;
  }

  .group-tres {
      width: 100%;
      max-width: 100%;
  }

  .group-dos {
      width: 100%;
      max-width: 100%;
  }

  .group-border {
      border-right: 0px solid #c1c1c1;
  }
}

.sticky-container {
  padding: 0px;
  margin: 0px;
  position: fixed;
  right: -150px;
  top: 230px;
  width: 210px;
  z-index: 1100;
}

.sticky li {
  list-style-type: none;
  background-color: #ffffff00;
  color: transparent;
  height: 43px;
  padding: 0px;
  margin: 0px 0px 1px 0px;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.sticky li:hover {
  margin-left: -30px;
}

.sticky li img {
  float: left;
  margin: 5px 4px;
  margin-right: 5px;
}

.sticky li p {
  padding-top: 5px;
  margin: 0px;
  line-height: 16px;
  font-size: 11px;
}

.sticky li p a {
  text-decoration: none;
  color: #2C3539;
}

.sticky li p a:hover {
  text-decoration: underline;
}











/* ==============================
    AJUSTES PARA RESOLUCIONES MEDIAS (768px - 1024px)
============================== */

/* HERO SECTION */
@media (max-width: 1024px) {
  .hero-section {
    background-attachment: scroll;
    height: 50vh;
  }
}

/* SECCIÓN HISTORIA */
@media (max-width: 1024px) {
  .hero-static {
    background-attachment: scroll;
    height: 350px;
  }
}

/* MENÚ GLOBAL */
@media (max-width: 1024px) {
  #menuglobal {
    background-attachment: scroll;
  }
}

/* SECCIÓN DE NOTICIAS */
@media (max-width: 1024px) {
  .noticias-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .noticias-container::-webkit-scrollbar {
    display: none;
  }

  .noticia-card {
    flex: 0 0 80%;
    min-width: 270px;
    scroll-snap-align: start;
  }

  .noticia-card img {
    height: 150px;
  }
}

/* FOOTER */
@media (max-width: 1024px) {
  .footer {
    padding: 30px 15px;
  }

  .footer-logo {
    width: 120px;
  }

  .footer-info {
    font-size: 0.85rem;
    max-width: 90%;
  }
}

/* TEXTO Y SECCIONES GENERALES */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

  .description-content {
    padding: 20px 10px;
  }

  .hero-static h2 {
    font-size: 1.8rem;
  }

  .hero-static p {
    font-size: 1rem;
  }
}


@media (max-width: 1024px) {
  /* HEADER (NAV) */
  nav {
    padding: 10px 20px;
    justify-content: space-between;
  }

  /* LOGO */
  nav .logo img {
    height: 120px; /* Reducir tamaño en pantallas medianas */
  }

  /* MENÚ DE NAVEGACIÓN */
  nav ul {
    display: flex;
    gap: 15px;
  }

  nav ul li {
    margin-left: 1rem;
  }

  nav ul li a {
    font-size: 90%; /* Reducir el tamaño del texto */
    padding: 5px 10px;
  }

  /* DROPDOWN */
  .dropdown-content {
    min-width: 140px;
  }

  /* ICONO DE MENÚ HAMBURGUESA (MOSTRAR EN TABLETS) */
  .menu-icon {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  /* MENÚ DESPLEGABLE EN RESOLUCIONES MEDIAS */
  .menubar {
    left: -70%;
    width: 70%;
  }

  .menubar ul {
    padding: 20px 10px;
  }
}

@media (max-width: 1024px) {
  .noticias-container {
    display: flex;
    overflow-x: auto; /* Mantiene el carrusel horizontal */
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-right: 2rem;
  }

  .noticias-container::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento */
  }

  .noticia-card {
    flex: 0 0 320px; /* Mantiene el mismo ancho que en escritorio */
    min-width: 320px;
    height: auto;
    scroll-snap-align: start;
  }

  .noticia-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .noticia-content {
    padding: 15px;
  }

  .noticia-content h3 {
    font-size: 1.3rem;
  }

  .noticia-content p {
    font-size: 1rem;
    line-height: 1.4;
  }
}
@media (max-width: 1024px) {
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #131c46;
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 1000;
  }

  /* Ajuste del Logo */
  nav .logo img {
    height: 100px; /* Reduce el tamaño del logo */
    max-width: 80%;
  }

  /* Menú de navegación */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px; /* Ajusta la altura del menú */
    left: 0;
    width: 100%;
    background: rgba(19, 28, 70, 0.95);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-200%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
    padding: 10px;
    display: block;
  }

  /* Ajuste del icono del menú */
  .menu-icon {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    padding: 10px;
    margin-right: 50px;
  }
}


@media (max-width: 768px) {
  .cta-button {
    display: block;
    width: 80%; /* Para que tenga un tamaño más responsivo */
    max-width: 280px;
    margin: 15px auto; /* Centrado automático */
    padding: 12px 15px; /* Mejor ajuste para pantallas táctiles */
    font-size: 1rem; /* Tamaño de texto más legible */
    text-align: center;
    border-radius: 8px;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-section .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}












/* Sección Novedades */
.novedades-eventos-responsive {
  padding: 60px 20px;
  background-color: #f4f6fa;
  font-family: 'Segoe UI', sans-serif;
}

.tarjetas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.tarjeta-novedad,
.tarjeta-evento {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.tarjeta-novedad img,
.tarjeta-evento img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.tarjeta-evento .evento-info {
  padding: 20px;
}

.tarjeta-evento .evento-info h3 {
  font-size: 1.2rem;
  color: #183889;
  margin-bottom: 1px;
}

.tarjeta-evento .evento-info p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1px;
}

/* Responsive */
@media (max-width: 991px) {
  .tarjetas-grid {
    grid-template-columns: 1fr;
  }
}












/* ======= Título ======= */
.titulo-eventos {
  width: 100%;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #183889;
  font-family: 'Roboto', sans-serif;
}

/* ======= Galería estilo grid ======= */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  padding: 10px;
  height: auto;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Muestra toda la imagen sin recorte */
  border-radius: 8px;
  display: block;
}














body {
  font-family: 'Roboto Slab', serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

/* Sección general */
.noticias-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.noticias-header {
  text-align: center;
  margin-bottom: 20px;
}

.noticias-header h2 {
  font-size: 2.2rem;
  color: #183889;
}

.noticias-header p {
  font-size: 1rem;
  color: #555;
}

/* Contenedor scroll horizontal */
.noticias-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.noticias-container::-webkit-scrollbar {
  display: none;
}

/* Tarjeta estilo personalizado */
.card {
  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 13px 10px -7px rgba(0, 0, 0, 0.1);
  width: 240px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  flex: 0 0 auto;
}

.card:hover {
  transform: scale(1.04);
  box-shadow: 0px 20px 15px -8px rgba(0, 0, 0, 0.15);
}

/* Media container (imagen o video) */
.card__media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.card__video {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icono de play para videos */
.card__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: none;
  transition: background 0.2s;
}

.card:hover .card__play-icon {
  background: rgba(24, 56, 137, 0.8);
}

.card_link {
  text-decoration: none;
}

.card__info {
  position: relative;
  background-color: #fff;
  padding: 12px 16px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 2;
}

.card__title {
  color: #183889;
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-family: 'Roboto Slab', serif;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__by {
  font-size: 0.85rem;
  font-family: 'Raleway', sans-serif;
}

.card__author {
  text-decoration: none;
  color: #183889;
  font-weight: 600;
}

/* Spinner */
.noticias-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ccc;
  border-top: 4px solid #183889;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 50px;
  box-sizing: border-box;
}

.carousel-scroll {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
  gap: 16px;
}

.carousel-scroll::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #183889;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: background 0.2s, opacity 0.3s;
}

.carousel-btn:hover {
  background: #0f2660;
}

.carousel-btn-left {
  left: 0;
}

.carousel-btn-right {
  right: 0;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    padding: 0 35px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .card {
    width: 200px;
  }
  .card__media {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .card {
    width: 170px;
  }
  .card__media {
    height: 150px;
  }
  .card__title {
    font-size: 0.85rem;
  }
}
