/* -------------------------------------- */
/* VARIABLES DE COLOR */
/* -------------------------------------- */
:root {
  --verde-oscuro: #09463f;
  --verde-suave: #73ada1;
  --naranja: #cc570a;
  --amarillo: #edad1d;
  --marron: #663323;
  --rojo: #ce3f19;

  --card-bg: #fffdf8;
  --muted: #6b6b6b;
}

/* -------------------------------------- */
/* RESET GENERAL */
/* -------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif !important;
  color: #09463f;
  overflow-x: hidden;

  /* COLOR + IMAGEN DE FONDO */
  background: var(--naranja) url("https://www.reincorporacion.gov.co/es/Paginas/etcr-especial/img/Capa%206.png")
              center / cover
              no-repeat
              fixed;
}

h1, h2, h3, h4, h5, h6,
ul, li {
  font-family: 'Montserrat', sans-serif !important;
  color: var(--verde-oscuro) !important;
}

/* -------------------------------------- */
/* BANNER */
/* -------------------------------------- */
.banner {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 380px;
  background-image: url('https://www.reincorporacion.gov.co/es/Paginas/etcr-especial/img/campo-de-hierba-con-un-edificio-en-la-distancia-cerca-de-una-colina-con-arboles-y-cielo-nublado.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px;
  color: white !important;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  text-align: center;
}

.banner-content h1 {
  font-size: 3rem !important;
  margin-bottom: 15px;
  color: #fff !important;
}

.banner-content p {
  font-size: 1.2rem !important;
  color: #f2f2f2 !important;
  line-height: 1.6;
}

/* -------------------------------------- */
/* MAPA */
/* -------------------------------------- */
.mapa-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.mapa-container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.mapa-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------- */
/* RESPONSIVE */
@media (max-width: 768px) {
  .banner {
    height: 45vh;
    padding: 20px;
  }

  .banner-content h1 {
    font-size: 2.2rem !important;
  }

  .banner-content p {
    font-size: 1rem !important;
  }
  
}

/* POPUP DEL MAPA */
.mapa-tooltip {
  position: absolute;
  padding: 14px 18px;
  background: #ffffffdd;
  border-radius: 10px;
  border: 2px solid var(--verde-oscuro);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  color: var(--verde-oscuro);
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -140%) scale(0.8);
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99999;
}
.mapa-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -140%) scale(1);
}


#popup {
  position: absolute;
  background: #ffffff;
  border: 1px solid #09463f;
  padding: 10px;
  font-size: 14px;
  line-height: 1.3;
  max-width: 300px;
  display: none;
  z-index: 999;
  white-space: pre-line; /* convierte \n en saltos reales */
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


/* ------------------ BOTÓN FLOTANTE VOLVER ------------------ */
.btn-back-floating {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  
  background: var(--rojo); /* Verde ETCR */
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 55px;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: 0.3s ease;
  z-index: 9999;
}

.btn-back-floating:hover {
  background: var(--verde-oscuro); /* Naranja ETCR */
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
