/* Carpintería a medida · rediseño 2026 (propuesta de Casa Roble, 28 oct 2026).
   Mismo sistema visual que la tienda: crema cálido, nogal, oliva profundo y latón; Cormorant Garamond + Jost.
   Animaciones sólo con transform/opacity y apagadas con prefers-reduced-motion. */
:root {
  --ivory: #FAF8F4; --cream: #F3EEE6; --sand: #EEE7DC; --stone: #E2D9CC; --ink: #1B1712; --ink2: #3D362F; --muted: #7F756A;
  --olive: #3F4733; --olive-d: #2E3426; --walnut: #5A3B28; --walnut-d: #2B1F17; --gold: #A8853F; --gold-l: #D9BF8A;
  --serif: "Cormorant Garamond", Baskerville, Georgia, serif; --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r: 2px; --ease: cubic-bezier(.2,.7,.2,1); --max: 1360px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; }
h2 em, h1 em { font-style: italic; color: var(--walnut); }
.eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.lead { font-size: 16px; line-height: 1.7; color: var(--ink2); font-weight: 300; }
.ar { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r); font: inherit; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover .ar, .lnk:hover .ar, .alt a:hover .ar { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--olive); color: var(--cream); } .btn.dark:hover { background: var(--olive-d); }
.btn.light { background: var(--cream); color: var(--ink); } .btn.light:hover { background: #fff; }
.lnk { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink2); padding-bottom: 4px; border-bottom: 1px solid var(--stone); transition: color .2s, border-color .2s; }
.lnk:hover { color: var(--ink); border-color: var(--gold); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.sec-sub { max-width: 380px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; font-weight: 300; }

/* encabezado */
.top { position: sticky; top: 0; z-index: 40; background: rgba(250,248,244,.95); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--stone); transition: box-shadow .3s; }
.top.bajo { box-shadow: 0 8px 24px rgba(27,23,18,.07); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { flex: none; } .logo img { height: 34px; width: auto; }
.links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin: 0 auto; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink2); }
.links a { position: relative; padding: 8px 0; text-decoration: none; white-space: nowrap; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a:hover::after, .links a.on::after { transform: scaleX(1); } .links a.on { color: var(--ink); font-weight: 500; }
.acts { display: flex; align-items: center; gap: 10px; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--olive); color: var(--cream); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .2s; }
.wa-btn:hover { background: var(--olive-d); } .wa-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.menu-btn:hover { background: var(--sand); }

