* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  overflow: hidden;
}

/* SECCIÓN UNIFICADA */
.unified-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ece9ef 100%);
}

/* Fondo de ciudad (del div 2 original) */
.city-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(1px);
  opacity: 0.7;
}

/* PANEL DE CONTENIDO PRINCIPAL */
.content-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 15;
  pointer-events: auto;
}

.panel-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../imagenes/angel_iecm.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
  pointer-events: none;
}

/* Estado inicial con imagen de angel_iecm */
.panel-background.initial-bg {
  background-image: url('../imagenes/angel_iecm.png');
}

/* Estado hero con gradiente oscuro */
.panel-background.hero-bg {
  background: linear-gradient(to bottom right, rgba(57, 56, 56, 0.6), rgba(33, 33, 37, 0.6)),
              url('../imagenes/angel_iecm.png') no-repeat center center/cover;
}

.panel-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(57, 56, 56, 0.6), rgba(33, 33, 37, 0.6));
  transition: all 0.3s ease;
  z-index: 1;
}

.panel-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 25;  /* Asegúrate de que este valor sea alto */
  text-align: center;
  pointer-events: auto;
}

.panel-text {
  padding: 40px;
  width: 100%;
  max-width: 100%;
  color: white;
  z-index: 30;  /* Mayor que el overlay */
  position: relative;
  pointer-events: auto;
}

/* Estados del contenido */
.initial-state,
.hero-state,
.dynamic-state {
  width: 100%;
  animation: fadeIn 0.5s ease-in-out;
}

.hidden {
  display: none !important;
}

/* Estilos del estado inicial */
.initial-state .panel-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.initial-state .panel-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  /* font-size: 4rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #ffffff, #e9ecef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
}

#panelDescription{

  text-align: justify;

}

.initial-state .panel-description {
  text-align: justify;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 35px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Estilos del hero state (contenido del div 1 original) */
.hero-content-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: auto;
  height: auto;
  object-fit: contain;
  animation: fadeIn 5s ease-in-out forwards;
}

.hero-text {
  flex: 0 0 auto;
  color: white;
  max-width: 1000px;
  line-height: 1.2;
}

.titulo-sombra {
  position: relative;
  text-align: center;
  font-family: Verdana, sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: #f5f5f5eb;
  text-shadow:
    1px 1px 1px #410d6333,
    1px 2px 1px #410d6333,
    1px 3px 1px #410d6333,
    1px 4px 1px #410d6333,
    1px 5px 1px #410d6333,
    1px 6px 1px #410d6333,
    1px 7px 1px #410d6333,
    1px 8px 1px #410d6333,
    1px 9px 1px #410d6333,
    1px 10px 1px #410d6333,
    1px 18px 6px rgba(16, 16, 16, 0.4),
    1px 22px 10px rgba(16, 16, 16, 0.2),
    1px 25px 35px rgba(16, 16, 16, 0.2),
    1px 30px 60px rgba(16, 16, 16, 0.4);
  line-height: 1.2;
  animation: fadeIn 2s ease-in-out forwards;
  letter-spacing: 5px;
}

.titulo-animado span {
  display: block;
  font-size: 2rem;
  animation: fadeIn 8s ease-in-out forwards;
}

