/* SmartVentanas — site styles. No frameworks, no external fonts (fast + no third-party requests for GDPR). */
:root{
  --ink:#14292b; --ink-2:#2a4144; --muted:#5b6f71; --line:#dce6e6; --bg:#ffffff; --soft:#f0f6f6; --soft-2:#e1eded;
  --primary:#275457; --primary-2:#2f6a6e; --primary-d:#1c3d40; --primary-ink:#ffffff;
  --cta:#275457; --cta-2:#1e4346; --cta-ink:#ffffff;
  --eco:#3b8a80; --wa:#1fa855;
  --radius:14px; --radius-s:9px; --shadow:0 10px 30px rgba(16,40,60,.08); --shadow-s:0 2px 10px rgba(16,40,60,.07);
  --wrap:1180px; --gut:20px;
  --font:"Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{ margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 var(--font); }
img,svg{ max-width:100%; height:auto; display:block; }
a{ color:var(--primary-2); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ line-height:1.2; margin:0 0 .5em; color:var(--ink); letter-spacing:-.01em; }
h1{ font-size:clamp(30px, 4.6vw, 52px); font-weight:800; }
h2{ font-size:clamp(25px, 3.2vw, 36px); font-weight:800; }
h3{ font-size:19px; font-weight:700; }
p{ margin:0 0 1em; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--gut); }
.skip{ position:absolute; left:-9999px; }
.skip:focus{ left:10px; top:10px; z-index:100; background:#fff; padding:8px 12px; border-radius:8px; }
.eyebrow{ display:inline-block; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--eco); margin-bottom:10px; }
.lead{ font-size:clamp(17px, 2vw, 20px); color:var(--ink-2); }
.muted{ color:var(--muted); }
section{ padding:72px 0; }
.soft{ background:var(--soft); }
.center{ text-align:center; }
.sec-head{ max-width:760px; margin:0 auto 38px; text-align:center; }

/* buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:13px 22px; border-radius:999px; font-weight:700; font-size:16px;
  border:2px solid transparent; cursor:pointer; text-decoration:none !important; transition:transform .12s, background .15s, box-shadow .15s; white-space:nowrap; }
.btn:active{ transform:translateY(1px); }
.btn-cta{ background:var(--cta); color:var(--cta-ink); box-shadow:0 6px 18px rgba(39,84,87,.30); }
.btn-cta:hover{ background:var(--cta-2); }
.btn-primary{ background:var(--primary); color:#fff; }
.btn-primary:hover{ background:var(--primary-2); }
.btn-ghost{ background:transparent; color:var(--primary); border-color:currentColor; }
.btn-ghost:hover{ background:var(--soft-2); }
.btn-wa{ background:var(--wa); color:#fff; }
.btn-wa:hover{ background:#178e47; }
.btn-light{ background:#fff; color:var(--primary); }
.btn svg{ width:20px; height:20px; flex:none; }

/* header */
.top{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.96); backdrop-filter:saturate(1.4) blur(8px); border-bottom:1px solid var(--line); }
.top .wrap{ display:flex; align-items:center; gap:18px; height:70px; }
.logo{ display:flex; align-items:center; gap:10px; color:var(--ink); font-size:21px; letter-spacing:-.02em; text-decoration:none !important; flex:none; }
.logo b{ color:var(--primary); font-weight:800; }
.logo span{ font-weight:500; }
.logo svg{ width:34px; height:34px; }
.nav{ display:flex; gap:4px; margin-left:auto; }
.nav a{ color:var(--ink-2); font-weight:600; font-size:15px; padding:8px 11px; border-radius:8px; text-decoration:none; }
.nav a:hover, .nav a[aria-current="page"]{ background:var(--soft); color:var(--primary); }
.top-actions{ display:flex; align-items:center; gap:10px; }
.lang{ position:relative; }
.lang summary{ list-style:none; cursor:pointer; font-weight:700; font-size:14px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink-2); }
.lang summary::-webkit-details-marker{ display:none; }
.lang[open] summary{ background:var(--soft); }
.lang ul{ position:absolute; right:0; top:calc(100% + 6px); margin:0; padding:6px; list-style:none; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); min-width:150px; }
.lang li a{ display:block; padding:7px 10px; border-radius:7px; color:var(--ink); font-size:14px; }
.lang li a:hover{ background:var(--soft); text-decoration:none; }
.top .btn{ padding:9px 16px; font-size:15px; }
.menu-btn{ display:none; background:none; border:1px solid var(--line); border-radius:8px; width:42px; height:40px; cursor:pointer; }
.menu-btn span{ display:block; width:18px; height:2px; background:var(--ink); margin:4px auto; }
@media (max-width:1020px){
  .nav{ position:fixed; inset:70px 0 auto 0; flex-direction:column; background:#fff; padding:10px var(--gut) 18px; border-bottom:1px solid var(--line); box-shadow:var(--shadow); display:none; }
  .nav.open{ display:flex; }
  .nav a{ font-size:17px; padding:12px; }
  .menu-btn{ display:block; }
  .top-actions{ margin-left:auto; }
  .top .btn-cta{ display:none; }
}
@media (max-width:480px){ .logo{ font-size:18px; } .logo svg{ width:28px; height:28px; } .top .wrap{ gap:10px; } }

/* hero */
.hero{ padding:56px 0 64px; background:linear-gradient(180deg, #f4f8fb 0%, #fff 100%); overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; }
.hero h1 em{ font-style:normal; color:var(--primary); }
.hero .lead{ margin-bottom:26px; max-width:560px; }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:26px; }
.ticks{ list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--ink-2); font-weight:600; font-size:15px; }
.ticks li{ display:flex; align-items:center; gap:7px; }
.ticks li::before{ content:""; width:18px; height:18px; flex:none; border-radius:50%; background:var(--eco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero-art{ position:relative; }
.hero-art .drawing{ background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow); padding:22px; }
.hero-card{ position:absolute; left:-26px; bottom:-22px; background:#fff; border-radius:14px; box-shadow:var(--shadow); padding:14px 18px; border:1px solid var(--line); max-width:250px; }
.hero-card b{ display:block; font-size:15px; }
.hero-card small{ color:var(--muted); font-size:13px; }
.hero-card .price{ font-size:22px; font-weight:800; color:var(--primary); letter-spacing:-.02em; }
@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-card{ position:relative; left:auto; bottom:auto; margin:-26px auto 0; width:calc(100% - 40px); max-width:none; }
  .hero-art{ max-width:520px; margin:0 auto 14px; width:100%; }
}

/* trust strip */
.strip{ padding:26px 0; border-bottom:1px solid var(--line); }
.strip .wrap{ display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
.strip div{ display:flex; gap:12px; align-items:center; }
.strip svg{ width:38px; height:38px; flex:none; color:var(--primary); }
.strip b{ display:block; font-size:15px; line-height:1.3; }
.strip small{ color:var(--muted); font-size:13.5px; line-height:1.35; display:block; }
@media (max-width:900px){ .strip .wrap{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:480px){ .strip .wrap{ grid-template-columns:1fr; } }

/* product cards */
.cards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:20px; }
.card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; transition:box-shadow .15s, transform .15s, border-color .15s; color:var(--ink); text-decoration:none !important; }
a.card:hover{ box-shadow:var(--shadow); transform:translateY(-2px); border-color:#cfdbe3; }
.card .pic{ background:var(--soft); border-radius:10px; aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; margin-bottom:16px; padding:16px; }
.card .pic svg{ max-height:100%; width:auto; }
.card p{ color:var(--muted); font-size:15px; flex:1; }
.card .more{ font-weight:700; color:var(--primary-2); font-size:15px; }
.card .more::after{ content:" →"; }

/* configurator teaser */
.cfg-band{ background:var(--primary); color:#fff; border-radius:24px; padding:44px; display:grid; grid-template-columns:1.1fr .9fr; gap:34px; align-items:center; }
.cfg-band h2, .cfg-band h3{ color:#fff; }
.cfg-band p{ color:#d6e7f1; }
.cfg-band ol{ margin:0 0 24px; padding-left:22px; color:#eaf3f8; }
.cfg-band ol li{ margin:6px 0; }
.cfg-band .drawing{ background:#fff; border-radius:16px; padding:18px; }
@media (max-width:900px){ .cfg-band{ grid-template-columns:1fr; padding:28px; } }

/* steps */
.steps{ display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; counter-reset:st; }
.step{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; position:relative; }
.step::before{ counter-increment:st; content:counter(st); display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:var(--soft-2); color:var(--primary); font-weight:800; margin-bottom:14px; }
.step p{ color:var(--muted); font-size:15px; margin:0; }
@media (max-width:900px){ .steps{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:520px){ .steps{ grid-template-columns:1fr; } }

/* split blocks (workshop, team) */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.split.rev > :first-child{ order:2; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:26px; } .split.rev > :first-child{ order:0; } }
.photo{ border-radius:20px; overflow:hidden; background:var(--soft-2); aspect-ratio:4/3; position:relative; }
.photo img{ width:100%; height:100%; object-fit:cover; }
.photo.ph{ display:flex; align-items:center; justify-content:center; color:#7c919f; font-weight:600; text-align:center; padding:20px;
  background:repeating-linear-gradient(135deg, #eef3f6 0 14px, #e6edf1 14px 28px); border:2px dashed #c9d6de; }
.list-check{ list-style:none; padding:0; margin:0 0 22px; }
.list-check li{ padding:7px 0 7px 30px; position:relative; }
.list-check li::before{ content:""; position:absolute; left:0; top:11px; width:18px; height:18px; border-radius:50%; background:var(--eco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* projects grid */
.gallery{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.gallery .photo{ aspect-ratio:1/1; }
@media (max-width:760px){ .gallery{ grid-template-columns:repeat(2, 1fr); } }

/* towns */
.towns{ display:flex; flex-wrap:wrap; gap:9px; justify-content:center; padding:0; margin:0; list-style:none; }
.towns li{ background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 15px; font-weight:600; font-size:14.5px; color:var(--ink-2); }

.ship{ max-width:820px; margin:30px auto 0; display:flex; gap:16px; align-items:center; background:#fff; border:1px solid var(--line); border-left:5px solid var(--eco); border-radius:12px; padding:18px 22px; color:var(--ink-2); }
.ship svg{ width:44px; height:44px; flex:none; color:var(--eco); }

/* faq */
.faq{ max-width:840px; margin:0 auto; }
.faq details{ background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:10px; }
.faq summary{ cursor:pointer; padding:17px 50px 17px 20px; font-weight:700; list-style:none; position:relative; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; position:absolute; right:20px; top:12px; font-size:24px; color:var(--primary); font-weight:400; }
.faq details[open] summary::after{ content:"–"; }
.faq details > div{ padding:0 20px 16px; color:var(--ink-2); }

/* contact band */
.contact-band{ display:grid; grid-template-columns:1.1fr .9fr; gap:30px; align-items:stretch; }
.contact-box{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.contact-box dl{ margin:0; display:grid; grid-template-columns:auto 1fr; gap:10px 16px; }
.contact-box dt{ color:var(--muted); font-weight:600; }
.contact-box dd{ margin:0; font-weight:600; }
.contact-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
@media (max-width:900px){ .contact-band{ grid-template-columns:1fr; } }

/* footer */
.foot{ background:#0e2433; color:#b9c9d4; padding:52px 0 26px; font-size:15px; }
.foot a{ color:#dbe7ee; }
.foot .cols{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; margin-bottom:34px; }
.foot h4{ color:#fff; font-size:15px; margin-bottom:12px; }
.foot ul{ list-style:none; padding:0; margin:0; }
.foot li{ margin:6px 0; }
.foot .logo{ color:#fff; margin-bottom:12px; }
.foot .logo b{ color:#7fc4e4; }
.foot .legal{ border-top:1px solid #23394a; padding-top:20px; display:flex; flex-wrap:wrap; gap:8px 22px; font-size:13.5px; color:#8ea3b1; }
@media (max-width:900px){ .foot .cols{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .foot .cols{ grid-template-columns:1fr; } }

/* floating whatsapp */
.wa-float{ position:fixed; right:18px; bottom:18px; z-index:60; width:58px; height:58px; border-radius:50%; background:var(--wa); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.22); }
.wa-float svg{ width:30px; height:30px; }
.wa-float:hover{ background:#178e47; text-decoration:none; }

/* price calculator */
.calc{ display:grid; gap:26px; }
.calc-main{ display:grid; grid-template-columns:1.05fr .95fr; gap:26px; align-items:start; }
.calc-form, .calc-view, .calc-list, .calc-send{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.calc-view{ position:sticky; top:86px; text-align:center; }
.calc .field{ margin-bottom:20px; }
.calc label{ display:block; font-weight:700; margin-bottom:8px; }
.calc small{ display:block; color:var(--muted); font-size:13px; margin-bottom:4px; }
.calc input, .calc select, .calc textarea{ width:100%; font:inherit; padding:10px 12px; border:1px solid #cdd8e0; border-radius:9px; background:#fff; color:var(--ink); }
.calc input:focus, .calc select:focus, .calc textarea:focus{ outline:2px solid var(--primary-2); outline-offset:1px; border-color:transparent; }
.calc .two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.seg{ display:inline-flex; background:var(--soft); border-radius:999px; padding:4px; gap:4px; flex-wrap:wrap; margin-bottom:12px; }
.seg button{ border:0; background:transparent; padding:8px 16px; border-radius:999px; font:inherit; font-weight:700; color:var(--ink-2); cursor:pointer; }
.seg button.on{ background:var(--primary); color:#fff; }
.types{ display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:10px; }
.type{ border:2px solid var(--line); background:#fff; border-radius:12px; padding:8px 6px; cursor:pointer; font:inherit; font-size:13px; font-weight:600; color:var(--ink-2); display:flex; flex-direction:column; align-items:center; gap:6px; }
.type svg{ height:64px; width:auto; }
.type.on{ border-color:var(--primary-2); background:#eef6fb; color:var(--primary); }
.lnk{ background:none; border:0; color:var(--primary-2); font:inherit; font-weight:700; cursor:pointer; padding:4px 0; }
.parts{ display:grid; gap:8px; margin-bottom:8px; }
.part{ display:grid; grid-template-columns:22px 1fr 110px 30px; gap:8px; align-items:center; }
.x{ border:0; background:var(--soft); width:30px; height:30px; border-radius:50%; cursor:pointer; color:var(--muted); }
.calc-drawing svg{ width:100%; max-height:360px; }
.calc-price{ margin:14px 0; }
.calc-price .amount{ font-size:clamp(30px, 4vw, 40px); font-weight:800; color:var(--primary); letter-spacing:-.02em; line-height:1.15; }
.calc-price .upto{ color:var(--muted); font-size:15px; margin-top:2px; }
.calc-price .upto b{ color:var(--ink-2); }
.calc sup{ font-size:.55em; vertical-align:super; margin-left:1px; color:var(--muted); font-weight:700; }
.calc-note{ border-top:1px solid var(--line); padding-top:12px; }
.calc-price .warn{ margin-top:8px; color:#9a5b00; background:#fff6e6; border-radius:8px; padding:6px 10px; font-size:14px; }
.calc-flash{ min-height:22px; margin-top:6px; color:var(--eco); font-weight:700; }
.calc-list .rows{ display:grid; gap:10px; }
.calc-list .row{ display:grid; grid-template-columns:90px 1fr auto 30px; gap:12px; align-items:center; border-bottom:1px solid var(--line); padding-bottom:10px; }
.calc-list .pic svg{ width:90px; height:70px; }
.calc-list .sum{ font-weight:700; white-space:nowrap; }
.calc-list .tot{ display:flex; justify-content:space-between; gap:10px; font-size:19px; margin:14px 0 4px; }
.calc-list .tot b{ color:var(--primary); }
.calc-send textarea{ margin-bottom:12px; }
.calc-send .two{ margin-bottom:12px; }
.calc .consent{ display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:14.5px; color:var(--ink-2); }
.calc .consent input{ width:20px; height:20px; flex:none; margin-top:2px; }
.send-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.calc-msg{ margin-top:12px; font-weight:700; }
.calc-msg.good{ color:var(--eco); } .calc-msg.bad{ color:#b3261e; }
.calc-note{ font-size:14px; }
@media (max-width:900px){ .calc-main{ grid-template-columns:1fr; } .calc-view{ position:static; } }
@media (max-width:520px){ .calc .two{ grid-template-columns:1fr; } .calc-list .row{ grid-template-columns:70px 1fr 30px; } .calc-list .row .sum{ grid-column:2; } .calc-list .pic svg{ width:70px; height:56px; } .calc-form, .calc-view, .calc-list, .calc-send{ padding:16px; } }

/* page header for inner pages */
.page-head{ background:linear-gradient(180deg, #f4f8fb 0%, #fff 100%); padding:48px 0 30px; }
.crumbs{ font-size:14px; color:var(--muted); margin-bottom:10px; }
.crumbs a{ color:var(--muted); }
.prose{ max-width:820px; }
.prose h2{ font-size:26px; margin-top:1.6em; }
.prose ul{ padding-left:22px; }

/* ---- project photos (gallery with a filter, full-screen viewer, product photos) ---- */
.gal-filter{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:0 0 22px; }
.gal-filter button{ border:1px solid var(--line, #d6dee3); background:#fff; color:inherit; border-radius:999px; padding:8px 16px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.gal-filter button:hover{ border-color:#0c5476; }
.gal-filter button.on{ background:#0c5476; border-color:#0c5476; color:#fff; }
.gallery.proj{ align-items:start; }
.proj-item{ margin:0; }
.proj-item[hidden]{ display:none; }
.proj-item .photo{ display:block; aspect-ratio:4/3; cursor:zoom-in; }
.proj-item .photo img{ transition:transform .35s ease; }
.proj-item .photo:hover img{ transform:scale(1.04); }
.proj-item figcaption{ font-size:14px; line-height:1.35; color:#4a5f6c; margin:8px 4px 0; }
.home-proj .proj-item .photo{ cursor:pointer; }
.prod-photo{ margin:0; }
.prod-photo figcaption{ position:absolute; left:0; right:0; bottom:0; padding:22px 14px 10px; font-size:13.5px; font-weight:600; color:#fff; background:linear-gradient(transparent, rgba(0,0,0,.55)); }
.prod-photo.wide{ aspect-ratio:16/9; max-width:980px; margin:26px auto 0; }
.lb{ position:fixed; inset:0; z-index:1000; background:rgba(10,20,26,.92); display:flex; align-items:center; justify-content:center; padding:20px 56px; }
.lb[hidden]{ display:none; }
.lb figure{ margin:0; max-width:100%; max-height:100%; display:flex; flex-direction:column; align-items:center; }
.lb img{ max-width:100%; max-height:calc(100vh - 110px); border-radius:10px; box-shadow:0 10px 40px rgba(0,0,0,.4); }
.lb figcaption{ color:#fff; font-size:15px; margin-top:12px; text-align:center; }
.lb button{ position:absolute; background:rgba(255,255,255,.12); border:0; color:#fff; font-size:34px; line-height:1; width:46px; height:46px; border-radius:50%; cursor:pointer; }
.lb button:hover{ background:rgba(255,255,255,.25); }
.lb .lb-x{ top:14px; right:14px; font-size:30px; }
.lb .lb-p{ left:8px; top:50%; transform:translateY(-50%); }
.lb .lb-n{ right:8px; top:50%; transform:translateY(-50%); }
@media (max-width:760px){ .lb{ padding:12px 8px 60px; } .lb .lb-p, .lb .lb-n{ top:auto; bottom:10px; transform:none; } .lb .lb-p{ left:calc(50% - 56px); } .lb .lb-n{ right:calc(50% - 56px); } .gal-filter button{ padding:7px 12px; font-size:13px; } .proj-item figcaption{ font-size:13px; } }
/* ===== brand: SMART eco VENTANAS teal (#275457) + white ===== */
.top{ background:rgba(39,84,87,.97); border-bottom:0; box-shadow:0 2px 14px rgba(20,41,43,.18); }
.logo img{ display:block; height:26px; width:auto; }
.top .logo img{ height:27px; }
.nav a{ color:#e3efef; }
.nav a:hover, .nav a[aria-current="page"]{ background:rgba(255,255,255,.13); color:#fff; text-decoration:none; }
.lang summary{ color:#fff; border-color:rgba(255,255,255,.45); }
.lang[open] summary{ background:rgba(255,255,255,.13); }
.top .btn-cta, .hero .btn-cta, .cfg-band .btn-cta, .brand-band .btn-cta{ background:#fff; color:var(--primary); box-shadow:0 6px 18px rgba(0,0,0,.18); }
.top .btn-cta:hover, .hero .btn-cta:hover, .cfg-band .btn-cta:hover, .brand-band .btn-cta:hover{ background:#e8f2f2; }
.menu-btn{ border-color:rgba(255,255,255,.45); }
.menu-btn span{ background:#fff; }
@media (max-width:1020px){
  .nav{ background:var(--primary); border-bottom:0; }
  .nav a{ border-bottom:1px solid rgba(255,255,255,.08); border-radius:0; }
}
@media (max-width:480px){ .top .logo img{ height:20px; } }

/* hero on teal with an open frame like the emblem */
.hero{ position:relative; background:linear-gradient(135deg, #1e4346 0%, #275457 48%, #33696c 100%); color:#e6f0f0; }
.hero::before{ content:""; position:absolute; left:-90px; top:40px; width:420px; height:420px; border:14px solid rgba(255,255,255,.06); border-right-color:transparent; pointer-events:none; }
.hero::after{ content:""; position:absolute; right:-120px; bottom:-140px; width:520px; height:520px; border:18px solid rgba(255,255,255,.05); border-left-color:transparent; pointer-events:none; }
.hero .wrap{ position:relative; z-index:1; }
.hero h1{ color:#fff; }
.hero h1 em{ color:#bfe3dd; }
.hero .lead{ color:#d5e6e5; }
.hero .eyebrow{ color:#a9d8d0; }
.hero .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.7); }
.hero .btn-ghost:hover{ background:rgba(255,255,255,.12); }
.hero .ticks{ color:#eaf4f3; }
.hero .ticks li::before{ background-color:rgba(255,255,255,.22); }
.hero-art .drawing{ border:0; box-shadow:0 24px 60px rgba(0,0,0,.28); }
.hero-card{ border:0; color:var(--ink); box-shadow:0 18px 40px rgba(0,0,0,.25); }

/* inner page heads: teal band */
.page-head{ background:linear-gradient(135deg, #1e4346 0%, #275457 60%, #33696c 100%); color:#d5e6e5; padding:44px 0 34px; }
.page-head h1, .page-head h2{ color:#fff; }
.page-head p{ color:#d5e6e5; }
.page-head a{ color:#fff; text-decoration:underline; }
.page-head .eyebrow{ color:#a9d8d0; }
.page-head .btn-cta{ background:#fff; color:var(--primary); }
.page-head .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.7); }

/* section titles get a small brand bar */
section h2{ position:relative; }
.soft{ background:linear-gradient(180deg, #f0f6f6 0%, #f7fafa 100%); }
.strip svg{ color:var(--primary); }
.card .pic{ background:#eef5f5; }
a.card:hover{ border-color:#b9d0d0; }

/* footer: deep teal with full emblem */
.foot{ background:var(--primary-d); color:#b7cfcf; }
.foot a{ color:#e3efef; }
.foot .logo img{ height:auto; width:190px; max-width:100%; }
.foot .legal{ border-top-color:rgba(255,255,255,.12); color:#93b2b2; }
/* local town pages */
.zlinks{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.zlinks a{ background:var(--soft); border:1px solid var(--line); border-radius:999px; padding:8px 14px; font-weight:600; font-size:14.5px; color:var(--primary); }
.zlinks a:hover{ background:var(--primary); color:#fff; text-decoration:none; border-color:var(--primary); }
.towns.left{ justify-content:flex-start; }
.towns a{ color:var(--primary); text-decoration:none; }
.towns li:has(a){ border-color:#b9d0d0; }
.towns li:has(a):hover{ background:var(--primary); }
.towns li:has(a):hover a{ color:#fff; }
.zona-proj{ grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); }
.brand-band{ background:linear-gradient(135deg, #1e4346 0%, #275457 60%, #33696c 100%); color:#d5e6e5; border-radius:24px; padding:40px; text-align:center; }
.brand-band h2{ color:#fff; }
.brand-band .hero-ctas{ justify-content:center; margin:18px 0 0; }
.brand-band .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.7); }
.brand-band .btn-ghost:hover{ background:rgba(255,255,255,.12); }
@media (max-width:600px){ .brand-band{ padding:28px 18px; border-radius:18px; } }
.foot .zones{ font-size:13.5px; line-height:1.9; margin:0 0 18px; color:#93b2b2; }
.foot .zones b{ color:#fff; font-weight:700; }
.foot .zones a{ color:#cfe2e2; }
/* ===== v2 look: photo hero, photo tiles, floating strip, reveal animations ===== */
h1, h2{ letter-spacing:-.025em; }
h2{ font-weight:800; }
.sec-head h2{ font-size:clamp(26px, 3.4vw, 40px); }
.sec-head .eyebrow, section > .wrap > .eyebrow{ position:relative; padding:0 0 0 34px; }
.sec-head .eyebrow::before{ content:""; position:absolute; left:0; top:50%; width:24px; height:2px; background:currentColor; }
.hero{ min-height:min(86vh, 760px); display:flex; align-items:center; padding:70px 0 110px;
  background:linear-gradient(90deg, rgba(24,55,58,.96) 0%, rgba(39,84,87,.88) 42%, rgba(39,84,87,.45) 75%, rgba(39,84,87,.25) 100%), url("img/proyectos/cortina-cristal-terraza.jpg") center/cover no-repeat; }
.hero::before, .hero::after{ display:none; }
.hero .wrap{ width:100%; }
.hero h1{ font-size:clamp(34px, 5vw, 60px); text-shadow:0 2px 24px rgba(0,0,0,.25); }
.hero-art .drawing{ background:rgba(255,255,255,.97); }
@media (max-width:900px){ .hero{ min-height:0; padding:44px 0 90px; background:linear-gradient(180deg, rgba(24,55,58,.94) 0%, rgba(39,84,87,.86) 60%, rgba(39,84,87,.7) 100%), url("img/proyectos/cortina-cristal-terraza-m.jpg") center/cover no-repeat; } }

/* trust strip floats over the hero edge */
.strip{ border:0; padding:0; margin-top:-62px; position:relative; z-index:3; }
.strip .wrap{ background:#fff; border-radius:20px; box-shadow:0 18px 50px rgba(20,41,43,.16); padding:26px 28px; }
.strip svg{ background:var(--soft); border-radius:14px; padding:7px; width:50px; height:50px; }

/* product cards as photo tiles */
.cards.tiles{ grid-template-columns:repeat(3, 1fr); gap:18px; }
.cards.tiles .card{ position:relative; padding:0 0 20px; min-height:300px; border:0; overflow:hidden; justify-content:flex-end; color:#fff; background:#1e4346; border-radius:18px; isolation:isolate; }
.cards.tiles .card:first-child{ grid-column:span 2; min-height:380px; }
.cards.tiles .photo-pic{ position:absolute; inset:0; margin:0; padding:0; border-radius:0; aspect-ratio:auto; background:#1e4346; z-index:-2; }
.cards.tiles .photo-pic img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.cards.tiles .card:not(:last-child)::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(20,41,43,0) 30%, rgba(20,41,43,.55) 60%, rgba(20,41,43,.92) 100%); transition:background .3s; }
.cards.tiles .card > :not(.pic){ margin-left:22px; margin-right:22px; }
.cards.tiles .card h3{ color:#fff; font-size:22px; margin-bottom:4px; }
.cards.tiles .card p{ color:#d9e8e7; flex:none; margin-bottom:10px; max-height:0; opacity:0; overflow:hidden; transition:max-height .35s, opacity .35s; }
.cards.tiles .card .more{ color:#bfe3dd; }
a.card.tiles, .cards.tiles a.card:hover{ transform:translateY(-3px); box-shadow:0 20px 44px rgba(20,41,43,.25); }
.cards.tiles a.card:hover .photo-pic img{ transform:scale(1.07); }
.cards.tiles a.card:hover p, .cards.tiles a.card:focus-visible p{ max-height:120px; opacity:1; }
@media (hover:none){ .cards.tiles .card p{ max-height:none; opacity:1; } }
.cards.tiles .card:last-child{ background:linear-gradient(135deg, #1e4346, #33696c) !important; padding:20px; justify-content:flex-start; }
.cards.tiles .card:last-child > :not(.pic){ margin-left:0; margin-right:0; }
.cards.tiles .card:last-child .pic{ background:#fff !important; border-radius:12px; }
.cards.tiles .card:last-child p{ max-height:none; opacity:1; flex:1; }
@media (max-width:900px){ .cards.tiles{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .cards.tiles{ grid-template-columns:1fr; } .cards.tiles .card:first-child{ grid-column:auto; min-height:300px; } .cards.tiles .card{ min-height:260px; } }

/* steps: teal numbers joined by a line */
.step{ border:0; box-shadow:var(--shadow-s); }
.step::before{ background:var(--primary); color:#fff; }

/* workshop photo with an open frame like the emblem */
.split > .photo{ overflow:visible; background:none; }
.split > .photo img{ border-radius:20px; position:relative; z-index:1; }
.split > .photo::before{ content:""; position:absolute; left:-16px; top:-16px; right:24px; bottom:24px; border:6px solid var(--primary); border-right-color:transparent; border-radius:6px; z-index:0; }
@media (max-width:600px){ .split > .photo::before{ left:-8px; top:-8px; border-width:4px; } }

/* project photos: hover zoom + teal caption bar */
.home-proj .proj-item .photo{ border-radius:16px; }
.proj-item .photo:hover img{ transform:scale(1.07); }

/* reveal on scroll (only when JS runs and motion is allowed) */
@media (prefers-reduced-motion:no-preference){
  .js .rv{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; }
  .js .rv.in{ opacity:1; transform:none; }
}
/* the price card sits under the window drawing, not over its dimensions */
.hero-card{ position:relative; left:auto; bottom:auto; margin:-16px -18px 0 auto; width:max-content; max-width:280px; }
@media (max-width:900px){ .hero-card{ margin:-16px auto 0; width:calc(100% - 40px); max-width:none; } }

/* fixes 08/10/2026: photos sit straight — no offset frame around them; drawings centred in the page heads */
.split > .photo{ overflow:hidden; background:var(--soft-2); }
.split > .photo::before{ content:none; display:none; }
.split > .photo img{ border-radius:0; }
.page-head .drawing{ display:flex; align-items:center; justify-content:center; min-height:200px; }
.page-head .drawing img{ width:auto; height:auto; max-width:100%; max-height:190px; min-width:200px; }
.prod-photo.tall{ aspect-ratio:4/5; }
.prod-photo img{ object-position:center 40%; }
.prod-photo.wide{ max-width:none; }
/* ===== Window lab (user 09/10/2026): 3D configurator, crash test, X-ray, detective, chooser, quiz, try-on ===== */
.lab-field{ margin:0 0 16px; }
.lab-field > b{ display:block; margin-bottom:7px; font-size:14.5px; }
.lab-check{ display:flex; gap:8px; align-items:center; margin:6px 0 14px; font-size:14.5px; flex-wrap:wrap; }
.lab-check input[type=checkbox]{ width:18px; height:18px; }
.lab-field select, .lab-field input[type=number], .lab-check input[type=number], .two input, .two select{ font:inherit; padding:9px 11px; border:1px solid #cdd8d8; border-radius:9px; width:100%; background:#fff; }
.seg.col{ flex-direction:column; border-radius:14px; }
.swatches{ display:flex; flex-wrap:wrap; gap:8px; }
.sw{ width:40px; height:40px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #b8c6c6; cursor:pointer; position:relative; }
.sw span{ position:absolute; left:-9999px; }
.sw.on{ box-shadow:0 0 0 3px var(--primary); }
.lab-bars{ display:grid; gap:6px; margin:6px 0 14px; }
.lab-bar{ display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:14px; }
.lab-bar i{ display:flex; gap:3px; }
.lab-bar em{ width:20px; height:8px; border-radius:4px; background:#dde7e7; }
.lab-bar em.on{ background:var(--eco); }
.lab-price .amount{ font-size:clamp(28px, 4vw, 38px); font-weight:800; color:var(--primary); }
.lab-price .upto{ color:var(--muted); font-size:14px; }
/* 3D */
.lab3d{ display:grid; grid-template-columns:1.25fr .75fr; gap:22px; align-items:start; }
.lab3d-stage{ position:relative; background:#eef5f5; border-radius:18px; overflow:hidden; min-height:520px; box-shadow:var(--shadow-s); }
.lab3d-stage canvas{ width:100%; height:560px; display:block; cursor:grab; touch-action:none; }
.lab3d-tools{ position:absolute; top:10px; left:10px; right:10px; display:flex; flex-wrap:wrap; gap:6px; z-index:2; }
.lab3d-tools button{ border:0; background:rgba(255,255,255,.92); border-radius:999px; padding:7px 13px; font:inherit; font-size:13.5px; font-weight:700; color:var(--primary); cursor:pointer; box-shadow:var(--shadow-s); }
.lab3d-hint{ position:absolute; left:12px; bottom:10px; right:12px; font-size:13px; color:var(--ink-2); background:rgba(255,255,255,.85); border-radius:10px; padding:6px 10px; pointer-events:none; }
.lab3d-shut{ position:absolute; right:12px; top:52px; background:rgba(255,255,255,.92); border-radius:12px; padding:6px 10px; font-size:13px; font-weight:700; display:flex; flex-direction:column; }
.lab3d-pop{ position:absolute; z-index:3; width:280px; background:#fff; border-radius:14px; box-shadow:0 14px 40px rgba(16,40,60,.22); padding:14px 14px 12px; }
.lab3d-pop > b{ display:block; margin:0 22px 8px 0; font-size:14px; }
.lab3d-pop .x{ position:absolute; right:8px; top:8px; }
.lab3d-panel{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; }
.lab-parts{ display:grid; gap:8px; }
.lab-part{ display:flex; gap:8px; align-items:center; }
@media (max-width:900px){ .lab3d{ grid-template-columns:1fr; } .lab3d-stage canvas{ height:420px; } .lab3d-stage{ min-height:420px; } }
/* crash test */
.labg{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; }
.labg-cards{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px; }
.labg-card{ text-align:left; border:2px solid var(--line); background:#fff; border-radius:12px; padding:10px 12px; cursor:pointer; font:inherit; }
.labg-card b{ display:block; font-size:14.5px; }
.labg-card small{ color:var(--muted); font-size:12.5px; }
.labg-card.on{ border-color:var(--primary-2); background:#eef6f6; }
.labg-cost{ display:flex; gap:12px; align-items:center; margin:8px 0 16px; font-weight:700; }
.labg-cost b{ font-size:22px; color:var(--primary); letter-spacing:2px; } .labg-cost i{ color:#d3dede; font-style:normal; }
.labg-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.labg-tabs{ display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 12px; }
.labg-tabs button{ border:1px solid var(--line); background:#fff; border-radius:999px; padding:8px 13px; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.labg-tabs button.on{ background:var(--primary); border-color:var(--primary); color:#fff; }
.labg-tabs button.done small{ background:var(--eco); color:#fff; border-radius:999px; padding:0 7px; margin-left:4px; font-size:12px; }
.labg-stage canvas{ width:100%; aspect-ratio:900/480; display:block; border-radius:14px; background:#eef5f5; touch-action:manipulation; }
.labg-ctl{ display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center; margin:14px 0 8px; }
.labg-rng{ display:flex; flex-direction:column; gap:4px; min-width:240px; font-size:14px; }
.labg-rng input{ width:100%; accent-color:var(--primary); }
.labg-msg{ min-height:48px; font-size:15px; }
.labg-msg small{ display:block; margin-top:4px; font-size:12px; }
.labg-msg .bad, .ch-cmp .bad{ color:#b3261e; font-weight:700; } .labg-msg .good, .ch-cmp .good{ color:var(--eco); font-weight:700; } .labg-msg .warn{ color:#9a5b00; font-weight:700; }
.labg-total{ margin-top:14px; border-top:1px solid var(--line); padding-top:14px; }
.labg-total > b{ font-size:19px; } .labg-total b i{ color:#d3dede; font-style:normal; }
.labg-disc{ background:linear-gradient(135deg, #1e4346, #33696c); color:#e6f1f0; border-radius:16px; padding:18px 20px; margin:12px 0; }
.labg-disc code{ background:#fff; color:var(--primary); border-radius:8px; padding:3px 10px; font-size:20px; font-weight:800; letter-spacing:1px; }
.labg-disc .muted{ color:#cfe2e1; } .labg-disc .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.7); }
/* X-ray */
.xr-track{ height:520vh; position:relative; }
.xr-sticky{ position:sticky; top:70px; height:calc(100vh - 70px); display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; gap:20px; overflow:hidden; }
.xr-cap p{ font-size:clamp(20px, 2.6vw, 30px); font-weight:800; line-height:1.25; color:var(--ink); min-height:4.2em; transition:opacity .3s; }
.xr-dots{ display:flex; gap:6px; margin:6px 0 20px; } .xr-dots i{ width:22px; height:5px; border-radius:3px; background:#d5e2e2; } .xr-dots i.on{ background:var(--eco); }
.xr-ctas{ display:flex; gap:10px; flex-wrap:wrap; opacity:0; transition:opacity .4s; } [data-step="9"] .xr-ctas{ opacity:1; }
.xr-scene{ position:relative; height:min(70vh, 560px); perspective:1000px; display:flex; align-items:center; justify-content:center; }
.xr-obj{ position:relative; width:min(34vw, 330px); aspect-ratio:300/380; transform-style:preserve-3d; transition:transform .25s ease-out; }
.xr-l{ position:absolute; inset:0; transition:transform .35s ease-out, opacity .4s, filter .4s; }
.xr-l svg{ width:100%; height:100%; overflow:visible; }
[data-step="0"] .xr-l:not(.xr-frameO):not(.xr-glassO){ opacity:0; }
.xr-steel, .xr-seals, .xr-hw, .xr-spacer, .xr-argon{ opacity:.25; }
[data-step="1"] .xr-l{ filter:hue-rotate(160deg) saturate(1.6) brightness(1.1); opacity:.55; }
[data-step="3"] .xr-steel{ opacity:1; filter:drop-shadow(0 0 14px #5ad1ff); }
[data-step="4"] .xr-obj{ opacity:.25; } [data-step="4"] .xr-sec-pvc{ opacity:1; transform:none; }
[data-step="5"] .xr-argon, [data-step="5"] .xr-glassI, [data-step="5"] .xr-glassO{ opacity:1; } [data-step="5"] .xr-argon{ filter:drop-shadow(0 0 10px #6f8cff); }
[data-step="6"] .xr-spacer, [data-step="6"] .xr-seals{ opacity:1; filter:drop-shadow(0 0 10px #ffb347); }
[data-step="7"] .xr-hw{ opacity:1; filter:drop-shadow(0 0 12px #ffd54f); }
[data-step="8"] .xr-obj{ opacity:.25; } [data-step="8"] .xr-sec-alu{ opacity:1; transform:none; }
[data-step="9"] .xr-l{ opacity:1; }
.xr-sec{ position:absolute; inset:auto 0 6% 0; display:flex; justify-content:center; pointer-events:none; }
.xr-sec svg{ position:absolute; bottom:0; width:min(80%, 420px); opacity:0; transform:translateY(30px); transition:opacity .45s, transform .45s; }
.xr-sec .flow path{ animation:xrflow 1.4s linear infinite; } @keyframes xrflow{ from{ transform:translateX(0); opacity:1; } to{ transform:translateX(120px); opacity:0; } }
.xr-sec-alu .pa{ animation:xrpa 1.2s ease-in-out infinite alternate; } @keyframes xrpa{ to{ fill:#7fdc9a; } }
.ar{ animation:xrar 3s ease-in-out infinite alternate; } @keyframes xrar{ to{ transform:translate(10px, -14px); } }
.lowe{ animation:xrlowe 2.4s ease-in-out infinite alternate; } @keyframes xrlowe{ from{ opacity:.25; } to{ opacity:.9; } }
.xr-sides{ position:absolute; top:6px; left:8%; right:8%; display:flex; justify-content:space-between; font-weight:800; color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.xr-scroll{ position:absolute; bottom:12px; left:50%; transform:translateX(-50%); font-size:13px; color:var(--muted); }
[data-step="9"] .xr-scroll{ display:none; }
@media (max-width:820px){ .xr-sticky{ grid-template-columns:1fr; grid-template-rows:auto 1fr; align-content:start; padding-top:14px; } .xr-cap p{ min-height:3.6em; font-size:20px; } .xr-obj{ width:min(56vw, 260px); } .xr-scene{ height:52vh; } }
@media (prefers-reduced-motion: reduce){ .xr-track{ height:auto; } .xr-sticky{ position:static; height:auto; } }
/* detective */
.dt{ display:grid; grid-template-columns:.9fr 1.1fr; gap:28px; align-items:center; }
.dt-win{ max-width:420px; margin:0 auto; }
.dt-spot{ cursor:pointer; } .dt-spot circle:first-child{ animation:dtpulse 1.8s ease-in-out infinite; } .dt-spot.on circle:first-child{ fill:#ff7a2e; }
@keyframes dtpulse{ 50%{ stroke-width:7; } }
.dt-fog, .dt-drop, .dt-crack, .dt-air, .dt-water{ opacity:0; transition:opacity .5s; }
.dt-sash, .dt-handle{ transition:transform .8s cubic-bezier(.3,1.6,.5,1); transform-box:fill-box; }
[data-show="hinge"] .dt-sash{ transform:rotate(1.8deg) translateY(8px); transform-origin:0 0; }
[data-show="corner"] .dt-crack{ opacity:1; stroke-dasharray:120; animation:dtdraw 1.2s ease forwards; } @keyframes dtdraw{ from{ stroke-dashoffset:120; } to{ stroke-dashoffset:0; } }
[data-show="glass"] .dt-fog{ opacity:.85; } [data-show="glass"] .dt-drop{ opacity:1; animation:dtdrop 2.4s linear infinite; } @keyframes dtdrop{ to{ transform:translateY(40px); } }
[data-show="seal"] .dt-air{ opacity:1; animation:dtair 1s linear infinite; } @keyframes dtair{ from{ transform:translateX(0); } to{ transform:translateX(-30px); } }
[data-show="sill"] .dt-water{ opacity:.85; animation:dtwater 1.6s ease-in-out infinite alternate; } @keyframes dtwater{ to{ transform:translateY(-6px); } }
[data-show="handle"] .dt-handle{ animation:dtwob .5s ease-in-out infinite alternate; transform-origin:50% 0; } @keyframes dtwob{ from{ transform:rotate(-12deg); } to{ transform:rotate(12deg); } }
.dt-card{ border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin:10px 0 14px; background:#fff; }
.dt-card h4{ margin:0 0 8px; } .dt-bad{ color:#8a2a22; } .dt-good{ color:#1f5f57; } .dt-card p{ margin:2px 0 8px; }
.dt-chips{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 16px; }
.dt-chips button{ border:1px solid var(--line); background:#fff; border-radius:999px; padding:7px 13px; font:inherit; font-size:14px; cursor:pointer; }
.dt-chips button.on{ background:var(--primary); color:#fff; border-color:var(--primary); }
@media (max-width:820px){ .dt{ grid-template-columns:1fr; } }
/* chooser + quiz */
.ch-table{ border:1px solid var(--line); border-radius:14px; overflow:hidden; margin:10px 0; background:#fff; }
.ch-row{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:6px; padding:9px 12px; border-top:1px solid var(--line); align-items:center; font-size:14.5px; opacity:.55; }
.ch-row.on, .ch-h{ opacity:1; } .ch-h{ border-top:0; background:var(--soft); font-weight:800; }
.ch-h .best{ color:var(--primary); } .ch-h em{ display:block; font-style:normal; font-size:11.5px; color:var(--eco); }
.ch-row i{ color:var(--eco); font-style:normal; font-size:9px; letter-spacing:1px; }
.ch-row .dots{ color:var(--primary-2); letter-spacing:1px; font-size:12px; } .ch-row .dots s{ color:#d8e3e3; text-decoration:none; }
.ch-row .hi .dots{ color:var(--eco); } .ch-row .bc{ background:rgba(59,138,128,.07); border-radius:6px; }
.ch-why{ font-size:17px; background:var(--soft); border-radius:12px; padding:12px 16px; }
.ch-norm{ margin-top:22px; } .ch-cmp{ list-style:none; padding:0; }
@media (max-width:640px){ .ch-row{ grid-template-columns:1fr 1fr 1fr; } .ch-row > span:first-child{ grid-column:1 / -1; font-weight:700; } }
.qz{ max-width:760px; }
.qz-bar{ height:6px; background:#e3ecec; border-radius:3px; overflow:hidden; margin-bottom:10px; } .qz-bar i{ display:block; height:100%; background:var(--eco); transition:width .4s; }
.qz-opts{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0; }
.qz-opts button{ border:2px solid var(--line); background:#fff; border-radius:14px; padding:16px; font:inherit; font-weight:700; cursor:pointer; text-align:left; }
.qz-opts button:hover, .qz-opts button.on{ border-color:var(--primary-2); background:#eef6f6; }
.qz-res{ display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; margin:10px 0 16px; }
.qz-res > div{ background:var(--soft); border-radius:12px; padding:12px 14px; } .qz-res small{ display:block; color:var(--muted); } .qz-res b{ font-size:16.5px; color:var(--primary); }
.qz-check{ border:1px dashed #b6caca; border-radius:14px; padding:14px 18px; } .qz-check ol{ margin:0; padding-left:20px; } .qz-check li{ margin:5px 0; }
@media (max-width:560px){ .qz-opts{ grid-template-columns:1fr; } }
/* try-on */
.tryon{ display:grid; grid-template-columns:1.3fr .7fr; gap:22px; align-items:start; }
.tryon-stage canvas{ width:100%; height:auto; display:block; border-radius:16px; box-shadow:var(--shadow-s); touch-action:none; cursor:move; }
.tryon-fit{ font-size:13.5px; color:var(--muted); margin-top:6px; }
.tryon-panel{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px; }
.tryon-up{ margin:8px 0 4px; padding:9px 16px; font-size:14.5px; cursor:pointer; }
.tryon-items{ margin-bottom:12px; }
@media (max-width:900px){ .tryon{ grid-template-columns:1fr; } }
/* home teaser of the lab */
.lab-tiles{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.lab-tile{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; color:var(--ink); text-decoration:none !important; transition:transform .15s, box-shadow .15s; display:flex; flex-direction:column; gap:6px; }
.lab-tile:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.lab-tile .ic{ font-size:34px; } .lab-tile b{ font-size:17px; } .lab-tile span{ color:var(--muted); font-size:14.5px; }
@media (max-width:900px){ .lab-tiles{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .lab-tiles{ grid-template-columns:1fr; } }

.lab3d-shut[hidden], .lab3d-pop[hidden]{ display:none; }
@media (min-width:1021px){ .nav{ gap:2px; } .nav a{ padding:8px 8px; font-size:14.5px; white-space:nowrap; } }
@media (min-width:1021px) and (max-width:1240px){ .top .btn-cta{ padding:8px 12px; font-size:14px; } .nav a{ padding:8px 6px; font-size:14px; } }
/* X-ray focus: on each step the layer being explained stays bright, the others fade */
[data-step="3"] .xr-l:not(.xr-steel), [data-step="5"] .xr-l:not(.xr-argon):not(.xr-glassO):not(.xr-glassI), [data-step="6"] .xr-l:not(.xr-spacer):not(.xr-seals), [data-step="7"] .xr-l:not(.xr-hw){ opacity:.14 !important; filter:none; }
[data-step="2"] .xr-l{ opacity:1; }
[data-step="3"] .xr-steel svg path{ fill:#7c8a92; }.xr-sec{ inset:0; align-items:center; }
.xr-sec svg{ bottom:auto; top:50%; transform:translateY(-40%); background:#fff; border-radius:18px; box-shadow:0 18px 50px rgba(20,41,43,.18); padding:12px; }
[data-step="4"] .xr-sec-pvc, [data-step="8"] .xr-sec-alu{ transform:translateY(-50%); }
[data-step="4"] .xr-obj, [data-step="8"] .xr-obj{ opacity:.06; }/* phones: lab grids never wider than the screen */
.lab3d > *, .tryon > *, .dt > *, .labg, .ch-table, .xr-sticky > *{ min-width:0; }
.lab3d-panel .seg button, .tryon-panel .seg button, .ch-norm .seg button, [data-lab="choose"] .seg button{ white-space:normal; text-align:left; }
@media (max-width:900px){ .lab3d, .tryon{ grid-template-columns:minmax(0, 1fr); } }
@media (max-width:820px){ .dt{ grid-template-columns:minmax(0, 1fr); } }.lab-out .btn, .labg .btn, .tryon-panel .btn, .qz .btn, .dt .btn, .xr-ctas .btn{ white-space:normal; text-align:center; max-width:100%; }
/* certificates block + discount in the calculator (user 09/10/2026) */
.cert-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:16px; }
.cert-card{ background:#fff; border:1px solid var(--line); border-radius:18px; padding:20px; min-width:0; }
.cert-card .ic{ font-size:30px; } .cert-card h3{ font-size:17px; margin:6px 0 10px; } .cert-card .list-check li{ font-size:14.5px; padding:5px 0 5px 28px; }
.calc-disc{ background:var(--soft); border-radius:12px; padding:12px 14px; margin:0 0 12px; }
.calc-disc small.muted{ display:block; margin-top:6px; font-size:12px; line-height:1.4; }
.disc-left{ font-weight:700; color:var(--eco); margin-top:4px; font-size:14px; } .disc-left .bad{ color:#b3261e; }
.disc-lines{ margin:10px 0 0; font-size:14.5px; color:var(--eco); font-weight:600; } .disc-lines > div:first-child{ color:var(--muted); font-weight:400; text-decoration:line-through; }
.labg-disc code + .disc-left{ color:#fff; }/* home: choose 3D or the quick calculator; the X-ray canvas (user 09/10/2026) */
.calc-tabs{ display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:820px; margin:0 auto 22px; }
.calc-tabs button{ display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center; text-align:left; border:2px solid var(--line); background:#fff; border-radius:16px; padding:14px 18px; cursor:pointer; font:inherit; color:var(--ink); transition:border-color .15s, box-shadow .15s; }
.calc-tabs button span{ grid-row:1 / 3; font-size:30px; } .calc-tabs button b{ font-size:17px; } .calc-tabs button small{ color:var(--muted); font-size:13.5px; }
.calc-tabs button.on{ border-color:var(--primary); box-shadow:0 8px 24px rgba(39,84,87,.15); } .calc-tabs button.on b{ color:var(--primary); }
.calc-pane[hidden]{ display:none; }
@media (max-width:560px){ .calc-tabs{ grid-template-columns:1fr; } }
.xr-scene canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.xr-scene{ background:radial-gradient(ellipse at 50% 45%, #f4f9fb 0%, #ffffff 70%); border-radius:20px; }
.xr-home .xr-sticky{ top:70px; }
.xr-legend{ position:absolute; left:12px; bottom:12px; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; background:rgba(255,255,255,.9); border-radius:10px; padding:0; }
.xr-legend:not(:empty){ padding:6px 10px; }
.xr-legend i{ width:90px; height:8px; border-radius:4px; background:linear-gradient(90deg, #e5533d, #f7e2b4, #76ace4); }
.xr-legend .hot{ color:#b3261e; } .xr-legend .cold{ color:#1f5fa8; } .xr-legend em{ font-style:normal; color:#2f6b4a; }
[data-step="0"] .xr-sides, [data-step="9"] .xr-sides{ opacity:0; } .xr-sides{ transition:opacity .4s; pointer-events:none; }/* ===== home v2 (user 09/10/2026): live X-ray in the hero, 3D / calculator block, "and also" cards, motion ===== */
.hero-xr{ position:relative; }
.hero-xr::before{ content:""; position:absolute; inset:-6% -4%; border-radius:50%; background:radial-gradient(closest-side, rgba(127,220,200,.35), rgba(127,220,200,0) 70%); animation:xrglow 6s ease-in-out infinite alternate; pointer-events:none; }
@keyframes xrglow{ from{ transform:scale(.92); opacity:.6; } to{ transform:scale(1.06); opacity:1; } }
.xrh{ position:relative; background:rgba(255,255,255,.97); border-radius:24px; box-shadow:0 30px 70px rgba(0,0,0,.30); overflow:hidden; }
.xrh .xr-scene{ height:min(56vh, 470px); border-radius:0; background:radial-gradient(ellipse at 50% 42%, #f2f8fb 0%, #ffffff 72%); }
.xrh .xr-sides{ top:10px; left:16px; right:16px; font-size:11.5px; }
.xrh-badge{ position:absolute; right:12px; bottom:12px; font-size:11px; font-weight:800; letter-spacing:.12em; color:#fff; background:linear-gradient(135deg, #275457, #3b8a80); border-radius:999px; padding:5px 11px; }
.xrh-bar{ display:grid; grid-template-columns:40px 1fr 40px; gap:8px; align-items:center; padding:10px 12px 14px; border-top:1px solid var(--line); }
.xrh-bar .xr-cap p{ font-size:15px; line-height:1.35; font-weight:700; color:var(--ink); min-height:2.7em; margin:0 0 6px; }
.xrh-bar .xr-dots{ margin:0; } .xrh-bar .xr-dots i{ cursor:pointer; width:18px; }
.xrh-nav{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:#fff; font-size:22px; font-weight:700; color:var(--primary); cursor:pointer; }
.xrh-nav:hover{ background:var(--soft); }
.hero .hero-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.hero .hero-links a{ color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:7px 13px; font-size:14px; font-weight:700; text-decoration:none; transition:background .15s, transform .15s; }
.hero .hero-links a:hover{ background:rgba(255,255,255,.22); transform:translateY(-2px); }
.calc-more{ margin-top:28px; text-align:center; } .calc-more > p{ font-weight:800; font-size:18px; margin-bottom:12px; }
.calc-more > div{ display:grid; grid-template-columns:1fr 1fr; gap:14px; text-align:left; }
.more-card{ display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px 18px; color:var(--ink); text-decoration:none !important; transition:transform .18s, box-shadow .18s; }
.more-card .ic{ grid-row:1 / 3; font-size:34px; display:inline-block; } .more-card b{ font-size:16.5px; } .more-card small{ color:var(--muted); font-size:14px; }
.more-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); } .more-card:hover .ic{ animation:wiggle .6s ease; }
@keyframes wiggle{ 25%{ transform:rotate(-12deg) scale(1.15); } 60%{ transform:rotate(10deg) scale(1.1); } }
.lab-tile:hover .ic{ display:inline-block; animation:wiggle .6s ease; }
.calc-tabs button.on{ animation:tabpulse 2.4s ease-in-out infinite; } @keyframes tabpulse{ 50%{ box-shadow:0 8px 30px rgba(59,138,128,.32); } }
@media (max-width:900px){ .xrh .xr-scene{ height:360px; } }
@media (max-width:640px){ .calc-more > div{ grid-template-columns:1fr; } .xrh .xr-scene{ height:300px; } .xrh-bar .xr-cap p{ font-size:14px; } }
@media (prefers-reduced-motion: reduce){ .hero-xr::before, .calc-tabs button.on{ animation:none; } }/* ===== v5 (user 09/10/2026): ideas from the best makers' websites ===== */
/* phone action bar, always at hand (Apple / Tesla) */
.mbar{ display:none; }
@media (max-width:760px){
  .mbar{ display:grid; grid-template-columns:1fr 1fr 1fr; position:fixed; left:0; right:0; bottom:0; z-index:70; background:rgba(255,255,255,.97); backdrop-filter:blur(10px); border-top:1px solid var(--line); box-shadow:0 -6px 20px rgba(20,41,43,.12); padding:6px 6px calc(6px + env(safe-area-inset-bottom)); gap:6px; }
  .mbar a{ display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12.5px; font-weight:800; color:var(--primary); text-decoration:none; padding:6px 4px; border-radius:12px; }
  .mbar a span{ font-size:20px; line-height:1; } .mbar a.wa{ background:var(--wa); color:#fff; } .mbar a:first-child{ background:var(--soft); }
  .wa-float{ display:none; } body{ padding-bottom:74px; }
}
/* lab-tested figures on a dark band (SpaceX / Apple style big numbers) */
.nums-band{ background:radial-gradient(ellipse at 20% 0%, #2f6a6e 0%, #14292b 60%); color:#cfe2e1; padding:64px 0; }
.nums-band h2{ color:#fff; } .nums-band .sec-head p{ color:#a9c9c7; }
.nums{ display:grid; grid-template-columns:repeat(3, 1fr); gap:26px 30px; }
.num{ border-top:1px solid rgba(255,255,255,.16); padding-top:14px; }
.num b{ display:block; font-size:clamp(40px, 6vw, 64px); font-weight:800; line-height:1; color:#fff; letter-spacing:-.02em; background:linear-gradient(90deg, #fff, #9fe3cf); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.num span{ display:block; margin-top:8px; font-size:15px; color:#bcd6d4; }
@media (max-width:700px){ .nums{ grid-template-columns:1fr 1fr; } }
/* style presets in the 3D designer (house-style configurators) */
.styles{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.style-chip{ display:flex; flex-direction:column; align-items:center; gap:3px; border:2px solid var(--line); background:#fff; border-radius:14px; padding:9px 4px; font:inherit; font-size:12.5px; font-weight:700; cursor:pointer; transition:transform .15s, border-color .15s; }
.style-chip span{ font-size:22px; } .style-chip:hover{ transform:translateY(-2px); border-color:var(--primary-2); }
@media (max-width:420px){ .styles{ grid-template-columns:repeat(2, 1fr); } }/* units next to the big numbers */
.num b small{ font-size:.42em; font-weight:800; letter-spacing:0; -webkit-text-fill-color:#9fe3cf; }
.num b i{ font-style:normal; }
/* product pages: 3D window + cross-section; glass curtains (user 09/10/2026) */
.prod3d{ background:#fff; border-radius:22px; box-shadow:0 24px 60px rgba(0,0,0,.28); overflow:hidden; color:var(--ink); }
.pr3d{ display:grid; grid-template-columns:1.15fr .85fr; }
.pr3d-scene{ position:relative; min-height:400px; background:radial-gradient(ellipse at 50% 42%, #f2f8fb 0%, #ffffff 72%); }
.pr3d-scene canvas, .cr3d-scene canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.pr3d-tools{ position:absolute; top:10px; left:10px; display:flex; gap:6px; flex-wrap:wrap; z-index:2; }
.pr3d-tools button, .cr3d-btns button{ border:1px solid var(--line); background:rgba(255,255,255,.95); border-radius:999px; padding:7px 13px; font:inherit; font-size:13px; font-weight:800; color:var(--primary); cursor:pointer; }
.pr3d-tools button.on{ background:var(--primary); color:#fff; border-color:var(--primary); }
.pr3d-hint{ position:absolute; left:12px; bottom:10px; font-size:12px; color:var(--muted); pointer-events:none; }
.pr3d-sec{ border-left:1px solid var(--line); padding:12px 10px 8px; background:#fbfdfd; }
.pr3d-sec svg{ width:100%; height:auto; display:block; max-height:430px; }
.pr3d-sec-t{ font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--eco); margin:0 0 4px 4px; }
.cr3d-top{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; padding:12px 12px 8px; }
.cr3d-top .seg button{ font-size:13px; padding:7px 12px; white-space:normal; }
.cr3d-n{ font-size:13px; font-weight:700; } .cr3d-n select{ font:inherit; padding:4px 6px; border-radius:8px; border:1px solid var(--line); }
.cr3d-scene{ position:relative; height:400px; }
.cr3d-btns{ position:absolute; top:10px; right:10px; display:flex; gap:6px; z-index:2; }
.cr3d-range{ display:block; width:calc(100% - 24px); margin:8px 12px 12px; accent-color:var(--primary); }
@media (max-width:1020px){ .pr3d{ grid-template-columns:1fr; } .pr3d-sec{ border-left:0; border-top:1px solid var(--line); } .pr3d-scene{ min-height:340px; } .cr3d-scene{ height:320px; } }