body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Arial", sans-serif;
  overflow-x: hidden; /* Evita desbordamiento horizontal */
}

.hero {
  background-image: url("images/bg-cow.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh; /* Usamos vh para altura completa */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Más oscuro para mejor contraste */
  z-index: 0;
}

.hero-content {
  position: relative;
  color: white;
  text-align: center;
  z-index: 1;
  padding: 0 20px; /* Padding para móviles */
  max-width: 800px; /* Limita el ancho del texto */
}

.hero-logo {
  width: 150px; /* Ajusta el tamaño del logo */
  height: auto;
  margin-bottom: 20px; /* Espacio entre el logo y el texto */
  animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
  font-size: clamp(2rem, 8vw, 4rem); /* Tamaño responsivo */
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease-in-out; /* Animación de entrada */
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries para móviles */
@media (max-width: 768px) {
  .hero-logo {
    width: 100px; /* Tamaño más pequeño en móviles */
  }
  .hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 3rem); /* Ajuste para móviles */
    letter-spacing: 1px;
  }
}
