body {
  background-color: #000;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  transition: opacity 0.3s ease;
}

body.fade-out { opacity: 0; }

h1, h2, h3 { color: #ffcc00; }

.navbar {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

img { border-radius: 10px; transition: transform 0.3s ease; }
img:hover { transform: scale(1.03); }

footer { border-top: 1px solid #333; }

.social-icons img { filter: brightness(0) invert(1); transition: transform 0.3s; }
.social-icons img:hover { transform: scale(1.2); }

.canguro {
  position: absolute;
  bottom: 10%;
  left: -150px;
  width: 120px;
  animation: salto 4s ease-in-out forwards;
}



@keyframes salto {
  0% { left: -150px; bottom: 10%; }
  25% { bottom: 50%; }
  50% { left: 50%; bottom: 10%; }
  75% { bottom: 50%; }
  100% { left: 100%; bottom: 10%; opacity: 0; }
}


/* === EFECTO FOCUS SOBRE IMAGEN === */

/* Grid ajustable: más ancho en pantallas grandes */
.ecosistemas-grid {
  justify-content: center;
}

/* Contenedor de cada imagen */
.ecosistema-img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Imagen con transición suave */
.ecosistema-img img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
  border-radius: 10px;
}

/* Texto flotante */
.info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.4s ease;
}

.info-overlay h4 {
  color: #ffcc00;
  margin-bottom: 0.5rem;
}

/* Cuando pasas el mouse sobre una imagen */
.ecosistema-img:hover img {
  transform: scale(1.05);
  filter: brightness(1.2);
  z-index: 1001;
}

.ecosistema-img:hover .info-overlay {
  opacity: 1;
  z-index: 1002;
}

/* === EFECTO DE OSCURECER TODO EL SITIO MENOS LA IMAGEN === */

/* Fondo global que se activa cuando pasas sobre una imagen */
body.focus-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transition: opacity 0.3s ease;
  pointer-events: none;
  opacity: 1;
}

/* Cuando no está activo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: transparent;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}


.article_3column p {
  column-count: 3;           /* tres columnas */
  column-gap: 2em;
  text-align: justify;
  margin-block: 1em;
}

.article_3column p::first-letter {
  font-size: 200%;           /* 2 veces el tamaño normal */
  font-weight: bold;
  font-family: "UnifrakturCook", "Old English Text MT", "Goudy Old Style", serif;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  float: left;
  margin-right: 8px;
  color: #ffcc00;
}


