/* 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: 850px;
    height: auto;
    padding-bottom: 50px;
    overflow: hidden;
  }
  
  .header-image {
    position: fixed;
    top: -180px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://arrecife-alacranes.lanresc.mx/images/Rectangle-1.png') center / cover no-repeat;
    z-index: -2;
  }
  
  .header_background-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: transparent;
    background-image: linear-gradient(#00000026, #00000026), 
                    linear-gradient(#fff0, #3c6f921a 20%, #36658580 43%, #0e668d 60% 85%, #0e668d);
  }
  
  .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;
  }
  
  .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 */
  .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(45deg, rgba(6, 14, 63, 1), rgba(6, 14, 63, 1));
    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;
  }
  
  .arrecife-text a {
    color: #4ecdc4;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .arrecife-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-control-scale-line {
    position: relative;
    height: 2px !important;
    border: 0px solid #777;
    color: white;
    border-top: none;
    line-height: 1.8;
    padding: 2px 5px 1px;
    white-space: nowrap;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    text-shadow: 0px 0px #fff;
  }
  
  .leaflet-bottom .leaflet-control {
    margin-bottom: 20px;
  }
  
  /* .roseta-container {
    background-color: rgba(255, 255, 255, 0);
    z-index: 1000;
    width: 450px;
    max-width: 35%;
    margin-top: 55px;
    margin-left: 180px;
  } */
  
  .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 {
    max-height: 400px;
    overflow-y: auto;
  }
  
  h3.nombre-isla {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .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('/assets/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.4rem;
    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: #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;
  }
  
  .stats-container {
    margin-top: 2rem;
    width: 100%;
    display: flex;
  }
  
  .stat-item {
    display: flex;
    align-items: flex-end;
    padding: 0.75rem 1rem;
  }
  
  .stat-item-academico {
    background-color: #008597;
    flex-grow: 0.64;
    color: white;
  }
  
  .stat-item-gubernamental {
    background-color: #4f6a31;
    flex-grow: 0.25;
    color: white;
  }
  
  .stat-item-osc {
    background-color: #eb6f27;
    flex-grow: 0.08;
    color: white;
  }
  
  .stat-item-privado {
    background-color: #f5b21a;
    flex-grow: 0.02;
    color: white;
  }

  .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 0.75rem;
    color: white;
  }
  
  .stat-label {
    font-size: 1rem;
    padding-bottom: 0.5rem;
  }
  
  /* 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;
  }


  .institution-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 1.5rem;
  }
  
  .logo-placeholder {
    width: 100px;
    height: 100px;
    border: 3px solid var(--color-dark-gray);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logo-placeholder::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    border: 3px solid var(--color-dark-gray);
    border-radius: 50%;
  }
  
  .logo-placeholder::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border-top-right-radius: 8px;
    border: 3px solid var(--color-dark-gray);
    top: 0;
    right: 0;
  }
  
  /* 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: 950px;
    }
    
    .header-content {
      padding-top: 200px;
      width: 90%;
    }
    
    .header-content h1 {
      font-size: 3.2rem;
    }
    
    .header-content h2 {
      font-size: 2rem;
    }
    
    .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;
    }

}
  
  @media (max-width: 768px) {
    .header {
      min-height: 1050px;
    }
    
    .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;
    }
    
    .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;
    }
    
    .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;
    }

    .institution-logo {
        margin-bottom: 2rem;
    }
      
    .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: 1150px;
    }
    
    .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;
    }
    
    .arrecife-text,
    .conectado-text {
      font-size: 1.2rem;
    }
    
    .info-container {
      width: 300px;
    }

    .workshop-year{
      text-align: center;
    }

    .header_background-image-wrapper {
      background-image: linear-gradient(#00000026, #00000026), 
                      linear-gradient(#fff0, #3c6f921a 20%, #36658580 30%, #0e668d 33% 85%, #0e668d);
    }
    .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 p{
      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: #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 p {
    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 */
}