/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:      #00c2ff;
  --accent-dark: #009ecf;
  --black:       #0d0d0d;
  --dark:        #1a1a2e;
  --dark2:       #16213e;
  --gray:        #f2f4f7;
  --mid:         #888;
  --white:       #ffffff;
  --radius:      8px;
  --shadow:      0 2px 14px rgba(0,0,0,.09);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  border: none;
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--black); }
.btn-dark    { background: var(--dark);  color: var(--white); }
.btn-outline { border: 2px solid rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

.section-title { font-size: 1.65rem; font-weight: 800; margin-bottom: .35rem; }
.section-sub   { color: var(--mid); margin-bottom: 2.5rem; font-size: .95rem; }

.tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: .4rem;
}
.tag-new  { background: #10b981; color: #fff; }
.tag-hot  { background: #ef4444; color: #fff; }
.tag-sale { background: #f59e0b; color: #000; }
.tag-pro  { background: var(--dark); color: var(--accent); }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  padding: .38rem 0;
  letter-spacing: .2px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
  color: var(--white);
}
.logo-mark { width: 34px; height: 34px; }
.logo span { color: var(--accent); }

nav { display: flex; gap: 1.8rem; }
nav a { color: #aaa; font-size: .88rem; font-weight: 500; transition: color .15s; }
nav a:hover, nav a.active { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 1rem; }
.search-wrap {
  display: flex;
  align-items: center;
  background: #1f1f1f;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #333;
}
.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #ddd;
  font-size: .82rem;
  padding: .38rem .8rem;
  width: 180px;
}
.search-wrap input::placeholder { color: #555; }
.search-wrap button {
  background: none;
  border: none;
  color: #777;
  padding: 0 .7rem;
  cursor: pointer;
  font-size: .95rem;
}
.cart-btn {
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 6px;
  padding: .38rem .85rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark) 60%, #0f3460 100%);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,194,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 540px; }
.hero-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: #aaa; font-size: 1.03rem; margin-bottom: 2rem; max-width: 440px; }
.hero-btns { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-num { font-size: 1.4rem; font-weight: 900; color: var(--white); }
.stat-lbl { font-size: .73rem; color: #666; text-transform: uppercase; letter-spacing: .5px; }

/* ── Categorías ──────────────────────────────────────────────────────────── */
.cats { padding: 3rem 0; background: var(--gray); }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem .8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,194,255,.12);
  border-color: var(--accent);
}
.cat-card .ico { font-size: 2rem; margin-bottom: .5rem; line-height: 1; }
.cat-card h3  { font-size: .82rem; font-weight: 700; }
.cat-card small { font-size: .72rem; color: var(--mid); }

/* ── Productos ───────────────────────────────────────────────────────────── */
.products { padding: 4rem 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.3rem;
}
.prod-card {
  border: 1px solid #e8eaf0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .15s, transform .15s;
}
.prod-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.prod-img {
  width: 100%;
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
}
.prod-img svg { width: 110px; height: 110px; }
.prod-body { padding: 1rem; }
.prod-cat  { font-size: .68rem; color: var(--mid); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .15rem; }
.prod-name { font-weight: 700; font-size: .93rem; margin-bottom: .4rem; line-height: 1.35; }
.prod-desc { font-size: .78rem; color: #666; margin-bottom: .85rem; line-height: 1.45; }
.prod-footer { display: flex; align-items: center; justify-content: space-between; }
.prod-price { font-size: 1.1rem; font-weight: 800; }
.prod-price small { font-size: .68rem; color: var(--mid); font-weight: 400; display: block; }
.prod-price .old  { text-decoration: line-through; color: var(--mid); font-size: .8rem; font-weight: 400; }
.add-btn {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  width: 34px; height: 34px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  color: var(--black);
  font-weight: 900;
}
.add-btn:hover { background: var(--accent-dark); }
.compat-list { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; }
.compat-pill {
  font-size: .62rem;
  background: #eef2ff;
  color: #3730a3;
  padding: .12rem .45rem;
  border-radius: 30px;
  font-weight: 600;
}

/* ── Marcas strip ─────────────────────────────────────────────────────────── */
.brands { padding: 2rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.brands-inner { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem; }
.brand-logo {
  font-size: .82rem;
  font-weight: 800;
  color: #ccc;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .15s;
}
.brand-logo:hover { color: #888; }

/* ── Banner CTA ───────────────────────────────────────────────────────────── */
.banner {
  background: linear-gradient(135deg, var(--dark) 0%, #0f3460 100%);
  color: var(--white);
  padding: 3.5rem 0;
}
.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.banner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.banner h2 span { color: var(--accent); }
.banner p { color: #999; font-size: .93rem; }

/* ── Ventajas ─────────────────────────────────────────────────────────────── */
.ventajas { padding: 3rem 0; background: var(--gray); }
.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.ventaja { display: flex; align-items: flex-start; gap: .9rem; }
.ventaja-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--dark);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.ventaja h4 { font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.ventaja p  { font-size: .78rem; color: var(--mid); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: #888;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1f1f1f;
  margin-bottom: 1.5rem;
}
.footer-brand p { font-size: .82rem; margin: .75rem 0 1rem; color: #555; max-width: 240px; line-height: 1.55; }
.footer-brand .logo { margin-bottom: .3rem; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; font-size: .8rem; }
.footer-col ul li a { color: #555; transition: color .15s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #333;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.social { display: flex; gap: .5rem; }
.social a {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  color: #555;
  transition: color .15s, border-color .15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark) 100%);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}
.page-header h1 { font-size: 1.8rem; font-weight: 800; }
.breadcrumb { font-size: .8rem; color: #555; margin-top: .4rem; }
.breadcrumb a { color: var(--accent); }

/* ── Catálogo ─────────────────────────────────────────────────────────────── */
.catalog-layout { display: flex; gap: 2rem; padding: 3rem 0; align-items: flex-start; }
.sidebar { width: 210px; flex-shrink: 0; position: sticky; top: 80px; }
.filter-box {
  border: 1px solid #e8eaf0;
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.filter-box h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
  color: #333;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  margin-bottom: .4rem;
  cursor: pointer;
  color: #444;
}
.filter-item input { accent-color: var(--accent); }
.catalog-main { flex: 1; min-width: 0; }
.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: .82rem;
  color: var(--mid);
  flex-wrap: wrap;
  gap: .5rem;
}
.catalog-bar select {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: .32rem .6rem;
  font-size: .8rem;
  background: var(--white);
}

/* ── Contacto ─────────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.5rem 0; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .32rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: .6rem .85rem;
  font-size: .86rem;
  font-family: inherit;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.info-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  height: fit-content;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.info-row { display: flex; gap: .9rem; margin-bottom: 1.3rem; align-items: flex-start; }
.info-ico { font-size: 1.2rem; margin-top: .1rem; }
.info-row h4 { font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: .2rem; }
.info-row p  { font-size: .8rem; color: #888; }
.hours { background: rgba(255,255,255,.05); border-radius: 6px; padding: .9rem 1rem; margin-top: 1.2rem; font-size: .8rem; color: #888; }
.hours strong { display: block; color: var(--white); margin-bottom: .3rem; font-size: .82rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  nav, .search-wrap { display: none; }
  .hero-inner  { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout  { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .contact-layout  { grid-template-columns: 1fr; }
  .banner-inner    { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
}
