/* JC Construcciones — hormigón, porcelana y rojo JC */
:root {
  --red: #eb0001; --red-d: #b80001; --ink: #141414; --ink-2: #2a2a2a; --mute: #6b6760;
  --conc: #eceae5; --conc-2: #e2dfd8; --porc: #fbfaf8; --brick: #b5532f; --line: rgba(20, 20, 20, .1);
  --wa: #1faa53;
  --r: 14px; --r-s: 8px;
  --f-d: 'Archivo', system-ui, sans-serif; --f-b: 'Instrument Sans', system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lock { overflow: hidden; }
body { margin: 0; font: 400 16px/1.55 var(--f-b); color: var(--ink); background: var(--conc);
  /* juntas de porcelanato 60×60 de fondo */
  background-image: linear-gradient(rgba(20,20,20,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,20,.035) 1px, transparent 1px);
  background-size: 120px 120px; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* tipografía */
.h-xl { font: 800 clamp(48px, 8.4vw, 132px)/.88 var(--f-d); font-stretch: 112%; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h-l { font: 800 clamp(32px, 4.6vw, 64px)/.96 var(--f-d); font-stretch: 108%; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h-xl em, .h-l em { font-style: normal; color: var(--red); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--red); }
.eyebrow.light { color: rgba(255,255,255,.7); }
.eyebrow .dot { display: none; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 34em; margin: 22px 0 0; }
.sub { color: var(--mute); max-width: 38em; margin: 16px 0 0; font-size: 17px; }
.sub small, .note { font-size: 13.5px; color: var(--mute); }
.note { margin-top: 18px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font: 700 15.5px/1 var(--f-b); text-decoration: none; transition: transform .25s var(--ease), background .2s, box-shadow .25s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn.wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,170,83,.7); }
.btn.wa:hover { background: #179447; }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(235,0,1,.6); }
.btn.red:hover { background: var(--red-d); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); transition: transform .4s var(--ease), background .3s, box-shadow .3s; }
.top.solid { background: rgba(236,234,229,.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) { .top.solid { background: rgba(236,234,229,.78); backdrop-filter: blur(14px) saturate(1.3); } }
.top.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--f-d); font-stretch: 110%; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font-weight: 500; }
#nav { display: flex; gap: 26px; }
#nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; position: relative; padding: 6px 0; }
#nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
#nav a:hover::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.btn-lista { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--porc); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; }
.btn-lista svg { width: 20px; height: 20px; }
[data-count] { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 700 11.5px/20px var(--f-b); font-style: normal; text-align: center; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); position: relative; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.menu-btn i:first-child { top: 19px; } .menu-btn i:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--conc) 0 44%, rgba(236,234,229,.86) 62%, rgba(236,234,229,.55)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 80px); align-items: center; width: 100%; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.hero-facts li { padding: 16px 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line); display: grid; }
.hero-facts li:last-child { border: 0; }
.hero-facts b { font: 800 26px/1 var(--f-d); font-stretch: 115%; }
.hero-facts span { font-size: 13px; color: var(--mute); margin-top: 6px; }
.slab { position: relative; margin: 0; justify-self: end; height: min(78svh, 760px); aspect-ratio: 1 / 2; border-radius: 6px; overflow: hidden; background: #2b2a28; box-shadow: 0 50px 80px -40px rgba(20,20,20,.55), 0 0 0 10px var(--porc), 0 0 0 11px var(--line); transform-origin: 50% 100%; will-change: transform; }
.slab video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slab-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, 1fr); }
.slab-tiles i { background: var(--porc); transform-origin: 50% 0; }
.slab figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: end; color: #fff; font: 700 13px/1 var(--f-b); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.slab figcaption span { background: var(--red); padding: 7px 10px; border-radius: 4px; text-shadow: none; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.slab figcaption small { opacity: .85; font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 44px; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--ink); transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: cue 1.6s infinite; }
@keyframes cue { 50% { transform: translateY(12px); opacity: .3; } }

