:root{
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --bg:#FFFFFF; --surface:#F5F5F7; --text:#111111; --muted:#86868B; --border:#E5E5EA;
  --brand-1:#000000; --brand-2:#333333; --brand-3:#666666; --accent-1:#000000; --accent-2:#333333;
  --header-h:64px;
  --feature-icon-size:60px;
  --radius:12px;
  --radius-lg:18px;
  --gap:12px;
  --max-width:1100px;
  --transition:150ms ease-out;
  --shadow-1: 0 4px 14px rgba(0,0,0,.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,.12);
  --text-strong: #000000;
  --muted-2: color-mix(in oklab, var(--muted) 65%, transparent);
  --bp-sm: 640px;
  --bp-md: 1024px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;color:var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  background:var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .display-title, .side-brand span {
  font-family: var(--font-heading);
}
/* Fondo limpio */
.bg-gradient { display: none; }
.bg-noise { display: none; }

/* HERO */
.hero{
  position:relative; 
  min-height:clamp(600px, 80vh, 900px); 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}

.hero-content{
  position:relative; 
  width: min(1000px, 92%);
  margin: 0 auto;
}

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700; 
  letter-spacing: .2em; 
  text-transform: uppercase; 
  color: var(--muted);
  margin-bottom: 24px;
  font-size: .85rem;
}