/* Estilos para dynamic state */
.dynamic-state .panel-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
  transition: all 0.3s ease;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.dynamic-state .panel-name {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-transform: uppercase;
  opacity: 0.9;
  transition: all 0.3s ease;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #ffffff, #e9ecef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dynamic-state .panel-description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 35px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Botón panel */
.panel-button {
  background: linear-gradient(45deg, #3b0a45, #5e17eb, #7b2ff7, #a855f7, #c77dff);
  background-size: 300% 300%;
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(160, 55, 255, 0.4);
  position: relative;
  overflow: hidden;
  animation: gradientShift 4s ease infinite;
  z-index: 10000;
  pointer-events: auto;
  transition: all 0.4s ease;
}

/* Ajuste específico para botones dentro de dynamic-state */
.dynamic-state .panel-button {
  margin-left: auto;
  margin-right: 65%;
  margin-top: 5%;
  margin-bottom: auto;  /* Ajusta este valor para mover más o menos a la derecha */
  display: block;
  width: fit-content;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.panel-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.panel-button:hover::before {
  left: 100%;
}

.panel-button:hover {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 12px 35px rgba(187, 55, 255, 0.6);
  background: linear-gradient(45deg, #2d0a3b, #5514d6, #8a2be2, #b26fff, #e0b3ff);
}

/* CÍRCULOS - Alineados verticalmente a la izquierda */
.circles-container {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 20;
  pointer-events: auto;
  /* border: solid red 6px; */
}

.circles-container.show {
  display: flex;
}

.circle-item {

  position: relative;
  width: 70px;
  height: 70px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 21;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-100px);
  background-size: cover;
  background-position: center;
  border-radius: 50%; /*imagen circular */
  overflow: hidden; /* recortar imagen*/

}

.circle-uts {
  background-image: url("../imagenes/iecm2.png");
}
.circle-caracteristicas {
  background-image: url("../imagenes/iecm2.png");
}
.circle-metodologia {
  background-image: url("../imagenes/iecm2.png");
}
.circle-glosario {
  background-image: url("../imagenes/iecm2.png");
}
.circle-mapa {
  background-image: url("../imagenes/iecm2.png");
}
.circle-referencias{
  background-image: url("../imagenes/iecm2.png");
}

/* Animación en cascada para los círculos */
.circles-container.show .circle-item:nth-child(1) {
  animation: slideInFromLeft 0.5s ease-out 0.1s forwards;
}

.circles-container.show .circle-item:nth-child(2) {
  animation: slideInFromLeft 0.5s ease-out 0.2s forwards;
}

.circles-container.show .circle-item:nth-child(3) {
  animation: slideInFromLeft 0.5s ease-out 0.3s forwards;
}

.circles-container.show .circle-item:nth-child(4) {
  animation: slideInFromLeft 0.5s ease-out 0.4s forwards;
}

.circles-container.show .circle-item:nth-child(5) {
  animation: slideInFromLeft 0.5s ease-out 0.5s forwards;
}

.circles-container.show .circle-item:nth-child(6) {
  animation: slideInFromLeft 0.5s ease-out 0.6s forwards;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.circle-button {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  /* border: 4px solid #4b0e7dbe; */
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  /* backdrop-filter: blur(10px); */
}

.circle-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  /* background: #4b0e7dbe; */
  border-radius: 50%;
  transition: all 0.3s ease;
}

.circle-item:hover {
  transform: scale(1.2);
}

.circle-item:hover .circle-button {
  /* background: rgba(155, 104, 212, 0.9); */
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(224, 112, 219, 0.4);
}

.circle-item:hover .circle-button::before {
  /* background: #ffffff; */
  transform: translate(-50%, -50%) scale(1.3);
}

/* Estados activos de círculos */
.circle-item.active {
  transform: scale(1.15);
}

.circle-item.active .circle-button {
  /* background: rgba(105, 24, 145, 0.9);
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(224, 112, 219, 0.4); */
  transform: scale(1.1);
}

.circle-item.active .circle-button::before {
  background: #580382;
  transform: translate(-25%, -200%) scale(.5);
}

/* Efecto de ondas */
.ripple-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(224, 112, 218, 0.209);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.circle-item:hover .ripple-effect {
  width: 140px;
  height: 140px;
  opacity: 1;
  animation: rippleWave 0.8s ease-out;
}

@keyframes rippleWave {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

/* PREVIEW TOOLTIP */
.circle-preview {
  position: absolute;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #E070DB;
  border-radius: 15px;
  padding: 20px 25px;
  min-width: 250px;
  box-shadow: 0 15px 35px rgba(224, 112, 219, 0.2);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.circle-preview.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.circle-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #E070DB;
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-name {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #E070DB, #7E2194);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* Modal de impress */
.impress-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgb(102, 8, 121); */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.impress-modal.hidden {
  display: none;
}




/**********************************************************
APARTADO DEL MENU DE ICONOS FACEBOOK,INSTAGRAM, CREDITOS
***********************************************************/
/* ===== MENU LATERAL DERECHO ===== */
.social-menu {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0);
  padding: 10px;
  border-radius: 12px 0 0 12px;
  z-index: 1000;
}

.social-menu a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-menu a.facebook { background: #3b5998; }
.social-menu a.instagram { background: #e1306c; }
.social-menu a.twitter { background: #000000; }
.social-menu a.download { background: #097280}
.social-menu a.fuentes { background-color: #9675e1;}
.social-menu a.credits { background: rgb(84, 16, 120); }

.social-menu a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* ==== TOOLTIP ==== */
.social-menu a::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 110%;
  white-space: nowrap;
  background: #222;
  color: #fff;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-50%);
  top: 50%;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-menu a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-5px);
}

@media (max-width: 768px) {
  .social-menu {
    flex-direction: row;
    /* bottom: 10px; */
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 12px;
  }
  .social-menu a::after {
    top: -35px;
    right: 50%;
    transform: translateX(50%);
  }
  .social-menu a:hover::after {
    transform: translateX(50%) translateY(-5px);
  }
  .social-menu a{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.25); /* Blanco muy transparente */
  backdrop-filter: blur(8px); /* Difuminado del fondo */
  -webkit-backdrop-filter: blur(8px); /* Compatibilidad con Safari */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
}
.hidden { display: none; }

/* Créditos en pantalla completa */
.credits-content {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgb(70, 3, 119); /*MISMO COLOR DEL BOTON*/
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  overflow-y: auto;
  z-index: 10000;
  animation: fadeIn 1s ease;
}

.credits-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
}

.credit-section {
  margin: 20px 0;
  max-width: 700px;
  text-align: center;
}

.credit-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.credit-section hr {
  border: 0;
  border-top: 1px solid #aaa;
  margin: 5px auto 15px auto;
  width: 80%;
}
.credit-section h4, .credit-section li {
  margin: 5px 0;
  font-size: 1rem;
}
.credit-section p {
  font-style: italic;
  color: #ddd;
}
.credit-section ul {
  list-style: none;
  padding: 0;
}
.credits-content button {
  margin-top: 30px;
  padding: 10px 20px;
  background: white;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.credits-content button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: #fff;
  color: #444;
  border-radius: 8px;
  cursor: pointer;
}
.credits-content button:hover {
  background: #ddd;
}







/* ===== ANIMACIONES SPINNER ORBITS ===== */
.spinner-box {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.leo {
  border-radius: 50%;
  position: absolute;
  border: 2px solid transparent;
}
.blue-orbit {
  width: 120px;
  height: 120px;
  border-top: 2px solid #3498db;
  animation: spin 2s linear infinite;
}
.green-orbit {
  width: 90px;
  height: 90px;
  border-right: 2px solid #2ecc71;
  animation: spin 3s linear infinite reverse;
}
.red-orbit {
  width: 60px;
  height: 60px;
  border-bottom: 2px solid #e74c3c;
  animation: spin 1.5s linear infinite;
}
.white-orbit {
  width: 30px;
  height: 30px;
  border-left: 2px solid #fff;
}
.w1 { animation: spin 2s linear infinite; }
.w2 { animation: spin 3s linear infinite reverse; }
.w3 { animation: spin 4s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}



/********************************************************
APARTADO DEL CONTADOR DE VISITAS
*********************************************************/
#divContador{
  display: none;
}

.contador {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px auto;
  padding: 20px;
  height: auto;
  width: 500px;
  justify-items: center;
  /* border: #10B981 solid 6px; */

}

.contador-box {
  text-align: center;
  background: rgba(255, 255, 255, 0);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.contador-box:hover {
  transform: translateY(-5px);
}

.contador-numero {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.contador-box p {
  text-transform: uppercase;
  margin-top: 8px;
  font-size: 1rem;
  color: rgb(255, 255, 255);
}



/* Parrafo cursivo */
#texto-infografia-mgpc-cursiva {

  /* font-family: "Edu NSW ACT Cursive", cursive; */
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: #f4eaff;
  padding-left: 1rem;
  font-size: 1em;
  line-height: 1.7;
  /* background: rgba(255, 255, 255, 0.05); */
  border-radius: 8px;
}


.titulos-texto-infografia-mgpc h3 {

  padding: 0.5em;
  text-align: right;
  letter-spacing: 0;
  color: #fdfdfd;
  font-weight: 100;
  font-size: 45px;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 #cecacf08,
     1px -1px 0 #aba7ad00,
    -1px  1px 0 #948f9528,
     1px  1px 0 #9594952d;
}

.titulos-texto-infografia-mgpc h4 {

  padding: 0.2em;
  text-align: right;
  letter-spacing: 0;
  color: #ffffff;
  font-weight: 200;
  font-size: 25px;
  font-style: italic;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 #00000015,
     1px -1px 0 #00000000,
    -1px  1px 0 #00000046,
     1px  1px 0 #0000005b;
}

.titulos-texto-infografia-mgpc h5{
  padding: 0.2em;
  text-align: right;
  letter-spacing: 0;
  font-size: 20px;
  color: #ffd700
}

.texto-infografia-mgpc, .texto-infografia-glosario{

  text-align: justify;
  color: #ffffff;
  /* font-weight: bold; */
  position: relative;
  z-index: 1;
  /* background: rgba(255,255,255,0.08); */
  padding: 1.8rem;
  margin: 1rem 0;
  border-radius: 12px;
  /* backdrop-filter: blur(6px); */
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
  /* box-shadow: 0 5px 15px rgba(0,0,0,0.25); */
  /* transform: translateX(100px); */
  /* transition: all 0.8s ease; */

}



.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-alert-box {
  background: #c084fc; /* Lila llamativo */
  color: white;
/*  font-family: 'Comic Sans MS', cursive, sans-serif;*/
  padding: 25px 35px;
  border-radius: 16px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.custom-alert-box h2 {
  margin-top: 0;
  font-size: 22px;
}

.custom-alert-box button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: #32215C;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.custom-alert-box button:hover {
  background: #4b2d85;
}


/* Concepto */
.concepto {
  text-align: right;
  color: #32215C;
  font-size: 60px;
  font-weight: bold;
  display: inline-block;
 text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}


/* Definición */
.definicion {
  text-align: justify;
  font-size: 45px;
  color: #ffffff;
  opacity: 1;          /* Siempre visible */
  transform: none;     /* Sin desplazamiento */
  pointer-events: auto;
  margin-top: 20px;
  padding-top: 10px;
}

/* Concepto 2 */
.concepto1 {
  text-align: right;
  color: #32215C;
  font-size: 60px;
  font-weight: bold;
  display: inline-block;
 text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}

/* Definición 2 */
.definicion1 {
  text-align: justify;
  font-size: 45px;
  color: #32215C;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  margin-top: 20px;
  padding-top: 10px;
}

.textoinfos {

  text-align: justify;
  font-size: 12px;
  color: #32215C;

}

.cita {
  position: relative;
  text-align: justify;
  font-style: italic;
  font-size: 0.8rem;
/*  line-height: 1.8;*/
  color: #2f2f2f;
  padding: 1.5rem 2rem;
  border-left: 4px solid #512077;
  border-right: 4px solid #512077;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* sombra elegante */
  background: none;
  margin: 1.5rem 0;
}

/* Comillas decorativas */
.cita::before {
  content: "“";
  font-size: 3.5rem;
  color: #512077;
  position: absolute;
  top: -15px;
  left: 15px;
  opacity: 0.9;
}

.cita::after {
  content: "”";
  font-size: 3.5rem;
  color: #512077;
  position: absolute;
  bottom: -15px;
  right: 15px;
  opacity: 0.9;
}


.tooltip {
  position: relative;
  cursor: pointer;
  color: #b0d1cb;
  font-size: 25px;
  transition: transform 0.3s ease;
}

.tooltip:hover {
  transform: scale(1.05);
  color: white; /* Color al pasar el cursor */
}


/* Mostrar tooltip encima de cada tooltip señalado */
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: slideUp 0.3s ease forwards;
}

/* Animación para el deslizamiento de la burbuja */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/*****************************************************
* Caja emergente lateral con texto de los articulos
********************************************************/
.popup-box {

  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;

}

/* boton de cierre */
.popup-close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #af0606;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close-btn:hover {
  color: rgb(219, 40, 40);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;         /* botón circular */
  background: #32215C;        /* color principal */
  color: #fff;                /* ícono blanco */
  font-size: 24px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* Animación hover */
.close-modal:hover {
  background: #4b2c7a;        /* tono más claro */
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* Estado contraído de círculos */
.circles-container.collapsed {
  gap: 0;
}

.circles-container.collapsed .circle-item {
  position: absolute;
  transform: translateX(0) scale(1);
  opacity: 1;
}

.circles-container.collapsed .circle-item:not(:first-child) {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.circles-container.collapsed:hover {
  gap: 30px;
  transform: translateY(-50%) translateX(0); /* Volver a posición original */
  transition: all 0.8s ease-out;
}

.circles-container.collapsed:hover {
  gap: 30px;
}

.circles-container.collapsed:hover .circle-item {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  transition: all 0.6s ease-out;
}
/* Transición para colapsar/expandir */
/* .circles-container.collapsed,
.circles-container.collapsed .circle-item {
  transition: all 3s ease;
} */

/* Transición más lenta para colapsar/expandir */
.circles-container.collapsed {
  transition: all 1.5s ease-in-out;
  transform: translateY(-50%) translateX(-20px); /* Desplazar a la izquierda */
}

.circles-container.collapsed .circle-item {
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.circles-container.collapsed .circle-item:nth-child(2) {
  transition-delay: 0.1s;
}
.circles-container.collapsed .circle-item:nth-child(3) {
  transition-delay: 0.2s;
}
.circles-container.collapsed .circle-item:nth-child(4) {
  transition-delay: 0.3s;
}
.circles-container.collapsed .circle-item:nth-child(5) {
  transition-delay: 0.4s;
}
.circles-container.collapsed .circle-item:nth-child(6) {
  transition-delay: 0.5s;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Responsive */
@media (max-width: 768px) {
  .titulo-sombra {
    font-size: 2em;
  }

  .hero-content-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero-image img {
    width: 100px;
  }

  .hero-text {
    max-width: 100%;
    padding: 0 1rem;
  }

  .initial-state .panel-title,
  .dynamic-state .panel-title {
    font-size: 2.5rem;
  }

  .initial-state .panel-name,
  .dynamic-state .panel-name {
    font-size: 3rem;
  }

  .initial-state .panel-description,
  .dynamic-state .panel-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .panel-button {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .panel-text {
    padding: 20px;
  }

  .circle-item {
    width: 55px;
    height: 55px;
  }

  .circles-container {
    left: 20px;
    gap: 20px;
  }

  .circle-preview {
    min-width: 200px;
    padding: 15px 20px;
  }

  .preview-title {
    font-size: 16px;
  }

  .preview-name {
    font-size: 20px;
  }
  .panel-button {
    padding: 14px 28px;
    font-size: 0.95rem;
    margin: 0 auto;  /* Centrar horizontalmente */
    display: block;   /* Necesario para que funcione margin auto */
  }

  /* También para el estado dinámico */
  .dynamic-state .panel-button {
    margin: 0 auto;
    display: block;
  }
}

/* ========== RESPONSIVE MOBILE ========== */

/* Tablets y dispositivos medianos */
@media (max-width: 1024px) {
  .hero-content-inner {
    padding: 20px;
  }

  .titulo-sombra {
    font-size: 2.5em;
    letter-spacing: 3px;
  }
}

/* Móviles grandes (max 768px) */
@media (max-width: 768px) {
  /* Panel de contenido ajustado */
  .panel-text {
    padding: 20px;
  }

  /* Estado inicial responsive */
  .initial-state .panel-title,
  .dynamic-state .panel-title {
    font-size: 2rem;
  }

  .initial-state .panel-name,
  .dynamic-state .panel-name {
    font-size: 2.5rem;
  }

  .initial-state .panel-description,
  .dynamic-state .panel-description {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  /* Hero content responsive */
  .hero-content-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 15px;
  }

  .hero-image img {
    width: 80px;
    height: auto;
  }

  .titulo-sombra {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-align: center;
  }

  .titulo-animado span {
    font-size: 1.3rem;
  }

  /* Círculos en móvil - Posición horizontal inferior */
  .circles-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    flex-direction: row;
    gap: 15px;
    z-index: 100;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
  }

  .circles-container.show {
    display: flex;
  }

  /* Círculos más pequeños en móvil */
  .circle-item {
    width: 50px;
    height: 50px;
  }

  .circle-button::before {
    width: 12px;
    height: 12px;
    top: 65%;
  }

  /* Animación horizontal para móvil */
  .circles-container.show .circle-item {
    animation: slideInFromBottom 0.5s ease-out forwards;
  }

  @keyframes slideInFromBottom {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Retrasos de animación para efecto cascada horizontal */
  .circles-container.show .circle-item:nth-child(1) { animation-delay: 0.1s; }
  .circles-container.show .circle-item:nth-child(2) { animation-delay: 0.2s; }
  .circles-container.show .circle-item:nth-child(3) { animation-delay: 0.3s; }
  .circles-container.show .circle-item:nth-child(4) { animation-delay: 0.4s; }
  .circles-container.show .circle-item:nth-child(5) { animation-delay: 0.5s; }
  .circles-container.show .circle-item:nth-child(6) { animation-delay: 0.6s; }


  /* Círculos colapsados en móvil */
  .circles-container.collapsed {
    gap: 0;
    width: 60px;
    justify-content: center;
  }

  .circles-container.collapsed .circle-item:not(:first-child) {
    position: absolute;
    opacity: 0;
    transform: scale(0);
  }

  /* Preview tooltip en móvil */
  .circle-preview {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 90%;
    padding: 12px 16px;
  }

  .circle-preview.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .circle-preview::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #E070DB;
  }

  .preview-title {
    font-size: 14px;
  }

  .preview-name {
    font-size: 16px;
  }

  /* Botón panel móvil */
  .panel-button {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Modal Impress responsive */
  #impress-steps {
    width: 100vw;
    height: 50vh;
  }

  .step {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .step p {
    font-size: 16px;
  }
}

/* Móviles pequeños (max 480px) */
@media (max-width: 480px) {
  /* Textos aún más pequeños */
  .initial-state .panel-title,
  .dynamic-state .panel-title {
    font-size: 1.5rem;
  }

  .initial-state .panel-name,
  .dynamic-state .panel-name {
    font-size: 2rem;
  }

  .initial-state .panel-description,
  .dynamic-state .panel-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .titulo-sombra {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .titulo-animado span {
    font-size: 1.1rem;
  }

  .hero-image img {
    width: 60px;
  }

  /* Círculos aún más pequeños */
  .circle-item {
    width: 45px;
    height: 45px;
  }

  .circles-container {
    gap: 10px;
    padding: 8px;
  }

  /* Preview más compacto */
  .circle-preview {
    min-width: 180px;
    padding: 10px 14px;
  }

  .preview-title {
    font-size: 12px;
  }

  .preview-name {
    font-size: 14px;
  }

  /* Botón más pequeño */
  .panel-button {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}

/* Orientación horizontal (landscape) */
@media (max-height: 600px) and (orientation: landscape) {
  .panel-text {
    padding: 10px 20px;
  }

  .initial-state .panel-title,
  .dynamic-state .panel-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .initial-state .panel-name,
  .dynamic-state .panel-name {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .initial-state .panel-description,
  .dynamic-state .panel-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .hero-content-inner {
    flex-direction: row;
    gap: 2rem;
  }

  .hero-image img {
    width: 60px;
  }

  .titulo-sombra {
    font-size: 1.5rem;
  }

  .circles-container {
    bottom: 10px;
  }

  .circle-item {
    width: 40px;
    height: 40px;
  }
}

/* Fix para el ripple effect en móvil */
@media (max-width: 768px) {
  .circle-item:hover .ripple-effect {
    width: 80px;
    height: 80px;
  }

  @keyframes rippleWave {
    0% {
      width: 0;
      height: 0;
      opacity: 0.8;
    }
    100% {
      width: 80px;
      height: 80px;
      opacity: 0;
    }
  }
}

/* Optimización de rendimiento */
.panel-background,
.circle-item,
.circle-button {
    will-change: transform, opacity;
}

/* Desactivar efectos pesados en móviles lentos */
@media (max-width: 768px) {
  .panel-background {
    filter: none; /* Quitar blur si afecta rendimiento */
  }

  * {
    animation-duration: 1s !important; /* Animaciones más rápidas */
  }
}

/* Mejorar touch en móviles */
@media (pointer: coarse) {
  .circle-item {
    min-width: 44px;
    min-height: 44px; /* Tamaño mínimo recomendado para touch */
  }

  .panel-button {
    min-height: 44px;
  }

  /* Eliminar hover en dispositivos táctiles */
  .circle-item:hover {
    transform: none;
  }
}


/***********************************************************************************************************************************************
                                                    APARTADO DEL MAPA
*************************************************************************************************************************************************/
/* Contenedor del mapa fullscreen */
.mapa-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    background: white;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mapa-fullscreen.hidden {
    display: none;
}

.mapa-fullscreen.showing {
    animation: slideInMap 0.5s ease-out;
}

@keyframes slideInMap {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mapa {
    flex: 1;
    width: 100%;
    height: calc(100% - 50px);
}

.btn-cerrar-mapa {
    position: absolute;
    top: 10px;
    right: 200px;
    z-index: 3001;
    background: white;
    border: 2px solid #520c8b;
    color: #520c8b;
    padding: 7px 10px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-cerrar-mapa:hover {
    background: #520c8b;
    color: white;
    transform: scale(1.05);
}

/* Asegurar que el modal del mapa esté sobre todo */
.modal-overlay-mapa {
    z-index: 3002 !important;
}
/***********************************************************************************************************************************************
                                                    MAPA RESPONSIVE
*************************************************************************************************************************************************/

/* Tablets y pantallas medianas (hasta 768px) */
@media (max-width: 768px) {
    /* Ajuste del botón cerrar mapa */
    .btn-cerrar-mapa {
        top: 10px;
        right: 10px; /* Mover a la derecha en móvil */
        padding: 6px 12px;
        font-size: 10px;
    }
    
    /* Ajuste del contenedor del mapa */
    #mapa {
        height: calc(100% - 60px); /* Más espacio para controles */
    }
}


/* Responsive para historial de selección en el mapa */
@media (max-width: 768px) {
    /* Ajustar contenedor del historial */
    #historial-seleccion {
        bottom: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        gap: 6px !important;
    }
    
    /* Reducir tamaño de chips del historial */
    #historial-seleccion > div {
        font-size: 10px !important;
        padding: 2px 14px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        min-height: 18px !important;
        letter-spacing: 0.3px !important;
    }
}

@media (max-width: 768px) {

    /* CONTENEDOR PRINCIPAL (nuevo) */
    #Contenedor-com {
        width: 260px !important;
        max-width: 260px !important;
        gap: 5px !important;
    }

    /* CONTENEDOR GENERAL */
    #contenedor-buscador {
        width: 100% !important;
        /* padding: 2px !important; */
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* TÍTULO PRINCIPAL */
    #informacion-poligonos {
        font-size: 10px !important;
        padding: 3px 4px !important;
        border-radius: 5px !important;
        min-height: 20px !important;
        line-height: 20px !important;
        text-wrap: pretty;
        min-width: 260px !important;
        white-space: nowrap !important;
    }

    /* BOTÓN "?" DE INFO */
    #boton-info {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        line-height: 18px !important;
        padding: 0 !important;
        margin-left: 3px !important;
    }

    /* INPUT DE BÚSQUEDA */
    #buscador {
        width: 260px !important;
        height: 26px !important;
        font-size: 10px !important;
        padding: 3px 5px !important;
        border-radius: 4px 4px 0px 0px !important;
        box-sizing: border-box !important;
    }

    #notainfo {
        width: 260px !important;
        height: 30px !important;
        font-size: 8px !important;
        padding: 3px 5px !important;
        border-radius: 0px 0px 4px 4px !important;
        box-sizing: border-box !important;
    }

    /* CONTENEDOR DEL DROPDOWN */
    #contenedor-dropdown {
        font-size: 10px !important;
        padding: 2px !important;
    }

    /* LISTA DESPLEGABLE */
    #contenedor-dropdown select {
        font-size: 10px !important;
        height: 26px !important;
        padding: 2px 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* BOTÓN DE REGRESAR */
    #btnRegresar {
        height: 20px !important;
        font-size: 10px !important;
        padding: 0 8px !important;
        border-radius: 4px !important;
    }

    /* TEXTO DESCRIPTIVO */
    .texto-infografia-glosario {
        font-size: 10px !important;
        line-height: 13px !important;
        padding: 3px !important;
        text-wrap: pretty;
    }

    /* SUBTÍTULO */
    #titulo-secundario {
        font-size: 11px !important;
        padding: 4px !important;
        border-radius: 5px !important;
        text-wrap: pretty;
    }
}


/* ========== CONTENEDOR PRINCIPAL DEL MAPA ========== */

@media (max-width: 768px) {
  #mapa-container {
      padding: 0 !important;
  }
  
  #mapa {
      height: 100vh !important;
      width: 100% !important;
  }
  
  /* Ajustar controles nativos de Google Maps */
  .gm-control-active {
      display: none !important;
  }
  
  .gm-bundled-control {
      margin: 5px !important;
  }

  /* Contenedor del dropdown */
  .gm-style .gm-style-mtc {
      position: absolute !important;
      top: 40px !important;
      right: 0px !important;
      z-index: 1000 !important;

      width: auto !important;
      /* min-width: 110px !important; */

      background: white !important;
      border-radius: 8px !important;
      box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 6px !important;
      padding: 0 !important;
  }

  /* Botón principal */
  .gm-style .gm-style-mtc > button {
      width: 80px !important;
      height: 30px !important;
      background: white !important;
      border-radius: 8px !important;
      font-size: 13px !important;

      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;

      border: none !important;
      cursor: pointer !important;
      padding: 11px 18px !important;;
  }

  /* Flecha */
  .gm-style .gm-style-mtc > button::after {
      /* content: '▼'; */
      font-size: 10px;
  }

  /* Dropdown (Google controla display) */
  .gm-style .gm-style-mtc ul {
      position: absolute !important;
      top: 40px !important;
      right: 0 !important;
      width: 80px !important;

      background: white !important;
      border-radius: 8px !important;
      box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 6px !important;

      list-style: none !important;
      padding: 4px 0 !important;
      margin: 0 !important;
  }

  /* Items */
  .gm-style .gm-style-mtc li {
      padding: 10px 12px !important;
      font-size: 13px !important;
      cursor: pointer !important;
  }

  .gm-style .gm-style-mtc li:hover {
      background-color: #f5f5f5 !important;
  }


    
}

/* Tambien quitamos del principal los botones de apmliar y herramentas de rotacion de google maps */
.gm-control-active {
    display: none !important;
}

/* Quitar el recuadro blanco que aparece al cambiar a Satélite */
.gmnoprint div[style*="background-color: rgb(255, 255, 255)"] {
    display: none !important;
}



/***********************************************************************************************************************************************
                                                    MODAL DE BIENVENIDA PARA MAPA
*************************************************************************************************************************************************/


.mapas {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Overlay de fondo - solo dentro del div mapas */
.modal-overlay-mapa {
    position: fixed; /* ← obligatorio */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;              /* ← importante */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* Contenedor principal del modal - ajustado para el div mapas */
.welcome-modal-mapa {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(186, 56, 191, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 85%;
    overflow-y: auto;
    position: relative;
    animation: slideInModal 0.6s ease-out;
    margin: 20px;
}

/* Header del modal con gradiente animado */
.modal-header-mapa {
    position: relative;
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.modal-header-mapa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg,
        #E070DB,
        #D769D4,
        #CD54CD,
        #C44AC6,
        #BA38BF,
        #A530B1,
        #9129A2,
        #7E2194,
        #6B1985
    );
    background-size: 800% 800%;
    animation: gradientMove 10s ease infinite;
    z-index: 0;
    border-radius: 20px 20px 0 0;
    opacity: 0.95;
}

.modal-header-mapa > * {
    position: relative;
    z-index: 2;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modal-title-mapa {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-subtitle-mapa {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Contenido del modal */
.modal-content-mapa {
    padding: 40px;
}

.intro-text-mapa {
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

.methods-container-mapa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Tarjetas de métodos */
.method-card-mapa {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(224, 112, 219, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.method-card-mapa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E070DB, #BA38BF, #7E2194);
}

.method-card-mapa:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(224, 112, 219, 0.2);
    border-color: #E070DB;
}
.method-icon-mapa.uno {
    padding-bottom: 12px;
}

.method-icon-mapa {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(224, 112, 219, 0.7), rgba(145, 41, 162, 0.7));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 40px;
}

.method-title-mapa {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 15px;
}

.method-description-mapa {
    font-size: 14px;
    line-height: 1.6;
    color: #6B7280;
    margin-bottom: 20px;
}

.method-steps-mapa {
    list-style: none;
    padding: 0;
}

.method-steps-mapa li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4B5563;
}

.method-steps-mapa li::before {
    content: '→';
    color: #E070DB;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}

/* Sección de beneficios */
.benefits-section-mapa {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.benefits-title-mapa {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 15px;
    text-align: center;
}

.benefits-list-mapa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.benefits-list-mapa li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4B5563;
}

.benefits-list-mapa li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

/* Botón de entendido */
.action-button-mapa {
    width: 100%;
    background: linear-gradient(135deg, #E070DB 0%, #9129A2 50%, #6B1985 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 112, 219, 0.3);
    letter-spacing: 0.5px;
}

.action-button-mapa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 112, 219, 0.4);
    background: linear-gradient(135deg, #D769D4 0%, #7E2194 50%, #6B1985 100%);
}

.action-button-mapa:active {
    transform: translateY(0);
}

/* Efecto de close button */
.close-btn-mapa {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn-mapa:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Animaciones */
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive - ajustado para contenedor del mapa */
@media (max-width: 768px) {
    .welcome-modal-mapa {
        width: 95%;
        max-height: 90%;
        margin: 10px;
    }

    .modal-content-mapa {
        padding: 20px;
    }

    .methods-container-mapa {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-list-mapa {
        grid-template-columns: 1fr;
    }

    .modal-title-mapa {
        font-size: 22px;
    }

    .intro-text-mapa {
        font-size: 15px;
    }

    .method-title-mapa {
        font-size: 18px;
    }
}


/***********************************************************************************************************************************************
                                                    VISTA DE LA NOTA METODOLOGICA
*************************************************************************************************************************************************/
.cobertura{
  
  height: auto;
  width: 60%;
  margin: auto;
  /* border: solid red 5px; */
  background: linear-gradient(135deg, #875ba7, #66468b);
  border-radius: 20px;


}
.nota-metodologica {

  background: linear-gradient(180deg, #f2f3f400);

  padding: 1rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.8;
  color: #1a1a1a;

  max-height: 100vh;
  max-width: 95%;
  overflow-y: auto;
  border-radius: 20px;


}

/* ===== Scroll transparente y minimal ===== */
.nota-metodologica::-webkit-scrollbar {
  width: 8px; /* delgado */
}

.nota-metodologica::-webkit-scrollbar-track {
  background: transparent; /* sin fondo */
}

.nota-metodologica::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.883); /* color oscuro pero con transparencia */
  border-radius: 4px;
}

.nota-metodologica::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.958); /* se hace un poco mas visible al pasar el mouse */
}

/* Firefox */
.nota-metodologica {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.3) transparent;
}


@media (max-width: 768px) {
  
  .nota-metodologica {
    max-height: 100vh;
    max-width: 100%;
    padding: 0.5rem;
  }

  /* Ajustar cobertura */
  .cobertura {
    width: 95%;
    padding: 1rem;
  }

  /* Título principal */
  .nine h1 {
    font-size: 1.5rem;
  }

  .nine h1 span {
    font-size: 0.9rem;
  }

  /* Presentación */
  .presentacion {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Secciones derecha */
  .derecha {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .derecha h2 {
    font-size: 1rem !important;
  }

  .derecha img {
    max-width: 200px !important;
    border-radius: 10px !important;
  }

  .derecha .text {
    font-size: 0.95rem;
  }

  /* Secciones top */
  .top {
    margin: 2rem 0 !important;
  }

  .top h2 {
    font-size: 1rem !important;
  }

  .top img {
    width: 100%;
    max-width: 400px;
  }

  /* Listas personalizadas */
  .custom-list li {
    font-size: 0.8rem !important;
    line-height: 1.2rem !important;      /* Mejor separación */
  }

  .custom-list a {
    white-space: normal !important;  /* PERMITE QUE EL TEXTO SE ROMPA */
    word-wrap: break-word;           /* Rompe palabra larga si es necesario */
    overflow-wrap: break-word;       /* Compatibilidad moderna */
    text-align: left;                /* Mejor lectura en móvil */
    display: block;
    width: 100%;                     /* Evita desbordes */
    margin-top: 0.3rem;
  }


  /* .text p.fuera-lugar {
    max-width: 30vh !important;
    margin-left: 105px !important;
  } */

  .text {
    width: 100% !important;
    overflow-x: hidden !important;
  }

   /* Contenedor que envuelve tablas */
  .tabla-morada-wrapper,
  .tabla-morada-matriz-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 1rem !important;
  }

  /* Propiedades generales de las tablas */
  .tabla-morada,
  .tabla-morada-matriz {
    width: 100% !important;
    min-width: 20px !important; /* Asegura legibilidad */
    border-collapse: collapse !important;
    font-size: 0.75rem !important;
    display: block !important;
    overflow-x: auto !important;
  }

  /* Encabezados más legibles */
  .tabla-morada thead th,
  .tabla-morada-matriz thead td {
    font-size: 0.85rem !important;
    text-align: center !important;
    padding: 10px 5px !important;
    white-space: nowrap !important;
  }

  /* Celdas ajustadas */
  .tabla-morada td,
  .tabla-morada th,
  .tabla-morada-matriz td,
  .tabla-morada-matriz th {
    padding: 8px 6px !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  /* Celdas descriptivas largas */
  .tabla-morada td[colspan="2"] {
    text-align: justify !important;
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }

  /* Mantiene centro del título */
  .tabla-morada thead th[colspan="2"] {
    font-size: 0.95rem !important;
  }

  /* Ajustar contenedor de la infografía */
  .container-infografia {
    padding: 0.5rem !important;
    margin-top: -30px !important;
  }

  .infografia h2{
    font-size: 1.3rem !important;
  }

  .infografia {
    padding: 0px !important;
  }

  .infografia .contenedor-texto {
    padding: 1rem !important;
  }

  .tabla-indicadores h4{
    font-size: 0.8rem !important;
  }

  .infografia blockquote {
    padding: 0px !important;
    font-size: 0.9rem !important;
  }

  /* Tabla indicadores  */
  .tabla-indicadores {
    width: 100% !important;
    padding: 0 0.5rem !important;
  }

  /* Wrapper para scroll horizontal */
  .tabla-indicadores-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 1rem !important;
  }

  /* La tabla en sí */
  .titulos-tabla {
    width: 100% !important;
    min-width: 20px !important;       /* Se ve bien en móvil */
    border-collapse: collapse !important;
    display: block !important;
    overflow-x: auto !important;
    font-size: 0.78rem !important;
  }

  /* Título */
  .tabla-indicadores h4 {
    font-size: 1rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem !important;
    line-height: 1.2 !important;
  }

  /* Encabezados */
  .titulos-tabla thead th,
  .titulos-tabla .titulo-celda {
    background-color: #f3f3f3 !important;
    text-align: center !important;
    padding: 10px 5px !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
  }

  /* Celdas generales */
  .titulos-tabla td,
  .titulos-tabla th {
    padding: 8px 6px !important;
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    text-align: left !important;
    word-break: break-word !important;
    vertical-align: top !important;
  }

  /* Celdas muy amplias (como definiciones largas) */
  .titulos-tabla td:nth-child(3),
  .titulos-tabla td:nth-child(4) {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    padding: 10px 6px !important;
  }

  /* Evita que el rowspan se desacomode */
  .titulos-tabla td[rowspan] {
    text-align: center !important;
    vertical-align: middle !important;
    font-weight: bold !important;
    background-color: #fafafa !important;
  }

  /* Ajuste de bloques internos (los div-imagen que incluyen títulos y parrafos) */
  .div-imagen h3 {
    font-size: 0.82rem !important;
    margin-bottom: 0.3rem !important;
  }

  .div-imagen p {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }
}




/* ====== TITULO PRINCIPAL ====== */
.nine h1 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 2px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.nine h1::after {
  content: "";
  display: block;
  height: 4px;
  width: 80px;
  background: #582e80;
  margin: 0.5rem auto;
  border-radius: 2px;
}
.nine h1 span {
  font-size: 1rem;
  font-weight: 400;
  display: block;
  color: #ffffff;
  margin-top: 0.3rem;
}

/* ====== PRESENTACION ====== */
.presentacion {
 
  width: 100%;
  /* background: linear-gradient(135deg, #875ba7, #66468b); */
  padding: 1rem 2rem;
  margin: 0px auto;
  max-width: 900px;
  border-radius: 16px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); */
  font-size: 1.2rem;
  text-align: justify;
  /* border-left: 8px solid #582e80; */
}

.presentacion p{
  color: #fff;
}

.presentacion strong{

  color: #ffffff;

}

header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: rgb(0, 0, 0);
}

.container-infografia {
  /* border: solid red 10px; */
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}

.derecha {

  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0px auto;
  /* transform: translateX(100px); */
  /* transition: all 0.8s ease-out; */
  /* background: linear-gradient(135deg, #875ba7, #66468b); */
  /* border-radius: 50px; */
  padding: 10px;
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.2); */
  overflow: hidden;

}

.derecha::before,
.derecha::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.1; /* que no opaque el texto */
  z-index: 0;
}

.derecha::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%); /* lo centra */
  background: url("../imagenes/iecm-paloma.png") no-repeat center;
  background-size: contain;
  opacity: 0.2;   /* para que no tape el contenido */
  z-index: 0;     /* queda detras */
}

/* contenido encima de los círculos */
.derecha .text,
.derecha img {
  /* border: solid red 9px; */
  /* position: absolute; */
  z-index: 1;
}

.derecha h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}


.derecha img {
  width: 300px;
  border-radius: 10px;
}

.derecha .text {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.8;
  flex: 1;
}

.text p{
  text-align: justify;
  margin-bottom: 1.5rem;
  text-align: justify;
}


.text p li{

  margin-top: 200px;
  margin-bottom: 200px;

}

.custom-list {
  list-style: none;
  margin: 1rem 0;
  padding-left: 0;
}

.custom-list li {
  text-align: justify;
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 5px solid #ffffff;
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.custom-list a {
  text-align: center;
  display: block;
  margin-top: 0.5rem;
  color: #b0d1cb;
  text-decoration: none;
  font-weight: bold;
}

.text p a{
  text-align: center;
    display: block;
  margin-top: 0.5rem;
  color: #b0d1cb;
  text-decoration: none;
  font-weight: bold;
}

.custom-list a:hover {
  text-decoration: underline;
}


.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin: 3rem 0;
  background: linear-gradient(135deg, #875ba7, #66468b);
  color: #ffffff;
}

.top h2{
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.top img {
  width: 500px;
  max-width: 100%;
  border-radius: 10px;
}





/**************************************** EFECTO DE CARGA DE IZQUIERDA A DERECHA CON EL SCROLL *****************************************/


/* ============================================
   ANIMACIONES DE SCROLL IZQUIERDA/DERECHA
   ============================================ */

/* .derecha,
.top {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}


.derecha:nth-child(odd) {
  transform: translateX(-100px);
}


.derecha:nth-child(even) {
  transform: translateX(100px);
}


.top {
  transform: translateY(80px) scale(0.95);
} */


.derecha.visible,
.top.visible {
  opacity: 1;
  /* transform: translateX(0) translateY(0) scale(1); */
}


/* .derecha.visible:hover,
.top.visible:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(79, 19, 142, 0.2);
} */

/* ============================================
   ANIMACIONES DE LISTAS DENTRO DE SECCIONES
   ============================================ */

/* .custom-list li {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.5s ease;
}


.derecha.visible .custom-list li,
.top.visible .custom-list li {
  animation: slideInFromLeft 0.6s ease forwards;
} */

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Delays escalonados para items de lista
.derecha.visible .custom-list li:nth-child(1),
.top.visible .custom-list li:nth-child(1) { animation-delay: 0.1s; }

.derecha.visible .custom-list li:nth-child(2),
.top.visible .custom-list li:nth-child(2) { animation-delay: 0.2s; }

.derecha.visible .custom-list li:nth-child(3),
.top.visible .custom-list li:nth-child(3) { animation-delay: 0.3s; }

.derecha.visible .custom-list li:nth-child(4),
.top.visible .custom-list li:nth-child(4) { animation-delay: 0.4s; }

.derecha.visible .custom-list li:nth-child(5),
.top.visible .custom-list li:nth-child(5) { animation-delay: 0.5s; }

.derecha.visible .custom-list li:nth-child(6),
.top.visible .custom-list li:nth-child(6) { animation-delay: 0.6s; } */



/* ============================================
   ANIMACIONES DE IMAGENES
   ============================================ */
/* 
.derecha img,
.top img {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.derecha.visible img,
.top.visible img {
  opacity: 1;
  transform: scale(1);
  animation: fadeInScale 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Hover en imagenes */
/* .derecha.visible img:hover,
.top.visible img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 25px 70px rgba(79, 19, 142, 0.25);
} */

/* ============================================
   ANIMACIONES DE TITULOS H2
   ============================================ */

/* .derecha h2,
.top h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
} */

/* .derecha.visible h2,
.top.visible h2 {
  opacity: 1;
  transform: translateY(0);
  animation: slideInTitle 0.7s ease forwards;
} */

/* @keyframes slideInTitle {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}  */

/* ============================================
   ANIMACIONES DE PARRAFOS
   ============================================ */

/* .clasificacion-supervisada{

  background-color: #5f3e87d9;

}

.derecha.visible .text p,
.top.visible .text p {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.derecha.visible .text p:nth-of-type(1) { animation-delay: 0.2s; }
.derecha.visible .text p:nth-of-type(2) { animation-delay: 0.3s; }
.derecha.visible .text p:nth-of-type(3) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* ============================================
   ANIMACIONES DE TABLAS
   ============================================ */
/* === Primera tabla === */
.tabla-morada {
  width: 100%;
  border-collapse: collapse;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  margin: 2rem 0;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.2);
  background: #fff;
  margin-top: 2rem;
}

/* Encabezados principales */
.tabla-morada thead th {
  background: linear-gradient(135deg, #9c63c5, #c0a7de);
  color: rgb(255, 255, 255);
  padding: 14px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filas */
.tabla-morada tbody tr:nth-child(odd) {
  background-color: #f8f5ff;
}
.tabla-morada tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* Celdas */
.tabla-morada th,
.tabla-morada td {
  padding: 12px;
  border: 1px solid #e2d4f5;
  /* transition: all 0.3s ease; */
  color: #000000;
}

/* Hover efecto */
.tabla-morada tbody tr:hover {
  background-color: #ede9fe;
  /* transform: scale(1.01); */

}

/* Subtítulos */
.tabla-morada tbody th {
  background: #f3e8ff;
  color: #4a148c;
  font-weight: 600;
  text-transform: uppercase;
  transition: none;

}

/* Negritas importantes */
.tabla-morada tbody td b {
  color: #6a0dad;
}


/* === Segunda tabla: Matriz de confusión === */
.tabla-morada-matriz {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(106, 13, 173, 0.25);
  background: #fff;
  transition: none;

}

/* Celdas base */
.tabla-morada-matriz td,
.tabla-morada-matriz th {
  border: 1px solid #dcc8eb;
  padding: 12px;
  transition: none;
  color: #000000;
}

/* Primera fila */
.tabla-morada-matriz thead tr:first-child td {
  background: linear-gradient(135deg, #653d88, #c084fc);
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  transition: none;
}

/* Etiquetas laterales */
.tabla-morada-matriz tbody td:first-child {
  color:rgb(0, 0, 0);
  background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  font-weight: 600;
  color: #4a148c;
  text-transform: uppercase;
  transition: none;
}

/* Hover en celdas */
.tabla-morada-matriz tbody td:hover {
  background: #f3e8ff;
  transform: scale(1.05);
  font-weight: bold;
  color: #5b21b6;
  box-shadow: inset 0 0 8px rgba(106, 13, 173, 0.2);
}



/* ============================================
   EFECTO STAGGER PARA FILAS DE TABLA
   ============================================ */

.top.visible table tbody tr {
  /* animation: rowSlideIn 0.5s ease forwards; */
  animation: rowSlideIn 0s ease forwards;
  opacity: 0;
}
/* 
.top.visible table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.top.visible table tbody tr:nth-child(2) { animation-delay: 0.15s; }
.top.visible table tbody tr:nth-child(3) { animation-delay: 0.2s; }
.top.visible table tbody tr:nth-child(4) { animation-delay: 0.25s; }
.top.visible table tbody tr:nth-child(5) { animation-delay: 0.3s; } */

@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   OPTIMIZAR EL RENDIMIENTO
   ============================================ */

.derecha,
.top {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.derecha.visible,
.top.visible {
  will-change: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  /* En móvil, todas vienen desde abajo */
  .derecha:nth-child(odd),
  .derecha:nth-child(even) {
    transform: translateY(50px);
  }

  .derecha.visible:hover,
  .top.visible:hover {
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   INDICADOR VISUAL DE SCROLL
   ============================================ */

.scroll-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.scroll-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(79, 19, 142, 0.3);
  transition: all 0.3s ease;
}

.scroll-indicator .dot.active {
  background: #4f138e;
  transform: scale(1.5);
}






.celda-dividida {
  position: relative;
  width: auto;
  height: 120px;
  border: none;
  overflow: hidden;
}

/* Linea diagonal */
.celda-dividida::before {

  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom left, /* se dibuja de la esquina superior izquierda a la inferior derecha*/
    transparent 49.5%,
    rgb(255, 255, 255) 50%,   /* linea negra */
    transparent 50.5%
  );
  pointer-events: none;

}

/* Texto  superior izquierda */
.parte-superior {
  position: relative;
  top: 5px;
  left:-20px;
  font-size: 14px;
  font-weight: bold;
  text-align: right;
}

/* Texto inferior derecha */
.parte-inferior {
  position: relative;
  bottom: 5px;
  top: 25px;
  right: 0;
  left: 20px;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
}


#infographic .circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 7px double;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: absolute;
  left: 50%;
  margin: 40px 0;
}
#infographic section:nth-child(odd) .circle {
  transform: translateX(-100%);
}

#infographic article {
  max-width: 410px;
  margin-bottom: 20px;
  cursor: pointer;
  left: 50%;
  position: relative;
}
#infographic article header {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
#infographic article header i {
  display: flex;
  font-size: 2em;
  border-radius: 50%;
  background-clip: padding-box;
  padding: 14px;
  transition: transform 0.4s;
  color: #fff;
  border: 16px solid var(--bs-dark);
  margin: -16px 0 -16px -20px;
}
#infographic article:hover header i {
  transform: scale(1.2);
}
#infographic article.active header i {
  transform: none;
}

#infographic article .body {
  background: var(--bgColor);
  padding: 0 20px;
  border-bottom-right-radius: 30px;
  border-bottom-left-radius: 30px;
  max-height: 0;
  transition: max-height 0.5s, padding 0.5s;
  overflow: hidden;
}
#infographic article .body .btn {
  padding: 3px 10px;
  text-transform: uppercase;
}
#infographic :nth-child(even) article {
  text-align: right;
  transform: translateX(-100%);
}
#infographic :nth-child(even) article header {
  flex-flow: row-reverse;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}
