
 /* Importar fuentes de Google Fonts similares a las usadas por Argentina.gob.ar */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

 
 /* Estilos generales para responsive design */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Encode Sans', sans-serif !important;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  min-height: 100vh;
  font-weight: 400;
}

/* Títulos y encabezados con Montserrat (similar al sitio oficial) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Encode Sans Condensed', sans-serif !important;
  font-weight: 600 !important;
  color: #2C3E50 !important;
}

/* Hacer que el contenedor principal use toda la altura */
.container-fluid {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.custom-box {
 /* border: 2px solid #F5F5F5 !important; */
  background-color: #ffffff !important;
  border-radius: 0px !important;
  margin: 5px 0 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  padding: 0 !important;
}

  /* Box sin estilos para el panel de capas */
    .box-sin-estilos {
      border: none !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      background-color: transparent !important;
    }
    
    .box-sin-estilos .box-header {
      border: none !important;
      background-color: transparent !important;
      padding: 10px 0 !important;
    }
    
    .box-sin-estilos .box-body {
      padding: 0 !important;
      background-color: transparent !important;
    }

/*----------------------------------*/

/* BANNER SUPERIOR */
#contenido-banner {
  background-color: #ffffff;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

/* Contenedores de logo */
.logo-container, .logo-container_2 {
  display: flex;
  height: 100%;
  padding: 5px 0;
}

.logo {
  transition: all 0.3s ease;
  object-fit: contain;
  max-height: 70px;
}

.logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Banner superior - Estilo SEGEMAR */
#title {
  font-family: 'Lora' !important;
  font-weight: 700 !important;
  color: #2C3E50 !important;
  font-size: clamp(0.5rem, 2.8vw, 3rem);
  margin: 0;
  padding: 0;
  text-align: center;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
 

/* Responsive */
@media (max-width: 768px) {
    .content-row {
        height: auto !important;
        flex-direction: column;
    }
    
    .content-column {
        height: auto !important;
        margin-bottom: 10px;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .banner-logo {
        height: 60px;
        max-width: 150px;
    }
}


/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A4D9ED;
}


/* --------------------------------------------------------- */
/* CONTENIDO PRINCIPAL Y COLUMNAS */
/* --------------------------------------------------------- */

#contenido-principal {
  height: calc(100vh - 80px) !important;
  overflow: hidden;
}

/*----------------------------------------------------*/

/* COLUMNA IZQUIERDA CON SCROLL COMPLETO */

/* Columnas */
.columna-izquierda {
  height: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;  /* ← Evita scroll en columna, pasa al box */
}

/* CONTENIDO SCROLLABLE con padding final */
.columna-izquierda .capas-scrollable {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px !important;           /* ← Padding uniforme */
  padding-bottom: 50px !important;   /* ← CLAVE: 50px extra al final */
  margin: 0 !important;
}


/* SCROLLBAR ESTILIZADA */
.columna-izquierda .capas-scrollable::-webkit-scrollbar {
  width: 5px;
}

.columna-izquierda .capas-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.columna-izquierda .capas-scrollable::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.columna-izquierda .capas-scrollable::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


.columna-central,
.columna-derecha {
  height: 100%;
  padding: 0px !important;
}

.columna-izquierda {
  background-color: #f5f5f5 !important;
  padding: 15px;
  border-radius: 2px;
 /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
 /* border: 2px solid #e0e0e0 !important;*/
  flex: 0 0 calc(33.333% - 5px) !important;
}
 
.columna-derecha {
  /*background-color: #f5f5f5 !important; */
  padding: 15px;
  border-radius: 2px;
 /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
 /* border: 2px solid #e0e0e0 !important;*/
  flex: 0 0 calc(33.333% - 5px) !important;
}
/* Estilos específicos para el mapa */
.columna-central {
  background-color: #C3EBF7 !important;
  border-radius: 2px;
  /*border: 2px solid #A7E5FA !important;*/
  flex: 0 0 calc(50% - 5px) !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}


/* Columnas */
.columna-derecha {
  height: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;  /* ← Evita scroll en columna, pasa al box */
}

/* CONTENIDO SCROLLABLE con padding final */
.columna-derecha .capas-scrollable {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px !important;           /* ← Padding uniforme */
  padding-bottom: 50px !important;   /* ← CLAVE: 50px extra al final */
  margin: 0 !important;
}



/*----------------------------------------------------*/
/* ESTILOS POPUP PARA EL MAPA
/* -------------------------------------------------- */

 
 /* Estilos personalizados para popups de Leaflet */
.custom-popup .leaflet-popup-content-wrapper {
  background-color: rgba(255, 255, 255, 0.8); /* Transparencia */
  border-radius: 0px !important; /* Bordes rectos */
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-popup .leaflet-popup-tip {
  background-color: rgba(255, 255, 255, 0.8); /* Transparencia para la punta */
  border-radius: 0px !important; /* Bordes rectos en la punta */
}

/* Opcional: Estilo para el contenido del popup */
.custom-popup .leaflet-popup-content {
  margin: 12px 15px;
  line-height: 1.4;
  font-family: Encode, sans-serif;
  font-size: 13px;
}
 
/*----------------------------------------------------*/
/* ESTILOS DE CAPAS Y SUBCAPAS */
/* -------------------------------------------------- */

.panel-capas {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: 5px;
  max-height: none !important; /* Elimina max-height conflictivo */
}

.grupo-capa {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 8px;
  background-color: #fafafa;
  cursor: pointer;
  overflow: hidden;
}

.capa-principal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Cambiado de center para mejor alineación multiline */
  margin-bottom: 0; 
  font-weight: bold;
  user-select: none;
/*  min-height: 14px;*/
  width: 100%;
}
/* ---------------------------------------------*/

 /* CONTENEDOR DEL CHECKBOX */