/* portada */
.hero { display: grid; grid-template-columns: minmax(380px, .9fr) 1.35fr; background: var(--cream); }
.hero-tx { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px 64px max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
.hero h1 { font-size: clamp(44px, 4.8vw, 72px); line-height: 1; letter-spacing: -.01em; margin: 4px 0 20px; }
.hero .lead { max-width: 430px; margin: 0 0 30px; }
.ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.senales { list-style: none; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--stone); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.senales li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.35; color: var(--ink2); }
.senales svg { width: 30px; height: 30px; fill: none; stroke: var(--walnut); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.hero-tx > * { animation: sube .65s var(--ease) both; } .hero-tx > :nth-child(2) { animation-delay: .08s; } .hero-tx > :nth-child(3) { animation-delay: .16s; } .hero-tx > :nth-child(4) { animation-delay: .24s; } .hero-tx > :nth-child(5) { animation-delay: .34s; }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-foto { position: relative; margin: 0; min-height: 560px; overflow: hidden; }
.hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: foto 1.4s var(--ease) both; }
@keyframes foto { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero-foto figcaption, .proc-fotos figcaption, .b2b-foto figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #fff; background: rgba(27,23,18,.45); padding: 6px 10px; border-radius: var(--r); }

/* franja de confianza */
.confia { border-bottom: 1px solid var(--stone); }
.confia-in { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 24px; padding-bottom: 24px; }
.confia-in > div { display: flex; align-items: flex-start; gap: 14px; padding: 2px 22px; border-left: 1px solid var(--stone); } .confia-in > div:first-child { border-left: 0; padding-left: 0; }
.confia svg { width: 26px; height: 26px; flex: none; margin-top: 2px; fill: none; stroke: var(--walnut); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.confia p { margin: 0; display: flex; flex-direction: column; gap: 3px; } .confia b { font-family: var(--serif); font-size: 19px; font-weight: 500; } .confia span { font-size: 12.5px; color: var(--muted); font-weight: 300; line-height: 1.45; }

/* portafolio */
.port { padding-top: 88px; }
.port-big { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.pcard { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--sand); color: #fff; text-decoration: none; }
.pcard:first-child { aspect-ratio: auto; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,23,18,0) 50%, rgba(27,23,18,.62)); transition: opacity .4s; }
.pcard:hover img { transform: scale(1.035); filter: contrast(1.04); }
.pc-tx { position: absolute; z-index: 1; left: 24px; right: 70px; bottom: 22px; display: flex; flex-direction: column; gap: 4px; }
.pc-ey { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.pcard b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.pc-z { font-size: 12.5px; opacity: .85; }
.pc-ar { position: absolute; z-index: 1; right: 22px; bottom: 24px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; display: grid; place-items: center; transition: background .2s, color .2s; }
.pcard:hover .pc-ar { background: #fff; color: var(--ink); }
.port-mas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 14px; }
.pmini { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.pm-f { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.pm-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pmini:hover img { transform: scale(1.04); }
.pm-tx b { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; } .pm-tx small { font-size: 12px; color: var(--muted); }

/* servicios */
.srv { padding-top: 96px; }
.srv-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 22px; }
.sv { display: flex; flex-direction: column; gap: 16px; }
.sv-f { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.sv-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); } .sv-f:hover img { transform: scale(1.04); }
.sv h3 { font-size: 26px; } .sv p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; font-weight: 300; }

/* proceso */
.proc { margin-top: 100px; padding: 88px 0; background: var(--walnut-d); color: var(--cream); }
.proc .eyebrow { color: var(--gold-l); } .proc h2 em { color: var(--gold-l); } .proc .sec-sub { color: #CBBFAE; }
.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.etapas li { position: relative; padding: 0 26px 0 0; }
.etapas li::before { content: ""; position: absolute; left: 62px; right: 18px; top: 24px; height: 1px; background: rgba(217,191,138,.35); transform-origin: left; }
.etapas li:last-child::before { display: none; }
.etapas i { display: block; font-style: normal; font-size: 11px; letter-spacing: .2em; color: var(--gold-l); margin-bottom: 14px; position: absolute; left: 0; top: -22px; }
.etapas svg { width: 48px; height: 48px; padding: 10px; border: 1px solid rgba(217,191,138,.5); border-radius: 50%; fill: none; stroke: var(--gold-l); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.etapas b { display: block; margin: 20px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.etapas p { margin: 0; color: #CBBFAE; font-size: 14px; line-height: 1.6; font-weight: 300; }
.rv-on .etapas li { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv-on .etapas li::before { transform: scaleX(0); transition: transform .7s var(--ease); }
.etapas.in li { opacity: 1; transform: none; } .etapas.in li::before { transform: scaleX(1); }
.etapas.in li:nth-child(2) { transition-delay: .12s; } .etapas.in li:nth-child(3) { transition-delay: .24s; } .etapas.in li:nth-child(4) { transition-delay: .36s; }
.etapas.in li:nth-child(1)::before { transition-delay: .3s; } .etapas.in li:nth-child(2)::before { transition-delay: .42s; } .etapas.in li:nth-child(3)::before { transition-delay: .54s; }
.proc-fotos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 56px; }
.proc-fotos figure { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); }
.proc-fotos img { width: 100%; height: 100%; object-fit: cover; }
.det-pasos { margin-top: 34px; border-top: 1px solid rgba(217,191,138,.25); }
.det-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 0; border: 0; background: none; color: var(--cream); font: inherit; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.det-btn span { font-size: 22px; color: var(--gold-l); }
.siete { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 26px; animation: sube .4s var(--ease) both; }
.siete li { font-size: 13.5px; line-height: 1.55; color: #CBBFAE; font-weight: 300; }
.siete b { display: block; color: var(--cream); font-weight: 500; font-size: 14px; margin-bottom: 4px; } .siete small { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); }

/* maderas */
.mad { padding-top: 100px; }
.mad-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mad-g figure { margin: 0; }
.mu { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); outline: 1px solid transparent; outline-offset: 4px; transition: outline-color .3s; }
.mu img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mad-g figure:hover .mu { outline-color: var(--gold); } .mad-g figure:hover img { transform: scale(1.04); }
.mad-g figcaption, .acab-g figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--muted); font-weight: 300; }
.mad-g figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); }
.acab { margin-top: 56px; display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding-top: 36px; border-top: 1px solid var(--stone); }
.acab-t b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; margin-bottom: 8px; } .acab-t span { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }
.acab-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acab-g figure { margin: 0; } .acab-g img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.acab-g figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.nota { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* profesionales */
.b2b { margin-top: 100px; background: var(--olive); color: var(--cream); }
.b2b-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.b2b .eyebrow { color: var(--gold-l); } .b2b h2 em { color: var(--gold-l); } .b2b .lead { color: #D8D4C6; margin: 18px 0 26px; }
.b2b ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.b2b li { font-size: 13.5px; line-height: 1.55; color: #D8D4C6; font-weight: 300; padding-left: 16px; border-left: 1px solid rgba(217,191,138,.5); }
.b2b li b { display: block; color: #fff; font-weight: 500; font-size: 14.5px; margin-bottom: 3px; }
.b2b-foto { position: relative; margin: 0 0 40px; }
.b2b-foto > img:first-child { width: 100%; border-radius: var(--r); }
.b2b-foto .sobre { position: absolute; right: -18px; bottom: -40px; width: 48%; border: 6px solid var(--olive); border-radius: var(--r); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.b2b-foto figcaption { left: 16px; bottom: 16px; }

/* cotización */
.cot { padding: 100px 0 40px; }
.cot-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.cot-tx .lead { margin: 18px 0 28px; }
.alt { display: flex; flex-direction: column; gap: 4px; }
.alt a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone); text-decoration: none; font-size: 15px; color: var(--ink2); transition: color .2s; } .alt a:hover { color: var(--ink); }
.cot-form { background: #fff; border: 1px solid var(--stone); border-radius: var(--r); padding: 34px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--stone); border-radius: var(--r); background: var(--ivory); font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); transition: border-color .2s; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--walnut); }
.lab-f { display: block; margin-bottom: 9px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { flex-direction: row; text-transform: none; letter-spacing: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--stone); border-radius: 999px; font-size: 13.5px; color: var(--ink2); transition: background .2s, border-color .2s, color .2s; }
.chips input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.aviso { margin: 0; color: #8a3a28; font-size: 13.5px; }
.envio { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; } .envio span { flex: 1; min-width: 220px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* preguntas */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; padding-top: 60px; padding-bottom: 100px; }
.faq .lead { margin-top: 18px; }
.acc > div { border-bottom: 1px solid var(--stone); } .acc > div:first-child { border-top: 1px solid var(--stone); }
.acc h3 { font-size: inherit; }
.acc button { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; padding: 22px 0; border: 0; background: none; font-family: var(--serif); font-size: 22px; text-align: left; color: var(--ink); cursor: pointer; }
.acc button span { position: relative; width: 14px; height: 14px; flex: none; }
.acc button span::before, .acc button span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transition: transform .25s var(--ease); }
.acc button span::after { transform: rotate(90deg); } .acc button[aria-expanded="true"] span::after { transform: rotate(0); }
.acc [role=region] p { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: var(--ink2); font-weight: 300; max-width: 620px; }

/* pie */
.foot { background: var(--cream); border-top: 1px solid var(--stone); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink2); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 34px; }
.foot h4 { margin: 0 0 14px; font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.foot a, .foot span { display: block; line-height: 2; text-decoration: none; color: var(--ink2); font-weight: 300; } .foot a:hover { color: var(--walnut); }
.foot-b img { height: 36px; width: auto; margin-bottom: 14px; } .foot-b p { margin: 0; max-width: 280px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.legal { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--stone); font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.wa-flot { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .2s; }
.wa-flot:hover { transform: scale(1.06); } .wa-flot svg { width: 28px; height: 28px; }

/* galería */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1fr 380px; background: rgba(20,17,13,.96); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.lb.on { opacity: 1; visibility: visible; transition: opacity .25s; }
.lb-img { position: relative; display: grid; place-items: center; padding: 40px 70px; min-height: 0; }
.lb-img img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: var(--r); }
.lb-img .x { position: absolute; top: 16px; left: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.lb-ar { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-ar:hover, .lb-img .x:hover { background: rgba(255,255,255,.22); } .lb-ar.prev { left: 14px; } .lb-ar.next { right: 14px; }
.lb-n { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.lb-side { background: var(--cream); padding: 40px 32px; overflow-y: auto; }
.lb-side h3 { font-size: 34px; line-height: 1.1; margin-bottom: 18px; }
.lb-side dl { margin: 0 0 22px; } .lb-side dt { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; } .lb-side dd { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink2); font-weight: 300; }
.lb-th { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 24px; }
.lb-th img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r); cursor: pointer; opacity: .6; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s; }
.lb-th img:hover { opacity: .9; } .lb-th img.on { opacity: 1; outline-color: var(--gold); }
.lb-side .btn { width: 100%; background: var(--olive); color: var(--cream); } .lb-side .btn:hover { background: var(--olive-d); }

/* aparición al bajar (una sola vez) */
.rv-on .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .rv.d1 { transition-delay: .08s; } .rv-on .rv.d2 { transition-delay: .16s; } .rv-on .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-tx > *, .hero-foto img, .siete { animation: none; }
  .pcard img, .pm-f img, .sv-f img, .mu img, .ar, .lb { transition: none; }
  .pcard:hover img, .pmini:hover img, .sv-f:hover img, .mad-g figure:hover img { transform: none; }
}

/* tableta */
@media (max-width: 1180px) {
  .links { display: none; }
  .menu-btn { display: inline-grid; }
  .top.menu-on .links { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 32px 18px; background: var(--ivory); border-bottom: 1px solid var(--stone); box-shadow: 0 18px 30px rgba(27,23,18,.1); font-size: 13px; animation: sube .2s var(--ease); }
  .top.menu-on .links a { padding: 14px 0; border-bottom: 1px solid var(--stone); } .top.menu-on .links a::after { display: none; }
  .acts { margin-left: auto; }
  .hero { grid-template-columns: 1fr 1.1fr; }
  .hero-tx { padding: 48px 36px; }
  .senales { grid-template-columns: 1fr; gap: 12px; } .senales li { flex-direction: row; align-items: center; } .senales svg { width: 26px; height: 26px; }
  .port-mas { grid-template-columns: repeat(3, 1fr); }
  .siete { grid-template-columns: repeat(2, 1fr); }
  .acab { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 900px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top.menu-on .links { padding-left: 20px; padding-right: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-foto { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
  .hero-tx { padding: 30px 20px 34px; }
  .hero h1 { font-size: 40px; }
  .ctas .btn { width: 100%; } .ctas .lnk { margin: 2px auto 0; }
  .senales { margin-top: 28px; padding-top: 20px; }
  .confia-in { grid-template-columns: 1fr 1fr; gap: 18px 0; } .confia-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .port, .srv, .mad { padding-top: 64px; }
  .port-big { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .port-big::-webkit-scrollbar { display: none; }
  .pcard, .pcard:first-child { flex: 0 0 82%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .port-mas { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .srv-g { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .sv h3 { font-size: 21px; }
  .proc { margin-top: 70px; padding: 64px 0; }
  .etapas { grid-template-columns: 1fr 1fr; gap: 40px 18px; } .etapas li::before { display: none; } .etapas li { padding-right: 0; } .etapas b { font-size: 21px; }
  .proc-fotos { grid-template-columns: 1fr 1fr; } .proc-fotos figure:first-child { grid-column: 1 / -1; }
  .mad-g, .acab-g { grid-template-columns: 1fr 1fr; }
  .b2b { margin-top: 70px; } .b2b-in { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; } .b2b-foto { order: -1; } .b2b-foto .sobre { right: 10px; bottom: -30px; width: 46%; }
  .cot { padding-top: 70px; } .cot-in, .faq { grid-template-columns: 1fr; gap: 34px; }
  .cot-form { padding: 22px 18px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .lb { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-img { padding: 60px 10px 40px; } .lb-ar { width: 40px; height: 40px; margin-top: -20px; } .lb-ar.prev { left: 6px; } .lb-ar.next { right: 6px; }
  .lb-img img { max-height: 58vh; }
  .lb-side { padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 42vh; } .lb-side h3 { font-size: 26px; } .lb-th { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .wa-btn span { display: none; } .wa-btn { width: 40px; padding: 0; justify-content: center; }
  .logo img { height: 30px; }
  .port-big { margin: 0 -16px; padding: 0 16px 6px; }
  .confia-in { grid-template-columns: 1fr; gap: 14px; } .confia-in > div { border-left: 0; padding: 0; }
  .srv-g { grid-template-columns: 1fr; }
  .etapas { grid-template-columns: 1fr; gap: 30px; }
  .siete { grid-template-columns: 1fr; }
  .b2b ul { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .envio .btn { width: 100%; }
  .acc button { font-size: 19px; }
  .foot-in { grid-template-columns: 1fr; }
}

/* botón Entrebosques (igual que en la tienda) */
.nav-eb{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 26px 0 16px;border-radius:999px;border:1px solid rgba(238,230,217,.4);font:400 14px "EB Titulos","Marcellus",serif;letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;text-decoration:none;color:#EEE6D9;background:radial-gradient(120% 170% at 15% 0%,#8E987C 0%,#757F64 42%,#5B6450 100%);box-shadow:0 3px 12px rgba(70,78,60,.35),inset 0 1px 0 rgba(255,255,255,.16);transition:transform .25s,box-shadow .25s}
.nav-eb[hidden]{display:none}
.nav-eb::after{content:"";position:absolute;top:-20%;left:-60%;width:40%;height:140%;z-index:-1;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(238,230,217,.32) 50%,transparent);transform:skewX(-20deg);animation:eb-luz 6s ease-in-out 2s infinite}
.nav-eb::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;animation:eb-halo 6s ease-out 2.4s infinite}
.nav-eb:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(70,78,60,.45),0 0 0 4px rgba(117,127,100,.2),inset 0 1px 0 rgba(255,255,255,.16)}
.eb-hoja{width:22px;height:22px;flex:none;display:block;transform-origin:6% 94%;animation:eb-brota 1.7s cubic-bezier(.45,0,.15,1) .3s both,eb-viento 5.5s ease-in-out 2.4s infinite}
.nav-eb:hover .eb-hoja{animation:eb-viento 1.5s ease-in-out infinite}
@keyframes eb-brota{from{clip-path:circle(0% at 4% 96%);transform:rotate(-12deg) scale(.85)}to{clip-path:circle(150% at 4% 96%);transform:none}}
@keyframes eb-viento{0%,100%{transform:rotate(0)}30%{transform:rotate(-5deg) skewX(3deg)}62%{transform:rotate(2deg)}}
@keyframes eb-luz{0%,55%{left:-60%}85%,100%{left:130%}}
@keyframes eb-halo{0%{box-shadow:0 0 0 0 rgba(117,127,100,.5)}40%,100%{box-shadow:0 0 0 12px rgba(117,127,100,0)}}
@media (prefers-reduced-motion:reduce){.nav-eb::after,.nav-eb::before{display:none}.eb-hoja{animation:none}}
@font-face{font-family:"EB Titulos";src:url(/entrebosques/marca/eb-titulos.woff2?v=1) format("woff2");font-display:swap}
@media (max-width:900px){.nav-eb{padding:0;width:44px;justify-content:center}.nav-eb span{display:none}}
@media (max-width:1180px){.nav-eb{padding:0;width:42px;justify-content:center}.nav-eb span{display:none}}

/* ajustes tras revisar capturas */
img { height: auto; }
.etapas { margin-top: 10px; }
.etapas i { position: static; margin-bottom: 12px; }
.etapas li::before { top: 52px; }
.proc-fotos figure { aspect-ratio: auto; height: clamp(200px, 22vw, 300px); }
.b2b-foto > img:first-child { aspect-ratio: 4 / 3; object-fit: cover; object-position: 64% 50%; }
.legal { margin: 38px auto 0; }
@media (max-width: 900px) {
  .proc-fotos figure { height: 150px; } .proc-fotos figure:first-child { height: 230px; }
  .b2b-foto figcaption { display: none; }
}

/* portada: carrusel de proyectos */
.hero-foto .hs-sl { position: absolute; inset: 0; margin: 0; cursor: zoom-in; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.hero-foto .hs-sl.on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hero-foto .hs-sl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: none; transform: scale(1.04); transition: transform 6.5s ease-out; }
.hero-foto .hs-sl.on img { transform: scale(1); }
.hero-foto .hs-sl:first-child.on img { animation: foto 1.4s var(--ease) both; }
.hc-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(250,248,244,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(27,23,18,.16); transition: background .2s, transform .2s; }
.hc-nav:hover { background: #fff; transform: scale(1.06); } .hc-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hc-nav.prev { left: 18px; } .hc-nav.next { right: 18px; }
.hc-dots { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: flex; gap: 8px; }
.hc-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.6); cursor: pointer; transition: width .3s var(--ease), background .2s; }
.hc-dots button.on { width: 26px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-foto .hs-sl, .hero-foto .hs-sl img { transition: none; transform: none; } }
@media (max-width: 900px) { .hc-nav { width: 38px; height: 38px; margin-top: -19px; } .hc-nav.prev { left: 10px; } .hc-nav.next { right: 10px; } .hc-dots { right: 50%; transform: translateX(50%); bottom: 14px; } .hero-foto .hs-sl figcaption { bottom: 34px; } }

/* banda hacia la Galería de obras (28 oct 2026) */
.go-banda { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; margin-top: 40px; border-radius: 3px; overflow: hidden; background: #16120E; color: var(--cream); text-decoration: none; }
.go-banda-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; min-height: 240px; }
.go-banda-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; opacity: .9; }
.go-banda:hover .go-banda-fotos img { transform: scale(1.06); opacity: 1; }
.go-banda-fotos img:nth-child(2) { transition-delay: .05s; } .go-banda-fotos img:nth-child(3) { transition-delay: .1s; } .go-banda-fotos img:nth-child(4) { transition-delay: .15s; }
.go-banda-tx { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 34px 40px; }
.go-banda-tx .eyebrow { margin: 0; color: var(--gold-l); }
.go-banda-tx b { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; } .go-banda-tx b em { color: var(--gold-l); }
.go-banda-sub { font-size: 14px; line-height: 1.6; font-weight: 300; color: rgba(243,238,230,.72); }
.go-banda .lnk { align-self: flex-start; margin-top: 6px; color: var(--cream); border-color: rgba(243,238,230,.35); }
.go-banda:hover .lnk { border-color: var(--gold-l); } .go-banda:hover .lnk .ar { transform: translateX(4px); }
@media (max-width: 900px) { .go-banda { grid-template-columns: 1fr; } .go-banda-fotos { min-height: 150px; grid-template-columns: repeat(4, 1fr); } .go-banda-tx { padding: 26px 22px 28px; } }
@media (prefers-reduced-motion: reduce) { .go-banda-fotos img { transition: none; } }

/* Entre Bosques · Ciudad Mayakoba: branding nuevo (29 oct 2026) */
.nav-eb{border-color:rgba(228,207,142,.55);background:radial-gradient(120% 170% at 15% 0%,#8E987C 0%,#757F64 45%,#5B6450 100%);box-shadow:0 3px 12px rgba(70,78,60,.35),inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 1px rgba(228,207,142,.12)}.nav-eb::after{background:linear-gradient(100deg,transparent,rgba(228,207,142,.38) 50%,transparent)}.nav-eb:hover{box-shadow:0 8px 22px rgba(70,78,60,.45),0 0 0 4px rgba(201,169,98,.22),inset 0 1px 0 rgba(255,255,255,.18)}

/* Botón "Tienda" dorado, igual que en la portada (/inicio/): oro con un reflejo que lo cruza cada 3.4 s (Alejandro, 2 nov 2026: mismo diseño en todas las páginas). */
.links a.nav-tienda{isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;min-height:40px;padding:0 22px;border-radius:999px;font-weight:600;letter-spacing:.12em;color:#2A1C06;
  background:linear-gradient(135deg,#7E5A1C 0%,#D9B463 28%,#F6E3A8 50%,#D9B463 72%,#7E5A1C 100%);
  box-shadow:0 3px 12px rgba(126,90,28,.35),inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(0,0,0,.18);transition:transform .25s,box-shadow .25s}
.links a.nav-tienda::after{content:"";position:absolute;top:-10%;bottom:auto;left:-70%;right:auto;width:45%;height:120%;z-index:-1;pointer-events:none;
  background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.9) 50%,transparent 100%);transform:skewX(-22deg);transform-origin:center;animation:tienda-brillo 3.4s ease-in-out infinite}
.links a.nav-tienda:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(126,90,28,.45),inset 0 1px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(0,0,0,.18)}
.links a.nav-tienda:hover::after{transform:skewX(-22deg)}
@keyframes tienda-brillo{0%,50%{left:-70%}80%,100%{left:135%}}
.top.menu-on .links a.nav-tienda{padding:0 22px;border-bottom:0;align-self:flex-start;margin:8px 0}
.top.menu-on .links a.nav-tienda::after{display:block}
@media (prefers-reduced-motion:reduce){.links a.nav-tienda::after{animation:none;display:none}}
/* En laptops (1181–1599 px) la barra no cabía (WhatsApp quedaba fuera de la pantalla): se ocultan los atajos a secciones
   de la misma página; las secciones siguen ahí al bajar. Abajo de 1181 px todo va en el menú. */
@media (min-width:1181px) and (max-width:1599px){.links a[href="#proceso"],.links a[href="#maderas"],.links a[href="#profesionales"],.links a[href="/carpinteria/#proceso"]{display:none}}
