* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #e0e0e0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

.logo { display: flex; align-items: center; gap: 10px; }
.header-logo { height: 38px; width: auto; border-radius: 4px; }
#shop-name { font-size: 1.4rem; font-weight: 800; letter-spacing: 3px; color: #d4af37; }

.header-controls { display: flex; align-items: center; gap: 15px; }
.btn-admin-trigger { background: #1a1a1a; color: #aaa; border: 1px solid #333; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.btn-admin-trigger:hover { color: #d4af37; border-color: #d4af37; }

.cart-icon { font-size: 1.3rem; cursor: pointer; position: relative; color: #fff; }
#cart-count { background: #d4af37; color: #000; font-size: 0.75rem; padding: 2px 7px; border-radius: 50%; font-weight: bold; position: absolute; top: -8px; right: -12px; }

/* Banner Hero Portada */
.hero-banner {
  width: 100%; height: 350px;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(13,13,13,1) 100%), url('portada.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay { text-align: center; padding: 20px; }
.hero-subtitle { color: #d4af37; font-size: 0.9rem; letter-spacing: 4px; font-weight: 700; margin-bottom: 8px; display: block; }
.hero-title { color: #fff; font-size: 2.2rem; letter-spacing: 2px; margin-bottom: 20px; font-weight: 900; }
.hero-btn { padding: 12px 28px; background: #d4af37; color: #000; text-decoration: none; font-weight: 800; border-radius: 4px; letter-spacing: 1px; }

/* Categorías */
.categories { display: flex; gap: 10px; padding: 1.2rem 1.5rem; overflow-x: auto; background: #121212; border-bottom: 1px solid #222; justify-content: center; }
.cat-btn { border: 1px solid #333; background: #1a1a1a; color: #aaa; padding: 8px 18px; border-radius: 20px; cursor: pointer; white-space: nowrap; font-weight: 600; }
.cat-btn.active { background: #d4af37; color: #000; border-color: #d4af37; font-weight: bold; }

/* Grilla de Productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; min-height: 400px; }
.card { background: #141414; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #222; transition: transform 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: #d4af37; }
.card img { width: 100%; height: 270px; object-fit: cover; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.card-price { font-size: 1.3rem; color: #d4af37; font-weight: 800; margin-bottom: 12px; }
.selectors { display: flex; gap: 8px; margin-bottom: 15px; }
.selectors select { flex: 1; padding: 8px; background: #222; color: #fff; border: 1px solid #333; border-radius: 6px; outline: none; }
.btn-add { margin-top: auto; background: #d4af37; color: #000; border: none; padding: 12px; border-radius: 6px; font-weight: 800; cursor: pointer; transition: background 0.2s; }
.btn-add:hover { background: #f1c40f; }

/* FOOTER CON ONDA */
footer {
  background: #050505;
  border-top: 1px solid #222;
  margin-top: 50px;
  padding: 40px 20px 20px 20px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1a1a1a;
}
.footer-brand h3 { color: #fff; letter-spacing: 2px; font-size: 1.4rem; margin-bottom: 10px; }
.footer-brand h3 span { color: #d4af37; }
.footer-brand p { color: #888; font-size: 0.9rem; line-height: 1.5; }

.footer-info h4, .footer-social h4 { color: #d4af37; font-size: 1.05rem; margin-bottom: 12px; }
.footer-info p { color: #aaa; font-size: 0.9rem; margin-bottom: 6px; }

.social-links { display: flex; flex-direction: column; gap: 10px; }
.social-links a { color: #fff; text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.social-links a:hover { color: #d4af37; }

.footer-bottom { text-align: center; padding-top: 20px; color: #555; font-size: 0.8rem; }

/* MODAL CARRITO (OCULTO FLOTANTE) */
.cart-modal {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 380px; height: 100vh;
  background: #111; z-index: 200;
  transition: transform 0.3s ease-in-out;
  display: flex; flex-direction: column;
  box-shadow: -5px 0 25px rgba(0,0,0,0.8);
}
.cart-modal.hidden { transform: translateX(100%); }

/* MODAL ADMIN (OCULTO OVERLAY) */
.modal-bg {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: center;
  z-index: 300;
}
.modal-bg.hidden { display: none !important; }

.modal-content {
  background: #141414; width: 90%; max-width: 500px;
  max-height: 85vh; overflow-y: auto;
  border-radius: 12px; border: 1px solid #333; padding: 1.5rem;
}

.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; background: #080808; border-bottom: 1px solid #222; }
.close-btn { background: none; border: none; font-size: 1.3rem; color: #fff; cursor: pointer; }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 1rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; background: #1a1a1a; padding: 10px; border-radius: 8px; }

.cart-footer { padding: 1.2rem; border-top: 1px solid #222; background: #0a0a0a; }
.total-row { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 1rem; color: #d4af37; }

.customer-data input, .customer-data select { width: 100%; padding: 10px; margin-bottom: 8px; background: #1e1e1e; color: #fff; border: 1px solid #333; border-radius: 6px; }
.btn-whatsapp { width: 100%; background: #25d366; color: white; border: none; padding: 12px; font-weight: bold; font-size: 1rem; border-radius: 6px; cursor: pointer; }

/* ESTILOS INTERNOS ADMIN */
#admin-form { display: flex; flex-direction: column; gap: 10px; margin: 15px 0; }
#admin-form input, #admin-form select { padding: 10px; background: #222; border: 1px solid #333; color: #fff; border-radius: 6px; }
.admin-form-btns { display: flex; gap: 10px; }
.btn-save { flex: 2; background: #d4af37; color: #000; font-weight: bold; border: none; padding: 10px; border-radius: 6px; cursor: pointer; }
.btn-cancel { flex: 1; background: #333; color: #fff; border: none; padding: 10px; border-radius: 6px; cursor: pointer; }
.admin-list { margin-top: 15px; display: flex; flex-direction: column; gap: 8px; }
.admin-item { display: flex; justify-content: space-between; align-items: center; background: #1e1e1e; padding: 10px; border-radius: 6px; }
.admin-item-btns button { padding: 5px 10px; margin-left: 5px; border-radius: 4px; border: none; cursor: pointer; }
.btn-edit { background: #3b82f6; color: #fff; }
.btn-delete { background: #ef4444; color: #fff; }