#infographic :nth-child(even) article header i {
  margin: -16px -20px -16px 0;
}

#infographic section:nth-child(odd) article.active header {
  border-bottom-right-radius: 0;
}
#infographic section:nth-child(even) article.active header {
  border-bottom-left-radius: 0;
}

#infographic article.active .body {
  padding: 20px;
  max-height: 300px;
  border: 1px solid;
}





/* ==== EFECTO DE APARICIÓN AL SCROLL ==== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}




/*====boton para cerrar ====*/
.titulo-boton {
  display: flex;
  justify-content: end;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Título más pequeño dentro del contenedor */
.titulo-boton h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: #1f2937;
}

/* Botón de cierre */
.titulo-boton .close-modal-notaMetodologica {

  background: #32215C;
  color: white;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  /* border: solid red 6px; */

}

.titulo-boton .close-modal-notaMetodologica:hover {
  background: #32215C;
  transform: scale(1.1);
}


/* ====== ELEMENTOS DESTACADOS ====== */
.link-box a {
  display: inline-block;
  background: #e0f2fe;
  padding: 6px 10px;
  margin: 6px 4px 0 0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0369a1;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.link-box a:hover {
  background: #bae6fd;
  transform: scale(1.05);
}

.highlight-box {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 6px solid #facc15;
}

.formula-box {
  background: #ecfdf5;
  border: 2px dashed #10b981;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 12px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
}

/* ====== TABLA ====== */
.tabla-indicadores {
  background: #ffffff;
  padding: 1.5rem;
  margin: 2rem auto;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-width: 95%;
}

.tabla-indicadores h4 {
  font-size: 1.4rem;
  color: #1f2937;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.titulos-tabla {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
}

.titulos-tabla th {
  background: linear-gradient(135deg, #853cc9e2, #6e1c8cb2);
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px;
  text-align: center;
  border: none;
}

.titulos-tabla td {
  background: #f9fafb;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: justify;
}

.titulos-tabla tr:nth-child(even) td {
  background: #f3f4f6;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .ol-cards > li {
    grid-template-columns: 70px 1fr;
    padding: 1rem;
  }
  .ol-cards .title {
    font-size: 1.3rem;
  }
  .presentacion {
    font-size: 1rem;
  }
  .titulos-tabla th,
  .titulos-tabla td {
    font-size: 0.85rem;
  }
}

.infografia {
  background: linear-gradient(135deg, #875ba7, #66468b);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Efecto decorativo con círculos flotantes */
.infografia::before,
.infografia::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}
.infografia::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
}
.infografia::after {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -100px;
}

/* Contenido central */
.infografia .contenedor-texto {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.08);
  padding: 2rem;
  border-radius: 12px;
  /* backdrop-filter: blur(6px); */
  /* animation: fadeInUp 1s ease-in-out; */
}

