@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ESTILOS BÁSICOS */

:root {
    --color-blue: #0e668d;
    --color-green: #a7ce39;
    --color-light-blue: #e9f2f8;
    --color-medium-blue: #2d82b3;
    --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: 300px;
    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%;
    display: flex;
    flex-direction: column;
    }

.header_background-image-wrapper {
    display: none;
    }

.header-content {
    position: relative;
    padding: 0 0; /*antes 50px en y*/
    margin: 0 auto;
    width: 80%;
    color: white;
    text-align: left;
    background-color: #20525d;
    }

/* Fondo sólido detrás del header-content que cubre todo el ancho */

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #20525d;
    z-index: -1;
    }

.header-content img {
    width: 26vw;
    max-width: 400px;
    min-width: 150px;
    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;
    }

.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 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* text-align: center; */
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    }

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

.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 */

  .arrecife-section {
    background-color: #0e4a6d;
    color: white;
    padding: 0px 0;
    position: relative;
    overflow: hidden;
  }

  .arrecife-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #20525d, #20525da6, #0e4a6d);
    z-index: 1;
  }

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

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

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

.arrecife-text strong {
    font-weight: 600;
    }

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

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

.arrecife-text-column h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color:#54bfba;
    }

/* ESTILOS DEL MAPA */

.maps-section {
    width: 100%;
    overflow: hidden;
    height: 900px;
    }

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

.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;
    }

.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.5rem;
    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: 130%;
    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-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: #fff;
    }

.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: #e9f2f8;
    }

/* .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: #e9f2f8;
    }

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

.recommendation-marker {
    flex-shrink: 0;
    width: 280px;
    height: auto;
    margin-right: 1rem;
    margin-top: 0.10rem;
    }

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

.recommendation-text .temporalidad {
    color: #19678d;
    }

.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; */
    background-color: #fff;
    }

.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: transparent;
    }

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

.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 */

/* 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 Queries para tablets específico de corales */

.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: #2c5e1a;
    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; /* Color para Ecosistemas y paisajes */
    }

.ecosystem-category:nth-child(2) h3 {
    color: #573874; /* Color para Manejo y gobernanza */
    }

.ecosystem-category:nth-child(3) h3 {
    color: #ad2081; /* Color para Economía */
    }

.ecosystem-category:nth-child(4) h3 {
    color: #005c8e; /* Color para Hidrología */
    }

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

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

/* Header background image enhancements from inline */

.header-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    }

/* Header-image in mobile */

/* 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: 858px;
    }

.parallax-image {
    position: absolute;
    width: 100%;
    height: auto;
    left: 0;
    opacity: 1;
    pointer-events: none;
    }

.parallax-image--primary {
    opacity: 1;
    transition: opacity 0.8s ease;
    z-index: 1;
    }

.parallax-image--secondary {
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 2;
    }

/* Cuando el container tiene la clase activa */

.parallax-image-container.unops-visible .parallax-image--primary {
    opacity: 0;
    }

.parallax-image-container.unops-visible .parallax-image--secondary {
    opacity: 1;
    }

.parallax-figure {
    position: absolute;
    width: 100%;
    left: 0;
    margin: 0;
    pointer-events: none;
    }

.parallax-figure .parallax-image {
    position: static; /* ya no absolute, fluye dentro del figure */
    display: block;
    width: 100%;
    height: auto;
    }

.parallax-caption {
    display: block;
    padding: 4px 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    }

.arrecife-section {
    padding: 0;
    }

.arrecife-text-column {
    padding: 60px 60px;
    }

.arrecife-image-column {
    padding: 0;
    }

/* 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;
    }

/* Button sizing helpers */

.buttons-section .flex-fill.island-button {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    }

.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: end;
    }

.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: #008697;
    }

.gubernamental-number {
    color: #f8b217;
    }

.osc-number {
    color: #7280bf;
    }

.privado-number {
    color: #3ea648;
    }

.comunidad-number {
    color: #f29164;
    }

.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;
    }

.academico-segment {
    background-color: #008697;
    }

.gubernamental-segment {
    background-color: #f8b217;
    }

.osc-segment {
    background-color: #7280bf;
    }

.privado-segment {
    background-color: #3ea648;
    }

.comunidad-segment {
    background-color: #f29164;
    }

