/* ESTILOS BÃSICOS */
:root {
  --color-blue: #0e668d;
  --color-green: #a7ce39;
  --color-light-blue: #e9f2f8;
  --color-medium-blue: #5891b3;
  --color-dark-blue: #0e4a6d;
  --color-teal: #1b7188;
  --color-red: #eb1e24;
  --color-dark-gray: #444444;
  --color-text-gray: #555555;
  --footer-bg: #0d6990;
  --footer-text: #ffffff;
}

* {
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  font-family: 'Sora', sans-serif;
  overflow-x: hidden;
  background-color: #f8f9fa;
}

/* ESTILOS DE NAVEGACIÃ“N */
.navbar {
  background: transparent !important;
  position: absolute;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.navbar .navbar-brand img {
  width: 260px;
  height: auto;
  transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link {
  color: white !important;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover {
  transform: translateY(-2px);
}

.navbar .navbar-nav .nav-link.active {
  font-weight: 700;
}

.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-collapse.collapse.show,
.navbar-collapse.collapsing {
  background: rgba(14, 102, 141, 0.85);
  border-radius: 10px;
}

/* ESTILOS DE HEADER */
.header {
  position: relative;
  width: 100%;
  min-height: 740px;
  height: auto;
  /* padding-bottom: 50px; */
  overflow: hidden;
}

.header_background-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: transparent;
  background-image: linear-gradient(#00000000, #00000000), linear-gradient(#ffffff2e, #8bb5bd12 20%, #8bb5bd4d 43%, #8bb5bdba 66% 70%, #8bb5bd);
                  
}

.header-content {
  position: relative;
  padding-top: 250px;
  padding-bottom: 50px;
  margin: 0 auto;
  width: 80%;
  color: white;
  text-align: left;
  z-index: 1;
}

.header-content img {
  width: 20vw;
  max-width: 140px;
  min-width: 60px;
  height: auto;
}

.header-content h1 {
  font-size: 4.5rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.header-content h2 {
  font-size: 2.7rem;
  font-weight: normal;
}

.title-container-parent {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  border-radius: 20px;
  background-color: #00000073;
  padding: 10px 20px;
}

.header-description {
  font-size: 1.3rem;
  line-height: 1.5;
}

/* GRID DE INFORMACIÃ“N */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.3);
}

.info-item h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: bold;
}

.info-item p {
  font-size: 1rem;
  color: white;
  margin: 0;
}

h3.header-fact {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

h3 span {
  font-size: 0.55em;
  font-weight: normal;
}

/* SECCIÃ“N ARRECIFE */
.ses-section {
  background-color: #0e4a6d;
  color: white;
  padding: 0px 0;
  position: relative;
  overflow: hidden;
}

.ses-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #8bb5bd, #37808f);
  z-index: 1;
}

.ses-container {
  position: relative;
  z-index: 2;
}

.ses-img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  max-height: 1050px;
  object-fit: cover;
}

.ses-text {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ses-text a {
  color: #4ecdc4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ses-text a:hover {
  color: #a7ce39;
  text-decoration: underline;
}

/* ESTILOS DEL MAPA */
.maps-section {
  width: 100%;
  overflow: hidden;
  height: 900px;
}

#mini-map {
  width: 100%;
  height: 900px;
  border: none;
}

.segment-container {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 300px;
  max-height: 350px;
  overflow: hidden;
  z-index: 1000;
}

.segment {
  width: 100%;
}

.segment .title {
  padding: 8px;
  font-weight: bold;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  text-align: center;
}

.segment .map {
  width: 100%;
  height: 300px;
}

.leaflet-bottom {
  bottom: 8px !important;
}

.leaflet-control-scale-line {
  position: relative;
  height: 2px !important;
  border: none !important;
  color: white !important;
  border-top: none !important;
  line-height: 1.8 !important;
  padding: 2px 5px 1px !important;
  white-space: nowrap !important;
  -moz-box-sizing: border-box !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.8) !important;
  text-shadow: none !important;
  font-size: 1.3em !important;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 16px !important;
}

.roseta-wrapper {
  width: 100%;
}

.roseta {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.roseta.visible {
  opacity: 1;
  transform: scale(1);
}

.roseta svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.roseta[style*="display: block"] {
  display: block !important;
}

.central-text {
  text-anchor: middle;
  dominant-baseline: central;
  font-size: 68px;
  font-weight: bold;
  fill: white;
}

.info-container {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 804px;
  max-width: 90%;
  z-index: 1000;
  transition: all 0.3s ease;
  bottom: 0px !important;
  max-height: calc(100% - 40px);
  overflow: auto;
  color:white;
}

#indicadores_info_desc_div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#indicadores_info_desc_div > .d-flex.justify-content-center:last-child {
margin-top: auto;
padding-top: 20px;
padding-bottom: 15px;
}

h3.nombre-isla {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0e668d;
}

.island-buttons-container {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px;
  max-width: 90%;
  z-index: 1010;
}

