/* Tienda Celulares Onelli — identidad derivada del logo */
:root {
  --navy-900: #10132c;
  --navy-800: #181c3e;
  --navy-700: #1a1f43;
  --navy-600: #22305f;
  --azul: #3e69c6;
  --azul-claro: #4c7ede;
  --magenta: #e61873;
  --magenta-osc: #c50f60;
  --blanco: #ffffff;
  --superficie: #f5f6fa;
  --superficie-2: #eef0f8;
  --borde: #dfe3f0;
  --texto: #181c3e;
  --texto-2: #5b6180;
  --texto-3: #8f94b0;
  --radio: 12px;
  --sombra-1: 0 1px 3px rgba(16, 19, 44, 0.08);
  --sombra-2: 0 6px 18px rgba(16, 19, 44, 0.12);
  --ancho: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--magenta); }
button { font-family: inherit; cursor: pointer; border: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.hdr { background: var(--navy-800); position: sticky; top: 0; z-index: 50; box-shadow: var(--sombra-2); }
.hdr-inner { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.hdr-logo { display: flex; align-items: center; }
.hdr-logo img { height: 40px; width: auto; display: block; }
.hdr-nav { display: flex; gap: 4px; flex: 1; }
.hdr-nav a { color: #b8bdd9; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; transition: all 150ms ease; }
.hdr-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.hdr-nav a.activo { color: #fff; background: rgba(255, 255, 255, 0.1); }
.hdr-carrito { position: relative; background: rgba(255, 255, 255, 0.08); color: #fff; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: background 150ms ease; }
.hdr-carrito:hover { background: rgba(255, 255, 255, 0.16); }
.hdr-carrito-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; color: #fff; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 10px; transition: all 150ms ease; }
.btn-primario { color: #fff; }
.btn-primario:hover { filter: brightness(0.92); transform: translateY(-1px); box-shadow: var(--sombra-2); }
.btn-secundario { background: var(--superficie-2); color: var(--texto); }
.btn-secundario:hover { background: var(--borde); }
.btn-fantasma { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-fantasma:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-mini { width: 34px; height: 34px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; transition: all 150ms ease; }
.btn-mini:hover { filter: brightness(0.9); transform: scale(1.06); }
.btn-bloque { width: 100%; }

/* ---------- Cards de producto ---------- */
.grilla-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grilla-prods.compacta { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.prod-card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; cursor: pointer; transition: all 180ms ease; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--sombra-2); transform: translateY(-3px); border-color: #c9cfe6; }
.prod-img { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-card.compacta .prod-img { aspect-ratio: 16 / 10; }
.prod-img-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-destacado { position: absolute; top: 10px; left: 10px; background: var(--navy-800); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.badge-sinstock { position: absolute; top: 10px; right: 10px; background: rgba(16, 19, 44, 0.75); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.prod-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.prod-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-3); }
.prod-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.prod-card-pie { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.prod-card-precio { font-size: 17px; font-weight: 800; }
.prod-card-tag { font-size: 11.5px; font-weight: 700; color: var(--azul); background: var(--superficie-2); padding: 4px 10px; border-radius: 999px; }

/* ---------- Secciones ---------- */
.seccion { padding: 48px 0; }
.seccion-titulo { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.seccion-titulo h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.seccion-titulo a { font-size: 13.5px; font-weight: 700; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-900); color: #b8bdd9; margin-top: 64px; }
.ftr-inner { max-width: var(--ancho); margin: 0 auto; padding: 48px 20px 32px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.ftr-col p { font-size: 13.5px; line-height: 1.5; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ftr-marca img { height: 34px; margin-bottom: 12px; }
.ftr-marca p { font-size: 13.5px; }
.ftr-legal { border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; padding: 18px; font-size: 12.5px; color: var(--texto-3); }

/* ---------- Filtros / chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--superficie-2); color: var(--texto-2); font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 999px; transition: all 150ms ease; }
.chip:hover { background: var(--borde); color: var(--texto); }
.chip.activo { color: #fff; }

/* ---------- Formularios ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.campo input, .campo select { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--borde); border-radius: 9px; background: #fff; color: var(--texto); transition: border 150ms ease, box-shadow 150ms ease; width: 100%; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(62, 105, 198, 0.15); }
.campo input.error { border-color: var(--magenta); }
.campo .msj-error { font-size: 12px; color: var(--magenta); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hdr-inner { gap: 12px; }
  .hdr-nav a { padding: 8px 10px; font-size: 13px; }
  .hdr-logo img { height: 32px; }
  .ftr-inner { grid-template-columns: 1fr; gap: 28px; }
  .seccion { padding: 32px 0; }
  .grilla-prods { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
