/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f8f9fa;
  color: #001a33;
}

/* ===== BANNER ===== */
.banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 6px solid #3366cc;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 20px rgba(51,102,204,0.15);
  background: linear-gradient(to bottom, #3366cc, #000000);
}

.banner img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  border-radius: 0 0 30px 30px;
  background: transparent;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
}

/* ===== HEADER ===== */
.main-header {
  background: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(51,102,204,0.1);
  border-radius: 15px;
  position: sticky;
  top: 10px;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  height: 55px;
  filter: drop-shadow(0 0 5px rgba(51,102,204,0.5));
  transition: 0.3s;
}

.logo-container img:hover {
  transform: rotate(-5deg) scale(1.1);
}

.logo-container h1 {
  font-size: 26px;
  color: #3366cc;
  font-weight: bold;
}

/* ===== BOTONES ===== */
.admin-btn,
.volver-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 25px;
  border: 2px solid #3366cc;
  background: #ffffff;
  color: #3366cc;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 3px 6px rgba(51,102,204,0.2);
}

.admin-btn:hover,
.volver-btn:hover {
  background: #3366cc;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(51,102,204,0.4);
}

.btn {
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
  display: block;
  box-shadow: 0 3px 8px rgba(51,102,204,0.2);
}

.btn.whatsapp {
  background: #00cc99;
  color: #ffffff;
}

.btn.whatsapp:hover {
  background: #33e6cc;
  transform: scale(1.05);
}

.btn:not(.whatsapp) {
  background: #3366cc;
  color: #ffffff;
}

.btn:not(.whatsapp):hover {
  background: #0055cc;
  transform: scale(1.05);
}

/* ===== PRODUCTOS ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  padding: 50px 20px;
  max-width: 1300px;
  margin: auto;
}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(51,102,204,0.2);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #e6f0ff;
}

.product-card h3 {
  font-size: 17px;
  margin: 15px;
  color: #3366cc;
  font-weight: bold;
}

.product-card p {
  margin: 5px 15px 15px;
  font-size: 14px;
  color: #001a33;
  opacity: 0.85;
}

.product-card strong {
  color: #00cc99;
  font-size: 15px;
}

/* ===== AGOTADO ===== */
.agotado {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6666;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  z-index: 2;
}

/* ===== FOOTER ===== */
.main-footer {
  margin-top: 60px;
  padding: 40px 20px;
  text-align: center;
  background: #ffffff;
  border-top: 4px solid #3366cc;
  box-shadow: 0 -5px 15px rgba(51,102,204,0.05);
}

.main-footer h2 {
  color: #3366cc;
  margin-bottom: 15px;
  font-weight: bold;
}

.main-footer p {
  font-size: 14px;
  opacity: 0.7;
  margin: 5px 0;
}

.social-icons {
  margin: 15px 0;
}

.social-icons a {
  color: #3366cc;
  font-size: 22px;
  margin: 0 10px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #00cc99;
  transform: scale(1.2);
}

/* ===== LOGIN BOX ===== */
.login-box {
  max-width: 380px;
  margin: 80px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(51,102,204,0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-box h2 {
  color: #3366cc;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.login-box input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid #e6f0ff;
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

.login-box input:focus {
  border-color: #3366cc;
  box-shadow: 0 3px 8px rgba(51,102,204,0.2);
}

.login-box .btn {
  width: 100%;
}

.login-box .error {
  color: #dc3545;
  font-size: 13px;
  opacity: 0.9;
  display: none;
}

/* ===== ADMIN PANEL ===== */
.admin-container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.form-admin {
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(51,102,204,0.1);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-admin input,
.form-admin textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6f0ff;
  outline: none;
  font-size: 14px;
}

.form-admin input:focus,
.form-admin textarea:focus {
  border-color: #3366cc;
  box-shadow: 0 3px 8px rgba(51,102,204,0.2);
}

.form-admin button {
  width: 100%;
  background: #3366cc;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  transition: 0.3s;
  box-shadow: 0 3px 8px rgba(51,102,204,0.2);
}

.form-admin button:hover {
  background: #0055cc;
  transform: scale(1.05);
}

/* ===== PRODUCTO ADMIN ===== */
.producto-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(51,102,204,0.08);
}

.producto-admin img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.producto-info {
  flex: 1;
  margin-left: 15px;
  color: #001a33;
}

.producto-botones {
  display: flex;
  gap: 10px;
}

.producto-botones button:first-child {
  background-color: #001a33;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

.producto-botones button:last-child {
  background-color: #0084ff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

.producto-botones button:hover {
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .banner img {
    height: auto;
  }

  .products {
    padding: 25px;
    gap: 20px;
  }

  .product-card img {
    height: 180px;
  }

  .main-header {
    flex-direction: column;
    gap: 15px;
  }

  .login-box {
    margin: 50px 20px;
    padding: 30px;
  }
}