@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --verde-oscuro: #124d19;
  --verde-medio: #2e7d32;
  --verde-claro: #d3eeaf;
  --verde-pastel: #e9f7d5;
  --amarillo: #f5dd5d;
  --blanco: #ffffff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--verde-claro);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: linear-gradient(90deg, var(--verde-oscuro), var(--verde-medio));
  color: var(--blanco);
  padding: 18px 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centramos verticalmente el contenido de main */
  text-align: center;
  min-height: calc(100vh - 80px); /* Asegura que main ocupe la altura restante */
  padding-top: 80px; /* Espacio por la barra */
}

.inicio-text {
  background-color: var(--verde-medio);
  color: var(--blanco);
  text-align: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.Bienvenida,
.Cont {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--verde-oscuro);
  text-align: center;
  margin-top: 10px;
}

.Bienvenida {
  font-size: 1.6rem;
}

.Cont {
  font-size: 1.9rem;
}

.login {
  width: 400px;
  background: var(--blanco);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  margin: 0 auto; /* Centrado horizontal */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centrado vertical del contenido interno */
}

.login:hover {
  transform: translateY(-4px);
}

.login h2 {
  color: var(--verde-medio);
  margin-bottom: 25px;
  font-size: 1.4rem;
  border-bottom: 2px dashed var(--verde-pastel);
  padding-bottom: 10px;
}

.controls {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border 0.3s;
}

.controls:focus {
  border-color: var(--verde-medio);
  outline: none;
}

.buttons,
.registrar {
  width: 100%;
  border: none;
  border-radius: 30px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanco);
  background: var(--verde-medio);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.buttons:hover,
.registrar:hover {
  background: var(--verde-oscuro);
  transform: scale(1.03);
}

.login p {
  margin-top: 15px;
  font-size: 0.9rem;
}

.login a {
  color: var(--verde-medio);
  text-decoration: none;
  font-weight: 600;
}

.login a:hover {
  text-decoration: underline;
  color: var(--verde-oscuro);
}

.botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 30px;
  margin-top: 30px;
}

.botones a {
  text-decoration: none;
  background: var(--verde-medio);
  color: var(--blanco);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.botones a:hover {
  background: var(--verde-oscuro);
  transform: scale(1.05);
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
  z-index: 999;
}

.whatsapp-float img {
  width: 60%;
  height: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .login {
    width: 90%;
    padding: 25px;
  }

  .Bienvenida {
    font-size: 1.3rem;
  }

  .Cont {
    font-size: 1.6rem;
  }

  .botones {
    flex-direction: column;
  }

  .botones a {
    width: 100%;
    max-width: 300px;
  }
}

/* El header que tenías al final, ahora lo he añadido también */
header {
  background: var(--verde-oscuro);
  color: var(--blanco);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; /* O fixed si quieres que siempre esté visible */
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 1.5em;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--amarillo);
}