/* 🔹 Header */
.logo img { 
  height: 50px; 
}

.header {
  background: #0D0D0D;
  color: #F2F2F2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 2px solid #000000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #05C7F2;
}

.nav a {
  color: #F2F2F2;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover {
  color: #0CB1F2;
}

/* 🔹 Body */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;

  /* 🔥 Fondo con imagen */
  background-image: url("../imagenes/tienda.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 🔹 Main centrado */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* 🔹 Caja del formulario */
.contenedor {
  background: #1A1A1A;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(5, 199, 242, 0.4);
  text-align: center;
  width: 100%;
  max-width: 450px;
}

.contenedor h1 {
  margin-bottom: 20px;
  color: #05C7F2;
}

/* 🔹 Inputs */
.contenedor input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  outline: none;
  background: #2A2A2A;
  color: #F2F2F2;
  font-size: 1em;
}

.contenedor input::placeholder {
  color: #aaa;
}

/* 🔹 Botón */
.contenedor button {
  width: 100%;
  padding: 12px;
  background: #05C7F2;
  border: none;
  border-radius: 8px;
  color: #2e2121;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.contenedor button:hover {
  background: #0CB1F2;
}
/* 🔹 Texto debajo */
.contenedor p {
  margin-top: 15px;
  color: #F2F2F2;
}

.contenedor a {
  color: #05C7F2;
  text-decoration: none;
  font-weight: bold;
}
/* 🔹 Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transition: 0.35s ease; 
}

/* 🔹 Animación hamburguesa → X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* 🔹 Estilos responsive menú */
@media (max-width: 768px) {

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px 0;

    display: none;
    opacity: 0;
    transform: translateY(-25px);
  }

  /* Cuando se abre */
  .nav.show {
    display: flex;
    animation: dropdown 0.45s ease forwards; /* 👈 velocidad real */
  }

  .hamburger {
    display: flex;
  }
}

/* 🔹 Animación suave hacia abajo */
@keyframes dropdown {
  0% {
    opacity: 0;
    transform: translateY(-25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