.capa-principal .shiny-input-container {
  width: calc(100% - 20px) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.capa-principal .checkbox label {
  white-space: normal !important;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4em;
  display: flex;                 /* Usar flex para alinear */
  align-items: flex-start;       /* Checkbox alineado al inicio vertical */
  padding-left: 0;               /* Sin padding que desplace */
  font-size: 1em !important;
  margin: 0 0 5px 0 !important;
  cursor: pointer;
  color: #333 !important;
}

.capa-principal {
  display: flex;
  align-items: center;
  
}


/* CHECKBOX PRINCIPAL - ESTADO INACTIVO (GRIS) */
.capa-principal input[type="checkbox"] {
  margin-right: 8px !important;
  margin-left: 5px !important;
  transform: scale(1.1) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  left: 0 !important;
}

/* CHECKBOX NO SELECCIONADO - GRIS */
.capa-principal input[type="checkbox"]:before {
  content: "";
  display: block;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #ccc !important;  /* Borde gris claro */
  border-radius: 3px !important;
  background-color: #f5f5f5 !important;  /* Fondo gris claro */
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease;  /* Transición suave */
}

/* CHECKBOX SELECCIONADO - COLOR NORMAL */
.capa-principal input[type="checkbox"]:checked:before {
  background-color: #00AEEF !important;  /* Azul cuando está seleccionado */
  border-color: #00AEEF !important;
}

.capa-principal input[type="checkbox"]:checked:after {
  content: "✓";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
/*  font-size: 12px !important;*/
  font-weight: bold;
}

/* ESTADO HOVER PARA MEJOR INTERACTIVIDAD */
.capa-principal input[type="checkbox"]:hover:before {
  border-color: #999 !important;  /* Borde gris más oscuro al pasar el mouse */
  background-color: #eee !important;  /* Fondo ligeramente más oscuro */
}

.capa-principal input[type="checkbox"]:checked:hover:before {
  background-color: #00AEEF !important;  /* Azul más oscuro al pasar el mouse */
  border-color: #00AEEF !important;
}

.icono-colapsar {
  font-size: 18px; !important;
  color: #007bff;
  transition: transform 0.5s ease;
  margin-left: 5px;
  flex-shrink: 0;
}
 
.icono-colapsar.rotated {
  transform: rotate(180deg);
}

/* --------------------------------------------------------- */
/* SUBCAPAS COMPACTAS */
/* --------------------------------------------------------- */

.subcapas {
  margin-left: 20px !important;
  border-left: 1px solid #DBDBDB;
  padding-left: 10px;
  margin-top: 0px;
  margin-bottom: 0px;
  animation: fadeIn 0.2s ease;
  gap: 0px !important;
  display: flex;
  flex-direction: column;
  transform: translateX(0px) !important;
  position: relative !important;
  left: 0px !important;
}

/* ELIMINA ESPACIADO VERTICAL EXCESIVO */
.subcapas .checkbox {
  margin: 0px 0 !important;
  min-height: 5px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ETIQUETAS COMPACTAS */
.subcapas .checkbox label {
  font-size: 1em !important;
  min-height: 8px !important;
  line-height: 0 !important;
  padding: 0px 0 !important;
  margin: 0px 0 !important;
  user-select: none;
  display: flex;
  align-items: center;
  height: 8px !important;
}

/* CHECKBOX COMPACTO Y ALINEADO */
.subcapas input[type="checkbox"] {
  margin: 0 4px 0 0 !important;
  transform: scale(0.8) !important;
  position: relative;
  left: 0px !important;
  top: -1px !important;
  flex-shrink: 0;
}

/* --------------------------------------------------------- */
/* ANIMACIONES Y ESTADOS */
/* --------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.grupo-capa.desactivado {
  opacity: 0.5;
  background-color: #f5f5f5;
}

/*----------------------------------------------------*/
 
.capas-scrollable {
  scrollbar-width: thin;
  scrollbar-color: #ABCEFF #f5f5f5;
}

.capas-scrollable::-webkit-scrollbar {
  width: 6px;
}

.capas-scrollable::-webkit-scrollbar-track {
  background: #ABCEFF;
}

.capas-scrollable::-webkit-scrollbar-thumb {
  background-color: #00AEEF;
  border-radius: 3px;
}

/* --------- expandir el texto en referencias  ------ */

/* www/style.css */

.definicion-card {
  background-color: #E5FAFF;
  border-left: 3px solid #00AEEF;
  padding: 12px;
  margin: 10px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.definicion-card_v2 {
  background-color: #faf0b1;
  border-left: 3px solid #faa716;
  padding: 12px;
  margin: 10px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.definicion-card_v3 {  /* ← ASEGÚRATE QUE SEA EXACTAMENTE "_v3" */
  background-color: #FFDBD4;
  border-left: 3px solid #2A27F5;
  padding: 12px;
  margin: 10px 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.definicion-card:hover,
.definicion-card_v2:hover,
.definicion-card_v3:hover {  /* ← Agrega hover para TODAS */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.definicion-titulo {
  color: #00AEEF;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

/* Limitar texto a 3 líneas por defecto */
.texto-colapsable {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4em;
  color: #495057;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Estado expandido */
.texto-expandido {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
}

.btn-expandir {
  background: none;
  border: none;
  color: #00AEEF;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 0;
  margin-top: 4px;
  font-weight: 500;
}

/* texto general  para imágenes */

.texto-colapsado img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 10px auto !important;
  position: relative !important;
  z-index: 1;
}

.btn-info-dev:hover {
  background: #007bff !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}
 