/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Portada === */
.hero {
  position: relative;
  height: 90vh;
  background: url("img/portada_optimizada.webp") no-repeat center center/cover;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

/* === Barra de navegación === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: yellow;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border: 2px solid white;
  border-radius: 20px;
  transition: 0.3s;
}

.nav-links li a:hover {
  background: white;
  color: black;
}

/* === Botón hamburguesa === */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* === Texto portada === */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: yellow;
  animation: fadeZoom 1.2s ease-out forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  animation: fadeZoom 1.5s ease-out forwards;
}

@keyframes fadeZoom {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* === Redes sociales === */
.social-bar {
  background: white;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.facebook { background: #1877f2; }
.instagram { background: radial-gradient(circle at 30% 30%, #f58529, #dd2a7b, #8134af, #515bd4); }
.tiktok { background: black; }

.social-btn:hover {
  transform: scale(1.1);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  /* Menú oculto por defecto */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 20px;
    padding: 10px;
    background: transparent;
    gap: 8px;
  }

  /* Menú visible */
  .nav-links.show {
    display: flex;
  }

  /* Botones iguales */
  .nav-links li {
    width: 160px; /* mismo tamaño */
  }

  .nav-links li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border: 2px solid white;
    border-radius: 20px;
    background: gold;
    color: rgb(0, 0, 0);
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .nav-links li a:hover {
    background: white;
    color: black;
  }

  /* Ajuste portada en móvil */
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
}