.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 {
    font-size: 0.9rem;
    }

.left-aligned {
    text-align: left;
    }

.right-aligned {
    justify-self: flex-end; text-align: right; width: 100%;
    }

.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;
    }

/* 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: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 1; /*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);
    }

/* 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: visible;
    max-height: 112vh;
    overflow-y: auto;
    }

.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.active {
    opacity: 1;
    }

.clasificacion-item:not(.active) {
    opacity: 1;
    }

/*0.8*/

.clasificacion-circle {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding: 4px;
    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: 0.9em;
    }

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

.clasificacion-label {
    font-size: 0.75rem; text-align: center; margin-top: 20px; 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 */

.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: pulse 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;
    }

.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;
      text-decoration: underline !important;

    }

.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 */

/* 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.muy-mala {
    background-color: #9b1b2e;
    }

.color-indicator.mala {
    background-color: #f26627;
    }

.color-indicator.regular {
    background-color: #e3be29;
    }

.color-indicator.buena {
    background-color: #0bb493;
    }

.color-indicator.muy-buena {
    background-color: #016942;
    }

.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: #FFD700;
    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.2);
    }

.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 */

/* INSTITUCIONES PARTICIPANTES - RESPONSIVE GRID */

.institutions-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    }

.institution-item {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    }

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

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

/* Responsive breakpoints */

/* 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 */

/* ===== LOADER ===== */

.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0e668d 0%, #1b7188 50%, #0e4a6d 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: 280px;
    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;
    }
    }

/* Responsive */

/* 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: 0 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: 1rem;
    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); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

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

/* Estado seleccionado para móvil */

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

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

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

/* ========================================
HISTORIAS DE Ã‰XITO
======================================== */

.historias-exito-section {
    padding: 80px 0;
    background-color: #fff;
    }

.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 -440px; */
    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; */
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    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: wheat;
    line-height: 1.6;
    }

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

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

.text-white {
    color: white;
    }

/* Responsive para Historias de Ã‰xito */

/* ==========================================
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;
    }

/* 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: 10px;
    margin-top: 20px;
    }

/* Ajustes para la caja de texto en móvil */

/* 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: 1;
    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: 6px 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 */

/* Ajustes para pantallas pequeñas */

/* ========================================
CAJA DE TEXTO SOBRE EL MAPA
======================================== */

.map-text-box {
    z-index: 1500;
    padding: 0 12px 12px 12px; /* Sin padding arriba */
    pointer-events: none;
    transition: width 0.3s ease, left 0.3s ease; /* Transición suave */
    }

.map-text-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px; /* Solo redondear abajo */
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: none; /* Sin borde arriba */
    max-width: 100%;
    }

.map-text-title {
    color: #0e668d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    }

.map-text-description {
    color: #555555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center; /* Centrado para mejor lectura en ancho completo */
    }

.map-text-box.position-absolute {
    z-index: 1000;
    pointer-events: auto;
    }

/* Responsive para la caja de texto */

/* Leyendas del mapa */

.map-legend {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 12px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    justify-content: space-evenly;
    }

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    }

.legend-color {
    width: 50px;
    height: 12px;
    /* border: 1px solid rgba(0, 0, 0, 0.2); */
    border-radius: 3px;
    flex-shrink: 0;
    }

.legend-color2 {
    width: 45px;
    height: 4px;
    background: repeating-linear-gradient(
    to right,
    #bebebe 0 8px,      /* tramo de color */
    transparent 8px 12px /* tramo transparente */
    );
    border-radius: 3px;
    }

.legend-label {
    font-size: 0.85rem;
    color: #333;
    /* font-weight: 500; */
    line-height: 1.3;
    }

/* Responsive para leyendas */

/* Subregiones en el mapa */

.subregion-tooltip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #2196F3;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.subregion-tooltip::before {
    border-top-color: #2196F3;
    }

/* Transiciones suaves en polÃ­gonos SVG (Leaflet) */

#mini-map .leaflet-pane {
    pointer-events: auto;
    }

/* Etiquetas permanentes de subregión en el mapa */

.subregion-permanent-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    pointer-events: none;
    }