.island-title {
  font-size: 16px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.island-button {
  border: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-shadow: none;
}

.island-button:hover {
  /* transform: scale(1.05); */
  font-weight: bolder;
}

.btn-bg-ap {
  color: white;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #007a50;
}

.btn-bg-ap:hover {
  background-color: #007a50;
  color: white;
}

.btn-bg-am {
  background-color: #a8ce38;
  color: #363636;
  /* background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #a8ce38; */
}

.btn-bg-am:hover {
  background-color: #a8ce38;
  color: #363636;
}

.btn-bg-b {
  background-color: #fedc1c;
  color: #363636;
  /* background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #fedc1c; */
}

.btn-bg-b:hover {
  background-color: #fedc1c;
  color: #363636;
}

.btn-bg-cp {
  background-color: #f5931f;
  color: #363636;
  /* background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #f5931f; */
}

.btn-bg-cp:hover {
  background-color: #f5931f;
  color: #363636;
}

.btn-bg-cm {
  background-color: #eb1e24;
  color: white;
  /* background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #eb1e24; */
}

.btn-bg-cm:hover {
  background-color: #eb1e24;
  color: white;
}

.btn-bg-nd {
  background-color: #a5a8ab;
  color: #363636;
  /* background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), #363636; */
}

.btn-bg-nd:hover {
  background-color: #a5a8ab;
  color: #363636;
}

.island-button.active_btn {
  /* transform: scale(1.05); */
  /* margin: 0 15px; */
  font-weight: bolder;
}

.manita {
  cursor: pointer;
}

/* CASOS DE Ã‰XITO */
.casos-exito-section {
  padding: 80px 0;
  background-color: #fff;
}

.banner {
  height: 180px;
  width: 100%;
  cursor: pointer;
  transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.5s ease;
}

.banner:hover::before {
  background: rgba(0, 0, 0, 0.2);
}

.banner-1 {
  background: url('https://lanresc.mx/media/public/photos/ALC_2c8ecc3651ac421d902adf4cb105f485.jpg') center/cover no-repeat;
}

.banner-2 {
  background: url('https://lanresc.mx/media/public/photos/ALC_5e61a5f0ea1c446c9464aa89c63955df.jpg') center/cover no-repeat;
}

.banner-3 {
  background: url('https://lanresc.mx/media/public/photos/ALC_a3953016f94e48aa8aeb90442b6f42c4.jpg') center/cover no-repeat;
}

.banner-content {
  display: none;
  padding: 30px;
  opacity: 0;
  transition: opacity 1s ease;
  height: 100%;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-expanded {
  height: 350px;
  position: relative;
  transform-origin: left top;
}

.active-content {
  display: block;
  opacity: 1;
}

.hidden-banner {
  height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
  display: none !important;
}

.banner-container {
  transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.banner-text {
  position: relative;
  z-index: 2;
  transition: opacity 0.8s ease;
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.banner-content h2 {
  color: #0e668d;
  margin-bottom: 20px;
  font-weight: 600;
}

.banner-content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn-custom {
  background-color: #0e668d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #0a4f6d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 102, 141, 0.3);
  color: white;
}

/* ALACRANES A TRAVÃ‰S DEL TIEMPO */
.alacranes-header {
  position: relative;
  overflow: hidden;
  background-color: #e9f2f8;
}

.alacranes-image {
  height: 400px;
  background-position: center;
  background-size: cover;
  position: relative;
}

.alacranes-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.alacranes-title {
  padding: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
}

.alacranes-title h1 {
  color: #0e668d;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.alacranes-title h2 {
  color: #0e668d;
  font-weight: 400;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.timeline {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.timeline-line {
  height: 2px;
  background-color: #a7ce39;
  flex-grow: 1;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #a7ce39;
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.dot-1 { left: 20%; }
.dot-2 { left: 40%; }
.dot-3 { left: 60%; }
.dot-4 { left: 80%; }

/* TODO ESTÃ CONECTADO */
.conectado-section {
  background-color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* .conectado-title {
  color: #0e668d;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
} */

.conectado-text {
  color: #0e668d;
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.conectado-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* BLANQUEAMIENTO DE CORALES */
.coral-section {
  position: relative;
  overflow: hidden;
}

.bg-custom-green {
  background-color: var(--color-green);
}

.bg-custom-teal {
  background-color: var(--color-teal);
  color: white;
  opacity: 0.95;
}

.coral-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1.2;
  max-width: 60%;
}

.coral-info {
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: absolute;
  z-index: 10;
  width: 50%;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
}

.coral-image-container {
  height: 100%;
  min-height: 500px;
  background-image: url('../img/arrecife_blanqueamiento.jpg');
  background-size: cover;
  background-position: center;
}

/* TARJETA DE REPORTE */
.report-section {
  padding: 4rem 0;
  background-color: #e9f2f8;
}

.report-title {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.report-subtitle {
  color: var(--color-green);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.report-content {
  color: #2a6086;
  font-size: 0.95rem;
  line-height: 1.5;
}
.report-content p {
  font-size: 1.3rem;
}

.report-image {
  border-radius: 4px;
  overflow: hidden;
}

.report-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* TUS ACCIONES PUEDEN HACER LA DIFERENCIA */
.eco-section {
  padding: 4rem 0;
  background-color: #fff;
}

/* .eco-title {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 3rem;
} */

.eco-icon {
  /* background-color: var(--color-green); */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.eco-icon svg {
  width: 60px;
  height: 60px;
  fill: var(--color-blue);
}

.eco-text {
  color: var(--color-blue);
  font-size: 1.4rem;
  line-height: 1.4;
}

.eco-action {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.eco-action-link {
  color: var(--color-blue);
  text-decoration: none;
}

.eco-action-link:hover {
  text-decoration: underline;
}

/* RECOMENDACIONES */
.recommendation-section {
  padding: 3rem 0;
  background-color: #fff;
}

.recommendation-item {
  display: flex;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}

.recommendation-marker {
  flex-shrink: 0;
  width: 20px;
  height: 60px;
  background-color: var(--color-green);
  margin-right: 1rem;
  margin-top: 0.10rem;
}

.recommendation-text {
  color: #19678d;
  font-size: 1.4rem;
  line-height: 1.4;
}

.ecosystem-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
}

.ecosystem-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1rem 1.5rem;
  flex: 0 0 auto;
}

.ecosystem-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  border: 2px solid #0d6efd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ecosystem-icon img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.ecosystem-label {
  font-size: 0.8rem;
  color: #495057;
  text-align: center;
  width: 90px;
}

.image-comparison-container {
  position: relative;
  width: 100%;
  height: 967px;
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.image-comparison-before,
.image-comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.image-comparison-after {
  clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}

.image-comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #fff;
  cursor: col-resize;
  z-index: 10;
  transform: translateX(-2px);
}

.image-comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 3px solid #0d6efd;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: col-resize;
  z-index: 11;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.image-comparison-handle::before,
.image-comparison-handle::after {
  content: "";
  position: absolute;
  background-color: #0d6efd;
}

.image-comparison-handle::before {
  width: 2px;
  height: 15px;
  transform: translateX(-5px);
}

.image-comparison-handle::after {
  width: 2px;
  height: 15px;
  transform: translateX(5px);
}

.comparison-label {
  position: absolute;
  bottom: 20px;
  padding: 5px 15px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9;
}

.before-label {
  right: 20px;
}

.after-label {
  left: 20px;
}

/* PARTICIPANTES */
.participants-section {
  padding: 3rem 0;
  background-color: #e9f2f8;
}

.workshop-year {
  color: var(--color-medium-blue);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.participants-image {
  width: 100%;
  border-radius: 0.375rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.5rem;
}

.participants-list {
  color: var(--color-medium-blue);
  font-size: 0.95rem;
  line-height: 1.5;
}

.participants-name {
  font-weight: 600;
}

.participants-affiliation {
  color: #5a5a5a;
}


/* AGRADECIMIENTOS E INSTITUCIONES */
.acknowledgments-section{
  background-color: #fff;
}

.institutions-section {
  padding: 3rem 0;
  background-color: #fff;
}

.acknowledgments-content {
  background-color: var(--color-light-blue);
  padding: 2rem;
  border-radius: 0.375rem;
  line-height: 1.6;
  color: #31708f;
  font-size: 1.2rem;
}

/* Mobile meadia query for acknowledgments */
@media (max-width: 576px) {
.acknowledgments-content {
  font-size: 1rem;
  padding: 1rem 0;
  background-color: transparent;
}
.section-title{
  margin-bottom: 0px !important;
}
}


/* FOOTER */
.footer-section {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* background-color: rgba(255, 255, 255, 0.2); */
  transition: all 0.3s ease;
}

.social-icon:hover {
  /* background-color: rgba(255, 255, 255, 0.4); */
  transform: translateY(-2px);
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-logo-container {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 330px;
  height: 330px;
  overflow: hidden;
  z-index: 0;
}

.footer-logo {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 350px;
  height: 350px;
  fill: white;
  opacity: 0.8;
}

.section-title{
  color: #0e668d;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;

  word-break: break-word; /* Permite romper palabras largas */
  overflow-wrap: break-word;
  max-width: 100%;

}

/* MEDIA QUERIES GENERALES */
@media (max-width: 1200px) {
  .header-content h1 {
    font-size: 3.8rem;
  }

  .header-content h2 {
    font-size: 2.3rem;
  }

  .header-description {
    font-size: 1.2rem;
  }

  .coral-section {
      display: flex;
      flex-direction: column;
  }

  .coral-title {
      font-size: 1.8rem;
      text-align: center;
      padding: 1.2rem 1rem;
      max-width: 100%;
  }

  .title-container {
      padding: 0 !important;
  }

  .coral-info {
      position: relative;
      width: 100%; /*90%*/
      top: auto;
      left: auto;
      transform: none;
      margin: 0px auto 0px; /*-50px auto 20px;*/
      border-radius: 0px /*8px*/;
  }

  .coral-image-container {
      min-height: 220px;
  }

  .title-container,
    .image-container {
      width: 100%;
  }

}

@media (max-width: 992px) {
  .header {
    min-height: 700px;
  }

  .header-content {
    padding-top: 200px;
    width: 90%;
  }

  .header-content h1 {
    font-size: 3.2rem;
  }

  .header-content h2 {
    font-size: 2rem;
  }

  .info-grid {
    gap: 12px;
  }

  .ses-section,
  .conectado-section,
  .casos-exito-section {
    padding: 60px 0;
  }

  .section-header h2,
  .conectado-title {
    font-size: 2.2rem;
  }

  .banner {
    height: 160px;
  }

  .banner-text {
    font-size: 1.6rem;
  }

  .coral-title {
    font-size: 1.8rem;
    text-align: center;
    padding: 1.2rem 1rem;
    max-width: 100%;
  }

  .footer-section {
    padding: 2rem 0;
  }

  .footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }

  .footer-column {
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
  }

  .footer-logo-container {
    width: 250px;
    height: 250px;
  }

  .footer-logo {
    width: 270px;
    height: 270px;
    opacity: 0.6;
  }

  .stats-container {
      flex-direction: column;
  }

  .stat-item {
      margin-bottom: 0.5rem;
      justify-content: center;
  }

}

@media (max-width: 768px) {
  .header {
    min-height: 780px;
  }

  .navbar .navbar-brand img {
    width: 90px;
  }

  .header-content {
    padding-top: 150px;
    width: 90%;
  }

  .title-container-parent {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-content h1 {
    font-size: 2.5rem;
  }

  .header-content h2 {
    font-size: 1.6rem;
  }

  .header-description {
    font-size: 1.1rem;
  }

  .info-grid {
    gap: 10px;
  }

  .info-item {
    padding: 12px;
  }

  h3.header-fact {
    font-size: 1.8rem;
  }

  .ses-img {
    margin-bottom: 30px;
  }

  .order-md-1 {
    order: 2;
  }

  .order-md-2 {
    order: 1;
  }

  .ses-section,
  .conectado-section,
  .casos-exito-section {
    padding: 40px 0;
  }

  .banner-expanded {
    width: 100%;
    margin-bottom: 15px;
    height: 250px;
  }

  .banner-content-container {
    width: 100% !important;
  }

  .section-header h2,
  .conectado-title {
    font-size: 2rem;
  }

  .banner-text {
    font-size: 1.5rem;
  }

  .alacranes-header {
    flex-direction: column;
  }

  .alacranes-image {
    height: 250px;
  }

  .alacranes-title {
    padding: 1.5rem;
  }

  .alacranes-title h1 {
    font-size: 1.8rem;
  }

  .alacranes-title h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .eco-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .eco-action {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .eco-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .recommendation-item {
    margin-bottom: 1.5rem;
  }

  .recommendation-marker {
    height: 35px;
  }

  .recommendation-text {
    font-size: 1rem;
  }

  .footer-logo-container {
    width: 200px;
    height: 200px;
    opacity: 0.4;
  }

  .footer-logo {
    width: 220px;
    height: 220px;
  }


  .logo-placeholder {
  width: 80px;
  height: 80px;
  }

  .logo-placeholder::after {
  width: 40px;
  height: 40px;
  }

}

@media (max-width: 576px) {

  .navbar .navbar-brand img {
    width: 200px;
  }

  .header {
    min-height: 789px;
  }
  .header-image {
    top: -160px;
  }

  .header-content {
    width: 92%;
    padding-top: 130px;
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  .header-content h2 {
    font-size: 1.4rem;
  }

  .header-content img {
    width: 36vw;
  }

  .header-description {
    font-size: 1.2rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  h3.header-fact {
    font-size: 1.6rem;
  }

  .section-title {
      font-size: 1.8rem; /* Reducir de 2.4rem */
      word-wrap: break-word; /* Permite que las palabras se rompan */
      hyphens: auto; /* Habilita guiones para palabras largas */
      text-align: center;
    }

  .island-buttons-container {
    padding: 8px;
  }

  .island-button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .island-title {
    font-size: 14px;
  }

  .banner {
    height: 140px;
  }

  .banner-text {
    font-size: 1.3rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .banner-content {
    padding: 20px;
  }

  .ses-text,
  .conectado-text {
    font-size: 1.2rem;
  }

  .info-container {
    width: 300px;
  }

  .workshop-year{
    text-align: center;
  }

  .header_background-image-wrapper {
    background-image: linear-gradient(#00000000, #00000000), linear-gradient(#ffffff2e, #8bb5bd12 20%, #8bb5bd4d 43%, #8bb5bd  66% 70%, #8bb5bd);
  }
  .coral-info{
    font-size: 1.2rem;
  }
  .report-content p{
    font-size: 1.2rem;
  }
  .info-item p {
    font-size: 1.2rem;
  }
  .eco-text {
    font-size: 1.2rem;
  }
  .recommendation-text{
    font-size: 1.2rem;
  }
  .ecosystem-text span{
    font-size: 1.2rem;
  }

}

/* Media Queries para tablets especÃ­fico de corales */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .coral-title {
    font-size: 2rem;
    padding: 1.5rem 1.5rem;
  }

  .coral-image-container {
    min-height: 300px;
  }

  .coral-info {
    /* width: 80%; */
    width: 100%;
    margin: 0px auto 0px;
    border-radius: 0px !important;
  }
}

.coral-title {
  margin-bottom: 0rem !important;

}

/* Clases para secciÃ³n de indicarores */
/* Estilos para las categorÃ­as de ecosistemas */
.ecosystem-category {
  margin-bottom: 30px;
  /* padding: 15px; */
  border-radius: 10px;
  /* background-color: #f9f9f9; */
  /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

.ecosystem-category h3 {
  color: #0e668d;
  /* font-weight: bold; */
  margin-bottom: 15px;
  padding-bottom: 8px;
  /* border-bottom: 2px solid #e0e0e0; */
}

.ecosystem-content {
  display: flex;
  align-items: center;
}

.ecosystem-text {
  flex: 3;
  padding-right: 20px;
}

.ecosystem-text span {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
}

.ecosystem-icon-large {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top:-60px;
}

.ecosystem-icon-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 0px;
  /* background-color: rgba(255, 255, 255, 1); */
  /* box-shadow: 0 0 15px rgba(0,0,0,0.1); */
}

/* Mantener los estilos existentes para los Ã­conos pequeÃ±os */
.ecosystem-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 30px;
}

.ecosystem-icon-container {
  text-align: center;
  margin: 10px;
}

.ecosystem-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ecosystem-icon img {
  width: 35px;
  height: 35px;
}

.ecosystem-label {
  font-size: 12px;
  font-weight: 500;
}

/* Colores especÃ­ficos para cada categorÃ­a (opcional) */
/* .ecosystem-category:nth-child(1) h3 {
  color: #8D7C31;
}

.ecosystem-category:nth-child(2) h3 {
  color: #573874;
}

.ecosystem-category:nth-child(3) h3 {
  color: #ad2081;
}

.ecosystem-category:nth-child(4) h3 {
  color: #005c8e;
}

.ecosystem-category:nth-child(5) h3 {
  color: #346d6c;
} */

/* ==== Inline overrides & additions merged into tr_virtual.css ==== */

/* Header background image enhancements from inline */
.header-image {
  position: absolute;
  top: -136px;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Imagen en miniatura o de baja resoluciÃ³n (incorporada como data URI) */
  background: #8bb5bd url('../img/header.webp') center / cover no-repeat;
  /* La imagen real */
  /* background-image: url('../img/ALC_Header.jpg'); */
  z-index: -2;
}

/* Fade-in-bottom animation */
.fade-in-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
  transition-delay: 0s;
}
.fade-in-bottom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax & Arrecife layout (updated) */
.parallax-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 871px;
}
.parallax-image {
  position: absolute;
  width: 100%;
  height: auto;
  left: 0;
  opacity: 1;
  pointer-events: none;
}
.ses-section {
  padding: 0;
}
.ses-text-column {
  padding: 140px 70px;
}
.ses-image-column {
  padding: 0;
}

@media (max-width: 991px) {
  .ses-section .ses-container {
      position: relative;
      min-height: 500px;
  }
  .ses-section .col-lg-5.order-md-1 {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      padding: 0;
  }
  .parallax-image-container {
      height: 100%;
      width: 100%;
  }
  .ses-section .col-lg-7.order-md-2 {
      position: relative;
      z-index: 2;
      background-color: rgba(14, 74, 109, 0.5);
      color: white;
      padding: 30px;
      margin: 30px;
      border-radius: 10px;
  }
  .parallax-image {
      top: -40px;
      opacity: 0.4;
  }
  .maps-section {
      height: 100%;
  }
}

/* Left panel grid + buttons */
.left-panel-grid {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  z-index: 1000;
}
.buttons-section {
  padding: 12px;
  border-radius: 8px 8px 0 0;
  overflow: visible;
}
.buttons-section .w-100 .island-button {
  font-size: 1.1rem;
  padding: 0.3rem 0.5rem;
  transform-origin: center;
}
.island-button.active_btn {
  font-weight: bold;
  margin: 0;
}

@media (max-width: 992px) {
  .left-panel-grid {
      max-width: 600px;
  }
}
@media (max-width: 768px) {
  .left-panel-grid {
      max-width: 90%;
      grid-template-rows: auto auto;
      gap: 15px;
  }
  .island-info-container {
      /* max-height: calc(100vh - 450px); */
      max-height: 100vh;
    }
}

/* Button sizing helpers */
.buttons-section .flex-fill.island-button {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 576px) {
  .buttons-section .flex-fill.island-button {
      margin: 0 2px;
      font-size: 0.7rem;
      padding: 0.2rem 0.3rem;
  }
}
.buttons-section .flex-fill.island-button:first-child { margin-left: 0; }
.buttons-section .flex-fill.island-button:last-child { margin-right: 0; }

/* Participants stats (new responsive system) */
.stats-container { margin-top: 2rem; width: 100%; }
.number-segments-container {
  display: flex; width: 100%; height: 40px; margin-bottom: 2px;
}
.number-segment {
  height: 100%; display: flex; justify-content: flex-end; align-items: flex-end;
}
.title-segment { justify-content: space-between; align-items: center; }
.segment-title { font-size: 1.2rem; font-weight: bold; color: #0e668d; margin-left: 5px; }
.number { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.academico-number { color: #008597; }
.gubernamental-number { color: #4f6a31; }
.osc-number { color: #eb6f27; }
.privado-number { color: #f5b21a; }

.stats-bar { display: flex; height: 40px; width: 100%; margin-bottom: 10px; }
.color-segment {
  height: 100%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 500; margin: 0  3px;
}
.academico-segment { background-color: #008597; }
.gubernamental-segment { background-color: #4f6a31; }
.osc-segment { background-color: #eb6f27; }
.privado-segment { background-color: #f5b21a; }

.label-segments-container { display: flex; width: 100%; height: 30px; }
.label-segment { display: flex; align-items: center; }
.sector-title-segment { display: flex; align-items: center; gap: 15px; }
.sector-title { font-weight: bold; color: #0e668d; margin-left: 5px; font-size: 1.2rem; }
.sector-label { color: #333; font-size: 0.9rem; }
.left-aligned { text-align: left; }
.right-aligned { justify-self: flex-end; text-align: right; width: 100%; }

@media (max-width: 992px) {
  .segment-title { font-size: 1.3rem; }
  .number { font-size: 2.5rem; }
  .sector-title { font-size: 1rem; }
}
@media (max-width: 768px) {
  .number { font-size: 2.2rem; }
  .color-segment { font-size: 0.8rem; }
  .stats-bar { height: 35px; }
  .sector-title-segment { gap: 10px; }
}
@media (max-width: 576px) {
  .segment-title, .sector-title { font-size: 1.1rem; }
  .number { font-size: 1.8rem; }
  .stats-bar { height: 30px; }
  .color-segment { font-size: 0.7rem; padding: 0 2px; }
  .sector-title-segment { gap: 5px; }
}
.mobile-stats { display: none; width: 100%; }
.mobile-stat-row { display: flex; align-items: center; margin-bottom: 15px; }
.mobile-stat-bar { height: 30px; margin-right: 15px; border-radius: 3px; }
.mobile-stat-number { font-size: 1.5rem; font-weight: 700; margin-right: 8px; }
.mobile-stat-label { font-size: 1rem; color: #444; }
@media (max-width: 1199px) {
  .desktop-stats { display: none; }
  .mobile-stats { display: block; }
}
@media (min-width: 769px) {
  .right-aligned { position: absolute; right: 5px; white-space: nowrap; width: auto; text-align: right; }
  .label-segment:last-child { position: relative; }
}

/* Indicadores gallery (consolidated) */
.indicadores-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  /* align-items: center; */
  padding: 15px;
  min-height: 100px;
  /* margin-top: 20px; */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.indicador-item {
  position: relative;
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.indicador-item:hover { opacity: 1;}
.indicador-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  /* padding: 8px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  
}
@media (max-width: 768px) {
  .indicadores-gallery { gap: 10px; padding: 10px; }
  .indicador-item { width: 50px; height: 50px; }
}

/* Indicador trix container rounded shadow */
.indicador_trix_container {
  border-radius: 88px !important;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px !important;
}

/* Nuevo esquema de indicadores (info panel) */
.info-panel-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* CAMBIAR de center a flex-start */
  gap: 20px;
  width: 100%;
  max-width: 860px;
  z-index: 1000;
  position: absolute;
  top: 0; /* Mantener top: 0, el JS lo sobrescribirÃ¡ */
  left: 0;
  height: 100%;
  padding: 12px;
  transition: top 0.3s ease, height 0.3s ease;
}
.island-info-container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
  /* max-height: 112vh; */
  height: 100%;
  overflow-y: auto;
  flex:1;
  display: flex;
  flex-direction: column;
}

.island-info-container > div {
display: flex;
flex-direction: column;
min-height: 100%;
}

.island-image-container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 250px;
  max-height: auto;
  overflow: hidden;
  z-index: 1000;
}
.island-image-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; }
.island-image-title {
  padding: 10px; margin: 0; font-size: 1rem; font-weight: 600; color: #0e668d;
  background-color: #f8f9fa; border-bottom: 1px solid #dee2e6; text-align: center;
}
.island-static-image {
  width: 100%; height: auto; object-fit: cover; cursor: pointer; transition: transform 0.3s ease;
}
.island-static-image:hover { transform: scale(1.05); }

/* Buttons section adjustments already declared above */

/* Clasificaciones */
.clasificaciones-container {
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.clasificacion-item {
  display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all 0.3s ease; opacity: 0.7;
}

.clasificacion-item:hover { opacity: 1 !important; }

.clasificacion-item.active { opacity: 1; }
.clasificacion-item:not(.active) { opacity: 0.7; }
.clasificacion-circle {
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 15px;
  transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.clasificacion-item.active .clasificacion-circle {
  transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.clasificacion-item.active .clasificacion-label {
  font-weight: 600; color: #0e668d; font-size: 1em;
}
.clasificacion-circle img { width: 100%; height: 100%; object-fit: contain; }
.clasificacion-label { font-size: 0.9rem; text-align: center; margin-top: 15px; color: #333; max-width: 90px; line-height: 1.2; }

/* Tooltip */
.indicador-tooltip {
  position: absolute;
  bottom: 106px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.indicador-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}
.indicador-item:hover .indicador-tooltip { opacity: 1; }

/* Responsive adjustments for info panel & indicators */
@media (max-width: 1400px) {
  .island-image-container { width: 280px; max-height: 320px; }
  .island-static-image { height: 250px; }
}
@media (max-width: 1200px) {
  .info-panel-container { max-width: 740px; }
  .island-image-container { width: 250px; max-height: 300px; }
  .island-static-image { height: 230px; }
  .clasificacion-circle { width: 75px; height: 75px; }
  .indicador-item { width: 60px; height: 60px; }
}
@media (max-width: 768px) {
  .island-image-container { display: none; }
  .island-button { font-size: 1rem; padding: 0.25rem 0.5rem; height: 40px; }
  .info-panel-container { max-width: 90%; }
  .clasificacion-circle { width: 55px; height: 55px; padding: 10px; }
  .indicador-item { width: 50px; height: 50px; }
  .clasificacion-label { font-size: 0.65rem; }
}
@media (max-width: 576px) {
  .buttons-section { padding: 8px; }
  .island-button { font-size: 1rem; padding: 0.25rem 0.5rem; height: 40px; }
  .buttons-section .w-100 .island-button { font-size: 0.75rem; }
  .clasificacion-circle { width: 45px; height: 45px; padding: 8px; }
  .indicador-item { width: 45px; height: 45px; }
}

.horizontal-timeline-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
cursor: grab;
user-select: none; /* Evita la selecciÃ³n de texto */
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE/Edge */
}

.horizontal-timeline-wrapper {
position: relative;
height: 100%;
width: max-content;
min-width: 100%;
padding: 20px 0;
user-select: none; /* TambiÃ©n en el wrapper */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}

/* Asegurar que los elementos hijos tampoco sean seleccionables */
.horizontal-timeline-container * {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}

.explicacion-escala{
font-size: 1em;
color:#ed7026;
/* Add a beat animation */
animation: pulse2 4s infinite;
overflow-x: hidden;
}
.licencia a {
color: #d4d4d4;
text-decoration: none;
font-weight: 600;
}
.expandable-text {
display: inline;
position: relative;
}

.expandable-text .hidden-text {
display: none; /* Cambiado de inline a none */
opacity: 0;
transition: opacity 0.4s ease;
}

.expandable-text.expanded .hidden-text {
display: inline; /* Mostrar cuando estÃ© expandido */
opacity: 1;
}

.expandable-text.expanding .hidden-text {
display: inline;
animation: fadeIn 1s ease forwards;
}

.expandable-text.collapsing .hidden-text {
animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeIn {
from {
    opacity: 0;
}
to {
    opacity: 1;
}
}

@keyframes fadeOut {
from {
    opacity: 1;
}
to {
    opacity: 0;
}
}

.expand-toggle {
display: inline;
margin-left: 5px;
padding: 2px 0px;
background: none;
border: none;
cursor: pointer;
font-size: 0.85em;
font-weight: 600;
transition: all 0.3s ease;
text-decoration: none;
/* border-bottom: 1px solid #0e668d; */
opacity: 0.8;
}

.expand-toggle:hover {
color: #0a4f6d;
border-bottom-color: #0a4f6d;
opacity: 1;
transform: translateY(-1px);
}

.expand-toggle:active {
transform: scale(0.95);
}

/* AnimaciÃ³n para el Ã­cono de flecha */
.expand-toggle .arrow {
display: inline-block;
transition: transform 0.3s ease;
}

.expand-toggle.expanded .arrow {
transform: rotate(180deg);
}
/* Estilos para listas colapsables en mÃ³vil */
.collapsible-section {
  margin-bottom: 1rem;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  background-color: rgba(14, 102, 141, 0.1);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
}

.collapsible-header:hover {
  background-color: rgba(14, 102, 141, 0.15);
}

.collapsible-header strong {
  flex: 1;
  color: #0e668d;
}

.collapsible-icon {
  font-size: 1.2rem;
  color: #0e668d;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.collapsible-icon.open {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.open {
  max-height: 2000px;
}

/* Mostrar normalmente en escritorio */
@media (min-width: 768px) {
  .collapsible-header {
      cursor: default;
      background-color: transparent;
      padding: 0;
      margin-bottom: 0;
  }

  .collapsible-header:hover {
      background-color: transparent;
  }

  .collapsible-icon {
      display: none;
  }

  .collapsible-content {
      max-height: none;
      overflow: visible;
  }
}

/* Estilos para el modal de escala */
.modal-escala-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-escala-overlay.show {
  opacity: 1;
}

.modal-escala-content {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-escala-overlay.show .modal-escala-content {
  transform: scale(1);
}

.modal-escala-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  line-height: 1;
  padding: 5px 10px;
}

.modal-escala-close:hover {
  color: #0e668d;
  transform: rotate(90deg);
}

.modal-escala-header {
  /* background: linear-gradient(135deg, #0e668d, #1b7188); */
  color: #ed7026;
  padding: 25px 30px;
  border-radius: 12px 12px 0 0;
}

.modal-escala-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-escala-body {
  padding: 30px;
}

.escala-explicacion {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  gap: 15px;
}

.color-indicator {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7em;
  font-weight: bolder;
  color: white;
}

.color-indicator.rojo {
  background-color: #c3262d;
}

.color-indicator.amarillo {
background-color: #f2bc1e;
}

.color-indicator.verde {
  background-color: #3ca047;
}

.escala-explicacion p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.calificacion-general {
  margin-top: 30px;
  padding: 20px;
  background-color: #e9f2f8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.calificacion-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #f2bc1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.calificacion-general p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #0e668d;
}

/* AnimaciÃ³n de pulso para el trigger */


.explicacion-escala::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #0e668d;
  transition: width 0.3s ease;
}


/* Responsive */
@media (max-width: 576px) {
  .modal-escala-content {
      width: 95%;
      margin: 10px;
  }

  .modal-escala-header {
      padding: 20px;
  }

  .modal-escala-header h3 {
      font-size: 1.5rem;
  }

  .modal-escala-body {
      padding: 20px;
  }

  .escala-explicacion {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .color-indicator {
      margin-top: 0;
  }

  .calificacion-general {
      flex-direction: column;
      text-align: center;
  }

  .escala-explicacion p,
  .calificacion-general p {
      font-size: 1rem;
  }
}


/* INSTITUCIONES PARTICIPANTES - RESPONSIVE GRID */
.institutions-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 0px;
align-items: center;
justify-items: center;
margin-top: 20px;
}

.institution-item {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
}

.institution-item img {
max-width: 100%;
height: auto;
max-height: 80px;
object-fit: contain;
transition: transform 0.3s ease;
}

.institution-item img:hover {
transform: scale(1.1);
}

/* Responsive breakpoints */
@media (max-width: 1400px) {
.institutions-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0px;
}
}

@media (max-width: 1200px) {
.institutions-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0px;
}

.institution-item img {
    max-height: 70px;
}
}

@media (max-width: 992px) {
.institutions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
}

.institution-item img {
    max-height: 65px;
}
}

@media (max-width: 768px) {
.institutions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
}

.institution-item {
    padding: 8px;
}

.institution-item img {
    max-height: 55px;
}
}

@media (max-width: 576px) {
.institutions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.institution-item {
    padding: 5px;
}

.institution-item img {
    max-height: 45px;
}
}

/* SECCIÃ“N DE DESCARGAS */
.downloads-section {
  padding: 4rem 0;
  background-color: #e9f2f8;
}

.downloads-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background-color: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.download-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(14, 102, 141, 0.2);
  text-decoration: none;
}

.download-icon {
  width: 50px;
  height: 50px;
  background-color: #0e668d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.download-button:hover .download-icon {
  background-color: #a7ce39;
  transform: scale(1.1);
}

.download-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.download-text {
  flex: 1;
}

.download-text h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0e668d;
  transition: color 0.3s ease;
}

.download-button:hover .download-text h4 {
  color: #0a4f6d;
}

.download-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 992px) {
  .downloads-container {
      flex-direction: column;
      align-items: center;
  }
  
  .download-button {
      max-width: 100%;
      width: 100%;
  }
}

@media (max-width: 576px) {
  .download-button {
      padding: 15px 20px;
      min-width: auto;
  }
  
  .download-icon {
      width: 45px;
      height: 45px;
  }
  
  .download-icon svg {
      width: 22px;
      height: 22px;
  }
  
  .download-text h4 {
      font-size: 1rem;
  }
  
  .download-text p {
      font-size: 0.85rem;
  }
}

/* ===== LOADER ===== */
.site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #37808f 0%, #37808f 50%, #37808f 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.site-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-logo {
  width: 150px;
  height: auto;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
}

.loader-text {
  margin-top: 30px;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

/* Animaciones */
@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
  0%, 100% {
      transform: translateY(0px);
  }
  50% {
      transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
}

@keyframes pulse2 {
0%, 100% {
    transform: scale(1);
}
50% {
    transform: scale(1.05);
}
}

/* Responsive */
@media (max-width: 768px) {
  .loader-logo {
      width: 120px;
  }
  
  .loader-text {
      font-size: 1rem;
      margin-top: 25px;
  }
}

@media (max-width: 576px) {
  .loader-logo {
      width: 100px;
  }
  
  .loader-text {
      font-size: 0.9rem;
      margin-top: 20px;
  }
}

/* Indicadores */
.indicador-titulo {
color: #0c5777;
font-weight: 600;
font-size: 1.3em;
}
.indicator-icon {
transition: transform 0.3s ease;
/* cursor: pointer; */
}

.indicator-icon:hover,
.indicator-icon:active {
transform: scale(1.1);
}

/* NUEVO ESQUEMA PARA DESCRIPCIÃ“N DE INDICADORES */
.indicador-description-panel {
width: 100%;
max-width: 800px;
margin: 20px auto;
padding: 20px;
/* Sin fondo, sin sombra, sin border-radius */
background: none;
box-shadow: none;
border-radius: 0;
color: #333;
/* Altura mÃ­nima constante para evitar que el contenedor se estire/achique */
min-height: 150px;
/* Fade in suave */
opacity: 0;
animation: fadeIn 0.4s ease-out forwards;
}

/* AnimaciÃ³n fade in */
@keyframes fadeIn {
from {
    opacity: 0;
}
to {
    opacity: 1;
}
}

/* AnimaciÃ³n fade out */
.indicador-description-panel.fade-out {
animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
from {
    opacity: 1;
}
to {
    opacity: 0;
}
}

.indicador-description-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
gap: 15px;
}

.indicador-description-header h4 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
line-height: 1.3;
flex: 1;
color: #0e668d;
}

.indicador-description-text {
margin: 0;
font-size: 0.9rem;
line-height: 1.6;
color: #555;
}

/* Estado seleccionado para desktop */
.indicador-item.selected {
transform: scale(1.1);
z-index: 10;
opacity: 1;
}
.indicador-item.selected img {
box-shadow: 0 0px 10px rgba(0, 0, 0, 0.6);

}

/* ============================================================
MÃ“VIL - Leyenda con descripciÃ³n
============================================================ */

.indicador-leyenda-mobile {
width: 100%;
padding: 15px;
border-radius: 8px;
margin-top: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
color: #fff;
background-color: rgba(0,0,0,0.03);
}

#indicador-leyenda-text {
display: block;
font-weight: 600;
font-size: 1.1rem;
margin-bottom: 10px;
color: #0e668d;
/* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
}

#indicador-leyenda-descripcion {
display: block;
font-size: 0.95rem;
line-height: 1.5;
color: #555;
margin-top: 8px;
/* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
}

/* Estado seleccionado para mÃ³vil */
.indicador-item-mobile.selected {
transform: scale(1.1);
z-index: 10;
opacity: 1;
}

/* ============================================================
RESPONSIVE
============================================================ */

@media (max-width: 768px) {
.indicador-description-panel {
    margin: 15px 10px;
    padding: 15px;
    min-height: 130px;
}

.indicador-description-header h4 {
    font-size: 1.1rem;
}

.indicador-description-text {
    font-size: 0.95rem;
}
}

@media (max-width: 576px) {
.indicador-description-panel {
    padding: 12px;
    min-height: 120px;
}

.indicador-description-header h4 {
    font-size: 1rem;
}

.indicador-description-text {
    font-size: 0.9rem;
}

#indicador-leyenda-text {
    font-size: 1rem;
}

#indicador-leyenda-descripcion {
    font-size: 0.9rem;
}
}

/* ============================================================
MEJORAS ADICIONALES - Cursor pointer
============================================================ */

.indicador-item,
.indicador-item-mobile {
cursor: pointer;
user-select: none;
}

.indicador-item:active,
.indicador-item-mobile:active {
transform: scale(0.95);
}

      /* ========================================
         HISTORIAS DE Ã‰XITO
         ======================================== */
         .historias-exito-section {
          padding: 80px 0;
          background-color: #e9f2f8;
      }

      .historia-item {
          margin-bottom: 20px;
          overflow: hidden;
          border-radius: 10px;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
          transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
      }

      .historia-banner {
          height: 250px;
          width: 100%;
          background-size: cover;
          background-position: 0px 760px;
          position: relative;
          cursor: pointer;
          overflow: hidden;
          transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
      }

      .historia-banner-overlay {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background: rgba(0, 0, 0, 0.4);
          z-index: 1;
          transition: background 0.4s ease;
      }

      .historia-banner:hover .historia-banner-overlay {
          background: rgba(0, 0, 0, 0.2);
      }

      .historia-banner-title {
          position: relative;
          z-index: 2;
          color: white;
          font-size: 1.8rem;
          font-weight: bold;
          text-align: center;
          padding: 20px;
          margin: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          height: 100%;
          text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
          transition: opacity 0.4s ease;
      }

      .historia-content {
          max-height: 0;
          overflow: hidden;
          opacity: 0;
          background-color: #fff;
          transition: max-height 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), 
                      opacity 0.6s ease,
                      padding 0.6s ease;
          padding: 0 30px;
      }

      .historia-item.expanded .historia-content {
          max-height: 600px;
          opacity: 1;
          padding: 30px;
      }

      .historia-item.expanded .historia-banner-title {
          opacity: 0.9;
      }

      .historia-imagen-container {
          border-radius: 5px;
          overflow: hidden;
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      }

      .historia-imagen {
          width: 100%;
          height: auto;
          max-height: 350px;
          object-fit: cover;
          display: block;
      }

      .historia-texto {
          color: #555;
          line-height: 1.6;
      }

      .historia-texto p {
          margin-bottom: 15px;
          font-size: 1.1rem;
      }

      .historia-texto p:last-child {
          margin-bottom: 0;
      }

      /* Responsive para Historias de Ã‰xito */
      @media (max-width: 992px) {
          .historia-banner {
              height: 160px;
          }

          .historia-banner-title {
              font-size: 1.6rem;
              padding: 15px;
          }

          .historia-item.expanded .historia-content {
              max-height: 700px;
          }
      }

      @media (max-width: 768px) {
          .historias-exito-section {
              padding: 60px 0;
          }

          .historia-banner {
              height: 200px;
          }

          .historia-banner-title {
              font-size: 1.5rem;
          }

          .historia-content {
              padding: 0 20px;
          }

          .historia-item.expanded .historia-content {
              max-height: 900px;
              padding: 25px 20px;
          }

          .historia-imagen {
              max-height: 250px;
              margin-bottom: 20px;
          }

          .historia-texto p {
              font-size: 0.95rem;
          }
      }

      @media (max-width: 576px) {
          .historia-banner {
              height: 220px;
              background-position: center;
          }

          .historia-banner-title {
              font-size: 1.3rem;
              padding: 15px 10px;
          }

          .historia-content {
              padding: 0 15px;
          }

          .historia-item.expanded .historia-content {
              max-height: 1000px;
              padding: 20px 15px;
          }

          .historia-imagen {
              max-height: 200px;
              object-position: bottom;

          }
      }

/* ==========================================
 MODIFICACIONES PARA MAPA EN MÓVIL 
 ==========================================*/

/* Sección del mapa móvil */
.mobile-map-section {
  margin-bottom: 30px;
  background: #f8f9fa;
}

#mini-map-mobile {
  width: 100%;
  height: 450px;
  border: none;
  z-index: 1;
}

@media (max-width: 768px) {
  #mini-map-mobile {
      height: 400px;
  }
}

@media (max-width: 576px) {
  #mini-map-mobile {
      height: 350px;
  }
}

/* Sección de indicadores móvil */
.indicadores-section-mobile {
  padding: 20px 0;
  background: white;
}

.island-info-container-mobile {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-top: 20px;
}

/* Ajustes para la caja de texto en móvil */
@media (max-width: 992px) {
  .map-text-box {
      display: block !important;
      position: static !important;
      width: 100% !important;
      padding: 20px;
      margin-top: -10px;
      background: white;
  }
  
  .map-text-content {
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      border: 1px solid #e0e0e0;
      border-radius: 8px;
  }
  
  .map-text-description {
      text-align: left;
      font-size: 0.85rem;
  }
  
  .map-legend {
      flex-wrap: wrap;
      gap: 8px;
  }
  
  .legend-item {
      flex: 0 0 48%;
      flex-direction: row;
      gap: 8px;
  }
  
  .legend-color {
      width: 40px;
      height: 12px;
  }
  
  .legend-label {
      font-size: 0.75rem;
  }
}

/* Ajustes para los círculos de clasificación móvil */
.clasificacion-circle-mobile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.clasificacion-circle-mobile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clasificacion-label-mobile {
  font-size: 0.7rem;
  text-align: center;
  color: #333;
  line-height: 1.2;
  margin-top: 5px;
}

.clasificacion-item-mobile {
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.clasificacion-item-mobile:hover,
.clasificacion-item-mobile.active {
  opacity: 1;
}

.clasificacion-item-mobile.active .clasificacion-circle-mobile {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Galería de indicadores móvil */
.indicadores-gallery-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 15px 0;
  min-height: 100px;
}

.indicador-item-mobile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.indicador-item-mobile:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.indicador-item-mobile.selected {
  /* border: 3px solid #0e668d; */
  transform: scale(1.15);
}

/* Leyenda del indicador móvil */
.indicador-leyenda-mobile {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  /* border-left: 4px solid #0e668d; */
}

.indicador-leyenda-mobile span {
  display: block;
}

#indicador-leyenda-text {
  font-weight: bold;
  color: #0e668d;
  margin-bottom: 5px;
}

#indicador-leyenda-descripcion {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* Esconder el panel desktop en móvil */
@media (max-width: 992px) {
  .info-panel-container {
      display: none !important;
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 576px) {
  .clasificacion-circle-mobile {
      width: 50px;
      height: 50px;
      padding: 8px;
  }
  
  .clasificacion-label-mobile {
      font-size: 0.65rem;
  }
  
  .indicador-item-mobile {
      width: 45px;
      height: 45px;
  }
  
  /* #indicador_trix_mobile {
      width: 70px;
      height: 70px;
  } */
  
  #indicador_trix_mobile text {
      font-size: 40px;
  }
  
  .nombre-isla {
      font-size: 1.2rem;
      color:#0e668d
  }
}