:root{
  --green:#3C7A3E;
  --green-dark:#2A5A2C;
  --charcoal:#2B2B2B;
  --cream:#F7F4EE;
  --wood:#B08A63;
  --wood-light:#EBDFCB;
  --wood-lighter:#F4EDE0;
  --white:#FFFFFF;
  --line:#E3DCCC;
  --danger:#C0392B;
  --radius:20px;
  --shadow-soft:0 2px 16px rgba(43,43,43,.06);
  --shadow-card:0 4px 24px rgba(43,43,43,.08);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0; height:100%;}
body{
  background:#DCD3C0;
  font-family:'Inter',sans-serif;
  min-height:100vh;
  display:flex;
  justify-content:center;
}
h1,h2,h3,.display{font-family:'Space Grotesk',sans-serif; letter-spacing:-.01em;}

/* ---------- App shell (reemplaza el marco de celular de la demo) ---------- */
#app{
  width:100%;
  max-width:460px;
  min-height:100vh;
  background:var(--cream);
  display:flex; flex-direction:column;
  position:relative;
  box-shadow:0 0 40px rgba(0,0,0,.15);
}
@media (min-width:600px){
  body{ padding:24px 0; }
  #app{ min-height:calc(100vh - 48px); border-radius:28px; overflow:hidden; }
}

.content{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.view{ display:none; flex-direction:column; min-height:100%; }
.view.active{ display:flex; }

/* ---------- Install banner ---------- */
.install-banner{
  display:none; align-items:center; gap:10px; justify-content:space-between;
  background:var(--charcoal); color:#fff; padding:calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  font-size:12.5px;
}
.install-banner.show{ display:flex; }
.install-banner button{
  background:var(--green); color:#fff; border:none; border-radius:10px;
  padding:8px 12px; font-size:12px; font-weight:600; font-family:'Inter'; cursor:pointer;
}
.install-banner .close{ background:none; color:#aaa; padding:4px; font-size:16px; }

/* ---------- Top admin bar ---------- */
.admin-bar{
  display:flex; align-items:center; justify-content:flex-end; gap:8px;
  padding:calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background:var(--charcoal);
  position:relative; z-index:20;
}
.admin-pill{
  display:flex; align-items:center; gap:6px; background:rgba(255,255,255,.08);
  color:#fff; border:none; border-radius:20px; padding:6px 12px 6px 8px;
  font-size:11.5px; font-weight:600; font-family:'Inter'; cursor:pointer;
}
.admin-pill svg{ width:14px; height:14px; }
.admin-pill.logged{ background:var(--green); }
.role-badge{
  font-size:9.5px; text-transform:uppercase; letter-spacing:.04em;
  background:rgba(255,255,255,.15); padding:2px 6px; border-radius:6px;
}

/* ---------- Diagonal signature motif ---------- */
.cut{ position:relative; overflow:hidden; }
.cut::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 46%, rgba(255,255,255,.55) 49%, rgba(255,255,255,.55) 52%, transparent 55%);
  pointer-events:none;
}

/* ---------- Bottom nav ---------- */
.tabbar{
  flex-shrink:0; display:flex; background:var(--white);
  border-top:1px solid var(--line);
  padding:8px 4px 12px;
}
.tab{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:none; font-family:'Inter',sans-serif;
  font-size:10px; font-weight:600; color:#9B9282; cursor:pointer;
  letter-spacing:.02em; padding:4px 2px;
}
.tab.active{ color:var(--green); }
.tab .ic{ font-size:18px; display:flex; }
.tab .ic svg{ width:20px; height:20px; }