.infografia h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.infografia p {
  margin: 1rem 0;
  line-height: 1.6;
  font-size: 1rem;
  text-align: justify;
}

/* Resaltado de palabras */
.infografia .resaltado {
  color: #ffffff;
  font-weight: bold;
}

.infografia .numero {
  background: #ffffff00;
  color: #ffffff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
}

.infografia blockquote {
  background: rgba(255,255,255,0.15);
  border-left: 4px solid #ffffff;
  padding: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 8px;
  color: #fff8dc;
}

.integracion_blockquote {
  background: rgba(255,255,255,0.15);
  border-left: 4px solid #ffffff;
  padding: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 8px;
  color: #fff8dc;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto hover en párrafos */
/* .infografia p:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
} */
/* 
.infografia p,
.infografia blockquote {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.infografia p.visible,
.infografia blockquote.visible {
  opacity: 1;
  transform: translateY(0);
} */



/* ********************************************************
                          SPINNER
***********************************************************/

/* Fondo morado para overlay */
/* .overlay1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(166, 34, 206, 0.767);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
} */

.overlay1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.25); /* Blanco muy transparente */
  backdrop-filter: blur(8px); /* Difuminado del fondo */
  -webkit-backdrop-filter: blur(8px); /* Compatibilidad con Safari */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


