/* ===== Importar fuentes Google ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Poppins:wght@300;400;500;600&display=swap');

/* ===== Reset global ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0a0f1c;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #66f7ff;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(10, 15, 28, 0.95);
  border-bottom: 1px solid #1f2a40;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #00d4ff;
  letter-spacing: 1px;
}
nav a, nav span {
  margin-left: 16px;
  color: #e0e0e0;
  font-size: 0.95rem;
}
nav a:hover {
  color: #00d4ff;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ===== Cards ===== */
.card {
  background: #141a2a;
  border: 1px solid #1f2a40;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.3);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #1f2a40;
}
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease-in-out;
  border: 1px solid #00d4ff;
  background: transparent;
  color: #00d4ff;
}
.btn:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #66f7ff;
}
.btn.primary {
  background: linear-gradient(90deg, #00d4ff, #0077ff);
  border: none;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}
.btn.primary:hover {
  background: linear-gradient(90deg, #66f7ff, #00d4ff);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.6);
}

/* ===== Tipografía títulos ===== */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.4rem;
  margin-top: 30px;
}

/* ===== Bloques de info del producto ===== */
.product-info {
  background: #141a2a;
  border: 1px solid #1f2a40;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}
.product-info p {
  margin: 8px 0;
  font-size: 1rem;
}
.product-info strong {
  color: #66f7ff;
}

/* ===== Descripción ===== */
.product-description {
  margin: 20px 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

/* ===== Precio ===== */
.product-price {
  margin: 20px 0;
  font-size: 1.3rem;
}
.product-price .price {
  font-size: 1.5rem;
  color: #00ffa6;
  font-weight: 600;
}
.product-price .strike {
  font-size: 1rem;
  margin-left: 10px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1f2a40;
  color: #00d4ff;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 6px;
}

/* ===== Acciones de compra ===== */
.product-actions {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-actions input[type="number"] {
  padding: 10px;
  border: 1px solid #2b3650;
  border-radius: 8px;
  width: 90px;
  background: #0f172a;
  color: #e0e0e0;
}

/* ===== Formularios ===== */

.form {
  background: #141a2a;
  border: 1px solid #1f2a40;
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
}
.form input,
.form textarea,
.form select {
  padding: 12px;
  border: 1px solid #2b3650;
  border-radius: 8px;
  background: #0f172a;
  color: #e0e0e0;
  font-size: 0.95rem;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 6px rgba(0, 200, 255, 0.4);
}

/* ===== Tablas ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #141a2a;
  border: 1px solid #1f2a40;
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid #1f2a40;
  text-align: left;
  color: #e0e0e0;
}
.table th {
  background: #1f2a40;
  color: #00d4ff;
  font-weight: 600;
}

/* ===== Alertas ===== */
.alert {
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
}
.alert.ok {
  background: rgba(0, 255, 166, 0.1);
  border: 1px solid #00ffa6;
  color: #00ffa6;
}
.alert.err {
  background: rgba(255, 72, 72, 0.1);
  border: 1px solid #ff4848;
  color: #ff8c8c;
}

/* ===== Thumbnails ===== */
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #1f2a40;
}

/* ===== Footer ===== */
footer.site-footer {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid #1f2a40;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* ===== Modal de imágenes / videos ===== */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.img-modal.open { display: flex; }
.img-modal img,
.img-modal iframe {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}
.img-modal__btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  user-select: none;
}
.img-modal__btn:hover { background: rgba(255,255,255,0.2); }
.img-modal__btn:active { transform: scale(0.98); }
.img-modal__close { top: 20px; right: 20px; font-size: 20px; }
.img-modal__prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.img-modal__next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 18px; }

/* ===== Dropdown categorías (header público) ===== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  cursor: pointer;
  color: #e0e0e0;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.dropdown-toggle .arrow {
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.dropdown.open .dropdown-toggle .arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: #141a2a;
  border: 1px solid #1f2a40;
  border-radius: 8px;
  min-width: 180px;
  z-index: 1000;
  margin-top: 6px;
}
.dropdown-menu a {
  display: block;
  padding: 10px;
  color: #e0e0e0;
  font-size: 0.95rem;
}
.dropdown-menu a:hover {
  background: #1f2a40;
  color: #00d4ff;
}
.dropdown.open .dropdown-menu {
  display: block;
}
/* ===== Botón Editar ===== */
.btn.edit {
  background: linear-gradient(90deg, #ff9800, #ffb74d);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}
.btn.edit:hover {
  background: linear-gradient(90deg, #ffa726, #ff9800);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.6);
  transform: translateY(-2px);
}
.btn.edit:active {
  transform: scale(0.96);
}

/* ===== Estilos de precios ===== */
/* ===== Precios ===== */
.product-price {
  margin: 15px 0;
}

.price-normal {
  font-size: 1rem;
  color: #888;
  text-decoration: line-through;
  margin-right: 10px;
}

.price-discount {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00ff99;
}