/* OBRA (escena firma) */
.obra { position: relative; height: 340vh; background: #e9e6e1; }
.obra-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#obra-3d, .obra-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obra-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.obra-copy .eyebrow { color: var(--mute); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; width: min(440px, 100%); min-height: 260px; }
.steps li { position: absolute; inset: 0 auto auto 0; background: rgba(251,250,248,.9); padding: 26px 28px 28px; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(20,20,20,.35); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.steps li.on { opacity: 1; transform: none; }
.steps span { font: 800 14px/1 var(--f-d); color: var(--red); letter-spacing: .1em; }
.steps h2 { font: 800 clamp(30px, 3.4vw, 46px)/1 var(--f-d); font-stretch: 110%; letter-spacing: -.03em; margin: 10px 0 12px; }
.steps p { margin: 0; color: var(--ink-2); }
.obra-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 3px; background: rgba(20,20,20,.12); border-radius: 2px; overflow: hidden; }
.obra-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* marcas */
.marcas { background: var(--ink); color: #fff; padding: 22px 0; overflow: hidden; }
.marquee { position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.track { display: flex; gap: 54px; width: max-content; animation: mq 46s linear infinite; will-change: transform; }
.track span { font: 800 clamp(22px, 2.4vw, 32px)/1 var(--f-d); font-stretch: 120%; letter-spacing: -.01em; opacity: .9; white-space: nowrap; display: flex; align-items: center; gap: 54px; }
.track span::after { content: ''; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* secciones */
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec-head { margin-bottom: 44px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }

/* catálogo */
.catalogo { background: var(--porc); }
.cat-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button, .pill { min-height: 44px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--conc); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.chips button[aria-selected="true"], .pill.on { background: var(--ink); color: #fff; }
.search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 99px; background: var(--conc); min-width: min(320px, 100%); }
.search svg { width: 18px; height: 18px; color: var(--mute); }
.search input { min-height: 44px; border: 0; background: none; font: inherit; flex: 1; min-width: 0; outline: none; font-size: 16px; }
.cat-count { color: var(--mute); font-size: 14px; margin: 22px 0 16px; }
.grid-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(20,20,20,.4); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 30px 50px -30px rgba(20,20,20,.45); }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: var(--conc-2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .ph img { transform: scale(1.04); }
.card .st { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.94); font: 700 11.5px/1 var(--f-b); }
.card .st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 3px rgba(31,170,83,.2); }
.card .st.poco::before { background: #e8a10b; box-shadow: 0 0 0 3px rgba(232,161,11,.2); }
.card .st.ingreso::before { background: #2f6fde; box-shadow: 0 0 0 3px rgba(47,111,222,.2); }
.card .tag { position: absolute; right: 10px; top: 10px; padding: 6px 9px; border-radius: 4px; background: var(--red); color: #fff; font: 700 10.5px/1 var(--f-b); letter-spacing: .06em; text-transform: uppercase; }
.card .bd { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .mk { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.card h3 { font: 700 18px/1.15 var(--f-d); font-stretch: 104%; margin: 0; }
.card .meta { font-size: 13.5px; color: var(--mute); }
.card .fmt { display: inline-block; margin-top: 6px; font: 800 13px/1 var(--f-d); background: var(--conc); padding: 6px 8px; border-radius: 4px; width: fit-content; }
.card .add { margin-top: auto; padding-top: 14px; }
.card .add button { width: 100%; min-height: 44px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; }
.card .add button:hover { background: var(--red); }
.card .add button.ok { background: var(--wa); }
.more { margin: 34px auto 0; display: flex; }

/* simulador */
.simulador { background: var(--conc); }
.sim-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.sim-view { position: sticky; top: 90px; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: #e9e6e1; box-shadow: 0 40px 70px -40px rgba(20,20,20,.5); touch-action: pan-y; }
#sim-3d, .sim-fallback { width: 100%; height: 100%; object-fit: cover; }
.sim-hud { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.sim-hud .pill { background: rgba(251,250,248,.92); min-height: 40px; font-size: 13.5px; }
.sim-hud .pill.on { background: var(--ink); }
.sim-label { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sim-label span { background: rgba(20,20,20,.82); color: #fff; padding: 7px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.sim-panel fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.sim-panel legend { font: 700 13px/1 var(--f-b); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button { width: 46px; height: 46px; border-radius: 8px; border: 0; padding: 0; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .2s var(--ease), box-shadow .2s; }
.sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--conc), 0 0 0 4px var(--red); transform: scale(1.06); }
.sw button.paint { background: #efebe5; font-size: 10px; font-weight: 700; color: var(--mute); }
.sw-name { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); min-height: 1.5em; }
.seg { display: inline-flex; background: var(--porc); border-radius: 99px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; background: none; border-radius: 99px; font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--ink); color: #fff; }
.calc { margin-top: 26px; padding: 18px; background: var(--porc); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.calc label { font-weight: 700; font-size: 14px; }
.calc-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.calc-row input { width: 110px; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; font: 700 20px var(--f-d); background: #fff; }
.calc-out { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.calc-out b { font: 800 22px/1 var(--f-d); color: var(--ink); }

/* cotizar + bot */
.cotizar { background: var(--ink); color: #fff; }
.cotizar .h-l { color: #fff; }
.cot-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.pasos { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; }
.pasos li { display: flex; gap: 18px; }
.pasos li > b { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font: 800 18px/1 var(--f-d); }
.pasos h3 { margin: 4px 0 4px; font: 700 20px/1.1 var(--f-d); }
.pasos p { margin: 0; color: rgba(255,255,255,.7); }
.cotizar .note { color: rgba(255,255,255,.55); }

.bot { display: flex; flex-direction: column; background: #efeae2; color: var(--ink); border-radius: 22px; overflow: hidden; height: 600px; max-height: 80svh; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #075e54; color: #fff; }
.bot-head img { width: 40px; height: 40px; border-radius: 50%; }
.bot-head b { display: block; font-size: 15.5px; }
.bot-head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .85; }
.bot-head small i { width: 7px; height: 7px; border-radius: 50%; background: #5df28d; }
.bot-log { list-style: none; margin: 0; padding: 16px 14px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg-in, .msg-out { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: pop .3s var(--ease); }
.msg-in { background: #fff; border-top-left-radius: 3px; align-self: flex-start; }
.msg-out { background: #d9fdd3; border-top-right-radius: 3px; align-self: flex-end; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #999; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { opacity: .3; transform: translateY(-3px); } }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.bot-chips:empty { display: none; }
.bot-chips button { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid #075e54; background: #fff; color: #075e54; font-weight: 600; font-size: 13.5px; }
.bot-form { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; }
.bot-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 99px; border: 0; padding: 0 16px; font: inherit; font-size: 16px; background: #fff; }
.bot-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #075e54; color: #fff; display: grid; place-items: center; }
.bot-form button svg { width: 20px; height: 20px; }
.bot-cards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.bot-card { flex: none; width: 116px; text-align: left; border: 0; background: #f7f5f1; border-radius: 10px; padding: 6px; display: grid; gap: 3px; }
.bot-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.bot-card b { font-size: 12.5px; line-height: 1.15; }
.bot-card small { font-size: 11px; color: var(--mute); }
.bot-card em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--wa); }
.bot-card em.st-poco { color: #c78a06; }
.bot-sum { display: grid; gap: 4px; border-left: 3px solid var(--red); padding-left: 10px; }
.bot-sum span { font-size: 13.5px; }
.bot-send { min-height: 46px; font-size: 14px; }

.bot-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; border: 0; padding: 6px 18px 6px 6px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 16px 34px -12px rgba(0,0,0,.55); transition: transform .3s var(--ease); }
.bot-fab img { width: 48px; height: 48px; border-radius: 50%; }
.bot-fab[aria-expanded="true"] { transform: scale(0); }
.bot-panel { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(400px, calc(100vw - 24px)); opacity: 0; transform: translateY(20px) scale(.97); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.bot-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.bot-panel .bot { height: min(620px, 82svh); }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.bot-panel .x { position: absolute; right: 10px; top: 12px; z-index: 2; }

/* videos */
.videos { background: var(--porc); }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 20px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.reel { position: relative; flex: none; width: clamp(220px, 22vw, 290px); aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: #222; scroll-snap-align: start; color: #fff; }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.reel div { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.reel b { display: block; font: 700 19px/1.1 var(--f-d); }
.reel small { opacity: .85; font-size: 13px; }

/* ambientes */
.amb { columns: 3 260px; column-gap: 16px; }
.amb figure { margin: 0 0 16px; break-inside: avoid; border-radius: var(--r); overflow: hidden; background: var(--conc-2); }
.amb img { width: 100%; height: auto; }

/* entregas */
.entregas { background: var(--conc); }
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.zonas { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zonas li { padding: 10px 14px; border-radius: 99px; background: var(--porc); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; }
.zonas li::before { content: '✓ '; color: var(--wa); font-weight: 800; }
.map-zonas { background: var(--porc); border-radius: var(--r); padding: 18px; box-shadow: 0 30px 60px -40px rgba(20,20,20,.45); }
.map-zonas svg { width: 100%; height: auto; font-family: var(--f-b); }
.rio { fill: none; stroke: #9ec1d9; stroke-width: 18; stroke-linecap: round; opacity: .7; }
.rio-t { font-size: 11px; fill: #4c7896; font-weight: 600; }
.z circle { fill: rgba(235,0,1,.08); stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 4; }
.z text { font-size: 12px; font-weight: 700; text-anchor: middle; fill: var(--ink); }
.pin circle { fill: var(--red); stroke: #fff; stroke-width: 3; }
.pin text { font-size: 11px; font-weight: 800; text-anchor: middle; fill: var(--red); }
.truck-path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 5; }

/* reseñas */
.resenas { background: var(--porc); padding-block: clamp(70px, 9vw, 120px); }
.rating { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.rating > b { font: 800 clamp(64px, 8vw, 104px)/.8 var(--f-d); font-stretch: 115%; letter-spacing: -.04em; }
.stars { color: #f2a900; font-size: 24px; letter-spacing: 2px; }
.rating small { display: block; color: var(--mute); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quotes blockquote { margin: 0; background: var(--conc); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quotes p { margin: 0; font: 500 18px/1.4 var(--f-b); }
.quotes footer { margin-top: auto; font-size: 14px; color: var(--mute); }
.quotes footer b { color: var(--ink); }

/* asesores */
.asesores { background: var(--conc); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--porc); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; min-height: 72px; }
.team a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--wa); }
.team .av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 17px/1 var(--f-d); }
.team b { display: block; font-size: 15.5px; }
.team small { color: var(--mute); font-size: 12.5px; }
.team .go { margin-left: auto; color: var(--wa); font-weight: 800; }

/* ubicación */
.donde { background: var(--porc); }
.donde-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.datos { display: grid; gap: 16px; margin: 28px 0 0; }
.datos div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.datos dt { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.datos dd { margin: 0; font-weight: 600; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--conc-2); box-shadow: 0 30px 60px -40px rgba(20,20,20,.45); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,.75); padding: 70px 0 110px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.foot img { width: 150px; height: auto; margin-bottom: 10px; }
.foot h3 { color: #fff; font: 700 15px/1 var(--f-b); margin: 0 0 12px; }
.foot a { color: #fff; }
.legal { margin-top: 40px; font-size: 13px; color: rgba(255,255,255,.5); }

/* lista */
.lista { width: min(480px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--porc); display: none; flex-direction: column; }
.lista[open] { display: flex; animation: slide .4s var(--ease); }
.lista::backdrop { background: rgba(20,20,20,.5); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.lista-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lista-head h2 { margin: 0; font: 800 24px/1 var(--f-d); }
.lista .x { background: var(--conc); color: var(--ink); }
#lista-items { list-style: none; margin: 0; padding: 10px 20px; flex: 1; overflow-y: auto; }
#lista-items li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
#lista-items li.empty { color: var(--mute); border: 0; }
#lista-items img { width: 54px; height: 68px; object-fit: cover; border-radius: 6px; }
#lista-items li > div { flex: 1; min-width: 0; }
#lista-items b { display: block; font-size: 14.5px; }
#lista-items small { color: var(--mute); font-size: 12.5px; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--conc); font-size: 18px; font-weight: 700; }
.qty input { width: 64px; min-height: 40px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font: 700 16px var(--f-b); }
.qty span { font-size: 13px; color: var(--mute); }
.rm { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; font-size: 22px; color: var(--mute); }
.lista-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.lista-foot label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; }
.lista-foot select { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; font: inherit; font-size: 16px; background: #fff; }
.small { font-size: 13px; color: var(--mute); margin: 0; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.mbar { display: none; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); }
.no-js .rv, .reduced .rv { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  #nav { position: fixed; inset: 0; height: 100dvh; background: var(--conc); flex-direction: column; justify-content: center; padding: 90px var(--pad) 40px; gap: 6px; transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; z-index: -1; }
  #nav.on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .top.solid { backdrop-filter: none !important; background: rgba(236,234,229,.97) !important; }
  .top.solid:has(#nav.on) { background: transparent !important; box-shadow: none; }
  #nav a { font: 800 34px/1.2 var(--f-d); font-stretch: 110%; padding: 6px 0; }
  .menu-btn { display: block; }
  .hide-m { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding: 0; min-height: 100svh; align-items: flex-end; color: #fff; }
  .hero-bg { opacity: 1; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.25) 0, rgba(0,0,0,.05) 30%, rgba(10,10,10,.82) 70%, rgba(10,10,10,.92)); }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 92px; }
  .slab { display: none; }
  .hero .eyebrow { color: rgba(255,255,255,.8); }
  .hero .lead { color: rgba(255,255,255,.85); font-size: 16.5px; }
  .hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
  .hero-facts { border-color: rgba(255,255,255,.2); margin-top: 26px; }
  .hero-facts li { border-color: rgba(255,255,255,.2); padding-right: 14px; margin-right: 14px; }
  .hero-facts span { color: rgba(255,255,255,.7); font-size: 12px; }
  .hero-facts b { font-size: 21px; }
  .scroll-cue { display: none; }
  .top:not(.solid) { color: #fff; }
  .top:not(.solid) .btn-lista { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
  .top:not(.solid) .menu-btn { background: #fff; } .top:not(.solid) .menu-btn i { background: var(--ink); }
  html.lock .top { color: var(--ink); }
  .btn-lista .lbl { display: none; }
  .obra { height: 230svh; }
  .obra-copy { justify-content: flex-end; padding-bottom: 54px; }
  .steps { min-height: 200px; }
  .steps li { padding: 18px 20px 20px; }
  .steps h2 { font-size: 28px; }
  .steps p { font-size: 14.5px; }
  .sim-grid, .cot-grid, .ent-grid, .donde-grid { grid-template-columns: 1fr; }
  .sim-view { position: sticky; top: 64px; aspect-ratio: auto; height: 38svh; z-index: 3; }
  .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid-cat { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .bd { padding: 12px 12px 14px; }
  .card h3 { font-size: 15.5px; }
  .card .meta { font-size: 12.5px; }
  .bot { height: 560px; }
  .bot-fab { bottom: 84px; right: 12px; padding: 4px; }
  .bot-fab span { display: none; }
  .bot-panel { right: 0; left: 0; bottom: 0; width: 100%; }
  .bot-panel .bot { height: 100dvh; max-height: none; border-radius: 0; }
  .mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mbar > * { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(0,0,0,.55); }
  .mbar svg { width: 20px; height: 20px; }
  .mbar, .bot-fab { transition: transform .35s var(--ease), opacity .3s; }
  .bot-visible .mbar { transform: translateY(130%); opacity: 0; pointer-events: none; }
  .bot-visible .bot-fab { transform: scale(0); pointer-events: none; }
  .bot-inline { height: min(560px, calc(100svh - 96px)); }
  .mbar .wa { background: var(--wa); }
  .mbar [data-count] { top: 6px; right: 18px; }
  #toast { bottom: 150px; }
  .datos div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 400px) {
  .h-xl { font-size: 44px; }
  .team { grid-template-columns: 1fr; }
  .hero-facts li:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- servicios ---------- */
.dark-top:not(.solid) { color: #fff; }
.dark-top:not(.solid) .btn-lista { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.dark-top:not(.solid) .menu-btn { background: #fff; } .dark-top:not(.solid) .menu-btn i { background: var(--ink); }
html.lock .dark-top { color: var(--ink); }
.s-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: 130px 0 80px; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.s-hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.s-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,12,12,.92) 0, rgba(12,12,12,.7) 55%, rgba(12,12,12,.35)), linear-gradient(0deg, rgba(12,12,12,.6), transparent 50%); }
.s-hero .h-xl { font-size: clamp(42px, 6.6vw, 104px); }
.s-hero .h-xl em { color: #fff; -webkit-text-stroke: 0; background: linear-gradient(90deg, var(--red), var(--red)) 0 92%/100% .12em no-repeat; }
.s-hero .lead { color: rgba(255,255,255,.82); }
.s-hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serv { background: var(--porc); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(20,20,20,.4); }
.serv-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--conc-2); }
.serv-ph img { width: 100%; height: 100%; object-fit: cover; }
.serv-ph span { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; font: 700 11.5px/1 var(--f-b); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 4px; }
.serv h3 { font: 800 22px/1.1 var(--f-d); font-stretch: 106%; margin: 18px 20px 8px; }
.serv p { margin: 0 20px; color: var(--mute); }
.link-btn { margin: auto 20px 20px; padding: 16px 0 0; border: 0; background: none; font-weight: 700; color: var(--red); text-align: left; min-height: 44px; }
.etapas { background: var(--ink); color: #fff; }
.etapas .h-l { color: #fff; } .etapas .sub { color: rgba(255,255,255,.65); }
.et-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.et-list > li { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.et-list .n { font: 800 44px/1 var(--f-d); font-stretch: 120%; color: var(--red); }
.et-list h3 { margin: 0 0 10px; font: 800 26px/1 var(--f-d); font-stretch: 108%; }
.et-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.et-list ul li { padding: 7px 11px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 13.5px; }
.calc-sec { background: var(--conc); }
.calc-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.tabs { margin-top: 26px; flex-wrap: wrap; }
.calc.big { margin-top: 16px; padding: 22px; }
.calc-fields { display: grid; gap: 12px; }
.calc-fields label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; flex-wrap: wrap; }
.calc-fields span { display: flex; align-items: center; gap: 8px; color: var(--mute); }
.calc-fields input, .calc-fields select { min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; font: 700 18px var(--f-d); background: #fff; }
.calc-fields input { width: 100px; }
.calc-fields select { font: 600 15px var(--f-b); max-width: 100%; flex: 1 1 220px; }
.calc-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 12px; }
.calc-res div { background: var(--conc); border-radius: 10px; padding: 14px; }
.calc-res b { display: block; font: 800 clamp(22px, 2.4vw, 30px)/1 var(--f-d); font-stretch: 110%; }
.calc-res small { color: var(--mute); font-size: 12.5px; }
.calc-fig { margin: 0; border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 4 / 5; background: var(--conc-2); box-shadow: 0 40px 70px -40px rgba(20,20,20,.5); }
.calc-fig img { width: 100%; height: 100%; object-fit: cover; }
.calc-fig figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(20,20,20,.82); color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.feat { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.feat li { color: rgba(255,255,255,.75); padding-left: 0; }
.feat b { color: #fff; display: inline-block; min-width: 72px; font-family: var(--f-d); font-stretch: 110%; }
@media (max-width: 860px) {
  .serv-grid { grid-template-columns: 1fr; }
  .et-list > li { grid-template-columns: 1fr; gap: 12px; }
  .et-list .n { font-size: 32px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-fig { aspect-ratio: 16 / 10; }
  .calc-res { grid-template-columns: 1fr 1fr 1fr; }
  .calc-res div { padding: 10px; }
  .s-hero { min-height: 92svh; padding-bottom: 100px; }
}