.hidden {
  display: none !important;
}



@keyframes spin {
  from {
    transform: rotate(0);
  }
  to{
    transform: rotate(359deg);
  }
}

@keyframes spin3D {
  from {
    transform: rotate3d(.5,.5,.5, 360deg);
  }
  to{
    transform: rotate3d(0deg);
  }
}

@keyframes configure-clockwise {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes configure-xclockwise {
  0% {
    transform: rotate(45deg);
  }
  25% {
    transform: rotate(-45deg);
  }
  50% {
    transform: rotate(-135deg);
  }
  75% {
    transform: rotate(-225deg);
  }
  100% {
    transform: rotate(-315deg);
  }
}

@keyframes pulse {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: .25;
    transform: scale(.75);
  }
}

/* GRID STYLING */
.spinner-box {
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}

/* SOLAR SYSTEM */
.solar-system {
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 10px solid #fafbfC;
	border-radius: 50%;
}

.earth-orbit {
	width: 165px;
	height: 165px;
  -webkit-animation: spin 12s linear 0s infinite;
}

.venus-orbit {
	width: 120px;
	height: 120px;
  -webkit-animation: spin 7.4s linear 0s infinite;
}

.mercury-orbit {
	width: 90px;
	height: 90px;
  -webkit-animation: spin 3s linear 0s infinite;
}

