/* =======================================================
   🎨 PALETA INSTITUCIONAL CHIAPAS
======================================================= */
:root {
  --chiapas-verde: #009887;
  --chiapas-magenta: #C90166;
  --chiapas-rojo: #AE1922;
  --chiapas-beige: #D3C2B4;
  --chiapas-oscuro: #0C0206;
  --chiapas-claro: #f6f6f6;
  --chiapas-blanco: #ffffff;
}

.text-primario { color: #009887; }
.text-secundario { color: #C90166; }
.text-terciario { color: #AE1922; }

.hover-card {
  transition: all 0.4s ease;
}
.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}




/* ----- TÍTULO CON ENCABEZADO INSTITUCIONAL ----- */
.seccion-titulo {
  position: relative;
  font-size: 2.2rem;
  font-weight: 800;
  color: #003366;
  padding-left: 25px;
  margin-bottom: 35px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.seccion-titulo span {
  position: relative;
  z-index: 2;
}

.seccion-titulo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 50px;
  background: linear-gradient(90deg, #003366, #0055a5);
  border-radius: 8px;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.30));
  opacity: 0.95;
}


/**nuestro estado*/
.tarjeta-flotante {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px;
  border-left: 8px solid #0055a5;
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
  transition: all .28s ease;
  cursor: pointer;
  min-height: 200px;
}

.tarjeta-flotante:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
  background: linear-gradient(160deg, #fff, #f3f6fb);
}

.tarjeta-flotante h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #003366;
}



/* Tarjetas con estilo institucional */
/* ICONOS MÁS GRANDES */
.icon-chiapas-lg {
  font-size: 5rem;         /* ICONO SUPER GRANDE */
  color: #fff;          /* Color institucional 1 */
  transition: transform .3s ease, color .3s ease, opacity .3s ease;
  opacity: .9;
}

/* HOVER */
.card-chiapas:hover .icon-chiapas-lg {
  transform: scale(1.15);
  color: #C90166;          /* Color institucional 2 */
  opacity: 1;
}

/* CARD ESTILO INSTITUCIONAL */
.card-chiapas {
  border-radius: 20px;
  border: none;
  /* background: #ffffff; */
  /* background: linear-gradient(135deg, var(--chiapas-verde) 0%, var(--chiapas-magenta) 100%); */
  background: rgba(255, 255, 255, 0.15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card-chiapas:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

/* TITULOS MAS PEQUEÑOS */
.card-chiapas h6 {
  font-size: 0.9rem;
  letter-spacing: .5px;
  color: #0C0206;
}

/* RESPONSIVE ICONS */
@media (max-width: 575px) {
  .icon-chiapas-lg {
    font-size: 4rem;
  }
}



/**************transparencia ********/

.transparencia-img {
  position: relative;
  overflow: hidden;
}
.transparencia-img img {
  transition: transform 0.4s ease, filter 0.4s ease;
}
.transparencia-img:hover img {
  transform: scale(1.1);
  filter: brightness(0.85);
}
.transparencia-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,152,135,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  color: #fff;
  font-size: 2rem;
}
.transparencia-img:hover .overlay {
  opacity: 1;
}


/* =======================================================
   🔥 SECCIÓN: LO MÁS BUSCADO
======================================================= */
.trending-section {
  /* background: linear-gradient(135deg, var(--chiapas-verde) 0%, var(--chiapas-magenta) 100%); */
   background: linear-gradient(to bottom, var(--chiapas-claro), var(--chiapas-beige));
  color: var(--chiapas-blanco);
  position: relative;
  overflow: hidden;
}


.trending-section .section-title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); */
}

