
:root{
  --bg:#f4f5f7;--surface:#fff;--ink:#141414;--muted:#666;--red:#e31b23;
  --dark:#0b0b0d;--green:#13a447;--line:#e7e7ea;--radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.08)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
img{max-width:100%;display:block}
button,input,select{font:inherit}
a{text-decoration:none;color:inherit}
.site-header{position:sticky;top:0;z-index:20;background:rgba(11,11,13,.96);backdrop-filter:blur(12px);border-bottom:2px solid var(--red)}
.header-inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px;gap:16px}
.brand img{height:48px;width:auto;max-width:250px;object-fit:contain}
.header-cta{background:var(--green);color:#fff;padding:11px 14px;border-radius:999px;font-weight:800;font-size:.9rem}
.hero{background:radial-gradient(circle at 80% 20%,rgba(227,27,35,.23),transparent 32%),linear-gradient(145deg,#0a0a0b,#1b1b20);color:#fff}
.hero-inner{max-width:1180px;margin:auto;padding:46px 18px 38px;display:grid;gap:24px}
.eyebrow{color:#ff5259;font-weight:900;letter-spacing:.12em;font-size:.78rem}
.hero h1{font-size:clamp(2.25rem,8vw,5rem);line-height:.95;margin:.3rem 0 1rem;max-width:850px;text-transform:uppercase}
.hero p{color:#d6d6d9;font-size:1.02rem;line-height:1.65;max-width:720px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.btn{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:12px;padding:14px 18px;font-weight:900;cursor:pointer;transition:.18s transform,.18s opacity}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--green);color:#fff}
.btn-secondary{background:#fff;color:#111}
.hero-card{background:linear-gradient(135deg,#17171a,#222228);border:1px solid #2f2f36;border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.hero-card img{border-radius:14px;aspect-ratio:16/10;object-fit:cover}
.benefits{max-width:1180px;margin:-4px auto 0;padding:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.benefit{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px}
.benefit strong{display:block;margin-bottom:5px}
.benefit span{font-size:1.35rem;color:var(--red)}
.benefit p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.45}
.catalog{max-width:1180px;margin:auto;padding:34px 18px 70px}
.section-head{text-align:center;max-width:760px;margin:0 auto 26px}
.section-head .kicker{font-weight:900;color:var(--red);letter-spacing:.11em;font-size:.76rem}
.section-head h2{font-size:clamp(1.9rem,6vw,3rem);margin:.35rem 0 .7rem;text-transform:uppercase}
.section-head p{color:var(--muted);line-height:1.55}
.products{display:grid;grid-template-columns:1fr;gap:15px}
.product-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.045);display:flex;flex-direction:column}
.product-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.product-body{padding:15px;display:flex;flex-direction:column;gap:10px;flex:1}
.badge{align-self:flex-start;background:#fff1f1;color:#a00b11;border:1px solid #ffd2d4;border-radius:999px;padding:6px 9px;font-size:.74rem;font-weight:900}
.product-card h3{font-size:1.23rem;margin:0}
.product-card p{color:var(--muted);line-height:1.5;margin:0}
.price{font-size:1.04rem;font-weight:950;color:var(--red)}
.product-card .btn{margin-top:auto;width:100%}
.site-footer{background:#0c0c0e;color:#fff}
.footer-inner{max-width:1180px;margin:auto;padding:30px 18px;text-align:center}
.footer-inner img{height:56px;margin:0 auto 14px}
.footer-inner p{color:#bdbdc3}
.footer-legal{font-size:.78rem;color:#8f8f96!important}
dialog{border:none;border-radius:20px;padding:0;width:min(94vw,560px);box-shadow:0 24px 80px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(3px)}
.modal{position:relative;padding:22px;background:#fff}
.close{position:absolute;right:12px;top:8px;border:none;background:transparent;font-size:2rem;cursor:pointer;color:#555}
.modal h3{margin:4px 40px 4px 0;font-size:1.5rem}
.modal .sub{color:var(--muted);margin-top:0}
.form-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:18px 0}
.field label{display:block;font-size:.82rem;font-weight:800;margin-bottom:5px}
.field input,.field select{width:100%;border:1px solid #d9d9de;border-radius:10px;padding:12px;background:#fff}
.quote-total{background:#fff3f3;border:1px solid #ffd5d7;border-radius:14px;padding:14px;margin:12px 0}
.quote-total small{display:block;color:#666;margin-bottom:4px}
.quote-total strong{font-size:1.8rem;color:var(--red)}
.notice{font-size:.76rem;color:#777;line-height:1.4}
.modal .btn{width:100%;margin-top:10px}
@media(min-width:700px){
  .hero-inner{grid-template-columns:1.25fr .75fr;align-items:center;padding:65px 24px}
  .benefits{grid-template-columns:repeat(4,1fr);padding:20px 24px}
  .catalog{padding-left:24px;padding-right:24px}
  .products{grid-template-columns:repeat(2,1fr)}
  .form-grid{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:1000px){
  .products{grid-template-columns:repeat(3,1fr)}
  .product-card img{aspect-ratio:3/2}
}


/* ===== V1.1: navegación web pegajosa + controles PWA ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(11,11,13,.97);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.desktop-nav{display:flex;align-items:center;gap:16px;color:#fff;font-weight:800}
.desktop-nav>a:not(.header-cta){opacity:.9}
.desktop-nav>a:not(.header-cta):hover{opacity:1;color:#ff5259}
.nav-install{border:1px solid #424248;background:#19191c;color:#fff;border-radius:999px;padding:10px 13px;font-weight:800;cursor:pointer}
.nav-install:hover{border-color:#ff5259}
.pwa-bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:1100;
  min-height:64px;
  padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  background:rgba(10,10,12,.98);
  border-top:1px solid #303036;
  box-shadow:0 -8px 24px rgba(0,0,0,.2);
}
.pwa-bar button{
  border:0;background:transparent;color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;min-height:50px;border-radius:10px;
  font-size:.71rem;font-weight:850;cursor:pointer
}
.pwa-bar button:active{background:#242429}
.pwa-bar button span{font-size:1.3rem;line-height:1}
body{padding-bottom:72px}

@media(max-width:699px){
  .desktop-nav>a:not(.header-cta), .nav-install{display:none}
  .header-cta{display:inline-flex}
  .brand img{height:44px;max-width:220px}
}
@media(min-width:700px){
  .pwa-bar{display:none}
  body{padding-bottom:0}
}


/* ===== V1.2: header realmente fijo + menú hamburguesa móvil ===== */
html{scroll-padding-top:78px}
body{padding-top:72px}
#siteHeader{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:2000;
  width:100%;
}
.site-header{
  position:relative !important;
  top:auto !important;
  width:100%;
  background:rgba(11,11,13,.98);
  border-bottom:2px solid var(--red);
  box-shadow:0 5px 20px rgba(0,0,0,.22);
}
.header-inner{
  min-height:70px;
}
.hamburger{
  display:none;
  width:46px;
  height:42px;
  border:1px solid #3b3b42;
  border-radius:10px;
  background:#17171a;
  padding:9px 10px;
  cursor:pointer;
}
.hamburger span{
  display:block;
  height:3px;
  margin:5px 0;
  background:#fff;
  border-radius:3px;
  transition:transform .2s ease,opacity .2s ease;
}
.hamburger.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.mobile-menu{
  background:#111114;
  border-top:1px solid #2e2e34;
  border-bottom:2px solid var(--red);
  padding:8px 12px 14px;
  box-shadow:0 12px 24px rgba(0,0,0,.25);
}
.mobile-menu[hidden]{display:none!important}
.mobile-menu a,
.mobile-menu button{
  width:100%;
  display:flex;
  align-items:center;
  min-height:48px;
  padding:12px 14px;
  color:#fff;
  background:transparent;
  border:0;
  border-bottom:1px solid #25252b;
  text-align:left;
  font-weight:800;
  cursor:pointer;
}
.mobile-menu a:last-child,
.mobile-menu button:last-child{border-bottom:0}
.mobile-menu button:hover,
.mobile-menu a:hover{background:#1c1c20}
@media(max-width:699px){
  body{padding-top:68px;padding-bottom:72px}
  html{scroll-padding-top:72px}
  .header-inner{min-height:66px;padding-top:8px;padding-bottom:8px}
  .desktop-nav{display:none!important}
  .hamburger{display:block}
  .brand img{height:42px;max-width:215px}
}
@media(min-width:700px){
  body{padding-top:72px}
  .hamburger,.mobile-menu{display:none!important}
}
