html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0b1524;
  color: white;
}

/* Fondo animado */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  touch-action: none;
}

/* Contenedor principal */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Contenido central */
.contenido {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 👈 ya no queda centrado en medio */
}

/* Centrado solo en pantallas grandes */
@media (min-width: 768px) and (min-height: 700px) {
  .contenido {
    justify-content: center;
  }
}

/* Halo detrás del título */
.halo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,123,255,0.2) 0%, transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* Título y descripción */
h1 {
  position: relative;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.descripcion {
  font-size: 1rem;
  color: #cdd6e0;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Botones institucionales */
.btn-afterschool {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 14px 36px;
  margin: 10px;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.btn-afterschool:hover {
  background-color: #3399ff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,123,255,0.5);
}

/* Footer institucional adaptativo */
footer {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #b0b8c6;
  line-height: 1.5;
  user-select: none;
  padding: 14px 8px 30px 8px; /* 👈 más espacio inferior en móvil */
  background: transparent;
  z-index: 2;
  position: relative;
  margin-top: auto;
}

/* Footer fijo solo en pantallas grandes */
@media (min-width: 768px) and (min-height: 700px) {
  footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    padding-bottom: 14px;
  }
}

/* Gatito institucional */
footer .gatito {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 5px;
  transition: transform 0.4s ease;
}

footer .gatito svg {
  width: 100%;
  height: 100%;
}

footer .gatito:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

/* Responsividad móvil */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  .descripcion {
    font-size: 0.9rem;
  }

  .btn-afterschool {
    display: block;
    width: 90%;
    margin: 10px auto;
    font-size: 1rem;
  }
}
