:root {
  /* Colores editables por ETCR */
  --color-principal: #09463f;
  --color-secundario: #cc570a;
  --color-fondo: #fffdf8;
  --color-texto: #09463f;

  /* Colores de títulos */
  --color-titulo-banner: #ffffff;
  --color-titulo-seccion: #cc570a;
  --color-titulo-card: #09463f;

  /* Neutros */
  --blanco: #ffffff;
  --gris: #6b6b6b;
}

/* ------------ FONDO GENERAL DEL SITIO ------------ */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-image: url("https://www.reincorporacion.gov.co/es/Paginas/etcr-especial/img/Capa%206.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-texto) !important;
}

/* ------------------ BANNER ------------------ */
.banner {
  position: relative;
  height: var(--banner-altura, 100vh); /* Ajustable */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Eliminamos la opacidad */
.banner::before {
  display: none !important;
}

.banner-content {
  position: relative;
  text-align: center;
  color: var(--color-titulo-banner) !important;
  max-width: 800px;
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 3rem !important;
  margin: 0 0 10px;
  font-weight: 700;
}

.banner-content p {
  font-size: 1.2rem !important;
  font-weight: 300;
}

/* ------------------ 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(--color-principal); /* 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(--color-secundario); /* Naranja ETCR */
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ------------------ DESCRIPCIÓN ------------------ */
.descripcion {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  font-size: 1.1rem;
}

.descripcion h2 {
  font-size: 2.2rem !important;
  margin-bottom: 20px;
  color: var(--color-titulo-seccion) !important;
  font-weight: 700;
}

/* ------------------ SECCIÓN DE INFORMACIÓN ------------------ */
.seccion-info {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.seccion-info h3 {
  font-size: 1.7rem !important;
  margin-bottom: 15px;
  color: var(--color-titulo-seccion) !important;
  font-weight: 700;
}

/* ------------------ LISTAS ------------------ */
.listas {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.lista-card {
  background: var(--color-fondo);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.lista-card h4 {
  font-size: 1.4rem !important;
  color: var(--color-titulo-card) !important;
  font-weight: 600;
}

.lista-card p,
.lista-card ul {
  line-height: 1.7;
  margin: 0 0 10px;
  padding-left: 0;
}

.lista-card ul li {
  margin-left: 20px;
}

/* ================= MASONRY GALLERY ================= */

.galeria-masonry {
  column-count: 3;
  column-gap: 15px;
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

.masonry-item {
  margin-bottom: 15px;
  break-inside: avoid;
  animation: fadeInStagger 0.7s ease forwards;
  opacity: 0;
}

.masonry-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.masonry-item img:hover {
  transform: scale(1.03);
}

/* STAGGER ANIMATION */
@keyframes fadeInStagger {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.2s; }
.masonry-item:nth-child(3) { animation-delay: 0.3s; }
.masonry-item:nth-child(4) { animation-delay: 0.4s; }
.masonry-item:nth-child(5) { animation-delay: 0.5s; }
.masonry-item:nth-child(6) { animation-delay: 0.6s; }
.masonry-item:nth-child(7) { animation-delay: 0.7s; }
.masonry-item:nth-child(8) { animation-delay: 0.8s; }
.masonry-item:nth-child(9) { animation-delay: 0.9s; }
.masonry-item:nth-child(10) { animation-delay: 1s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .galeria-masonry {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .galeria-masonry {
    column-count: 1;
  }
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


/* ------------------ BOTÓN VOLVER ------------------ */
.btn-volver-container {
  text-align: center;
  margin: 50px 0;
}

.btn-volver {
  background: var(--color-titulo);
  color: #fff !important;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-volver:hover {
  background: var(--color-secundario-hover, #0a594f);
  transform: translateY(-3px);
}
/* ------------------ RESPONSIVE ------------------ */
@media (max-width: 768px) {
  .banner {
    height: 50vh;
  }

  .banner-content h1 {
    font-size: 2.3rem !important;
  }
}
