/* =====================
   SITE HEADER / HERO
===================== */

.site-header {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

/* HERO CON IMAGEN */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;
}

/* Oscurecido suave general del hero (NO blur) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* =====================
   BARRA SUPERIOR
===================== */

.header-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.8rem 1.5rem;

  background: rgba(30, 30, 30, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.logo img {
  height: 32px;
}

/* =====================
   MENÚ
===================== */
/* =====================
   MENÚ PRINCIPAL
===================== */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

/* =====================
   SUBMENÚ (CLAVE)
===================== */

.submenu {
  /* OCULTO SIEMPRE POR DEFECTO */
  display: none !important;

  position: absolute;
  top: 100%;
  left: 0;

  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(6px);

  min-width: 240px;
  padding: 0.6rem 0;

  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);

  z-index: 2000;

  /* IMPORTANTE: vertical */
  flex-direction: column;
}

.submenu li {
  padding: 0.5rem 1.2rem;
}

.submenu li a {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}

/* SOLO SE MUESTRA AL PASAR EL RATÓN */
.has-submenu:hover > .submenu {
  display: flex !important;
}


/* =====================
   CONTENIDO HERO
===================== */

.hero-content {
  position: relative;
  z-index: 2;

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* =====================
   RESPONSIVE
===================== */

@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .main-nav ul {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 360px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.6rem;
  }
}
