.topbar{
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
}
.topbar__left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.topbar__right{ display:flex; align-items:center; gap:10px; }

.header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background: rgba(11,15,23,.65);
  backdrop-filter: blur(14px);
}
[data-theme="light"] .header{ background: rgba(255,255,255,.75); }

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{ width:44px; height:44px; }
.brand__name{ font-weight:900; letter-spacing:.4px; }
.brand__tag{ font-size:12px; color:var(--muted); margin-top:2px; }

.nav{ display:flex; align-items:center; gap:16px; }
.nav__link{
  color:var(--muted);
  font-weight:600;
  padding:10px 10px;
  border-radius:12px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nav__link:hover{
  color:var(--text);
  background: rgba(47,107,255,.12);
  transform: translateY(-1px);
}
.nav__link.is-active{
  color:var(--text);
  background: rgba(47,107,255,.18);
}

.header__actions{ display:flex; align-items:center; gap:10px; }

.burger{
  display:none;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:10px;
  border-radius:14px;
}
.burger span{
  display:block;
  width:22px;
  height:2px;
  background: var(--text);
  margin:5px 0;
  opacity:.9;
}

.mobile{
  display:none;
  border-top:1px solid var(--line);
  padding:10px 0 16px;
}
.mobile__link{
  display:block;
  padding:12px 0;
  color:var(--muted);
  font-weight:700;
}
.mobile__link:hover{ color:var(--text); }

.hero{
  position:relative;
  padding:48px 0 10px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:24px;
  align-items:start;
}
.hero__bg{
  position:absolute;
  inset:auto -20% -30% -20%;
  height:420px;
  background: radial-gradient(closest-side, rgba(47,107,255,.18), transparent 70%);
  filter: blur(10px);
  pointer-events:none;
}

.section{ padding:42px 0; }
.section__head{ margin-bottom:18px; }
.section__head h2{ margin:0 0 6px; font-size:26px; }
.section__head p{ margin:0; }

.footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  background: rgba(0,0,0,.10);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.footer__brand{ font-weight:900; letter-spacing:.4px; }

.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px;
  align-items:start;
}

/* responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .nav{ display:none; }
  .burger{ display:block; }
  .hide-sm{ display:none; }
}


/* =========================
   MOBILE-FIRST IMPROVEMENTS
   ========================= */

/* Mejor tamaño táctil */
button, .btn, .select, .text, input, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Evita zoom raro iOS */
input, textarea, select { font-size: 16px; }

/* Contenedor más cómodo en móvil */
.container{
  width: min(1120px, 100%);
  padding-left: 14px;
  padding-right: 14px;
}

/* Header sticky tipo app */
.header{
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
}

/* Barra superior compacta */
.topbar__inner{
  gap: 10px;
  flex-wrap: wrap;
}
.topbar__left, .topbar__right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
}

/* Ajuste brand */
.brand__name{ font-size: 16px; }
.brand__tag{ font-size: 12px; }

/* Acciones del header: más compacto */
.header__actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
}
.hide-sm{
  display: inline;
}

/* Catalog tools en móvil (una columna) */
.catalogTools{
  width: 100%;
  justify-content: flex-start;
}
.catalogTools .input{ flex: 1 1 240px; }
.catalogTools .select{ flex: 1 1 180px; }

/* GRID: 3 -> 2 -> 1 */
.catalogGrid{
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px){
  .catalogGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .catalogGrid{ grid-template-columns: 1fr; }
  .hide-sm{ display:none; }
}

/* Cards más “touch friendly” en móvil */
.productCard{
  padding: 14px;
}
.productCard__actions{
  gap: 10px;
}
.qty{
  padding: 10px 12px;
}
.qty button{
  font-size: 18px;
  padding: 0 10px;
}

/* Drawer carrito: full screen en móvil */
.drawer__panel{
  width: min(440px, 100%);
}
@media (max-width: 640px){
  .drawer__panel{
    width: 100%;
    border-left: none;
  }
  .drawer__head{
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 2;
  }
  .drawer__footer{
    position: sticky;
    bottom: 0;
    background: inherit;
    z-index: 2;
  }
}

/* Checkout inputs más cómodos */
.label{
  display:block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 1000;
  color: var(--muted);
}
.text{
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 12px;
  outline: none;
  font-weight: 900;
}
.text:focus, .select:focus{
  border-color: rgba(47,107,255,.6);
}

/* Producto: galería más alta en móvil */
@media (max-width: 640px){
  .galleryMain img{ height: 280px; }
  .thumb{ width: 72px; height: 54px; }
}

/* Mejor scroll en iOS */
.drawer__body{
  -webkit-overflow-scrolling: touch;
}
