/* BÁSICOS - COMUNES */

html,
body {
  height: 100%;

}
.leaflet-control-attribution {
  display:none;
}
/* ESTILOS TEXTO HISTORIA */
p.panel-display {
  line-height: 1.5em;
  hyphens: auto;
  font-size: 1.1em;
  text-align: justify;
      margin-block-end: 1em;
}

.cita {
  padding-left: 20px;
  border-left: solid 1px #000000;
  font-style: italic;
  font-size: 1.1em;

}

.cita p {
  margin-block-start: 0em;
  margin-block-end: 0em;
}

.epigrafe {
  font-size: 0.8em;
  text-align: center;
  margin-block-end: 2em;
  margin-block-start: 1em;
}

.fuentedecita {
  font-size: 0.8em;
  text-align: left; 
  margin-top:1em!important;
}

.imgpanel {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin-top:1em!important;
}

#foco-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: auto;
  background: radial-gradient(circle at 22% 49%, transparent 143px, rgba(0, 0, 0, 0.4) 236px);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* SCROLLABLE + PANEL FIJO */
.creditos-scrollable {
  position: absolute;
  top: 6px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-style: italic;
  pointer-events: none;
  z-index: 10;
  opacity: 0.9;
}
#main-content {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

#panel-fijo {
  position: sticky;
  top: 50px;
  height: calc(100vh - 50px);
  width: 70%;
  overflow: hidden;
  z-index: 10;
}
#panel-fijo .creditos {
  position: absolute;
  right: 12px;
  top: 40px;
  z-index: 4000;
}
.pop .creditos {
    background-color: #101010;
    width: 100% !important;
    top: 0 !important;
  position: absolute;  
  left: 0 !important; right: 0 !important;  
  bottom: auto !important;     
}
#scrollable-panel {
  width: 30%;
  height: auto;
  overflow: visible;
}
#imagen-fija {
  transition: opacity 0.5s ease;
  opacity: 1;
}

#imagen-fija.oculta {
  display: none;
  opacity: 0;
}

#panel-fijo:has(#imagen-fija[data-credit-pos="top-left"]) .creditos{
  bottom: 80px;
  left: 20px;
  right: auto;
  top: auto;
  text-shadow: 1px 1px 4px #000000cc;
  font-size: 1.2em;  font-size: 0.9em;  }

#panel-fijo:has(#imagen-fija[data-credit-pos="top-left"]) .credito-superior{
  bottom: 80px;
  left: 20px;
  right: auto;
  top: auto;
  text-shadow: 1px 1px 4px #000000cc;
  font-size: 0.9em;  
}
.section {
  min-height: 100vh;
  padding: 0rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.trigger {
  display: block;
  height: 40px;
  width: 100%;
}

.trigger-top {
  margin-top: -80px;
}

.separador {
  height: 100px;
  display: block;
}
/* SECCIONES DINÁMICAS */
.img-fija {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#mapa-fijo {
  width: 100%;
  height: 100%;
  display: none;
  /* inicial */
  z-index: 1;
}

#mapa-fijo.visible {
  display: block;
}

.img-fija.oculta {
  display: none;
}

/* LINEA DEL TIEMPO */
#timeline-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
}

#timeline-line {
  position: relative;
  width: 80%;
  height: 2px;
  background: white;
}

.timeline-dot {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-dot.active {
  background-color: #fec304;
}

.timeline-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 8px); /* así ya nace arriba */
  color: white;
  font-size: 0.88em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.s3s ease;
}

.timeline-dot:hover .timeline-label {
  opacity: 1;
  font-size: 0.8em;
}

.timeline-dot.active .timeline-label {
  opacity: 1;
  font-weight: 700;
  font-size: 0.8em;
}
/* Marcadores en el mapa de Fortines */
.custom-marker {
  background-color: black;
  color: white;
  border: 2px solid white;
  font-family: "Roboto", sans-serif;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  font-weight: normal;
  text-align: center;
}
.marker-red .circle-icon {
  font-size: 17px !important;
  display: flex;
  vertical-align: middle;
}
/* Numeros de los marcadores en el mapa de Fortines */
.marcador-inline {
  display: inline-flex;
  align-items: center;
  font-family: "Roboto", sans-serif;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.6em;
  font-weight: bold;
  color: white;
  background-color: black;
  border: 2px solid white;
  border-radius: 50%;
  line-height: 1;
  margin: 0 4px;
}


.g {
  background-color: rgb(105, 105, 105);
}

