/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

header figure {
  max-width: 150px;
  margin: 0 auto 0.5% auto;
}
header figure img {
  width: 100%;
  display: block;
}

/* NAV */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  font-weight: bold;
  color: #333;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav ul li a:hover,
nav ul li a.active {
  color: #d40000;
  border-bottom-color: #d40000;
} 

/* BOTÓN HAMBURGUESA */
header button {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 0.5%;
}

/* RESPONSIVE: menú lateral */
@media (max-width: 768px) {
  nav {
    position: fixed;
    margin-top: 25%;
    left: -100%; /* oculto fuera de pantalla */
    width: 70%;
    height: 50%;
    background: #fff;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 5%;
  }

  nav.show {
    left: 0; /* se desliza dentro */
  }

  header button {
    display: block;
  }
  
}


/* FOOTER */
/* ===== FOOTER PREMIUM ===== */
footer {
    background: #111;
    color: #fff;
    padding: 60px 10% 30px 10%;
    margin-top: 60px;
    border-top: 3px solid #d4af37;
}

footer > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* TITULOS */
footer article h4 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 20px;
    letter-spacing: 1px;
}

/* LISTAS */
footer article ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer article ul li {
    margin-bottom: 12px;
}

footer article ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
}

footer article ul li a:hover {
    color: #d4af37;
    text-shadow: 0 0 6px rgba(212,175,55,0.7);
}

/* COPY */
aside {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* ===== REDES SOCIALES PREMIUM ===== */
footer article:last-of-type ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Círculo premium */
footer article:last-of-type ul li a {
    width: 46px;
    height: 46px;
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.35s ease;
    background: #00000015;
}

/* SVG negro */
footer article:last-of-type ul li a svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    transition: 0.35s ease;
}

/* Hover premium */
footer article:last-of-type ul li a:hover {
    background: linear-gradient(135deg, #d4af37, #b68a2c);
    border-color: #b68a2c;
    box-shadow: 0 0 12px rgba(212,175,55,0.7);
}

footer article:last-of-type ul li a:hover svg {
    fill: #fff;
}
