/* main.css */

/* 1. Fuente Arimo desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;700&display=swap');

/* 2. Reset y reglas globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: white;
  font-family: 'Arimo', sans-serif;
  line-height: 1.6;
}


.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #ccc;
}

/* 4. Logo centrado */
.logo-container {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5; /* MENOR que el menú */
}

.logo-container img {
  height: clamp(80px, 20vh, 300px); /* escala entre 80 y 300px según pantalla */
  width: auto;
  max-width: 90vw;
}
@media (max-width: 600px) {
  .logo-container img {
    height: 120px;
  }
}

/* 5. Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero picture,
.hero .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* 6. Overlay oscuro encima de la imagen */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* 7. Contenido centrado (texto y botón) */
.hero-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 1rem;
}

.hero-content h1 {
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
  padding: 0 1rem;
  max-width: 90vw;
  line-height: 1.3;
  word-wrap: break-word;
}

.hero-content .btn {
  padding: 1rem 2rem;
  border: 2px solid white;
  background-color: black;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.hero-content .btn:hover {
  background-color: white;
  color: black;
}

.navbar-container {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
  background-color: #000;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background-color: #000;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #000;
  }

  .navbar.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}


@media (max-width: 768px) {
  .hero-content {
    top: 55%;
    transform: translate(-50%, -55%);
  }

  .hero-content .btn {
    margin-top: 2rem;
    font-size: 1rem;
  }
}

.sr-only {
  position: absolute;
  left: -9999px;
}