.ranchos {
  background-color: #fec304;
  width: 33px;
  height: 33px;
  font-weight: bold;
}

.ranchos-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.6em;
  font-weight: bold;
  color: white;
  background-color: #fec304;
  border: 2px solid white;
  border-radius: 50%;
  line-height: 1;
  margin: 0 4px;
  vertical-align: middle;
}

ul {
  list-style-type: none;
  margin-block-start: 0em;
  line-height: 1.7;
  padding-inline-start: 0;
  margin: 0;
}

ul li {
  font-size: 1.1em;
  font-weight: 200;
  display: flex;
  align-items: center;
}

#carrusel-fijo {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  overflow: hidden;
}

#carrusel-fijo.activo {
  display: block;
}

.carrusel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carrusel-slide.activo {
  opacity: 1;
  z-index: 2;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-meta {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  overflow: hidden;
}

.leaflet-popup-content-wrapper {
  text-align: center !important;
  border-radius: 0 !important;
  width: auto !important;
  margin-bottom: 40px;
}

.leaflet-popup-tip-container {
  margin-top: -40px;
}

.leaflet-popup-content p {
  text-align: justify !important;
  hyphens: auto !important;
}

.leaflet-popup-content img {
  max-width: 100%;
  min-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 5px;
}

.timeline-dot-prehistoric {
  background-color: transparent !important;
  width: 24px !important;
  height: 24px !important;
  top: -12px !important;
  transform: none !important;
  border-radius: 0 !important;
  margin-left: -5px;
  margin-top: 1px;
}
.timeline-dot-prehistoric::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 16px 12px 0;
  border-color: transparent white transparent transparent;
  position: absolute;
  left: 0;
}

.timeline-dot-prehistoric.active::before {
  border-right-color: #fec304;
}

.timeline-dot-prehistoric .timeline-label {
  bottom: 30px !important;
  left: 18px !important;
  transform: none !important;
  white-space: nowrap;
}

.timeline-dot:last-child .timeline-label {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
  text-align: right;
  white-space: nowrap;
}
.timeline-dot:first-child:not(.timeline-dot-prehistoric) .timeline-label {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  text-align: left;
}

#timeline-container {
  padding: 0 20px;
  box-sizing: border-box;
  transition: opacity .9s ease;
}
#timeline-container.oculta { 
  opacity: 0; 
  pointer-events: none; 
}
.leaflet-interactive.multiply-blend {
  mix-blend-mode: multiply;
}

/* POPUP LEAFLET */
.pop {
    display: flex;
    height: auto;
    align-items: center;
    text-align: justify;
    position: relative;
    flex-direction: column;
}
.leaflet-popup-content-wrapper {
    margin:0;
    overflow: hidden;
}
.leaflet-popup-content {
  margin:0;
  padding:0;
  width:250px;
}
.leaflet-popup-tip-container {
    display: none;
}

.leaflet-popup-content p {
    text-align: justify !important;
    hyphens: auto !important;
    font-weight: bold;
}
.leaflet-popup-content img {
    max-width: 100%;
    min-width: 200px;
    height: auto;
    display: block;
    margin: 0;
}
/* FOOTER */
.footer {
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

.footer-top {
  background-color: white;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #333;
  padding: 10px 0;
}

.footer-bottom {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.9rem;
  padding: 15px 0;
}

.footer-col {
  padding: 0 40px;
}

.footer-col.left {
  text-align: left;
}

    .footer-col.center {
    text-align: center;
    display: flex;
    align-items: center;
    }

.footer-col.right {
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 9px;
}

.footer p {
  margin: 0.5em 0;
  line-height: 1em;
  color: inherit;
}

.footer-title {
  color: #1171B7;
  font-weight: bold;
  font-size: 1.3em;
  line-height: 1.4em;
}

.icono {
  width: 10px;
  height: 10px;
  vertical-align: middle;
  margin-right: 3px;
}

.logo-muni {
  width: 170px;
  height: auto;
}

.logoGT {
  height: 25px;
  width: auto;
  display: block;
  margin-bottom: 5px;
}

.desarrollo p {
  font-size: 0.6em;
  font-weight: 300;
  margin: 0;
}

.ico img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.ico:hover img {
  transform: scale(1.2);
}

#intendentes li {
  line-height: 1.1em;
  font-size: 1.1em;
  text-align: left;
  margin-block-end: 1em;
  font-weight: 400;
  list-style: square;
}
.timeline-label { transition: opacity .15s; }
/* SCROLLBAR*/
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}