.planet {
	position: absolute;
	top: -5px;
  width: 100px;
  height: 10px;
	border-radius: 50%;
  background-color: #ff0000;
}

.sun {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-color: #047100;
}

.leo {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}

.blue-orbit {
	width: 165px;
	height: 165px;
  border: 3px solid #0172aa;
  -webkit-animation: spin3D 3s linear .2s infinite;
}

.green-orbit {
	width: 120px;
	height: 120px;
  border: 3px solid #009f42;
  -webkit-animation: spin3D 2s linear 0s infinite;
}

.red-orbit {
	width: 90px;
	height: 90px;
  border: 3px solid #ffca91a5;
  -webkit-animation: spin3D 3s linear 0s infinite;
}

.white-orbit {
	width: 60px;
	height: 60px;
  border: 3px solid #ffffff;
  -webkit-animation: spin3D 8s linear 0s infinite;
}

.w1 {
  transform: rotate3D(1, 1, 1, 90deg);
}

.w2 {
  transform: rotate3D(1, 2, .5, 90deg);
}

.w3 {
  transform: rotate3D(.5, 1, 2, 90deg);
}

.three-quarter-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #fb5b53;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin .5s linear 0s infinite;
}
/************************************************************************
                        BOTON DE DESCARGA
************************************************************************/
#descargas-demarcacion {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  color: #333;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 15px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  cursor: pointer;
  background: #f3f3f3;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: #e5e5e5;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-descargar, .btn-cerrar {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-descargar {
  background: #4c1476;
  color: white;
}