.hero .display-title{
  margin: 0 0 24px; 
  font-size: clamp(48px, 10vw, 120px);
  line-height: .95;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.hero .subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-row{
  display:flex; 
  gap: 16px; 
  justify-content: center;
  margin-bottom: 60px;
}

/* Bullets con iconos - Horizontal line */
.hero-bullets.with-icons{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin: 0; 
  padding: 0; 
  list-style:none;
}
.hero-bullets.with-icons li{ 
  display:flex; 
  align-items:center; 
  gap: 10px; 
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.hero-bullets.with-icons .ico{ 
  width: 32px; height: 32px; 
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.hero-bullets.with-icons .ico svg{ 
  width: 16px; height: 16px; display: block; 
  stroke-width: 1.75;
}

/* FEATURES */
.features{padding:clamp(28px,6vw,64px) 0}
.features-grid{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(12px,2vw,18px);
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}
.glass-card{
  padding:clamp(16px,2.4vw,22px); border-radius:18px; border:1px solid var(--border);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%); box-shadow: var(--shadow-1);
}
.feature-head{display:flex; flex-direction:column; align-items:flex-start; gap:14px; margin:0 0 14px}
.feature-ico{
  width: 48px; height: 48px;
  flex:0 0 auto; display:flex; align-items:center; justify-content:center; 
  color: var(--text);
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.feature-ico svg{ width:22px; height:22px; stroke-width: 1.5; }
.glass-card h3{margin:.2rem 0 .1rem; font-size:1.06rem}
.glass-card p{margin:0; color:var(--muted)}
/* [HOME-FEATS-PUSH-01-CSS] margen interno solo para index */
@media (min-width:1024px){
  body.home-page .features{                 /* solo index.html */
    padding-inline: var(--pad-x);           /* mismo gutter que page-wrap */
    box-sizing: border-box;
  }
}
/* Teléfonos (≤639px): 2 columnas compactas */
@media (max-width: 639px){
  .home-page .features{ padding-inline: 14px; }
  .home-page .features-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .home-page .feature-ico{ --feature-icon-size: 32px; }
  .home-page .glass-card{ border-radius: 16px; }
}

/* Tablets (640–819px): 2 columnas aireadas */
@media (min-width: 640px) and (max-width: 819px){
  .home-page .features{ padding-inline: clamp(16px, 4vw, 28px); }
  .home-page .features-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .home-page .feature-ico{ --feature-icon-size: 36px; }
  .home-page .glass-card{ padding: clamp(14px, 2.2vw, 20px); }
}

/* Tablets grandes (820–1023px): 3 columnas */
@media (min-width: 820px) and (max-width: 1023px){
  .home-page .features{ padding-inline: clamp(16px, 4vw, 32px); }
  .home-page .features-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .home-page .feature-ico{ --feature-icon-size: 40px; }
}

/* Desktop (≥1024px): mantiene tu margen interno del index */
@media (min-width:1024px){
  .home-page .features{
    padding-inline: var(--pad-x);
    box-sizing: border-box;
  }
}
/* Botones */
.btn{ display:inline-flex; align-items:center; gap:.5rem; font-weight:700; padding:.7rem 1rem; border-radius:var(--radius); cursor:pointer; border:1px solid var(--border); transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out; text-wrap:balance; }
.btn:active{ transform:scale(0.98); }
.btn.primary{ background: var(--text); color:var(--bg); border-color:var(--text); box-shadow: var(--shadow-1); }
.btn.secondary{ background: var(--surface); color:var(--text); border-color:var(--border); box-shadow: none; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; pointer-events:none; transform:none; box-shadow:none; }

/* BOTÓN CERRAR SIEMPRE SOBRE LA IMAGEN (lightbox) */
#lightbox-close{
  position:absolute !important;
  top:12px !important;
  right:12px !important;
  left:auto !important;
  bottom:auto !important;
  transform:none !important;
  margin:0 !important;
  width:40px; height:40px;
  display:grid; place-items:center;
  color:#fff; background:rgba(0,0,0,.45); border-radius:8px; font-size:22px; cursor:pointer; z-index:3;
  transition: background var(--transition), transform var(--transition);
}
#lightbox-close:hover{ background:rgba(255,255,255,.06); transform:translateY(-2px); }

@media (max-width:920px){
  #lightbox-overlay .lightbox-content > img{ max-height: calc(100vh - 180px); }
  #lightbox-close{ top:-30px !important; right:-10px !important; width:36px; height:36px; font-size:20px; }
}

/* ===== Mis Favoritos — rejilla + botones mini (sin dependencias de sidebar/tabbar) ===== */
.fav-page .fav-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:24px clamp(14px,2vw,24px) 8px }
.fav-page .fav-title{ margin:0; display:flex; align-items:center; gap:.5rem; font-size:clamp(22px,2.4vw,30px) }
.fav-page #favoritos-gallery{ display:grid; grid-template-columns:repeat(12, 1fr); gap:16px; padding:0 clamp(14px,2vw,24px) 30px; }
.fav-page #favoritos-gallery .gallery-item{
  grid-column: span 4; position:relative; overflow:hidden;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  border-radius:14px; box-shadow:0 8px 30px rgba(0,0,0,.25);
  transition:transform .18s ease, box-shadow .18s ease;
}
.fav-page #favoritos-gallery .gallery-item:hover{ transform:translateY(-2px); box-shadow:0 16px 40px rgba(0,0,0,.35) }
.fav-page .gallery-img-wrapper img{ width:100%; height:auto; display:block }
.fav-page .card-actions{ position:absolute; inset:auto auto 10px 10px; display:flex; gap:.4rem }
.fav-page .btn-mini{ inline-size:36px; block-size:36px; display:grid; place-items:center; border-radius:10px; border:1px solid var(--border); background: color-mix(in oklab, var(--surface) 85%, transparent); color:var(--text); }
.fav-page .btn-mini svg{ width:18px; height:18px }
@media (max-width:1200px){ .fav-page #favoritos-gallery .gallery-item{ grid-column: span 6 } }
@media (max-width:780px){  .fav-page #favoritos-gallery .gallery-item{ grid-column: span 12 } }
body.fav-page .page-wrap{ margin-left:0; padding:16px 14px 24px; min-height:100vh; }

/* Badges / etc */
.badge{ position:absolute; top:-6px; right:-10px; background:linear-gradient(135deg,#7d2ae8,#9d50bb); color:#fff; font-size:.7rem; font-weight:bold; border-radius:50%; padding:3px 6px; display:inline-flex; align-items:center; justify-content:center; min-width:18px; min-height:18px; box-shadow:0 2px 5px rgba(0,0,0,.4); transition:transform .2s ease, background .3s ease; z-index:5; }
.badge:not([hidden]){ animation:pop .3s ease; }
@keyframes pop{ 0%{transform:scale(.5);opacity:0}60%{transform:scale(1.2);opacity:1}100%{transform:scale(1)} }
#cart-btn{ position:relative; }
#cart-badge{ position:absolute; top:0; right:0; transform:translate(50%,-50%); background:#ca2b2b; color:#fff; font-size:1rem; font-weight:bold; border-radius:50%; line-height:1; min-width:10px; text-align:center; padding:3px 7px; }

/* Canvas premium viewer */
#pv-overlay{position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;z-index:9999}
#pv-overlay.active{display:flex}
#pv-overlay .pv-inner{position:relative;max-width:90vw;max-height:90vh}
#pv-canvas{display:block;width:100%;height:auto;border-radius:12px}
.pv-close{position:absolute;top:-12px;right:-12px;width:36px;height:36px;border-radius:50%;border:0;background:#111;color:#fff;font-size:22px;cursor:pointer}

/* === SOBRE MÍ === */

/* Móvil (≤639px) */
@media (max-width: 639px){
  .about{ padding: clamp(8px, 2vw, 28px) 0; }
}

/* Tablet (640–1023px) */
@media (min-width: 640px) and (max-width: 1023px){
  .about{ padding: clamp(16px, 2.5vw, 64px) 0; } /* intermedio */
}

/* Escritorio (≥1024px) */
@media (min-width: 1024px){
  .about{ padding: clamp(20px, 2vw, 96px) 0; }
}

/* Sin padding horizontal extra */
.about{ padding-inline: 0; }


.about .about-wrap{padding:clamp(16px,2.4vw,22px); border-radius:18px; margin: 20px}
.about-head h2{margin:0 0 .25rem; font-size:clamp(22px,3.4vw,34px)}
.about-grid{ margin-top:clamp(14px,2.8vw,22px); display:grid; gap:clamp(12px,2vw,18px); grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.about .bullets{margin:.4rem 0 0; padding-left:18px}
.about .bullets li{margin:.2rem 0}
.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; text-align:center}
.kpis div{padding:14px; border:1px solid var(--border); border-radius:14px; background: color-mix(in oklab, var(--surface) 78%, transparent)}
.kpis strong{font-size:1.6rem; display:block}
.kpis span{color:var(--muted); font-size:.85rem}

/* === SERVICIOS + CTA === */
.services{padding:clamp(24px,6vw,56px) 0}
@media (min-width:1024px){
  .services.mj-container{
    margin-left:86px;              /* ancho sidebar colapsado */
    padding-inline:24px;           /* gutter horizontal (ajústalo o pon 0 si lo quieres full-bleed) */
    box-sizing:border-box;
  }
  /* cuando el sidebar se expande al hover */
  .mj-nav:hover ~ .page-wrap + .services.mj-container{
    margin-left:220px;             /* ancho sidebar expandido */
  }
}
/* Móvil (<1024px): centrar sección Servicios y dar aire lateral */
@media (max-width:1023px){
  .services.mj-container{
    margin-inline:auto;
    padding-inline:36px;       /* ajusta a tu gusto: 12–20px */
  }
}

.section-title{margin:0 0 12px;font-size:clamp(22px,3vw,30px)}
.svc-grid{ display:grid;gap:clamp(12px,2vw,18px); grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.svc-card{padding:16px;border-radius:14px}
.svc-card h3{margin:0 0 .4rem}
.svc-card .bullets{margin:.3rem 0 0;padding-left:18px}
.cta-sticky{ position:sticky;bottom:14px;margin-top:16px; display:flex;gap:.6rem;align-items:center;justify-content:space-between; padding:14px 16px;border-radius:14px }
.cta-sticky p{margin:0;font-weight:600}
@media (max-width:640px){ .cta-sticky{flex-direction:column;align-items:stretch;gap:10px} }

/* === BG + glass extra === */
body::before{
  display: none;
}
.glass--xl{
  --glass-bg: rgba(255,255,255,0.7);
  background:var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border:1px solid rgba(0,0,0,.05);
  box-shadow:var(--shadow-2);
}
.soft-shadow{ box-shadow: var(--shadow-1) }
.hover-lift{ transition: transform 150ms ease-out, box-shadow 150ms ease-out }
.hover-lift:hover{ transform: scale(1.02); box-shadow:var(--shadow-2) }
.gradient-text{ color: var(--text); }

/* ===== NAV UNIFICADO (desktop + móvil) ===== */

/* Evita barras horizontales por el nav */
html,body{ overflow-x:hidden; }

/* ---------------- Desktop / Tablet (≥1024px) ---------------- */
@media (min-width:1024px){
  :root{
    --nav-height: 60px;
    --nav-margin-top: 24px;
    --pad-x: 24px;
  }

  /* Nav flotante superior horizontal */
  .mj-side{
    position:fixed; 
    top: var(--nav-margin-top); 
    left: 50%; 
    transform: translateX(-50%);
    bottom: auto;
    width: auto;
    height: var(--nav-height);
    overflow: hidden;
    z-index:1200; 
    display:flex; 
    flex-direction:row; 
    align-items:center;
    gap: 8px; 
    padding: 8px 12px;
    background:rgba(255,255,255,.85); 
    backdrop-filter:blur(30px) saturate(200%);
    border:1px solid rgba(0,0,0,.06); 
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    transition: box-shadow 200ms;
  }
  .mj-nav:hover .mj-side{ 
    box-shadow: 0 16px 50px rgba(0,0,0,.12);
  }

  /* Empuje GLOBAL superior */
  body { 
    padding-left: 0 !important; 
    padding-top: calc(var(--nav-height) + var(--nav-margin-top) + 20px); 
  }
  /* Contenedores comunes con padding lateral coherente */
  .page-wrap,
  .productos-grid{
    padding-inline:var(--pad-x);
    box-sizing:border-box;
  }

  /* FALLBACK si el navegador no soporta :has() */
  @supports not selector(body:has(.mj-nav:hover)){
    .page-wrap,
    .productos-grid{
      margin-left: 0;
    }
  }
}

/* ---------- Marca / enlaces / lista (comunes) ---------- */
.side-brand{ display:flex; align-items:center; justify-content:center; padding:0; text-decoration:none; color:inherit; }
.side-brand img{ width:30px; height:30px; display:block; filter: invert(1); }
.side-brand span{ display:none; }

.nav-logo-item { padding: 0 16px; display:flex; align-items:center; }
/* Lista navegable: área horizontal */
.side-nav{
  list-style:none; margin:0; padding: 0;
  display:flex; flex-direction:row; gap:4px;
  align-items: center;
}

.side-nav a,
.side-nav button{
  display:flex; align-items:center; padding:.45rem .9rem; border-radius:999px;
  color:var(--muted);
  text-decoration:none; transition:background 150ms, color 150ms;
  position:relative;
  font-weight: 600;
  font-size: .9rem;
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.side-nav a:hover,
.side-nav button:hover{
  background:rgba(0,0,0,.04);
  color:var(--text);
}

/* Ocultamos los iconos por completo en desktop */
@media (min-width: 1024px) {
  .side-ico { display: none !important; }
}

.side-footer{ display: none !important; }

/* ---------------- Móvil (<1024px): Tabbar inferior ---------------- */
#mobile-tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:1000;
  display:flex; justify-content:space-around; align-items:center; gap:6px;
  padding:8px max(12px, env(safe-area-inset-right))
          calc(10px + env(safe-area-inset-bottom))
          max(12px, env(safe-area-inset-left));
  background:rgba(255,255,255,.8); backdrop-filter:blur(20px) saturate(180%); border-top:1px solid var(--border);
}
#mobile-tabbar .tab{
  flex:1 1 0; display:flex; flex-direction:column; align-items:center; gap:4px;
  text-decoration:none; color:var(--muted); font-size:12px; line-height:1; padding:6px 0; border-radius:12px;
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#mobile-tabbar .tab:hover{ background:rgba(0,0,0,.04); }
#mobile-tabbar .ico{ width:22px; height:22px; display:grid; place-items:center; }
#mobile-tabbar .ico svg{ width:22px; height:22px; display:block; }
#mobile-tabbar .tab.logo{ flex:0 0 auto; width:58px; height:58px; border-radius:16px; background:transparent; display:grid; place-items:center; }
#mobile-tabbar .tab.logo img{ width:40px; height:40px; display:block; filter: invert(1); }

/* Visibilidad por breakpoint */
@media (min-width:1024px){ #mobile-tabbar{ display:none !important; } }
@media (max-width:1023px){ .mj-side{ display:none !important; } body{ padding-left:0 !important; padding-bottom:76px; } }

/* Accesibilidad: menos animación si el usuario lo prefiere */
@media (prefers-reduced-motion:reduce){
  .mj-side{ transition:none }
  .side-brand span, .side-label{ transition:none }
}

/* tamaños consistentes */
.mj-side .side-ico svg{width:22px;height:22px;display:block}

/* por defecto iconos “fill” */
.mj-side .side-ico svg path{fill:currentColor}

/* corrección específica para Lucide (trazo) */
.mj-side .side-ico .lucide *{
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}

/* --------- ESTADO ACTIVO UNIFICADO --------- */
/* Sidebar (acepta .is-active o aria-current) */
.mj-side .side-nav a.is-active,
.mj-side .side-nav a[aria-current="page"]{
  color:var(--text);
  background:rgba(0,0,0,.06);
  box-shadow:none;
}
.mj-side .side-nav a.is-active::before,
.mj-side .side-nav a[aria-current="page"]::before{
  content:none;
}

/* Tabbar móvil */
#mobile-tabbar .tab.is-active,
#mobile-tabbar .tab[aria-current="page"]{ color:var(--text); font-weight:700; }
#mobile-tabbar .tab.is-active .ico,
#mobile-tabbar .tab[aria-current="page"] .ico{
  border-radius:10px;
  background:rgba(0,0,0,.06);
  box-shadow:none;
}
 /* [FIX-FONDOS-PUSH-LOCK-350] */
@media (min-width:1024px){
  /* 1) No usamos padding en <body> (evita solape) */
  body{ padding-left:0 !important; }

  /* 3) Empuje real por hermanos (afecta a TODAS las páginas) */
  .mj-nav + .page-wrap{
    margin-left: 0 !important;
  }
}

/* ========================================================
   FOOTER PROFESIONAL
   ======================================================== */
.site-footer {
  margin-top: 80px;
  padding: 80px 24px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.site-footer .footer-logo img {
  width: 48px;
  height: auto;
  display: block;
  filter: invert(1); /* Assuming logo is white */
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color 150ms;
}
.footer-links a:hover {
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}
.footer-credit {
  font-weight: 500;
}
@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