.subregion-permanent-label span {
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #1a3a4a;
    text-shadow:
    -1px -1px 0 rgba(255,255,255,0.9),
    1px -1px 0 rgba(255,255,255,0.9),
    -1px  1px 0 rgba(255,255,255,0.9),
    1px  1px 0 rgba(255,255,255,0.9),
    0    0  6px rgba(255,255,255,0.7);
    white-space: nowrap;
    letter-spacing: 0.3px;
    }

/* ELIMINAR CUADRO DE SELECCIÃ“N AL HACER CLIC EN SUBREGIONES */

#mini-map .leaflet-overlay-pane path,
#mini-map-mobile .leaflet-overlay-pane path {
    outline: none !important;
    }

/* Eliminar outline también en el SVG contenedor */

#mini-map .leaflet-overlay-pane svg,
#mini-map-mobile .leaflet-overlay-pane svg {
    outline: none !important;
    }

/* Prevenir cualquier tipo de selección visual */

#mini-map *,
#mini-map-mobile * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    }

/* Transiciones suaves en indicadores */

.indicador-item,
.indicador-item-mobile {
    transition: background-color 0.4s ease, transform 0.15s ease, box-shadow 0.2s ease;
    }

/* Etiquetas de sección en el panel */

.section-label-panel {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8a9bb0;
    margin: 0 0 22px 0;
    padding: 0;
    text-align: center;
    }

/* ====== BOTONES DE SUBREGIÓN ====== */

.subregion-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    }

.subregion-btn {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #ccc;
    background-color: #e8e8e8;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.3;
    }

.subregion-btn:hover {
    opacity: 1;
    transform: scale(1.03);
    }

.subregion-btn.active {
    border-color: rgba(0,0,0,0.25);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: scale(1.05);
    }

.subregion-btn-mobile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin: 8px 0;
    }

.detalle-boton {
    font-size: 0.9em !important;
    }

/* Label de subregión seleccionada */

.subregion-label {
    font-size: 1.2rem;
    color: #2196F3;
    margin: 2px 0 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    }

.subregion-label .subregion-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2196F3;
    display: inline-block;
    flex-shrink: 0;
    }

.subregion-label.subregion-activa {
    color: #0e668d;
    font-weight: 600;
    }

.subregion-label-mobile {
    font-size: 0.8rem;
    color: #2196F3;
    margin: -55px 0 10px 0;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    }

.subregion-label-mobile.subregion-activa {
    color: #0e668d;
    font-weight: 600;
    }

/* Botón para volver a calificaciones globales */

.btn-calificaciones-globales {
    position: absolute;
    /* top: 12px; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    margin-top: 8px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 2px solid #2196F3;
    color: #2196F3;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    }

.btn-calificaciones-globales:hover {
    background: #2196F3;
    color: #fff;
    }

.btn-calificaciones-globales-mobile {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 10px auto;
    justify-content: center;
    font-size: 0.8rem;
    padding: 7px 14px;
    }

.trix-circle {
    width: 120px;       /* Equivalente al diámetro (radio 70 * 2) */
    height: 120px;
    border-radius: 50%; /* Esto convierte el cuadrado en círculo */
    display: flex;      /* Activa Flexbox */
    align-items: center;     /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    font-size: 56px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1;     /* Evita espaciados extraños en la fuente */
    }

.indicador-dataset-link {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #ccc;
    background-color: #e8e8e8;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 3;
    text-decoration: none;
    margin-top: 10px;
    }

.indicador-dataset-link:hover {
    opacity: 0.85;
    transform: scale(1.03);
    }

.subregion-button-message {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #555;
    text-align: left;
    }

#instruccionesIndicador {
    font-size: 0.9rem;
    }

/* ============================================
PORTADA OVERLAY - Texto superpuesto sobre la imagen header
Los tamaños usan vw para escalar proporcionalmente con la imagen.
============================================ */

.header-image-container {
    position: relative;
    width: 100%;
    }

.portada-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2% 12% 4% 27%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    }

/* --- Logos --- */

.portada-logos {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    margin-bottom: 0.8vw;
    }

.portada-logos img {
    height: 5vw;
    width: auto !important;
    min-width: unset !important;
    max-width: none !important;
    }

/* --- Línea horizontal + badge al final --- */

.portada-calificacion {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    margin-bottom: 2vw;
    position: relative;        /* agregar */
    padding-right: 8vw;        /* agregar — reserva espacio para el badge */
    }