.btn-cerrar {
  background: #999;
  color: white;
}


/*************************************************************************
  ESTILOS DE LOS TEXTOS DE LAS PRESENTACIONES DE LOS TOOLTIPS
**************************************************************************/
.cita {
  position: relative;
  text-align: justify;
  font-style: italic;
  font-size: 0.8rem;
/*  line-height: 1.8;*/
  color: #2f2f2f;
  padding: 1.5rem 2rem;
  border-left: 4px solid #512077;
  border-right: 4px solid #512077;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* sombra elegante */
  background: none;
  margin: 1.5rem 0;
}

/* Comillas decorativas */
.cita::before {
  content: "“";
  font-size: 3.5rem;
  color: #512077;
  position: absolute;
  top: -15px;
  left: 15px;
  opacity: 0.9;
}

.cita::after {
  content: "”";
  font-size: 3.5rem;
  color: #512077;
  position: absolute;
  bottom: -15px;
  right: 15px;
  opacity: 0.9;
}



/*********************************************************************************************************************************************************************
                          ESTILOS GENERALES PARA LOS MODULOS DE PRESENTACION, MGPC, GLOSARIO
**********************************************************************************************************************************************************************/

.step {
  width: 100%;
  height: 100vh; /* altura limitada para permitir scroll */
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  margin: auto;
  position: static;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 300px;
  background-blend-mode: lighten;
  opacity: 0.95;
}


/* ******* Scroll transparente y minimal  ************/
.step::-webkit-scrollbar {
  width: 8px; /* delgado */
}

.step::-webkit-scrollbar-track {
  background: transparent; /* sin fondo */
}

.step::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.442); /* color oscuro pero con transparencia */
  border-radius: 4px;
}

.step::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.958); /* se hace un poco mas visible al pasar el mouse */
}

.step h2 {

  text-align: center;
  letter-spacing: 0;
  color: #ffffff;
  font-weight: 200;
  font-size: 75px;
  font-weight: bold;

}

#step-glos {
  width: 100%;
  height: 100vh; /* altura limitada para permitir scroll */
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  margin: auto;
  position: static;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 300px;
  background-blend-mode: lighten;
  opacity: 0.95;
}

/* ******* Scroll transparente y minimal  ************/
#step-glos::-webkit-scrollbar {
  width: 8px; /* delgado */
}

#step-glos::-webkit-scrollbar-track {
  background: transparent; /* sin fondo */
}

#step-glos::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.442); /* color oscuro pero con transparencia */
  border-radius: 4px;
}

#step-glos::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.958); /* se hace un poco mas visible al pasar el mouse */
}

/* --- BLOQUES INDIVIDUALES --- */
.infografia-menu-lateral.glosario {
  opacity: 0;
  transform: none; /* Comienza desde la izquierda */
  transition: none;
  width: 80%;
  

}

/* --- entra en pantalla --- */
.infografia-menu-lateral.glosario.visible {
  opacity: 1;
  transform: none;
}

/* --- desaparecen a la derecha --- */
.infografia-menu-lateral.glosario.hide {
  opacity: 0;
  transform: none;
}

/* imagenes decorativas */
.infografia-menu-lateral-glosario::before,
.infografia-menu-lateral-glosario::after {

    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* Imagen izquierda */
.infografia-menu-lateral-glosario::before {
    width:200px;
    height: 200px;
    top: 8px;
    left: -10px;
    background-image: url('../imagenes/iecm-paloma.png');
}

/* Imagen derecha */
.infografia-menu-lateral-glosario::after {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: -60px;
    background-image: url('../imagenes/iecm-paloma.png');
}

.infografia-menu-lateral-glosario h2{
  margin-top: 50px;
}


.infografia-menu-lateral-glosario h2 {
  font-size: 2rem;
  font-weight: 1em;
  margin-bottom: 1.5rem;
  font-size: 80px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: #ffd700;
  position: relative;
  z-index: 1;
}

/* --- ESTILO DE TEXTO --- */
.texto-infografia-glosario {
  text-align: justify;
  color: #ffffff;
  /* font-weight: bold; */
  /* background: rgba(255,255,255,0.08); */
  padding: 1.8rem;
  border-radius: 12px;
  /* backdrop-filter: blur(6px); */
  line-height: 1.6;
  font-size: 1rem;
  /* box-shadow: 0 5px 15px rgba(0,0,0,0.25); */
  transition: all 0.8s ease;
}

.infografia-menu-lateral-mgpc {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(8px);
  transition:
    opacity 0.9s ease-out,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s ease-out;

}


/* Alternar dirección (izquierda/derecha) según posición */
.infografia-menu-lateral-mgpc.left {
  transform: translateX(-100px) scale(0.97);
}
.infografia-menu-lateral-mgpc.right {
  transform: translateX(100px) scale(0.97);
}


.infografia-menu-lateral-mgpc.visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  filter: blur(0);
}

/* texto interior */
.infografia-menu-lateral-mgpc.visible h2,
.infografia-menu-lateral-mgpc.visible h3,
.infografia-menu-lateral-mgpc.visible h4,
.infografia-menu-lateral-mgpc.visible h5,
.infografia-menu-lateral-mgpc.visible p {
  animation: fadeUp 0.8s ease-out both;
}

