@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   CLASES UNIFICADAS PARA REEMPLAZAR ESTILOS INLINE
   ========================================================================== */

.texto-principal {
    color: #373737;
    font-size: 20px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 30px;
}

.texto-secundario {
    color: #373737;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 24px;
}

.texto-pequeno {
    color: #373737;
    font-size: 14px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 21px;
}

.titulo-seccion {
    color: #003B8D;
    font-size: 36px;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    line-height: 54px;
    margin-bottom: 30px;
}

.titulo-subseccion {
    color: #0051A8;
    font-size: 24px;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    line-height: 36px;
    margin-bottom: 20px;
}

.titulo-card {
    color: #373737;
    font-size: 20px;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 15px;
}

/* Contenedores y cards */
.container-principal {
    max-width: 1140px;
    padding: 40px 15px;
}

.highlight-card {
    background-color: #F8F9FA;
    padding: 35px;
    border-radius: 6px;
    border: 1px solid #E6E6E6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   FLIP CARDS PARA QUE-ES-ADAPTACION
   ========================================================================== */

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 167px;
    cursor: pointer;
}

.flip-card:focus {
    outline: 3px solid #0F62FE;
    outline-offset: 2px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-front {
    background-color: #EDF5FF;
}

.flip-card-back {
    background-color: #0F62FE;
    color: white;
    transform: rotateY(180deg);
}

/* Íconos para amenazas */
.icon-amenaza {
    font-size: 24px;
    color: #0F62FE;
    margin-bottom: 10px;
}

.titulo-amenaza {
    color: #001141;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA INICIATIVAS
   ========================================================================== */

.titulo-iniciativas {
    color: #373737;
    font-size: 36px;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    line-height: 54px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 767px) {
    .titulo-iniciativas {
        font-size: 28px;
        line-height: 42px;
    }
}

@media (max-width: 480px) {
    .titulo-iniciativas {
        font-size: 24px;
        line-height: 36px;
    }
}

/* Tabla responsiva */
.table-responsive {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .table-responsive table {
        font-size: 14px;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 8px;
    }

    /* Ocultar columnas menos importantes en móviles */
    .table-responsive .d-none-mobile {
        display: none;
    }
}

/* Mejoras de accesibilidad para formularios */
.form-select:focus,
.form-control:focus {
    border-color: #0F62FE;
    box-shadow: 0 0 0 0.2rem rgba(15, 98, 254, 0.25);
}

/* Panel sticky responsivo */
@media (max-width: 991px) {
    .sticky-panel {
        position: static !important;
        margin-top: 20px;
    }
}

/* Colores de texto */
.text-naranja {
    color: #FFA726;
}

.text-verde {
    color: #4CAF50;
}

.text-azul {
    color: #0F62FE;
}

.text-turquesa {
    color: #009D9A;
}

.text-blanco {
    color: white;
}

/* Espaciado unificado */
.mb-estandar {
    margin-bottom: 30px;
}

.mb-pequeno {
    margin-bottom: 20px;
}

.mb-grande {
    margin-bottom: 40px;
}

.mt-estandar {
    margin-top: 30px;
}

.mt-pequeno {
    margin-top: 20px;
}

.mt-grande {
    margin-top: 40px;
}

/* Secciones con fondo */
.seccion-fondo-gris {
    background-color: #F8F9FA;
    padding: 80px 0;
    margin: 60px 0;
}

.seccion-fondo-azul {
    background-color: #EDF5FF;
    padding: 80px 0;
    margin: 60px 0;
}

/* Botones unificados */
.btn-principal {
    background: #0f69b4;
    color: white;
    font-size: 19px;
    font-weight: 700;
    padding: 13px 25px;
/*    border-radius: 4px;*/
    border: none;
}

.btn-principal:hover {
    background: #0051A8;
    color: #fff;
}

.btn-secundario {
    background: white;
    border: 1px solid #0f69b4;
    color: #0f69b4;
    font-size: 19px;
    font-weight: 700;
    padding: 13px 25px;
    border-radius: 4px;
}
.btn-secundario:hover {
    background: #BFEEFF;
    color: #0f69b4;
}

/* Utilidades de altura */
.altura-completa {
    height: 100%;
}

.min-altura-300 {
    min-height: 300px;
}

/* Utilidades de texto */
.texto-centrado {
    text-align: center;
}

.texto-justificado {
    text-align: justify;
}

/* General Styles */
body {
    color: var(--Negro-Text, #373737) !important;
    font-size: 20px !important;
    font-family: Roboto !important;
    font-weight: 400 !important;
    line-height: 30px !important;
    word-wrap: break-word !important;
}

@media (max-width:480px){
    body, p {
        font-size: 16px !important;
        line-height: 26px !important;
    }
}

h1 {
    font-size: 36px;
    font-family: Roboto Slab;
    font-weight: 500;
    line-height: 54px;
    word-wrap: break-word
}

h2 {
    font-size: 24px;
    font-family: Roboto;
    font-weight: 500;
    line-height: 36px;
    word-wrap: break-word
}
a {
    color: #0078E7;
}

.bg-light {
    background-color: #000F41 !important;

}

.nav-link {
    color: white;
    padding: .6em 1.5em;
    padding-left: 1.5em !important;
    padding-right: 1.5em !important;
}
.nav-link:hover, .nav-link:focus {
        color: white;
    background: #002673;
    text-decoration: underline;
}

.navbar {
    background-color: #00135A;
}
nav {
    font-size: 15px;
}


.seccion {
    margin-top: 70px;
    margin-bottom: 70px;
}

@media (max-width:480px){
    .seccion {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.box_small {
    min-height: 150px;
    margin: 2px;

    margin-bottom: 16px;
    padding: 24px;
    color: var(--Blanco-Base, white);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.box_small .box_small_icon {
    width: 44px !important;
    height: 44px !important;
}

.box_large {
    min-height: 100%;
    margin: 0px;
    padding: 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.box_large .box_large_icon {

    width: 78px !important;
    height: 78px !important;
}

.box_large .box_large_title {

    color: var(--Yellow-2, #433510);
    font-size: 24px;

    font-weight: 700;
    line-height: 36px;

}

.box_xxl {
    margin: 5px;
    padding: 20px;
    border: 1px solid #E6E6E6;
    border-radius: 6px;

}

.box_white {
    background-color: white;
    padding: 24px;
    border: 1px solid #E6E6E6;
    border-radius: 6px;
    color: var(--Negro-Text, #373737);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.box_white .box_white_title {
    font-size: 24px;
    font-weight: 500;
    line-height: 36px;
}


.box_white .box_white_number {
    font-size: 48px;
    font-weight: 700;
    line-height: 72px;
    margin-bottom: 0px;
}

.box_white_number-blue {
    color: #0F62FE;
}

.box_white_number-green {
    color: #00CCC9;
}

.box_white .box_white_unidad {
    color: var(--Focus-Text, #373737);
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}


.recurso_circle {
    width: 196px;
    height: 196px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    color: var(--Blanco-Base, white);
    font-size: 19px;
    font-weight: 700;
    line-height: 28.50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recurso_link {
    text-decoration: none;
    display: inline-block;
}

.recurso_link:hover .recurso_circle {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.recurso_link:hover {
    text-decoration: none;
}

.recurso_circle_icon {
    height: 65px !important;
    width: 65px !important;
    filter: brightness(0) invert(1);
    /* Asegura que los iconos sean blancos sobre fondos de colores */
}
}

.box_imagen_texto {
    color: var(--Negro-Text, #373737);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}



.box_imagen_texto_img {
    width: 100%;
    height: auto;
}

.box_imagen_texto .box_imagen_text_descripcion {
    padding: 15px;
}

.box_imagen_texto_titulo {
    padding-left: 15px;
    padding-right: 15px;
    color: var(--Negro-Text, #373737);

    font-size: 18px;
    font-weight: 500;
    line-height: 36px;
}


.btn-primary {
    --bs-btn-border-color: #0d6efd;
}

/* Recursos círculos */
.recurso-circle {
    width: 196px;
    height: 196px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    /* Centra verticalmente */
    justify-content: center;
    color: var(--Blanco-Base, white);
    font-size: 19px;
    font-weight: 700;
    line-height: 28.50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recurso_link {
    text-decoration: none;
    display: inline-block;
}

.recurso_link:hover .recurso_circle {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.recurso_link:hover {
    text-decoration: none;
}

.recurso_circle_icon {
    height: 65px !important;
    width: 65px !important;
}

.box_imagen_texto {
    color: var(--Negro-Text, #373737);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}



.box_imagen_texto_img {
    width: 100%;
    height: auto;
}

.box_imagen_texto .box_imagen_text_descripcion {
    padding: 15px;
}

.box_imagen_texto_titulo {
    padding-left: 15px;
    padding-right: 15px;
    color: #0f69b4;

    font-size: 18px;
    font-weight: 500;
    line-height: 36px;
}


.btn-primary {
    --bs-btn-border-color: #0d6efd;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 150px;
    perspective: 1000px;
    margin-bottom: 8px;
    padding: 4px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front .box_small_icon {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.flip-card-back h5 {
    font-size: 14px;
    margin-bottom: 8px;
    color: white;
}

.flip-card-back p {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.3;
    margin: 0;
}

.flip-card-front p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
    margin-top: 8px;
}

/* Flip Card Large Styles for box_large */
.flip-card-large {
    background-color: transparent;
    width: 100%;
    min-height: 300px;
    perspective: 1000px;
    margin-bottom: 8px;
    padding: 4px;
}

.flip-card-large-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-large:hover .flip-card-large-inner {
    transform: rotateY(180deg);
}

.flip-card-large-front,
.flip-card-large-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 300px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.flip-card-large-back {
    transform: rotateY(180deg);
}

.flip-card-large-front .box_large_icon {
    width: 78px !important;
    height: 78px !important;
    margin-bottom: 20px;
}

.flip-card-large-front .box_large_title,
.flip-card-large-back .box_large_title {
    color: var(--Yellow-2, #433510);
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 15px;
}

.flip-card-large-back p:not(.box_large_title) {
    color: var(--Negro-Text, #373737);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin: 0;
}

/* ==========================================================================
   FLIP CARDS - COLORES DE FONDO
   ========================================================================== */

.flip-card-front-celeste {
    background-color: #009D9A;
}

.flip-card-back-celeste {
    background-color: #007A77;
}

.flip-card-front-azul {
    background-color: #0F62FE;
}

.flip-card-back-azul {
    background-color: #0D52D1;
}

.flip-card-front-negro {
    background-color: #001141;
}

.flip-card-back-negro {
    background-color: #000A2E;
}

.flip-card-front-agua {
    background-color: #00CCC9;
}

.flip-card-back-agua {
    background-color: #00A8A5;
}

/* Flip cards grandes */
.flip-card-large-front-azul-claro {
    background-color: #D0E2FF;
}

.flip-card-large-back-azul-claro {
    background-color: #C1D7FF;
}

.flip-card-large-front-azul-muy-claro {
    background-color: #EDF5FF;
}

.flip-card-large-back-azul-muy-claro {
    background-color: #DEF0FF;
}


.flip-card-front,
.flip-card-large-front {
    transform: rotateY(0deg);
}

.flip-card-inner,
.flip-card-large-inner {
    will-change: transform;
}

/* Recursos círculos */
.recurso-circle-azul {
    background-color: #0F62FE;
}

.recurso-circle-celeste {
    background-color: #33C3F0;
}

.recurso-circle-negro {
    background-color: #373737;
}

.recurso-circle-verde-oscuro {
    background-color: #198038;
}

.recurso-circle-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Botones de ancho completo */
.btn-ancho-completo {
    width: 100%;
}

/* Imágenes completas */
.imagen-ancho-completo {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   SISTEMA DE COLORES UNIFICADO
   ========================================================================== */

/* Colores de texto extendidos */
.text-negro {
    color: #111111;
}

.text-negro-text {
    color: #373737;
}

.text-gris-70 {
    color: #4D4D4D;
}

.text-gris-90 {
    color: #1A1A1A;
}

.text-azul-primario {
    color: #0f69b4;
}

/* Colores de fondo extendidos */
.bg-gris-claro {
    background-color: #F8F9FA;
}

.bg-azul-claro {
    background-color: #EDF5FF;
}

.bg-blanco {
    background-color: white;
}

/* ==========================================================================
   LAYOUT Y ESPACIADO UNIFICADO
   ========================================================================== */

/* Contenedores específicos */
.header-container {
    width: 100%;
/*    height: 90px;*/
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-ministerio {
    width: 130px;
    display: flex;
    align-items: center;
}
.logo-ministerio img {
    max-width: 100%;
}

@media (max-width: 480px) { 
    .logo-ministerio {
        width: 90px;
    }
}

.navbar-toggler {
    border: none;
}

.titulo-plataforma {
    width: 236px;
    height: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.titulo-plataforma-linea1 {
    color: #223550;
    font-size: 25px;
    font-family: Roboto;
    font-weight: 700;
    line-height: 25px;
}

.titulo-plataforma-linea2 {
    color: #009D9A;
    font-size: 32px;
    font-family: Roboto;
    font-weight: 700;
    line-height: 32px;
}

/* boton SNAICC en header */
.titulo-plataforma .button--line {
    margin-top: 4px;
}

.button--line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6 !important;
    font-weight: 400 !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    line-height: 16px !important;
    width: fit-content;
    text-decoration: none;
    border-radius: 4px;
}

.button--line:hover,
.button--line:focus {
    color: #6c757d;
    border: 1px solid #dee2e6 !important;
    background-color: #f8f9fa;
    text-decoration: none;
}

.button--line:active {
    background-color: #e9ecef;
    color: #495057;
}

.button--line b {
    color: #223550 !important;
}

.button--line i {
    font-size: 10px;
}

/* ==========================================================================
   ELEMENTOS DE FORMULARIO UNIFICADOS
   ========================================================================== */

.input-search {
    border: 1px solid #E6E6E6;
    padding: 12px;
    border-radius: 4px;
    font-family: Roboto;
    color: #373737;
}

.select-filtro {
    border: 1px solid #E6E6E6;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: Roboto;
    color: #373737;
}

/* ==========================================================================
   TEXTO Y TIPOGRAFÍA EXTENDIDA
   ========================================================================== */

/* Estilos de texto base sin color (para reutilizar) */
.texto-base {
    font-family: Roboto;
    font-weight: 400;
    word-wrap: break-word;
}

.texto-bold {
    font-family: Roboto;
    font-weight: 700;
    word-wrap: break-word;
}

.texto-medium {
    font-family: Roboto;
    font-weight: 500;
    word-wrap: break-word;
}

/* Tamaños específicos */
.texto-48 {
    font-size: 48px;
    line-height: 52.8px;
}

.texto-32 {
    font-size: 32px;
    line-height: 48px;
}

.texto-25 {
    font-size: 25px;
    line-height: 25px;
}

.texto-19 {
    font-size: 19px;
    line-height: 28.5px;
}

/* Clases combinadas más usadas */
.texto-descripcion {
    color: #373737;
    font-size: 19px;
    font-family: Roboto;
    font-weight: 500;
    line-height: 28.5px;
}

.texto-label {
    color: #4D4D4D;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 24px;
}

.texto-dato {
    color: #1A1A1A;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 24px;
}

/* ==========================================================================
   POSICIONAMIENTO Y DISPLAY
   ========================================================================== */

.position-sticky-top {
    position: sticky;
    top: 20px;
}

.overlay-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.w-auto-inline {
    width: auto;
    display: inline-block;
}

/* ==========================================================================
   SOMBRAS Y EFECTOS
   ========================================================================== */

.sombra-texto {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.sombra-texto-suave {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   UTILIDADES ESPECÍFICAS
   ========================================================================== */

.nav-activo {
    text-decoration: underline;
}

.fondo-overflow-hidden {
    overflow: hidden;
}

.imagen-completa {
    width: 100%;
    height: auto;
    display: block;
}

.max-width-800 {
    max-width: 800px;
}

.gap-3 {
    gap: 1rem;
}

/* ==========================================================================
   PÁGINA ALTERNATIVA - CLASES ESPECÍFICAS
   ========================================================================== */

/* Hero Section */
.hero-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 450px;
  max-height: 450px;
}

.hero-image {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0; /* top, right, bottom, left = 0 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  align-items: center; /* centra horizontalmente */
  padding: 1.5rem;
  color: white;
  background: linear-gradient(
    35deg,
    rgba(0, 5, 20, 0.8) 0%,
    rgba(0, 15, 60, 0.6) 25%,
    rgba(0, 25, 110, 0.4) 50%,
    rgba(0, 35, 135, 0.1) 75%,
    rgba(0, 59, 141, 0.05) 100%
  );
  z-index: 10;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: 'Roboto Slab', serif;
  color: white;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: white;
  max-width: 600px;
}

/* Mobile */
@media (max-width: 480px) {
  .hero-container {
    max-height: 270px;
    min-height: 270px;
  }

  .hero-overlay {
    padding: 1rem;
    justify-content: center; /* centrado vertical */
    align-items: center;      /* centrado horizontal */
    text-align: center;
    background: linear-gradient(
      180deg,
      rgba(0, 5, 20, 0.8) 0%,
      rgba(0, 15, 60, 0.6) 50%,
      rgba(0, 25, 110, 0.4) 100%
    );
  }

  .hero-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.3;
  }
}

/* Cajas de información */
.info-box-azul {
    background-color: #D0E2FF;
    border-left: 5px solid #0F62FE;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box-celeste {
    background-color: #EDF5FF;
    border-left: 5px solid #009D9A;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-box-gris {
    background-color: #F5F5F5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Amenazas climáticas */
.amenazas-container {
    background-color: #D0E2FF;
    padding: 30px;
    border-radius: 6px;
}

.amenaza-card {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.amenaza-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.amenaza-titulo {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.amenaza-descripcion {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Marco conceptual - Carrusel */
.carousel-indicators button {
    background-color: #009D9A !important;
}

/* Carrusel Pérdidas y daños */
.carousel-content {
    padding: 40px 20px;
    min-height: 400px;
}

.carousel-image {
    max-height: 350px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Controles del carrusel personalizados */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(15, 98, 254, 0.8);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(15, 98, 254, 1);
}

/* Indicadores del carrusel */
.carousel-indicators [data-bs-target] {
    background-color: #009D9A !important;
    border: 2px solid white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ==========================================================================
   CLASES DE COLOR Y TIPOGRAFÍA ADICIONALES
   ========================================================================== */

/* Clases de color para texto */
.color-azul-primario {
    color: #0f69b4;
}

.color-turquesa {
    color: #009D9A;
}

.text-white {
    color: white;
}

.texto-blanco {
    color: white;
    font-family: Roboto;
    font-size: 16px;
    line-height: 24px;
    opacity: 0.95;
}

/* Clases de iconos */
.icon-grande {
    font-size: 48px;
}

/* ==========================================================================
   RESPONSIVIDAD Y ACCESIBILIDAD
   ========================================================================== */

/* Padding responsivo para header */
.header-responsivo {
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .header-responsivo {
        padding: 60px 20px;
    }
}

/* Tipografías responsivas */
@media (max-width: 767px) {
    .titulo-principal {
        font-size: 28px;
        line-height: 42px;
    }

    .titulo-seccion {
        font-size: 28px;
        line-height: 42px;
    }

    .texto-grande {
        font-size: 20px;
        line-height: 30px;
    }

    .texto-principal {
        font-size: 18px;
        line-height: 27px;
    }
}

@media (max-width: 480px) {
    .titulo-principal {
        font-size: 24px;
        line-height: 36px;
    }

    .titulo-seccion {
        font-size: 24px;
        line-height: 36px;
        margin-bottom: 20px;
    }

    .icon-grande {
        font-size: 36px;
    }
}

/* Cards responsivas */
@media (max-width: 767px) {

    .card-principal,
    .container-adaptacion {
        padding: 20px;
        margin-bottom: 20px;
    }

    .card-secundaria {
        margin-bottom: 20px;
    }
}

/* Carrusel responsivo */
.carousel-content {
    padding: 40px 20px;
    min-height: 400px;
}

@media (max-width: 767px) {
    .carousel-content {
        padding: 20px 10px;
        min-height: 300px;
    }

    .carousel-image {
        max-height: 250px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .carousel-content {
        padding: 15px 5px;
        min-height: 250px;
    }

    .carousel-image {
        max-height: 200px;
    }
}

/* Estados de foco para accesibilidad */
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 3px solid #0F62FE;
    outline-offset: 2px;
}

.carousel-indicators button:focus {
    outline: 2px solid #0F62FE;
    outline-offset: 2px;
}

/* Mejoras de contraste */
.card-info {
    background: #EDF5FF;
    border-left: 5px solid #0F62FE;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(15, 98, 254, 0.1);
}

/* Espaciado responsivo */
@media (max-width: 767px) {
    .container-principal {
        padding: 20px 15px;
    }

    .mt-estandar {
        margin-top: 15px !important;
    }

    .mb-estandar {
        margin-bottom: 15px !important;
    }
}

/* Clases adicionales para responsividad */
.header-responsivo {
    padding: 40px 20px;
}

@media (min-width: 768px) {
    .header-responsivo {
        padding: 60px 20px;
    }
}

/* Mejoras de usabilidad en táctil */
@media (max-width: 767px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }

    .carousel-indicators button {
        width: 15px;
        height: 15px;
        margin: 0 8px;
    }
}

/* Asegurar texto legible en pantallas pequeñas */
@media (max-width: 480px) {

    .card-destacada,
    .gradient-card {
        padding: 20px;
    }

    .card-info {
        padding: 15px;
    }

    .highlight-card {
        padding: 20px;
    }
}

/*==========================================
V2
===========================================*/

/* Diagrama Venn Riesgo */

.ellipse-riesgo--amenaza {
  fill: rgba(104,159,56,0.1);
  stroke: rgba(104,159,56,0.01);
  stroke-width: 3;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.ellipse-riesgo--amenaza:hover {
/*  fill: #fff;*/
  stroke: #689F38;
  opacity: 1;
}

.ellipse-riesgo--vulnerabilidad {
  fill:     rgba(58,175,169,0.1);
  stroke:   rgba(58,175,169,0.01);
  stroke-width: 3;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.ellipse-riesgo--vulnerabilidad:hover {
  stroke: #3AAFA9;
  opacity: 1;
}

.ellipse-riesgo--exposicion {
  fill: rgba(217,119,87,0.1);
  stroke: rgba(217,119,87,0.01);
  stroke-width: 3;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.ellipse-riesgo--exposicion:hover {
    fill: rgba(217,119,87,0.1);
    stroke: rgba(217,119,87,1);
}

.circle-riesgo-central {
/*    fill: rgba(256, 256, 256, .8);*/
    fill: transparent;
}


.circle-riesgo-central__title {
    text-align: center;
    transform-origin: center center;
    display: inline-block;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* CARDS RIESGO */

.card--riesgo .card-header{
    border-bottom: none;
    background: none;
}

.card--amenaza {
    background: rgba(104,159,56,0.1);
    border: none;
}
.card--riesgo .card-header{
    padding: 1.5em 1.5em 0 1.5em;
}

.card--riesgo .card-body{
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card--riesgo .card-body > p:first-child {
    min-height: 9em;
}

.card--riesgo .card-body > .card:last-child {
    flex: 1;
    margin-bottom: 0 !important;
}

.card--amenaza__title{
    color: #689F38
}

.card--amenaza__number{
    background-color: #689F38;
}

.card--amenaza .card-body {
    font-size: 16px;
}

.card--amenaza__subcard strong {
    color: #689F38;
}

/* Card vulnerabilidad */
.card--vulnerabilidad {
    background: rgba(58,175,169,0.1);
    border: none;
}

.card--vulnerabilidad__title {
    color: #3AAFA9;
}

.card--vulnerabilidad__number{
    background-color: #3AAFA9;
}

.card--vulnerabilidad .card-body {
    font-size: 16px;
}

.card--vulnerabilidad__subcard {
    border: none ;
}
 .card--vulnerabilidad__subcard strong {
    color: #3AAFA9;
 }

/* Card exposición */
.card--exposicion {
    background: rgba(217,119,87,.1);
    border: none;
}

.card--exposicion__title {
    color: #D97757;
}

.card--exposicion__number{
    background-color: #D97757;
}

.card--exposicion .card-body {
    font-size: 16px;
}

.card--exposicion__subcard {
    border: none ;
}
 .card--exposicion__subcard strong,
 .card--exposicion__subcard__title {
    color: #D97757;
 }

/* CARDS GENÉRICAS */

.card {
    border: none;
}
.card-title,
.modal-title {
    color: #0f69b4;
}
.card-body a {
    text-decoration: none;
}
.card-body a:hover {
    text-decoration: underline;
}

.card--bg-light {
    background-color: rgba(15, 105, 196,.05);
    border: none;
}
.card--bg-light img {
    width: 100%;
/*    height: 150px;*/
    object-fit: cover;
}
.card--bg-light .card-text {
/*    color: #0f69b4;*/
    font-size: 16px;
    line-height: 22px;
}

@media screen and (max-width: 600px) {
    .card--bg-light {
        height: auto !important;
    }
}

.card--bg-green {
    background: rgba(104,159,56,0.1);
}
.card--bg-turquesa {
    background-color: rgba(58,175,169,0.1);
}
.card--bg-terracota {
    background-color: rgba(217,119,87,.1);
}

.card--green__title,
.card--green__title a {
    color: #689F38;
}
.card--turquesa__title,
.card--turquesa__title a {
    color: #3AAFA9;
}
.card--terracota__title,
.card--terracota__title a {
    color: #D97757;
}


/* home */
.flip-card--blue {
    background: rgba(15,105,180, 0.1);
    color: #0f69b4;
}
.flip-card--terracota {
    background: rgba(217,119,87,0.1);
    color: rgba(217,119,87,1);
    fill: rgba(217,119,87,1) ;
}

.flip-card--coral {
    background: rgba(230,57,70,.1);
    color:rgba(230,57,70,1);
}

.flip-card--verde {
    background: rgba(104,159,56,.1);
    color: rgba(104,159,56,1);
}

.flip-card--turquesa {
    background: rgba(58,175,169,.1);
    color: rgba(58,175,169,1);
}
.flip-card__overlay {
position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    color: white;
    background: linear-gradient(35deg, rgba(0, 5, 20, 0.8) 0%, /* Azul casi negro, 80% opaco */ rgba(0, 15, 60, 0.6) 25%, /* Azul muy oscuro, 60% opaco */ rgba(0, 25, 110, 0.4) 50%, /* Azul oscuro medio, 40% opaco */ rgba(0, 35, 135, 0.10) 75%, /* Azul más claro, 20% opaco */ rgba(0, 59, 141, 0.05) 100% /* Azul más claro de la paleta, 5% opaco */);
    z-index: 10;
}
.flip-card__overlay h5 {
    top: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* home cards menu */
.card-img-overlay a {
color: white;
    
    background: #0051A8;
    transition: transform 0.3s ease ;
    }
.card-img-overlay a.card--link-style-2 {
background: #0f69b4;
transition: background 0.3s ease ;
}
.card-img-overlay a:hover{
    background: linear-gradient(35deg, rgba(0, 5, 20, 0.8) 0%, rgba(0, 15, 60, 0.6) 25%,  rgba(0, 25, 110, 0.4) 50%, rgba(0, 35, 135, 0.10) 75%,  rgba(0, 59, 141, 0.05) 100% );

}

.card-img-overlay .card-title{
    color: white;
}
.card-img-overlay a {
    color: white;
    text-decoration: none;
}




.amenazas-list,
.vulnerabilidad-list,
.exposicion-list {display:flex; flex-direction:column; gap:18px; margin:0; padding:0;}
.amenaza-item,
.vulnerabilidad-item,
.exposicion-item {display:flex; align-items:flex-start; gap:16px; role:list-item; background: #fff; border-radius:6px;}
.amenaza-item img,
.vulnerabilidad-item img,
.exposicion-item img {width:88px; height:auto; display:block; border-radius:6px 0 0 6px; object-fit:cover; box-shadow:0 2px 6px rgba(0,0,0,.08);} 
.amenaza-item p,
.vulnerabilidad-item p,
.exposicion-item p {margin:0; font-size:15px; line-height:1.25;padding: 1em 1em 1em 0;}
.amenaza-item p strong,
.vulnerabilidad-item p strong,
.exposicion-item p strong {font-weight:700; display:block; color: #689F38; }
@media (max-width:576px){
  .amenaza-item img, .vulnerabilidad-item img, .exposicion-item img{width:72px;}
  .amenaza-item p, .vulnerabilidad-item p, .exposicion-item p{font-size:14px;}
}



/* Todos los botones base */
.tabs-adaptacion--nav .nav-link {
  border: 1px solid transparent;
  border-radius: 0;
  color: #373737;
  text-align: left;
  background: #fff;
  max-width: 450px;
}

.tabs-adaptacion--nav .nav-link:hover {
    background-color: rgba(15, 105, 196,.01);
    text-decoration: none;
}
.tabs-adaptacion--nav .nav-link:hover h5 {
    color: #0f69b4;
    text-decoration: none;
}
.tabs-adaptacion--nav .nav-link:hover p {
    text-decoration: none;
}

.tabs-adaptacion--nav .nav-link p {
    font-size: 14px;
    line-height: 18px;
    color: #666666;
    border-left: 4px solid transparent;
}

/* Botón activo */
.tabs-adaptacion--nav .nav-link.active {
  border-left: 4px solid #0f69b4;
  background: rgba(15, 105, 196,.05);
  position: relative;
  z-index: 2;
  color: #0f69b4;
    text-decoration: none;
}

/* Botones inactivos → borde azul */
.tabs-adaptacion--nav .nav-link:not(.active) {
/*  border-right: 2px solid #0f69b4;*/
/*  background: #f8f9fa;*/
}

.tabs-adaptacion--content {
    background-color: rgba(15, 105, 196,.05);
    height: -webkit-fill-available;
    width: 100%;
/*    border: 2px solid #0f69b4;*/
    padding: 30px;
}

.tabs-adaptacion--content ul li{
        font-size: 16px;
    line-height: 24px;
    margin-bottom: 1em;
}






/* --- Versión móvil (cards apiladas) --- */
/* --- Desktop / Mobile Visibility --- */
.desktop-tabs { display: block; }
.mobile-collapse { display: none; }

@media (max-width: 768px) {
  .desktop-tabs { display: none !important; }
  .mobile-collapse { display: block; }

  .tabs-adaptacion--accordion details {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: #fff;
  }

  .tabs-adaptacion--accordion summary {
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: #0f69b4;
  }

  .tabs-adaptacion--accordion summary::marker { display: none; }

  .tabs-adaptacion--accordion table {
    margin: 0;
    width: 100%;
  }

  /* Animación collapse sin JS */
  .tabs-adaptacion--accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .tabs-adaptacion--accordion details[open] .accordion-content {
    max-height: 2500px; /* ajusta según tu contenido */
  }

  /* Solo un detalle abierto a la vez */
  .tabs-adaptacion--accordion:has(details[open]) details:not([open]) .accordion-content {
    max-height: 0;
  }

  /* Indicador + / - */
  .tabs-adaptacion--accordion summary::after {
    content: "+";
    float: right;
    font-weight: bold;
  }

  .tabs-adaptacion--accordion details[open] summary::after {
    content: "−";
  }
}





/* collapse */

.accordion-flush .accordion-item .accordion-button {
    font-weight: bold;
    color:#0f69b4;
    border-left: 4px solid #0f69b4;
}

.accordion-flush .accordion-item .accordion-button.collapsed {
    color: #373737;
    border-left: 4px solid transparent;
}


.accordion-flush .accordion-item .accordion-button:hover {
    color: #0f69b4;
    background-color: rgba(15, 105, 196,.05);
    border-left: 4px solid #0f69b4;
}

.text-primary {
    color: #0f69b4;
}


.links-sectoriales {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  justify-items: center;

}
.links-sectoriales a {
   width: 160px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  font-size: 16px;
  padding: 10px;
  border: none;
}
/*.links-sectoriales .btn.btn-secundario i,
 {
  font-size: 19px;
  width: auto;
  height: 19px;
}*/

.links-sectoriales .btn.btn-secundario img {
  width: auto;
  height: 50px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(99%) saturate(1875%) hue-rotate(187deg) brightness(91%) contrast(93%);

}

/* charts impactos */

.charts__container figure {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
}
.charts__container figcaption {
    font-size: 14px;
    line-height: normal;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1em;
}

.carousel-control-next, .carousel-control-prev {
    width: auto;
}

.modal-body p {
    font-size: 16px;
    line-height: 24px;
}
.bg--light-blue{
    background-color: rgba(15, 105, 196,.05);
}

/* Iniciativas detalle */
.card__info-group .text-body-secondary {
/*    font-weight: bold;*/
color: #777777 !important;
}
.card__info-group p {
/*    color:#0f69b4;*/
}
.badge.text-bg-primary {
    background-color: #0f69b4 !important; 
}
.badge--ods-1 {
    background-color: #E5243B;
}

.badge--ods-2 {
    background-color: #DDA63A;
}

.badge--ods-3 {
    background-color: #4C9F38;
}

.badge--ods-4 {
    background-color: #C5192D;
}

.badge--ods-5 {
    background-color: #FF3A21;
}

.badge--ods-6 {
    background-color: #26BDE2;
}

.badge--ods-7 {
    background-color: #FCC30B;
}

.badge--ods-8 {
    background-color: #A21942;
}

.badge--ods-9 {
    background-color: #FD6925;
}

.badge--ods-10 {
    background-color: #DD1367;
}

.badge--ods-11 {
    background-color: #FD9D24;
}

.badge--ods-12 {
    background-color: #BF8B2E;
}

.badge--ods-13 {
    background-color: #3F7E44;
}

.badge--ods-14 {
    background-color: #0A97D9;
}

.badge--ods-15 {
    background-color: #56C02B;
}

.badge--ods-16 {
    background-color: #00689D;
}

.badge--ods-17 {
    background-color: #19486A;
}


.gallery {
  column-count: 3; /* número de columnas */
  column-gap: 1rem;
}

.gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
  display: block;
}
@media (max-width: 768px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 576px) {
  .gallery {
    column-count: 1;
  }
}



/* Footer */
.footer {
  width: 100%;
  background: #001141;
  overflow: hidden;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 200px;
}

.footer-logo img {
  width: 130px;
}

.footer-spacer {
  flex: 1;
  min-width: 200px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-text {
  color: white;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
}

.footer-social {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
    align-self: end;
}

.social-link {
  color: #ffffff;
  display: inline-block;
  transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    text-align: center;
    vertical-align: middle;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-link i {
  font-size: 23px;
  line-height: 25px;
  height: 25px;
  width:25px;
}

.footer-social svg {
  width: 25px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .footer-contact {
    align-items: center;
    min-width: unset;
  }

  .footer-spacer {
    display: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-logo img {
    width: 110px;
  }

  .footer-text {
    font-size: 13px;
    line-height: 22px;
  }
}




/* ESTA ES TEMPORAL, PARA MENSAJES */
.pendiente {
    color: red;
    font-size: larger;
}