.espaciador-header {
  display: block;
  width: 100%;
  height: 40px;        /* grosor del header */
  background: transparent; /* o un color si quieres que se vea */
}


/* === CONTADOR BASE === */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cge-blanco);
  z-index: -1;
}

.stat-box {
  padding: 1rem;
  background: var(--cge-blanco);
  border-radius: var(--radius);
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-suave);
  opacity: 0;
  transform: scale(0.9);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.stat-box.visible {
  opacity: 1;
  transform: scale(1);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-media);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cge-rojo);
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.stat-box p {
  font-size: 1rem;
  color: var(--cge-texto);
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

/* ðŸ“± MÃ³vil */
@media (max-width: 768px) {
  .stat-box {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* === VERSIÃ“N CONTRASTE POR COMPONENTE === */
.stat-box.contraste {
  background: var(--cge-negro) !important;
  color: var(--cge-blanco) !important;
  border: 2px solid var(--cge-rojo) !important;
}

.stat-box.contraste .stat-number {
  color: var(--cge-blanco) !important;
}

.stat-box.contraste p {
  color: var(--cge-blanco) !important;
}

/* === OPCIONAL: CONTRASTE PARA TODA LA SECCIÃ“N === */
.stats-section.contraste::before {
  background: rgba(0, 0, 0, 0.8) !important; /* fondo mÃ¡s oscuro */
}


.parallax-message {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cge-blanco);
}

/* Imagen parallax como fondo visual */
.parallax-message img.parallax-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* fondo m¨¢s bajo */
}

/* Overlay rojo institucional */
.parallax-message .overlay {
  position: absolute;
  inset: 0;
  background: var(--cge-rojo);
  opacity: 0.7;
  z-index: 1; /* encima de la imagen */
}

/* Contenido textual */
.parallax-message .content {
  position: relative;
  z-index: 2; /* encima del overlay */
  max-width: 800px;
  padding: 2rem;
}

.parallax-message h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--cge-blanco);
}

.parallax-message p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--cge-blanco);
}


/* Carrusel general */
.carousel {
  overflow: hidden;
  width: 100%;
  margin: 3rem auto;
  padding: 1rem 0;
}

/* Pista de movimiento */
.track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 2rem;
  padding: 1rem 2rem;
}
.track:hover {
  animation-play-state: paused;
}

/* Tarjetas individuales */
.card {
    display: inline-block;
  flex: 0 0 auto;
  width: fit-content;
  min-width: 120px;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-suave);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* T¨ªtulo de cada card */
.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cge-negro);
  margin-top: 0.5rem;
  text-align: center;
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem; /* espacio entre ¨ªcono y texto */
}


/* Animaci¨®n infinita */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.card i {
  color: var(--cge-rojo);
}
.card:hover i {
  color: #a00c24;
}

.home-instagram {
  padding: 3rem 1rem;
  background: var(--cge-blanco);
}

.ig-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ig-text {
  flex: 1;
  text-align: left;
}

.ig-text h2 {
  color: var(--cge-rojo);
  margin-bottom: 1rem;
}

.ig-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--cge-negro);
}


.ig-image {
  flex: 1;
  text-align: right;
}

.ig-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .ig-container {
    flex-direction: column;
    text-align: center;
  }
  .ig-image {
    text-align: center;
  }
}