.infografia-menu-lateral-mgpc.visible p:nth-child(1) {
  animation-delay: 0.1s;
}
.infografia-menu-lateral-mgpc.visible p:nth-child(2) {
  animation-delay: 0.2s;
}
.infografia-menu-lateral-mgpc.visible p:nth-child(3) {
  animation-delay: 0.3s;
}
.infografia-menu-lateral-mgpc.visible p:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.infografia-menu-lateral , .infografia-menu-lateral-mgpc{

  max-width: 50%;
  background: linear-gradient(135deg, #8461A1, #66468b);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1000px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);

}

@media (max-width: 768px) {
  .infografia-menu-lateral, .infografia-menu-lateral-mgpc{
    padding: 2rem 1rem;
    margin-top: -10px;
  }

  .infografia-menu-lateral h2 {
    font-size: 40px !important;
  }
  .infografia-menu-lateral-mgpc  h2 {
    font-size: 35px !important;
  }

  #impress-referencias {
    width: 100% !important;
    padding: 0px 20px !important;
    margin: -100px !important;
    z-index: -1 !important;
  }
}




/* imagenes decorativas */
.infografia-menu-lateral-mgpc::before,
.infografia-menu-lateral-mgpc::after {

    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}


/* Imagen izquierda */
.infografia-menu-lateral-mgpc::before {
  width:200px;
  height: 200px;
  top: 8px;
  left: -10px;
  background-image: url('../imagenes/iecm-paloma.png');
}

/* Imagen derecha */
.infografia-menu-lateral-mgpc::after {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -60px;
  background-image: url('../imagenes/iecm-paloma.png');
}

/* imagenes decorativas */
.infografia-menu-lateral::before,
.infografia-menu-lateral::after {

    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* Imagen izquierda */
.infografia-menu-lateral::before {
    width:200px;
    height: 200px;
    top: 8px;
    left: -10px;
    background-image: url('../imagenes/iecm-paloma.png');
}

/* Imagen derecha */
.infografia-menu-lateral::after {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: -60px;
    background-image: url('../imagenes/iecm-paloma.png');
}



/* TITULO DE LA PRESENTACION */
.infografia-menu-lateral h2 {
  /* font-size: 2rem; */
  font-weight: 1em;
  /* margin-bottom: 1.5rem; */
  font-size: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

/* TITULO DEL MODULO MGPC */
.infografia-menu-lateral-mgpc  h2 {
  /* font-size: 1rem; */
  font-weight: 0.5em;
  margin-bottom: 1rem;
  font-size: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

/* Bloques de parrafos */
.texto-infografia {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.08);
  padding: 1.8rem;
  margin: 2rem 0;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  line-height: 1.6;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s ease;
  text-align: justify;
}

/* Desde la izquierda */
.texto-infografia.left {
  transform: translateX(-80px);
}

/* Desde la derecha */
.texto-infografia.right {
  transform: translateX(80px);
}

.texto-infografia.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Listas */

.texto-infografia-lista {
  /* border: solid green 9px; */
  align-items: center;
  justify-content: center;
  text-align: center;
}
.texto-infografia-lista ul {
  margin-top: 1rem;
}
.texto-infografia-lista li {
  list-style: none;
  margin: 30px;
  color: #ffffff;
  font-weight: 500;
  /* background: url('../imagenes/iecm-paloma.png') no-repeat left center; */
  background-size: 15px;
  padding-left: 10px; /* espacio para el icono o imagne */
  text-align: justify;
}


/*Animaciones*/
.texto-infografia.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Alternancia izquierda-derecha */
/* .texto-infografia:nth-of-type(even) {
  transform: translateX(-100px);
} */

/* Hover efecto */
/* .texto-infografia:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease; */
/* }  */

/**********************************************************************************************************************************************************************
                                    ESTILOS PARA LA VISTA DEL APARTADO DE FUENTES
***********************************************************************************************************************************************************************/
.fuentes-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgb(70, 3, 119) 0%, rgb(50, 2, 85) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 10000;
    animation: fadeIn 1s ease;
    text-align: justify;
}

.fuentes-content a {
    color: #66d9ff !important;
    text-decoration: underline;
    font-weight: 500;
}

.fuentes-content a:hover {
    color: #99e6ff !important;
}

.fuentes-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  /* border-bottom: 2px solid #fff; */
  padding-bottom: 5px;
}
.fuentes-content button {
  margin-top: 30px;
  padding: 10px 20px;
  background: white;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.fuentes-content button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: #fff;
  color: #444;
  border-radius: 8px;
  cursor: pointer;
}
.fuentes-content button:hover {
  background: #ddd;
}



#impress-referencias {
  position: relative;
  width: 55%;
  overflow-y: auto;
  margin: 40px auto;
  padding: 40px 20px;
  z-index: 1;

  /* Fondo degradado */
  /* background: linear-gradient(135deg, #8461A1, #66468b); */
  border-radius: 10px;
}

/* Contenedor interno para las marcas de agua */
/* Este div debe envolver todo el contenido real */
.fuentes-section-referencias {
  position: relative;
  z-index: 1;
}


/* #impress-referencias {
  position: relative;
  width: 55%;
  overflow-y: auto;
  margin: 40px auto;
  padding: 40px 20px;
  z-index: 1; */

  /* Fondo degradado */
  /* background: linear-gradient(135deg, #8461A1, #66468b);
  border-radius: 10px;
} */

.imagenes-referencias {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #8461A1, #66468b);
  border-radius: 10px;
  overflow: hidden; /* asegura que la marca no sobresalga */
  z-index: 1;
}

.imagenes-referencias::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px; 
  height: 600px;
  transform: translate(-50%, -50%);
  background-image: url('../imagenes/iecm-paloma.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15; 
  z-index: 0;
  pointer-events: none;
}

/* Asegura que el texto esté por encima */
.imagenes-referencias h2,
.imagenes-referencias p,
.imagenes-referencias a {
  position: relative;
  z-index: 1;
}


/* Marca de agua superior izquierda */
/* #impress-referencias::before {
  content: "";
  position: relative;
  top: 40px;
  left: 40px;
  width: 180px;
  height: 180px;
  background-image: url('../imagenes/iecm-paloma.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
} */

/* Marca de agua inferior derecha */
/* #impress-referencias::after {
  content: "";
  position: relative;
  bottom: 40px;
  right: 40px;
  width: 180px;
  height: 180px;
  background-image: url('../imagenes/iecm-paloma.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
} */

/* Marca de agua central — usa un div interno */
/* #impress-referencias .marca-central {
  position: relative;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  background-image: url('../imagenes/iecm-paloma.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
} */





/* ===== Scroll transparente y minimal ===== */
.impress-referencias::-webkit-scrollbar {
  width: 8px; /* delgado */
}

.impress-referencias::-webkit-scrollbar-track {
  background: transparent; /* sin fondo */
}

.impress-referencias::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.517); /* color oscuro pero con transparencia */
  border-radius: 4px;
}

.impress-referencias::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.653); /* se hace un poco mas visible al pasar el mouse */
}




.fuentes-section-referencias{


  height: 85vh;
  width: auto;
  margin: auto;

}

/* Imagen izquierda */
.fuentes-section-referencias::before {
    width:200px;
    height: 200px;
    top: 8px;
    left: -10px;
    background-image: url('../imagenes/iecm-paloma.png');
}

/* Imagen derecha */
.fuentes-section-referencias::after {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: -60px;
    background-image: url('../imagenes/iecm-paloma.png');
}

.texto-infografia-glosario a{
  color: blue;
}


.fuentes-section-referencias  h2 {
  /* font-size: 1rem; */
  font-weight: 0.5em;
  margin-bottom: 1rem;
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.fuentes-section {
  margin: 20px 0;
  max-width: 700px;
  text-align: center;
}

.fuentes-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.fuentes-section hr {
  border: 0;
  border-top: 1px solid #aaa;
  margin: 5px auto 15px auto;
  width: 80%;
}
.fuentes-section h4, .fuentes-section li {
  margin: 5px 0;
  font-size: 1rem;
}
.fuentes-section p {
  font-style: italic;
  color: #ddd;
}
.fuentes-section ul {
  list-style: none;
  padding: 0;
}

/***********************************************************************************************
                          ESTILOS GLOSARIO
***********************************************************************************************/

/* Estilo para las letras de sección (A, C, D, E, etc.) */
.letra-seccion {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 4px;
    margin-top: 0px;
    /* margin: auto; */
    display: inline-block;
    border-bottom: 4px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
}

/* Efecto de brillo sutil */
.letra-seccion::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #8B5CF6, transparent);
    border-radius: 2px;
}

/* Contenedor del índice alfabético */
.indice-alfabetico {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    background: rgba(139, 92, 246, 0.15);
    padding: 15px 10px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Cada letra del índice */
.indice-letra {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover en las letras */
.indice-letra:hover {
    background: rgba(139, 92, 246, 0.8);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

/* Letra activa */
.indice-letra.active {
    background: #8B5CF6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .indice-alfabetico {
        left: 0px;
        padding: 10px 6px;
        gap: 5px;
    }
    
    .indice-letra {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}


/* ESTILOS SICARUT */
.sicarut-label {
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    letter-spacing: 1px;
    z-index: 20;

    opacity: 0;              /* oculto al inicio */
    animation: fadeInSicarut 1s ease forwards;
    animation-delay: 1.2s; 
}

@keyframes fadeInSicarut {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .sicarut-label {
    bottom: 100px;
    font-size: 1.1rem;
  }
}
