/* =========================
   PALETA (variables)
   ========================= */
:root{
  --verde-oscuro: #09463f;
  --verde-suave: #73ada1;
  --naranja: #cc570a;
  --amarillo: #edad1d;
  --marron: #663323;
  --rojo: #ce3f19;

  --card-bg: #fffdf8;
  --muted: #6b6b6b;
}
/* ---------- RESET Y BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  line-height: 1.5;
  color: var(--verde-oscuro);
  background-color: #f8f8f8;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em !important;
  font-weight: 700 !important;
}

p, ul, li {
  margin: 0 !important;
  padding: 0 !important;
}

ul {
  list-style: none !important;
}

strong {
  font-weight: 700;
}

/* ---------- VARIABLES DE COLOR ---------- */
:root {
  --verde-oscuro: #09463f;
  --verde-suave: #73ada1;
  --naranja: #cc570a;
  --amarillo: #edad1d;
  --marron: #663323;
  --rojo: #ce3f19;

  --card-bg: #fffdf8;
  --muted: #6b6b6b;
}

/* ---------- BANNER ---------- */
.banner-intro {
  position: relative;
  background: url('https://www.reincorporacion.gov.co/es/Paginas/etcr-especial/img/cifras/7-%20Los_monos2.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.banner-intro .banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* ajusta la opacidad según necesites */
}

.banner-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.banner-content h1 {
  font-size: 2.5rem !important;
  margin-bottom: 20px !important;
}

.banner-content p {
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
}

/* ---------- SPLIT PANEL CIFRAS CLAVE ---------- */
.panel.split {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 0;
  
}

.split-left, .split-right {
  flex: 1 1 50%;
  position: relative;
  padding: 40px 20px;
}

.split-left {
  background-size: cover;
  background-position: center;
  color: white;
  align-content: center;
}

.split-left .overlay-left {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

.split-left .card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
}

.split-left .kicker {
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  color: var(--amarillo);
}

.split-left .quote-text {
  font-size: 1.2rem !important;
}

.split-right {
  background-color: var(--amarillo);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right .card {
  background-color: var(--card-bg);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.split-right .kicker {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: var(--naranja);
}

.split-right .big-number {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  color: var(--verde-oscuro);
  margin-bottom: 10px;
}

.split-right .caption {
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
}

/* ---------- BARRAS DE EDAD ---------- */
.chart-inner {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.chart-left {
  flex: 1 1 40%;
  align-content: center;
}

.chart-left h2 {
  font-size: 1.8rem !important;
  margin-bottom: 10px !important;
}

.chart-left .muted {
  color: var(--muted) !important;
}

.chart-right {
  flex: 1 1 60%;
  padding-left: 20px;
}

.bar-row {
  margin-bottom: 15px;
}

.bar-label {
  font-weight: 600 !important;
  margin-bottom: 5px !important;
}

.bar {
  background: var(--card-bg);
  border-radius: 8px;
  position: relative;
  height: 30px;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  width: 0;
  transition: width 1s ease;
}

.bar-fill.c1 { background-color: var(--amarillo); }
.bar-fill.c2 { background-color: var(--naranja); }
.bar-fill.c3 { background-color: var(--verde-suave); }
.bar-fill.c4 { background-color: var(--verde-oscuro); }

.bar-num {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700 !important;
  color: #09463f;
}

/* ---------- PROYECTOS ---------- */
.projects-inner {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 0;
  align-items: center;
}

.projects-left, .projects-right {
  flex: 1 1 50%;
  position: relative;
  padding: 40px 20px;
}

.projects-left {
  background-size: cover;
  background-position: center;
  color: white;
}

.projects-left .overlay-projects {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
}

.projects-left .card-transparent {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
}

.projects-right .money-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.money-card .kicker {
  font-weight: 700 !important;
  margin-bottom: 15px !important;
  color: var(--naranja);
}

.money-row, .money-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700 !important;
}

.money-total {
  font-size: 1.5rem !important;
  color: var(--verde-oscuro);
}

/* ---------- GRID 3 VIVIENDAS ---------- */
.panel.grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
}

.grid-item {
  flex: 1 1 calc(33.333% - 20px);
  position: relative;
  color: white;
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
}

.grid-item .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
}

.grid-content h3 {
  margin-bottom: 10px !important;
}

.grid-content ul li {
  margin-bottom: 5px !important;
}

/* ---------- ETNIA ---------- */
.etnia-inner {
  padding: 40px 20px;
}

.etnia-bars .row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.etnia-bars .label {
  flex: 1 1 30%;
  font-weight: 600 !important;
}

.etnia-bars .fill {
  flex: 1 1 70%;
  background: var(--card-bg);
  border-radius: 8px;
  height: 30px;
  position: relative;
}

.etnia-bars .bar {
  height: 100%;
  border-radius: 8px;
  width: 0;
  background-color: var(--verde-oscuro);
  transition: width 1s ease;
}

.etnia-bars .row:nth-child(1) .bar { background-color: var(--amarillo); }
.etnia-bars .row:nth-child(2) .bar { background-color: var(--naranja); }
.etnia-bars .row:nth-child(3) .bar { background-color: var(--verde-suave); }
.etnia-bars .row:nth-child(4) .bar { background-color: var(--verde-oscuro); }

.etnia-bars .num {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700 !important;
  color: #09463f;
}

/* ---------- FOOTER ---------- */
footer.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem !important;
  background: var(--card-bg);
  color: var(--verde-oscuro);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .split-left, .split-right, .projects-left, .projects-right {
    flex: 1 1 100%;
  }

  .chart-inner {
    flex-direction: column;
  }

  .chart-right {
    padding-left: 0;
  }

  .panel.grid-3 {
    flex-direction: column;
  }

  .grid-item {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .banner-content h1 {
    font-size: 2rem !important;
  }

  .split-left, .split-right, .projects-left, .projects-right {
    padding: 20px;
  }

  .chart-left h2 {
    font-size: 1.5rem !important;
  }

  .bar {
    height: 25px;
  }

  .etnia-bars .fill {
    height: 25px;
  }

     

}

/* ------------------ 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);
}