.portada-linea {
    flex: 1;
    height: 4px;
    background-color: #4ab3d8;
    }

.portada-badge {
    position: absolute;        /* agregar */
    right: 0;                  /* agregar */
    width: 12vw;
    height: 12vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7vw;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0.3vw 1vw rgba(0, 0, 0, 0.4);
    }

/* --- Título --- */

.portada-titulo {
    display: flex;
    flex-direction: column;
    }

.portada-label {
    font-family: "Bebas Neue", sans-serif;
    font-size: 5vw;
    /* font-weight: 700; */
    /* letter-spacing: 0.08em; */
    white-space: nowrap;
    color: #4ab3d8;
    margin: 0 0 0.3vw 0;
    text-shadow: 1px 1px 4px rgba(80, 80, 80, 0.7), 0 0 8px rgba(80, 80, 80, 0.4);
    }

.portada-nombre {
    font-size: 7vw;
    font-weight: 600;
    margin: 0 0 0.4vw 0;
    line-height: 1;
    color: white;
    text-shadow: 1px 1px 6px rgba(80, 80, 80, 0.65), 0 0 12px rgba(80, 80, 80, 0.35);
    }

.portada-prefijo {
    font-size: 3vw;
    font-weight: 400;
    margin: 0 0 0.2vw 0;
    color: white;
    text-shadow: 1px 1px 4px rgba(80, 80, 80, 0.65), 0 0 8px rgba(80, 80, 80, 0.35);
    }

.portada-periodo {
    font-size: 4vw;
    font-weight: 300;
    margin: -50px;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    text-shadow: 1px 1px 4px rgba(80, 80, 80, 0.65), 0 0 8px rgba(80, 80, 80, 0.35);
    }

/* --- Responsive: Móvil --- */

/* Semáforo */

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Espacio entre badges */
    justify-content: center;
    margin-top: 10px;
    }

/* Estilo base del badge */

.badge {
    padding: 6px 14px;
    border-radius: 20px; /* Forma de cápsula */
    color: white;
    font-size: 13px;
    font-weight: 600;
    /* text-transform: uppercase; */
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Un toque de profundidad */
    }


/* ============================================================
MEDIA QUERIES
============================================================ */


@media (min-width: 769px) {
    .right-aligned { position: absolute; right: 5px; white-space: nowrap; width: auto; text-align: right; }
    .label-segment:last-child { position: relative; }
    }


@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;
    }
    }


@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;
    }
    }


@media (max-width: 1400px) {
    .island-image-container { width: 280px; max-height: 320px; }
    .island-static-image { height: 250px; }

    .institutions-grid {
      grid-template-columns: repeat(6, 1fr);
      gap: 0px;
  }
    }


@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%;
    }

    .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; }

    .institutions-grid {
      grid-template-columns: repeat(5, 1fr);
      gap: 0px;
  }
    .institution-item img { height: 50px; }
    .institution-item { height: 70px; }

    .map-text-box {
                padding: 12px 20px;
            }

    .map-text-content {
                padding: 16px 20px;
            }

    .map-text-title {
                font-size: 1.3rem;
            }

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

    .map-legend {
                gap: 8px;
                padding: 10px;
            }

    .legend-color {
                width: 35px;
                height: 8px;
            }

    .legend-label {
                font-size: 0.8rem;
            }

    .desktop-stats { display: none; }
    .mobile-stats { display: block; }
    }


@media (max-width: 992px) {
    .header-content {
      width: 90%;
    }

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

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

    .arrecife-text-column h3 {
    font-size: 1.5rem;
  }

    .info-grid {
      gap: 12px;
    }

    .arrecife-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;
    }

    .left-panel-grid {
        max-width: 600px;
    }

    .segment-title { font-size: 1.3rem; }
    .number { font-size: 2.5rem; }
    .sector-title { font-size: 1rem; }