.trending-section .input-group {
  max-width: 600px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.trending-section .form-control {
  border: none;
  border-radius: 50px 0 0 50px;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
}

.trending-section .input-group-text {
  border: none;
  background: var(--chiapas-rojo);
  color: var(--chiapas-blanco);
  border-radius: 50px 0 0 50px;
  font-size: 1.2rem;
}

.trend-btn {
  border-radius: 50px;
  font-weight: 600;
  color: var(--chiapas-oscuro) !important;
  transition: all 0.3s ease;
  background: var(--chiapas-blanco);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.trend-btn:hover {
  background: var(--chiapas-magenta);
  color: var(--chiapas-blanco) !important;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* =======================================================
   💡 SECCIÓN: PROGRAMAS INSTITUCIONALES (CARRUSEL)
======================================================= */
.programa-section {
  /* background: linear-gradient(to bottom, var(--chiapas-claro), var(--chiapas-beige)); */
  background: linear-gradient(135deg, var(--chiapas-verde) 0%, var(--chiapas-magenta) 100%);
  position: relative;
  overflow: hidden;
}

.programa-section .section-title {
  color: var(--chiapas-oscuro);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#programaCarousel {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

#programaCarousel img {
  filter: brightness(0.9) saturate(1.2);
  transition: transform 8s ease, filter 0.5s ease;
}

#programaCarousel .carousel-item.active img {
  transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--chiapas-rojo);
  border-radius: 50%;
  padding: 1rem;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: var(--chiapas-magenta);
  transition: all 0.3s ease;
}

/* =======================================================
   🎯 SECCIÓN: CONOCE CHIAPAS
======================================================= */
.conoce-chiapas {
  /* background: linear-gradient(135deg, var(--chiapas-verde) 0%, var(--chiapas-magenta) 100%); */
     background: linear-gradient(to bottom, var(--chiapas-claro), var(--chiapas-beige));
  color: var(--chiapas-blanco);
  position: relative;
  overflow: hidden;
}

.conoce-chiapas::before {
  content: "";
  position: absolute;
  /* inset: 0; */
  /* background: rgba(0, 0, 0, 0.25); */
  backdrop-filter: blur(4px);
}

/* =======================================================
   🎯 SECCIÓN: PRINCIPALES SERVICIOS
======================================================= */
.principales-servicios {
  background: linear-gradient(135deg, var(--chiapas-verde) 0%, var(--chiapas-magenta) 100%);
  color: var(--chiapas-magenta);
  position: relative;
  overflow: hidden;
}

/* .principales-servicios::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
} */

 .principales-servicios .section-title {
  color: var(--chiapas-magenta);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
} 

.icon-block {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.icon-block:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: var(--chiapas-beige);
  color: var(--chiapas-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
}

/* === Estilo Institucional para Cards y Secciones === */

.section-turismo h5 {
  color: #009887;
}

.card-turismo img {
  transition: transform .5s ease, filter .4s ease;
}
.card-turismo:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.card-turismo .card-body {
  background: #fff;
  border-top: 4px solid #C90166;
  transition: background .3s ease;
}
.card-turismo:hover .card-body {
  background: #f6f6f6;
}

.bg-marron {
  background: linear-gradient(135deg, #AE1922, #C90166);
  border: none;
}

/* ----- ACORDEÓN ESTILIZADO ----- */
/* ---- CONTENEDOR GENERAL ---- */
/* -----------------------------------------------------
   ACORDEÓN CHIAPAS CON BORDES ANIMADOS + EXPANSIÓN SUAVE
------------------------------------------------------ */

.accordion-chiapas {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

/* ---- BORDE ANIMADO ---- */
.accordion-chiapas::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px; 
  border-radius: 1rem;
  background: linear-gradient(90deg, #C90166, #AE1922, #009887, #C90166);
  background-size: 300% 100%;
  animation: borderMove 6s linear infinite;
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 1;
}

@keyframes borderMove {
  0% { background-position: 0% 0; }
  100% { background-position: -300% 0; }
}

/* Evita que el borde tape el contenido */
.accordion-chiapas > * {
  position: relative;
  z-index: 5;
}

/* ---- BOTONES ---- */
.accordion-chiapas .accordion-button {
  color: white;
  font-weight: 700;
  padding: 1rem;
}

.accordion-chiapas .accordion-button::after {
  filter: invert(1) brightness(2);
}

/* ---- CUERPO DEL PANEL ---- */
.accordion-chiapas .accordion-body {
  padding: 1rem 1.25rem;
}

/* ---- ANIMACIÓN DE EXPANSIÓN SUAVE ---- */
.accordion-chiapas .accordion-collapse {
  overflow: hidden;
  transition: height 0.45s ease, opacity 0.45s ease;
}

.accordion-chiapas .accordion-collapse.collapsing {
  opacity: 0;
}

.accordion-chiapas .accordion-collapse.show {
  opacity: 1;
}

/* ---- COLORES INSTITUCIONALES ---- */
.bg-chiapas-magenta { background-color: #C90166 !important; }
.bg-chiapas-rojo    { background-color: #AE1922 !important; }
.bg-chiapas-verde   { background-color: #009887 !important; }

/* ---- LINKS E ICONOS ---- */
.accordion-chiapas .accordion-body a {
  font-weight: 600;
  color: #222;
  text-decoration: none;
}

.accordion-chiapas .accordion-body a:hover {
  color: #AE1922;
}

.accordion-chiapas .accordion-body i {
  font-size: 1.4rem;
  margin-right: .25rem;
  color: #0096ff;
}


/* Acordeón */
/* .accordion-button {
  transition: all .3s ease;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(201,1,102,.3);
}
.accordion-item {
  border: none;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-estatal .accordion-button {
  background: #f4f6f9;
  border-radius: 12px !important;
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: #003366;
  font-weight: 700;
  padding: 18px 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: all .25s ease;
}

.accordion-estatal .accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #003366 0%, #0055a5 100%);
  color: #fff;
}

.tarjeta-acordeon {
  border: none !important;
  margin-bottom: 12px;
  border-radius: 16px !important;
  overflow: hidden;
}

.accordion-body {
  background: #ffffff;
  padding: 22px;
  border-left: 5px solid #0055a5;
  border-radius: 0 0 14px 14px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.06);
} */




/* Sección con imagen de fondo */
.g-bg-img-hero {
  box-shadow: 0 0 25px rgba(0,0,0,0.35);
}
.g-bg-img-hero h4 {
  color: #f6f6f6;
}
.g-bg-img-hero a {
  text-decoration: none;
  transition: color .2s ease;
}
.g-bg-img-hero a:hover {
  color: #C90166;
}


/* =======================================================
   🔎 TRANSPARENCIA
======================================================= */

.transparencia { 
     background: linear-gradient(to bottom, var(--chiapas-claro), var(--chiapas-beige));
  color: var(--chiapas-blanco);
  position: relative;
  overflow: hidden;
}
.transparencia-grid {
  background: linear-gradient(135deg, var(--chiapas-verde) 10%, var(--chiapas-rojo) 90%);
  padding: 40px;
  border-radius: 20px;
  color: var(--chiapas-blanco);
}

.transparencia-img {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.transparencia-img:hover {
  transform: scale(1.05);
}

.transparencia-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chiapas-blanco);
  font-size: 2rem;
}

.transparencia-img:hover .overlay {
  opacity: 1;
}

/* =======================================================
   🌐 REDES SOCIALES
======================================================= */
.redes-sociales {
  background: linear-gradient(120deg, var(--chiapas-magenta), var(--chiapas-verde));
  color: var(--chiapas-blanco);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.redes-sociales .section-title {
  color: var(--chiapas-blanco);
}

/* =========================================================
   🌟 EFECTOS GLOBALES Y RESPONSIVE
========================================================= */
.icon-block {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .icon-circle { width: 70px; height: 70px; font-size: 2rem; }
  .section-title::after { width: 60px; height: 3px; }
}



/* ====== FOOTER PARALLAX ====== */


.footer-parallax .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 24, 21, 0.85) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 0;
}

.footer-parallax .container {
  position: relative;
  z-index: 1;
}

.footer-parallax h5 {
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Íconos sociales */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  transition: all 0.4s ease;
  text-decoration: none;
}

.social-icons i {
  font-size: 2rem;
  color: #fff;
  transition: transform 0.4s ease, color 0.4s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #009887, #C90166, #AE1922);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: translateY(-6px);
}

.social-link:hover i {
  transform: scale(1.2);
}

/* Slogan animado */
.slogan {
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

.slogan-text {
  border-right: 3px solid rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  50% { border-color: transparent }
}

/* Glow decorativo */
.footer-parallax::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,1,102,0.4), transparent 70%);
  animation: pulseLight 8s infinite ease-in-out alternate;
  z-index: 0;
}

@keyframes pulseLight {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 0.4; }
}



/* ====== DECORACIÓN DE ENCABEZADOS DE SECCIÓN ====== */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0C0206;
  padding-top: 80px;
  margin-bottom: 3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  background: linear-gradient(to bottom, #ffffff, #f6f6f6);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
}


/* Variaciones cromáticas según tema */
.programa-sections .section-title {
  color: #C90166;
}

.principales-servicios .section-title {
  color: #009887;
}

.nuestro-estado .section-title {
  color: #C90166;
}

.transparencia .section-title {
  color: #AE1922;
}

.redes-sociales .section-title {
  color: #009887;
}

/* ====== EFECTOS AOS Y RELIEVE ====== */
.section-title[data-aos] {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.section-title[data-aos="fade-up"] {
  transform: translateY(30px);
  opacity: 0;
}

.section-title.aos-animate[data-aos="fade-up"] {
  transform: translateY(0);
  opacity: 1;
}


/* Contenedor general */
.visitas-wrapper {
  padding: 20px 0;
}

/* Tarjetas principales */
.visitas-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform .25s ease, box-shadow .25s ease;
  padding: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hover dinámico */
.visitas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Título */
.visitas-card h6 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Valor numérico */
.visitas-card h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 0;
}

/* Icono decorativo */
.visitas-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  opacity: 0.15;
  font-size: 90px;
  transform: rotate(-10deg);
}

/* Colores institucionales */
.v-total   { color: #1B5E20; }  /* Verde Chiapas */
.v-hoy     { color: #C2185B; }  /* Magenta Chiapas */
.v-semana  { color: #009688; }  /* Verde turquesa */
.v-unicas  { color: #7B1FA2; }  /* Morado institucional */

/* Animación de aparición */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.visitas-card {
  animation: fadeUp .6s ease forwards;
}
