html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #ffce73 0%, #f9b041 40%, #f4a300 100%);
  color: #3a2a00;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fondo animado */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  touch-action: none;
}

/* Contenido principal */
.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 en medio */
}

/* En pantallas grandes se centra verticalmente */
@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(255,255,200,0.35) 0%, transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* Título */
h1 {
  position: relative;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #5b3c00;
  text-shadow: 0 0 15px rgba(255,255,180,0.7);
}

/* Descripción */
.descripcion {
  font-size: 1rem;
  color: #4b3200;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Botones cálidos */
.btn-afterschool {
  background-color: #ff8c00;
  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,200,100,0.3);
}

.btn-afterschool:hover {
  background-color: #ffb300;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,180,80,0.6);
}

/* Footer institucional adaptativo */
footer {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #4b3200;
  line-height: 1.5;
  user-select: none;
  padding: 14px 8px 30px 8px;
  background: transparent;
  z-index: 2;
  position: relative;
  margin-top: auto; /* 👈 empuja hacia el fondo */
}

/* 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%;
  fill: #000;
}

footer .gatito:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 6px rgba(255,255,200,0.8));
}

/* 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;
  }
}