/* .institutions-grid { grid-template-columns: repeat(4, 1fr); gap: 0px; } */
    .institution-item { height: 65px; }
    .institution-item img { height: 45px; }

    .downloads-container {
        flex-direction: column;
        align-items: center;
    }

    .download-button {
        max-width: 100%;
        width: 100%;
    }

    .historia-banner {
              height: 160px;
          }

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

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

    .map-text-box {
      display: block !important;
      position: relative !important;
      width: 100% !important;
      padding: 20px;
      margin-top: -10px;
      background: white;
      z-index: 1500;
  }

    .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;
  }

    .mobile-map-section .col-12 {
        pointer-events: none;
    }
    .mobile-map-section .map-text-box,
    .mobile-map-section #mini-map-mobile,
    .mobile-map-section #subregion-buttons-mobile {
        pointer-events: auto;
    }

    .info-panel-container {
      display: none !important;
  }

    .map-text-box {
                display: none;
            }

    .map-legend {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 2px;
            }

    .legend-item {
                flex-direction: column;
                text-align: center;
                gap: 5px;
            }

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

/* .arrecife-section .arrecife-container {
        position: relative;
        min-height: 500px;
    }
    .arrecife-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%;
    }
    .arrecife-section .col-lg-7.order-md-2 {
        position: relative;
        z-index: 2;
        background-color: rgba(14, 74, 109, 0.3);
        color: white;
        padding: 30px;
        margin-top: 80px;
        border-radius: 10px;
    }
    .parallax-image {
        top: 120px;
        opacity: 0.4;
    } */
    .arrecife-image-column {
      display: none;
    }
    .maps-section {
        height: 100%;
    }
    }


@media (max-width: 768px) {
    .navbar .navbar-brand img {
      width: 90px;
    }

    .header-content {
      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;
    }

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

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

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

    .arrecife-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;
    flex-direction: column;
    align-items: flex-start;

    }

    .recommendation-marker {
      width: 100%;
      /* max-width: 220px; */
      height: auto;
      margin-right: 0;
      margin-bottom: 0.75rem;
    }

    .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;
    }

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

    .number { font-size: 2.2rem; }
    .color-segment { font-size: 0.8rem; }
    .stats-bar { height: 35px; }
    .sector-title-segment { gap: 10px; }

    .indicadores-gallery { gap: 10px; padding: 10px; }
    .indicador-item { width: 50px; height: 50px; }

    .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; }

    .institution-item { height: 55px; }
    .institution-item img { height: 50px; }
    .institutions-grid { gap: 10px; }

    .loader-logo {
        width: 120px;
    }

    .loader-text {
        font-size: 1rem;
        margin-top: 25px;
    }

    .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;
}

    .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: 4px;
          }

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

    .figure-caption{
              font-size: 0.7rem;
          }

    #mini-map-mobile {
      height: 400px;
  }

    .subregion-permanent-label span {
                font-size: 9px;
            }

    .portada-overlay {
        padding: 0% 4% 4% 0%;
        align-items: center;
        text-align: center;
    }
    .portada-logos {
        justify-content: center;
        gap: 3vw;
    }
    .portada-logos img {
        height: 8vw;
    }
    .portada-calificacion {
        width: 100%;
    }
    .portada-badge {
        width: 20vw;
        height: 20vw;
        font-size: 11vw;
    }
    .portada-label {
        font-size: 8vw;
        text-align: center;
    }
    .portada-nombre {
        font-size: 12vw;
    }
    .portada-prefijo{
        font-size: 5vw;
    }
    .portada-periodo {
        font-size: 4vw;
        text-align: center;
    }
    .portada-titulo {
        align-items: center;
    }
    }


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

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

    .header-content {
      width: 92%;
    }

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

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

    .header-content img {
      width: 90%;
    }

    .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;
    }

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

    .info-container {
      width: 300px;
    }

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

    .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;
    }

    .header-image {
        width: 100%;
        height: auto;
    }

    .buttons-section .flex-fill.island-button {
        margin: 0 2px;
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
    }

    .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; }

    .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; }

    .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;
    }

    .institution-item { height: 45px; }
    .institution-item img { height: 45px; }
    .institutions-grid { gap: 8px; }

    .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-logo {
        width: 250px;
    }

    .loader-text {
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .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;
}

    .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: center;

          }

    #mini-map-mobile {
      height: 350px;
  }

    .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;
      margin: 0 10px 0 10px;
      /* padding: 0 47px 0 100px; */
      /* top: -80px; */
  }
    }

.leaflet-interactive {
    transition: fill 0.4s ease, stroke 0.4s ease, fill-opacity 0.4s ease, stroke-opacity 0.4s ease;
}