/* ---------- Home / hero ---------- */
.home-hero{
  background:var(--charcoal);
  padding:26px 22px 30px; color:var(--white); position:relative;
  overflow:hidden; min-height:380px; display:flex; flex-direction:column; justify-content:flex-end;
}
.hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(15,20,14,.15) 0%, rgba(15,20,14,.05) 30%, rgba(12,16,11,.55) 68%, rgba(10,14,9,.92) 100%);
}
.home-hero > *:not(.hero-video):not(.hero-overlay){ position:relative; z-index:2; }
.home-logo{ display:flex; align-items:center; gap:8px; margin-bottom:16px; filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.home-logo .mark{
  width:36px;height:36px;border-radius:10px;background:var(--white);
  display:flex;align-items:center;justify-content:center;color:var(--green);
  font-family:'Space Grotesk';font-weight:700;font-size:16px; overflow:hidden; padding:4px;
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}
.home-logo .mark img{ width:100%; height:100%; object-fit:contain; }
.home-logo .word{ font-size:15px; font-weight:600; letter-spacing:.01em; text-shadow:0 1px 4px rgba(0,0,0,.4); }
.home-logo .word span{ display:block; font-size:9px; font-weight:400; opacity:.9; font-family:'Inter'; }
.home-hero h1{ font-size:32px; line-height:1.12; margin:0 0 10px; font-weight:700; text-shadow:0 2px 10px rgba(0,0,0,.45); letter-spacing:-.01em; }
.home-hero p{ margin:0 0 24px; font-size:14px; opacity:.95; line-height:1.5; max-width:270px; text-shadow:0 1px 6px rgba(0,0,0,.4); }
.cta{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--white); color:var(--green-dark);
  font-weight:700; font-size:14px; padding:14px 22px; border-radius:14px;
  border:none; cursor:pointer; font-family:'Inter'; box-shadow:0 6px 18px rgba(0,0,0,.3);
  align-self:flex-start;
}
.home-strip{ display:flex; gap:10px; padding:18px 22px 4px; }
.swatch{ flex:1; height:56px; border-radius:12px; }
.home-section{ padding:34px 22px 6px; }
.eyebrow{ font-size:10.5px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--wood); margin:0 0 8px;}
.home-section h2{ font-size:22px; margin:0 0 16px; color:var(--charcoal); font-weight:700; }
.rail{ display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; margin:0 -22px; padding-left:22px; padding-right:22px; }
.rail::-webkit-scrollbar{display:none;}
.rail-card{
  flex-shrink:0; width:160px; background:var(--white); border-radius:18px;
  overflow:hidden; cursor:pointer; box-shadow:var(--shadow-soft); transition:transform .15s ease;
}
.rail-card:active{ transform:scale(.97); }
.rail-card .thumb{ height:112px; object-fit:cover; width:100%; display:block; }
.rail-card .info{ padding:12px 13px 14px; }
.rail-card .info .name{ font-size:12.5px; font-weight:700; color:var(--charcoal); }
.rail-card .info .tag{ font-size:10.5px; color:#9B9282; margin-top:3px; }

/* ---------- Catalog / generic grid ---------- */
.topbar{ padding:30px 20px 18px; background:var(--cream); flex-shrink:0; }
.topbar h2{ margin:0 0 4px; font-size:24px; color:var(--charcoal); font-weight:700; }
.topbar .sub{ font-size:12.5px; color:#9B9282; margin:0; }
.search{
  margin-top:14px; display:flex; align-items:center; gap:8px;
  background:var(--white); border:none; border-radius:12px;
  padding:11px 13px; font-size:13px; color:#B0A896; box-shadow:var(--shadow-soft);
}
.grid{ padding:6px 20px 20px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.card{ background:var(--white); border-radius:18px; overflow:hidden; cursor:pointer; box-shadow:var(--shadow-soft); transition:transform .15s ease; position:relative; }
.card:active{ transform:scale(.97); }
.thumb-wrap{ position:relative; }
.card .thumb{ height:104px; display:block; object-fit:cover; width:100%; }
.card .info{ padding:12px 13px 14px; }
.card .info .name{ font-size:12.5px; font-weight:700; color:var(--charcoal); line-height:1.3; }
.card .info .tag{ font-size:10.5px; color:#9B9282; margin-top:4px; }
.compare-toggle{
  position:absolute; top:8px; right:8px; width:28px; height:28px; border-radius:50%;
  background:rgba(255,255,255,.92); border:none; font-size:12.5px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.15); z-index:2;
}
.compare-toggle svg{ width:14px; height:14px; }
.compare-toggle.sel{ background:var(--green); color:#fff; }
.fav-toggle{
  position:absolute; top:8px; left:8px; width:28px; height:28px; border-radius:50%;
  background:rgba(255,255,255,.92); border:none; font-size:15px; cursor:pointer; color:#C0392B;
  display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(0,0,0,.15); z-index:2;
}
.fav-toggle svg{ width:15px; height:15px; }
.fav-toggle.sel{ background:#C0392B; color:#fff; }
.rail-card{ position:relative; }
.compare-bar{
  position:fixed; bottom:78px; left:16px; right:16px; max-width:428px; margin:0 auto;
  background:var(--charcoal); color:#fff; border-radius:16px; padding:12px 16px;
  display:none; align-items:center; justify-content:space-between; gap:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.3); z-index:41;
}
.compare-bar.show{ display:flex; }
.compare-bar .txt{ font-size:12.5px; font-weight:600; }
.compare-bar button.go{ background:var(--white); color:var(--charcoal); border:none; border-radius:10px; padding:9px 14px; font-size:12px; font-weight:700; font-family:'Inter'; cursor:pointer; }
.compare-bar button.clear{ background:none; border:none; color:rgba(255,255,255,.6); font-size:16px; cursor:pointer; padding:4px; }

/* ---------- Detail ---------- */
.detail-hero{ height:280px; flex-shrink:0; display:flex; align-items:flex-end; padding:18px 20px; position:relative; overflow:hidden; background:var(--charcoal); }
.detail-hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.detail-hero::after{ content:''; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(20,20,18,.15) 0%, rgba(15,15,13,.75) 100%); }
.detail-hero > *:not(.detail-hero-img){ position:relative; z-index:2; }
.detail-gallery{ display:flex; gap:10px; margin:14px 0 18px; flex-wrap:wrap; }
.detail-gallery img{ width:100%; height:110px; object-fit:cover; border-radius:12px; flex:1 1 45%; }
.detail-plans{ margin-bottom:18px; }
.detail-plans img{ width:100%; border-radius:12px; border:1px solid var(--line); margin-bottom:10px; display:block; background:#fff; }
.backbtn{
  position:absolute; top:16px; left:16px; width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.85); border:none; display:flex; align-items:center; justify-content:center;
  font-size:16px; cursor:pointer; color:var(--charcoal);
}
.detail-hero .htag{ background:rgba(0,0,0,.28); color:#fff; font-size:11px; font-weight:600; padding:5px 10px; border-radius:8px; backdrop-filter:blur(4px); }
.detail-body{ padding:20px; flex:1; }
.detail-body h2{ font-size:22px; margin:0 0 4px; color:var(--charcoal); }
.detail-body .subline{ font-size:12.5px; color:var(--wood); font-weight:600; margin-bottom:14px; }
.detail-body p.desc{ font-size:13px; line-height:1.6; color:#5B5548; margin-bottom:18px; }
.spec-row{ display:flex; gap:10px; margin-bottom:18px; }
.spec{ flex:1; background:var(--white); border:1px solid var(--line); border-radius:12px; padding:10px 12px; }
.spec .k{ font-size:9.5px; color:#9B9282; text-transform:uppercase; letter-spacing:.05em; }
.spec .v{ font-size:13px; font-weight:600; color:var(--charcoal); margin-top:2px; }
.incl{ list-style:none; margin:0 0 22px; padding:0; }
.incl li{ font-size:12.5px; color:#5B5548; padding:7px 0; border-bottom:1px solid var(--line); display:flex; gap:8px; align-items:center;}
.incl li:last-child{ border-bottom:none; }
.incl li::before{ content:'✓'; color:var(--green); font-weight:700; }
.primary-btn{
  width:100%; background:var(--green); color:#fff; border:none; border-radius:14px;
  padding:15px; font-size:14px; font-weight:600; font-family:'Inter'; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.secondary-btn{
  width:100%; background:var(--white); color:var(--charcoal); border:1px solid var(--line); border-radius:14px;
  padding:13px; font-size:13.5px; font-weight:600; font-family:'Inter'; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px; margin-top:10px;
}
.danger-btn{ color:var(--danger); border-color:#EFCFC9; }

/* ---------- Finishes gallery ---------- */
.finish-grid{ padding:16px 20px 24px; display:flex; flex-direction:column; gap:14px; }
.finish-card{ background:var(--white); border-radius:20px; overflow:hidden; box-shadow:var(--shadow-soft); }
.finish-card .band{ height:130px; position:relative; overflow:hidden; }
.finish-card .band img{ width:100%; height:100%; object-fit:cover; display:block; }
.finish-card .band .num{
  position:absolute; top:12px; left:12px; font-family:'Space Grotesk'; font-size:11px; font-weight:600;
  background:rgba(255,255,255,.85); padding:4px 9px; border-radius:8px; color:var(--charcoal);
}
.finish-card .body{ padding:13px 15px 15px; }
.finish-card .body .name{ font-size:14px; font-weight:600; color:var(--charcoal); font-family:'Space Grotesk'; }
.finish-card .body .desc{ font-size:11.5px; color:#8A8272; margin-top:4px; line-height:1.5; }

/* ---------- Ficha técnica constructiva ---------- */
.tech-intro{ margin:30px 20px 24px; background:var(--white); border-radius:20px; overflow:hidden; box-shadow:var(--shadow-soft); }
.tech-intro img{ width:100%; height:170px; object-fit:cover; display:block; cursor:zoom-in; }
.tech-intro .body{ padding:16px 18px 18px; }
.tech-intro .name{ font-size:17px; font-weight:700; color:var(--charcoal); font-family:'Space Grotesk'; margin-bottom:6px; }
.tech-intro .desc{ font-size:13px; color:#5B5548; line-height:1.65; }

.tech-benefits{ display:flex; flex-direction:column; gap:16px; margin:0 20px 22px; }
.tech-benefit-block{ background:var(--white); border-radius:20px; overflow:hidden; box-shadow:var(--shadow-soft); }
.tech-benefit-block img{ width:100%; height:140px; object-fit:cover; display:block; cursor:zoom-in; }
.benefit-body{ padding:16px 18px 18px; }
.benefit-body .name{ font-size:15.5px; font-weight:700; color:var(--charcoal); font-family:'Space Grotesk'; margin-bottom:12px; }
.benefit-items{ display:flex; flex-direction:column; gap:12px; }
.benefit-item{ display:flex; gap:11px; align-items:flex-start; }
.benefit-item .bicon{
  width:32px; height:32px; border-radius:9px; background:var(--wood-lighter);
  display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0;
}
.benefit-item .bititle{ font-size:12.5px; font-weight:700; color:var(--charcoal); margin-bottom:2px; }
.benefit-item .bitext{ font-size:11.5px; color:#8A8272; line-height:1.5; }

.tech-grid{ padding:16px 20px 30px; display:flex; flex-direction:column; gap:14px; }

.premium-card{
  background:linear-gradient(150deg, var(--charcoal), #1c1c1c); color:#fff;
  border-radius:18px; padding:20px 20px 22px;
}
.premium-card .name{ font-size:16px; font-weight:700; font-family:'Space Grotesk'; margin-bottom:8px; }
.premium-card .desc{ font-size:12.5px; opacity:.85; line-height:1.6; margin-bottom:14px; }
.premium-items{ display:flex; flex-direction:column; gap:9px; margin-bottom:14px; }
.premium-item{ display:flex; align-items:center; gap:10px; font-size:12.5px; font-weight:600; background:rgba(255,255,255,.07); padding:9px 12px; border-radius:10px; }
.premium-item span{ font-size:15px; }
.premium-footer{ font-size:11px; opacity:.6; line-height:1.6; border-top:1px solid rgba(255,255,255,.15); padding-top:12px; }
.tech-card{ background:var(--white); border-radius:20px; overflow:hidden; box-shadow:var(--shadow-soft); }
.tech-card img{ width:100%; height:150px; object-fit:cover; display:block; }
.tech-card .body{ padding:14px 16px 16px; }
.tech-card .body .name{ font-size:14.5px; font-weight:700; color:var(--charcoal); font-family:'Space Grotesk'; margin-bottom:5px; }
.tech-card .body .desc{ font-size:12px; color:#5B5548; line-height:1.6; }

/* ---------- Quote form ---------- */
.form-wrap{ padding:20px; flex:1; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:11.5px; font-weight:600; color:var(--charcoal); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--line); background:var(--white); border-radius:12px;
  padding:12px 13px; font-size:13px; font-family:'Inter'; color:var(--charcoal);
}
.field textarea{ resize:none; height:80px; }
.chiprow{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ padding:8px 13px; border-radius:20px; border:1px solid var(--line); background:var(--white); font-size:11.5px; font-weight:600; color:#7A7364; cursor:pointer; }
.chip.sel{ background:var(--green); color:#fff; border-color:var(--green); }

/* ---------- Nosotros ---------- */
.about-hero{ padding:26px 20px 30px; background:var(--charcoal); color:#fff; flex-shrink:0; }
.about-hero h2{ font-size:21px; margin:0 0 8px; }
.about-hero p{ font-size:12.5px; opacity:.75; line-height:1.6; margin:0; }
.about-body{ padding:22px 20px; flex:1; }
.contact-row{ display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.contact-row .ic{
  width:38px;height:38px;border-radius:10px;background:var(--wood-lighter);
  display:flex;align-items:center;justify-content:center;font-size:16px; flex-shrink:0;
}
.contact-row .ic svg{ width:19px; height:19px; }
.contact-row .ic.brand{ border-radius:10px; overflow:hidden; }
.contact-row .ic.brand svg{ width:100%; height:100%; }
.contact-row .txt .k{ font-size:10.5px; color:#9B9282; }
.contact-row .txt .v{ font-size:13px; font-weight:600; color:var(--charcoal); }

/* ---------- Feature strip (estilo Offis) ---------- */
.feature-strip{
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
  padding:26px 22px 6px;
}
.feature-item{ padding:16px 4px; }
.feature-item .ficon{ display:flex; margin-bottom:12px; color:var(--green); }
.feature-item .ficon svg{ width:26px; height:26px; }
.feature-item .ftitle{ font-size:12.5px; font-weight:700; color:var(--charcoal); margin-bottom:4px; line-height:1.3; }
.feature-item .ftext{ font-size:11px; color:#9B9282; line-height:1.5; }

/* ---------- FAQ acordeón ---------- */
.faq-list{ margin-bottom:8px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; background:none; border:none; text-align:left; cursor:pointer;
  padding:16px 2px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  font-family:'Space Grotesk'; font-size:13.5px; font-weight:600; color:var(--charcoal);
}
.faq-caret{ font-size:16px; color:var(--wood); flex-shrink:0; font-weight:400; display:flex; transition:transform .2s ease; }
.faq-caret svg{ width:16px; height:16px; }
.faq-caret.open{ transform:rotate(180deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a.open{ max-height:220px; }
.faq-a p{ font-size:12.5px; color:#5B5548; line-height:1.65; margin:0 2px 16px; }

/* ---------- Obras en marcha ---------- */
.obras-grid{ padding:16px 20px 90px; display:flex; flex-direction:column; gap:14px; }
.obra-card{ background:var(--white); border-radius:20px; overflow:hidden; cursor:pointer; position:relative; box-shadow:var(--shadow-soft); }
.obra-card .cover{ height:150px; width:100%; object-fit:cover; display:block; background:var(--wood-lighter); }
.obra-card .cover.empty{ display:flex; align-items:center; justify-content:center; color:#B0A896; font-size:12px; }
.obra-card .estado{
  position:absolute; top:12px; left:12px; font-size:10.5px; font-weight:700; letter-spacing:.03em;
  padding:5px 10px; border-radius:8px; color:#fff; background:var(--green);
}
.obra-card .estado.pausada{ background:#B08A63; }
.obra-card .estado.finalizada{ background:#5E7472; }
.obra-card .body{ padding:13px 15px 15px; }
.obra-card .body .name{ font-size:15px; font-weight:700; color:var(--charcoal); font-family:'Space Grotesk'; }
.obra-card .body .desc{ font-size:12px; color:#8A8272; margin-top:4px; line-height:1.5; }
.obra-card .body .loc{ font-size:11px; color:var(--wood); margin-top:6px; font-weight:600; }
.fab{
  position:fixed; bottom:90px; right:calc(50% - 210px); z-index:40;
  background:var(--green); color:#fff; border:none; border-radius:16px;
  padding:13px 18px; font-weight:700; font-size:13px; font-family:'Inter';
  box-shadow:0 8px 20px rgba(0,0,0,.25); display:none; align-items:center; gap:8px; cursor:pointer;
}
@media (max-width:460px){ .fab{ right:16px; } }
.fab.show{ display:flex; }

.wa-float{
  position:fixed; bottom:90px; left:calc(50% - 210px); z-index:39;
  width:52px; height:52px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(37,211,102,.4); text-decoration:none;
}
.wa-float svg{ width:28px; height:28px; }
.wa-float.hide{ display:none; }
@media (max-width:460px){ .wa-float{ left:16px; } }
.obra-photos-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 20px 20px; }
.obra-photos-grid img{ width:100%; height:120px; object-fit:cover; border-radius:12px; }
.empty-state{ padding:60px 30px; text-align:center; color:#9B9282; font-size:13px; }

/* ---------- Skeleton loading ---------- */
@keyframes skeleton-pulse{ 0%{ opacity:.55; } 50%{ opacity:1; } 100%{ opacity:.55; } }
.skeleton-card{ background:var(--white); border-radius:20px; overflow:hidden; box-shadow:var(--shadow-soft); }
.skeleton-card .sk-img{ height:150px; background:var(--wood-lighter); animation:skeleton-pulse 1.3s ease-in-out infinite; }
.skeleton-card .sk-body{ padding:14px 16px 16px; }
.skeleton-card .sk-line{ height:11px; border-radius:6px; background:var(--wood-lighter); animation:skeleton-pulse 1.3s ease-in-out infinite; margin-bottom:8px; }
.skeleton-card .sk-line.w60{ width:60%; }
.skeleton-card .sk-line.w40{ width:40%; }

/* ---------- Historial de consultas ---------- */
.consulta-card{ background:var(--white); border-radius:16px; padding:14px 16px 16px; box-shadow:var(--shadow-soft); }
.consulta-card .ctop{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:4px; }
.consulta-card .cname{ font-size:14px; font-weight:700; color:var(--charcoal); font-family:'Space Grotesk'; }
.consulta-card .cdate{ font-size:10px; color:#B0A896; white-space:nowrap; padding-top:2px; }
.consulta-card .cmodulo{ font-size:12px; color:var(--wood); font-weight:600; margin-bottom:8px; }
.consulta-card .crow{ font-size:12px; color:#5B5548; margin-bottom:3px; }
.consulta-card .ccomment{ font-size:11.5px; color:#8A8272; font-style:italic; margin-top:6px; line-height:1.5; }

/* ---------- Comparador ---------- */
.compare-wrap{ padding:16px 20px 40px; }
.compare-row{ display:grid; gap:10px; padding:14px 0; border-bottom:1px solid var(--line); align-items:start; }
.compare-row.compare-photos{ border-bottom:none; padding-top:0; }
.compare-col{ text-align:center; }
.compare-col img{ width:100%; height:90px; object-fit:cover; border-radius:12px; margin-bottom:8px; }
.compare-col .cname{ font-size:12px; font-weight:700; color:var(--charcoal); font-family:'Space Grotesk'; }
.compare-col .ctag{ font-size:10px; color:#9B9282; }
.compare-col.cval{ font-size:11.5px; color:#5B5548; text-align:left; line-height:1.5; }
.clabel{ grid-column:1/-1; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--wood); margin-bottom:2px; }
.cincl{ margin:0; padding-left:16px; }
.cincl li{ margin-bottom:4px; }

/* ---------- Código QR ---------- */
.qr-wrap{ padding:20px 20px 40px; text-align:center; }
.qr-card{
  background:var(--white); border-radius:20px; padding:24px; display:inline-flex;
  box-shadow:var(--shadow-card); margin-bottom:16px;
}
.qr-url{ font-size:12px; color:#8A8272; word-break:break-all; margin:0 0 20px; }

/* ---------- Modal (login / editar obra) ---------- */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(20,20,18,.55); z-index:100;
  display:none; align-items:flex-end; justify-content:center;
}
.modal-backdrop.show{ display:flex; }
.modal{
  width:100%; max-width:460px; background:var(--white); border-radius:24px 24px 0 0;
  padding:24px 20px 28px; max-height:88vh; overflow-y:auto;
  animation:modal-up .22s ease;
}
@keyframes modal-up{ from{ transform:translateY(24px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.modal h3{ font-size:18px; margin:0 0 4px; color:var(--charcoal); }
.modal .sub{ font-size:12px; color:#8A8272; margin:0 0 18px; }
.modal .closebtn{
  position:absolute; top:16px; right:16px; width:30px; height:30px; border-radius:50%;
  background:var(--wood-lighter); border:none; font-size:14px; cursor:pointer; color:var(--charcoal);
}
.modal-inner{ position:relative; }
.error-msg{ color:var(--danger); font-size:12px; margin:-8px 0 14px; display:none; }
.error-msg.show{ display:block; }
.file-input-label{
  display:flex; align-items:center; justify-content:center; gap:8px;
  border:1.5px dashed var(--line); border-radius:12px; padding:16px; font-size:12.5px;
  color:#8A8272; cursor:pointer; font-weight:600;
}
.file-input-label input{ display:none; }
.photo-preview-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.photo-preview-row .ph{ position:relative; width:64px; height:64px; border-radius:10px; overflow:hidden; }
.photo-preview-row .ph img{ width:100%; height:100%; object-fit:cover; }
.photo-preview-row .ph button{
  position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%;
  background:rgba(0,0,0,.6); color:#fff; border:none; font-size:10px; cursor:pointer; line-height:1;
}

.toast{
  position:absolute; bottom:100px; left:20px; right:20px; background:var(--charcoal);
  color:#fff; padding:13px 16px; border-radius:12px; font-size:12.5px; text-align:center;
  opacity:0; transform:translateY(10px); transition:.25s; pointer-events:none; z-index:60;
}
.toast.show{ opacity:1; transform:translateY(0); }
.credit{ text-align:center; color:#7A7364; font-size:11px; margin-top:14px; }
.spinner{
  width:16px; height:16px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff;
  border-radius:50%; animation:spin .7s linear infinite; display:inline-block;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- Lightbox: fotos y planos a pantalla completa ---------- */
.lightbox{
  position:fixed; inset:0; background:rgba(10,10,9,.94); z-index:200;
  display:none; align-items:center; justify-content:center; padding:24px;
  animation:lb-fade .18s ease;
}
.lightbox.show{ display:flex; }
@keyframes lb-fade{ from{ opacity:0; } to{ opacity:1; } }
.lightbox img{
  max-width:100%; max-height:100%; border-radius:10px; object-fit:contain;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
}
.lightbox-close{
  position:absolute; top:20px; right:20px; width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,.15); border:none; color:#fff; font-size:16px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.band img, .tech-card img, .obra-photos-grid img, .detail-gallery img, .detail-plans img{ cursor:zoom-in; }

/* ---------- Escritorio: la app deja de ser "un celular flotando" ---------- */
.tabbar-brand{ display:none; }

@media (min-width:860px){
  body{ padding:0; align-items:flex-start; }
  #app{ max-width:1280px; min-height:100vh; border-radius:0; box-shadow:none; }

  .admin-bar{ order:-2; padding:8px 40px; }

  .tabbar{
    order:-1; flex-direction:row; align-items:center; justify-content:flex-start;
    gap:30px; padding:14px 40px; border-top:none; border-bottom:1px solid var(--line);
    position:sticky; top:0; z-index:30; background:var(--white);
  }
  .tabbar-brand{ display:flex; align-items:center; margin-right:18px; }
  .tabbar-brand img{ height:28px; }
  .tab{ flex:none; flex-direction:row; gap:7px; font-size:13.5px; padding:8px 2px; }
  .tab .ic{ font-size:16px; }
  .tab .ic svg{ width:17px; height:17px; }
  .fab{ right:40px; bottom:36px; }
  .wa-float{ left:40px; bottom:36px; }

  .home-hero{ min-height:480px; padding:64px 60px; }
  .home-hero h1{ font-size:46px; max-width:560px; }
  .home-hero p{ font-size:16px; max-width:440px; }
  .home-strip{ padding:26px 60px 4px; max-width:600px; }
  .home-section{ padding:40px 60px 8px; }
  .home-section h2{ font-size:24px; }
  .rail{ margin:0; padding:0; }
  .rail-card{ width:200px; }
  .rail-card .thumb{ height:130px; }

  .topbar{ padding:30px 60px 22px; }
  .topbar h2{ font-size:26px; }
  .grid{ padding:24px 60px 50px; grid-template-columns:repeat(4, 1fr); gap:20px; }
  .card .thumb{ height:150px; }

  .finish-grid{ padding:24px 60px 50px; display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
  .finish-card .band{ height:170px; }

  .tech-grid{ padding:24px 60px 50px; display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
  .tech-card img{ height:170px; }
  .detail-plans{ display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; }
  .tech-intro{ margin:24px 60px; display:flex; align-items:stretch; }
  .tech-intro img{ width:40%; height:auto; }
  .tech-intro .body{ flex:1; display:flex; flex-direction:column; justify-content:center; }
  .tech-benefits{ flex-direction:row; margin:0 60px 30px; gap:20px; }
  .tech-benefit-block{ flex:1; }
  .eyebrow[style]{ padding-left:60px !important; }
  #tech-premium{ padding:0 60px 40px !important; max-width:700px; }
  .feature-strip{ grid-template-columns:repeat(4, 1fr); padding:36px 60px 10px; gap:24px; }
  .faq-list{ max-width:640px; }

  .obras-grid{ padding:24px 60px 90px; display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }
  .obra-card .cover{ height:180px; }
  .obra-photos-grid{ grid-template-columns:repeat(4, 1fr); padding:0 60px 30px; }
  .obra-photos-grid img{ height:150px; }

  .form-wrap{ padding:30px 60px; max-width:560px; }
  .about-hero{ padding:50px 60px; }
  .about-body{ padding:36px 60px; max-width:640px; }

  .detail-hero{ height:340px; }
  .detail-body{ padding:32px 60px; max-width:760px; }
  .detail-gallery img{ height:200px; }

  .modal-backdrop{ align-items:center; }
  .modal{ max-width:480px; border-radius:24px; }
}
