/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FUENTE GLOBAL */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fef9f4;
  color: #333;
  padding-bottom: 3rem;
  animation: fadeInBody 0.8s ease-in;
}

@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CONTENEDOR CENTRAL */
.container {
  max-width: 600px;
  margin: auto;
  padding: 1.5rem;
  animation: fadeInContainer 0.8s ease;
}

@keyframes fadeInContainer {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* NAVBAR */
nav {
  background-color: #fbd3a0;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.2rem;
  color: #8b4513;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  color: #8b4513;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #8b4513;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #a0522d;
}

nav a:hover::after {
  width: 100%;
}

/* TITULOS */
h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #d35400;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FORMULARIOS */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  margin: 0.5rem 0 0.2rem;
  font-weight: 600;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: #ff914d;
  box-shadow: 0 0 0 3px rgba(255, 145, 77, 0.2);
  outline: none;
}

/* BOTONES */
button {
  background-color: #ff914d;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 10px rgba(255, 145, 77, 0.2);
}

button:hover {
  background-color: #e07b32;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 145, 77, 0.25);
}

/* TEXTOS */
p {
  margin-top: 0.5rem;
  line-height: 1.5;
  font-size: 0.96rem;
}

/* LINKS */
a {
  color: #c0392b;
  text-decoration: none;
  transition: 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #a93226;
}

/* TARJETAS / COMPONENTES */
.item, .promo, .cliente-info {
  background-color: #fffaf1;
  border: 1px solid #ffe1b4;
  border-radius: 16px;
  padding: 1.2rem;
  margin: 0.7rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(251, 211, 160, 0.3);
  animation: fadeInUp 0.5s ease;
}

.item:hover, .promo:hover, .cliente-info:hover {
  transform: scale(1.015);
  box-shadow: 0 6px 18px rgba(251, 211, 160, 0.4);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* QR CODE */
#qrcode {
  margin: 2rem auto;
  width: fit-content;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
  }

  nav a {
    margin: 0.3rem 0 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  button {
    width: 100%;
  }
}
