/* ============================================================
   MCAShop — sistema visual "brutalism rojo/negro"
   Adaptado de Plantilla_estilos_para_paginas_web/estilo_brutalism.html
   (fondo oscuro casi negro + acento naranja) recoloreado a rojo.
   ============================================================ */

:root {
  --bg:        #0e0e0e;
  --bg-panel:  #1a1a1a;
  --bg-card:   #161616;
  --line:      #2a2a2a;
  --text:      #ffffff;
  --text-muted:#b3b3b3;
  --accent:    #e11d2e;
  --accent-hover: #ff2d40;
  --accent-soft: rgba(225, 29, 46, 0.12);
  --success:   #22c55e;
  --warning:   #eab308;
  --radius:    4px;
  --font:      'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Navbar ────────────────────────────────────────────────────────── */

.navbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  position: sticky; top: 0; z-index: 50;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 24px;
}
.navbar-brand {
  font-weight: 900; font-size: 1.3rem; text-transform: uppercase;
  border-left: 6px solid var(--accent); padding-left: 10px;
}
.navbar-search {
  flex: 1; display: flex; max-width: 480px;
}
.navbar-search input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 9px 12px; border-radius: var(--radius) 0 0 var(--radius); font-family: var(--font);
}
.navbar-search button {
  background: var(--accent); border: none; color: #fff; padding: 0 16px;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 700;
}
.navbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.navbar-actions a { font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.cart-badge {
  background: var(--accent); color: #fff; border-radius: 50%;
  font-size: .65rem; font-weight: 700; padding: 1px 6px; margin-left: 4px;
}

/* ── Botones ───────────────────────────────────────────────────────── */

.btn-brutal {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 14px 32px; font-weight: 700; text-transform: uppercase; font-size: .9rem;
  border-radius: var(--radius); cursor: pointer; transition: .15s;
  box-shadow: 4px 4px 0 rgba(225,29,46,.25);
}
.btn-brutal:hover { background: var(--accent-hover); transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(225,29,46,.25); }
.btn-brutal:disabled { background: #555; cursor: not-allowed; box-shadow: none; }
.btn-outline {
  display: inline-block; background: transparent; color: var(--text); border: 2px solid var(--line);
  padding: 12px 30px; font-weight: 700; text-transform: uppercase; font-size: .9rem;
  border-radius: var(--radius); cursor: pointer;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: .75rem; }
.btn-danger { background: #b91c1c; }

/* ── Cards de producto ─────────────────────────────────────────────── */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card-producto {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .15s; display: flex; flex-direction: column;
}
.card-producto:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-producto .img-wrap {
  aspect-ratio: 1; background: #222; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem; text-transform: uppercase; overflow: hidden;
}
.card-producto .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-producto .info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-producto .nombre { font-size: .9rem; font-weight: 600; text-transform: none; line-height: 1.3; }
.card-producto .precio { font-size: 1.15rem; font-weight: 900; color: var(--accent); }
.card-producto .precio-tachado { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }
.badge-oferta {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 2px; text-transform: uppercase;
}
.card-producto .img-wrap { position: relative; }

/* ── Categorías / hero ─────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg));
  border-bottom: 4px solid var(--accent);
  padding: 60px 0; text-align: center;
}
.hero h1 { font-size: 2.6rem; }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 24px; }

.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.cat-chip {
  background: var(--bg-card); border: 1px solid var(--line); padding: 8px 18px;
  border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase;
}
.cat-chip:hover, .cat-chip.activa { border-color: var(--accent); color: var(--accent); }

section.block { padding: 40px 0; }
section.block h2 { font-size: 1.4rem; border-left: 6px solid var(--accent); padding-left: 12px; }

/* ── Formularios ───────────────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--line); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius); font-family: var(--font); font-size: .9rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 480px; margin: 40px auto; }

/* ── Carrito / checkout ───────────────────────────────────────────── */

.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .img { width: 64px; height: 64px; background: #222; border-radius: var(--radius); flex-shrink: 0; overflow: hidden; }
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .qty-controls { display: flex; align-items: center; gap: 8px; }
.cart-item .qty-controls button { background: var(--bg-card); border: 1px solid var(--line); color: var(--text); width: 28px; height: 28px; cursor: pointer; border-radius: var(--radius); }
.cart-summary { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 900; margin: 16px 0; }
.cart-summary .total-row .monto { color: var(--accent); }

/* ── Badges de estado de pedido ───────────────────────────────────── */

.badge-estado { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.badge-pendiente  { background: rgba(234,179,8,.15); color: var(--warning); }
.badge-procesando { background: rgba(59,130,246,.15); color: #60a5fa; }
.badge-enviado     { background: rgba(168,85,247,.15); color: #c084fc; }
.badge-entregado   { background: rgba(34,197,94,.15); color: var(--success); }
.badge-cancelado   { background: rgba(225,29,46,.15); color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 60px; color: var(--text-muted); font-size: .8rem; text-align: center; }

/* ── Utilidades ───────────────────────────────────────────────────── */

.muted { color: var(--text-muted); }
.center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

@media (max-width: 640px) {
  .navbar-search { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
