html, body {
  height: 100%;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #1e5799, #2989d8);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes slideInTop {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

header {
  background: linear-gradient(to right, #0f4c81, #1e6bb8);
  padding: 1rem 2rem;
  animation: slideInTop 0.6s ease-out;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.titulo h1 {
  font-size: 1.3rem;
  font-weight: bold;
}

.titulo p {
  font-size: 0.8rem;
  color: #cce6ff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #aad4ff;
}

.btn,
.btn-primario,
.btn-secundario,
.btn-asistencia {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  animation: zoomIn 1s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  transform: scale(1);
}

.btn:active,
.btn-primario:active,
.btn-secundario:active,
.btn-asistencia:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) inset;
}

.btn-asistencia {
  background-color: #4da8ff;
  color: white;
  margin-left: 1rem;
}

.btn-asistencia:hover {
  background-color: oklab(65.858% -0.05198 -0.16125);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  animation: fadeIn 1.2s ease-out;
}

.hero-texto {
  max-width: 50%;
  flex: 1 1 300px;
}

.hero-texto h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-texto h2 span {
  display: block;
  color: #ffffff;
  font-weight: 700;
}

.hero-texto p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #cde4ff;
}

.botones {
  margin-top: 1rem;
}

.btn-primario {
  background-color: #1584e6;
  color: white;
  margin-right: 1rem;
}

.btn-primario:hover {
  background-color: #0e65b6;
}

.btn-secundario {
  background-color: #1584e6;
  color: white;
  margin-right: 1rem;
}

.btn-secundario:hover {
  opacity: 1;
  background-color: #e6f3ff;
}

.hero-icono {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.hero-icono img {
  width: 200px;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
  background: white;
  padding: 1rem;
  border-radius: 20px;
  animation: zoomIn 1.2s ease;
}

footer {
  background: #0f4c81;
  color: white;
  padding: 2rem;
  text-align: center;
  animation: slideInTop 1s ease-in-out;
  margin-top: 2rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: #cce6ff;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-texto {
    max-width: 100%;
  }

  .hero-icono {
    margin-top: 1.5rem;
  }

  .titulo h1 {
    font-size: 1.1rem;
  }

  .titulo p {
    font-size: 0.7rem;
  }

  .hero-texto h2 {
    font-size: 1.8rem;
  }

  .btn-primario,
  .btn-secundario {
    margin-bottom: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-asistencia {
    margin-left: 0;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* asegura que ocupe toda la altura */
  margin: 0;
}

footer {
  margin-top: auto; /* empuja el footer al fondo */
  text-align: center;
  background-color: #0f4c81; /* opcional: fondo oscuro */
  color: white;
  padding: 20px 10px;
  font-size: 14px;
}

footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}