/* ===== GAVEJO · Landing única (Soluciones + Maderas y Tableros + Mader Balear) ===== */
:root {
  --bone: #F7F5F1;
  --ink: #17191A;
  --stone: #6E6E6E;
  --wood: #8A5A3B;
  --wood-dark: #74492E;
  --secondary: #EDEAE3;
  --walnut: #3A2E22;
  --walnut-fg: #EDE7DC;
  --border: #DDD8CE;
  --navy: #12284A;          /* azul del logo */
  --wa: #1F7A4D;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --font-mb: "Cormorant Garamond", Georgia, serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 112px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-secondary { background: var(--secondary); }
.rule-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.label {
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--stone); line-height: 1.4;
}
.h2 { font-size: clamp(30px, 4.2vw, 52px); max-width: 22ch; }
.lead { font-size: clamp(18px, 1.6vw, 20px); }
.muted { color: var(--stone); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { max-width: 62ch; }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin: 0 0 32px; }
.group-title h3 { font-size: clamp(24px, 2.6vw, 32px); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; text-align: center;
  padding: 15px 26px; border: 1px solid var(--wood); border-radius: 0;
  background: var(--wood); color: var(--bone);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--light { background: transparent; color: var(--walnut-fg); border-color: var(--walnut-fg); }
.btn--light:hover { background: var(--walnut-fg); color: var(--walnut); border-color: var(--walnut-fg); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--wa { background: transparent; color: var(--wa); border-color: var(--wa); }
.btn--wa:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--wood); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--wood-dark); }
.mini-link { margin-top: 18px; }

/* ===== Cabecera + menú móvil ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(247, 245, 241, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { font-family: var(--font-display); font-size: 14px; text-decoration: none; color: var(--stone); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav .nav-mb { font-family: var(--font-mb); font-size: 17px; font-weight: 600; color: var(--wood); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header .btn { white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); width: 42px; height: 42px; padding: 0; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 20px; height: 20px; margin: auto; display: block; }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bone); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--ink); }
  .header.is-open .nav { display: flex; }
}
@media (max-width: 520px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .header .container { gap: 10px; }
  .header .btn--sm { padding: 9px 11px; font-size: 12.5px; }
  .header .btn .arrow { display: none; }
}
@media (max-width: 360px) { .header .btn--sm { display: none; } }

/* ===== Huecos de foto (se rellenan solos al subir la imagen a assets/img/) ===== */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--secondary); aspect-ratio: 4 / 3; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.is-empty { background: repeating-linear-gradient(135deg, var(--secondary) 0 14px, #E6E1D7 14px 28px); }
.ph.is-empty::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 16px; white-space: pre-line; font-family: var(--font-display); font-size: 12px; letter-spacing: .08em;
  color: var(--stone); border: 1px dashed #C9C1B3;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--portrait { aspect-ratio: 4 / 5; }
/* Carrusel dentro de cada hueco (hasta 3 fotos: nombre.jpg, nombre-2.jpg, nombre-3.jpg) */
.ph .ph-slide { opacity: 0; transition: opacity 1.1s ease; }
.ph .ph-slide.is-active { opacity: 1; }
.ph-dots { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: flex; gap: 8px; }
.ph-dots button { width: 22px; height: 3px; padding: 0; border: 0; background: rgba(247,245,241,.5); cursor: pointer; box-shadow: 0 0 4px rgba(0,0,0,.25); }
.ph-dots button.is-active { background: #fff; }
.ph-dots button::before { content: ""; display: block; height: 18px; margin-top: -8px; }
.ph--sheet { aspect-ratio: 3 / 2; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--bone); overflow: hidden; background: var(--walnut); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Carrusel del hero: fundido entre fotos con un leve zoom lento */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--header-h) + 24px); display: flex; gap: 10px; }
.hero-dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(247,245,241,.4); cursor: pointer; transition: background .3s ease; }
.hero-dots button.is-active { background: var(--bone); }
.hero-dots button::before { content: ""; display: block; height: 20px; margin-top: -9px; } /* zona táctil mayor */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,25,26,.8) 0%, rgba(23,25,26,.4) 50%, rgba(23,25,26,.08) 82%); }
.hero.is-empty::before { content: "FOTO HERO · assets/img/hero.jpg"; position: absolute; top: calc(var(--header-h) + 16px); right: var(--gutter); z-index: 1; font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; color: rgba(237,231,220,.6); }
.hero .container { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 9vh, 104px); padding-top: calc(var(--header-h) + 40px); }
.hero .label { color: rgba(247,245,241,.82); }
.hero h1 { font-size: clamp(36px, 6vw, 78px); max-width: 18ch; margin: 20px 0 24px; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; color: rgba(247,245,241,.92); margin-bottom: 36px; }
.hero .btn--ghost { color: var(--bone); border-color: rgba(247,245,241,.7); }
.hero .btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* Selector "Me interesa…" del hero */
.intent { display: grid; gap: 12px; max-width: 920px; }
.intent-label { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,245,241,.8); }
.intent-options { display: flex; flex-wrap: wrap; gap: 10px; }
.intent-options a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--bone);
  border: 1px solid rgba(247,245,241,.6); padding: 13px 20px; background: rgba(23,25,26,.25);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.intent-options a:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.intent-options .intent-mb { font-family: var(--font-mb); font-size: 19px; font-weight: 600; padding: 10px 20px; border-color: #C99A6E; }
.intent-options .intent-mb:hover { background: #C99A6E; color: var(--walnut); border-color: #C99A6E; }
@media (max-width: 640px) { .intent-options { flex-direction: column; } .intent-options a { justify-content: space-between; } }
.anchor-alias { display: block; height: 0; }

/* ===== Barra de datos ===== */
.facts { background: var(--secondary); border-bottom: 1px solid var(--border); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px 22px 0; font-family: var(--font-display); font-size: 15px; line-height: 1.4; }
.facts li + li { border-left: 1px solid var(--border); padding-left: 20px; }
.facts strong { display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
@media (max-width: 800px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ===== Selector de caminos ===== */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.path { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--border); background: var(--bone); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.path:hover { border-color: var(--ink); }
.path .n { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--wood); line-height: 1; }
.path h3 { font-size: clamp(21px, 2vw, 25px); }
.path p { color: var(--stone); font-size: 16px; }
.path .for { font-family: var(--font-display); font-size: 13px; color: var(--ink); border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.path .go { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--wood); }
.path--mb { background: var(--walnut); border-color: var(--walnut); color: var(--walnut-fg); }
.path--mb:hover { border-color: var(--wood); }
.path--mb h3 { font-family: var(--font-mb); font-weight: 500; font-size: clamp(26px, 2.4vw, 31px); letter-spacing: 0; }
.path--mb p { color: rgba(237,231,220,.82); }
.path--mb .for { color: var(--walnut-fg); border-color: rgba(237,231,220,.2); }
.path--mb .go, .path--mb .n { color: #C99A6E; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }

/* ===== Cabecera de zona ===== */
.zone-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.zone-head .label { grid-column: 1 / -1; }
.zone-head .h2 { max-width: 20ch; }
.zone-head .aside { display: grid; gap: 20px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; }
.subnav a { font-family: var(--font-display); font-size: 14px; text-decoration: none; border: 1px solid var(--border); padding: 7px 14px; }
.subnav a:hover { border-color: var(--ink); }
@media (max-width: 900px) { .zone-head { grid-template-columns: 1fr; } }

/* ===== Soluciones (bloque foto + texto con desplegable) ===== */
.solutions { display: grid; gap: clamp(64px, 8vw, 112px); }
.sol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sol:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sol:nth-child(even) > .ph { order: 2; }
.sol > .ph { position: sticky; top: calc(var(--header-h) + 24px); }
.num { font-family: var(--font-display); font-size: 13px; color: var(--wood); letter-spacing: .12em; }
.sol h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 6px 0 14px; }
.desc { margin-bottom: 22px; }
@media (max-width: 860px) { .sol, .sol:nth-child(even) { grid-template-columns: 1fr; } .sol:nth-child(even) > .ph { order: 0; } .sol > .ph { position: relative; top: 0; } }

.specs { border-top: 1px solid var(--border); margin: 0 0 24px; }
.specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.55; }
.specs dt { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }
.specs dd { margin: 0; }
@media (max-width: 520px) { .specs > div { grid-template-columns: 1fr; gap: 2px; } }

.more { margin-top: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border); }
.more > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--wood); line-height: 1; transition: transform .2s ease; }
.more[open] > summary::after { transform: rotate(45deg); }
.more .inner { display: grid; gap: 18px; padding: 6px 0 28px; }
.more h4 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.more .h2sub { color: var(--stone); }
.bul { display: grid; gap: 8px; }
.bul li { padding-left: 18px; position: relative; }
.bul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 8px; height: 1px; background: var(--wood); }
.quote { font-style: italic; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; border-left: 2px solid var(--wood); padding: 2px 0 2px 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--font-display); font-size: 13px; line-height: 1.4; border: 1px solid var(--border); padding: 5px 10px; }

.compare-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-display); font-size: 14px; border-bottom: 1px solid var(--ink); }
.compare tbody th { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); width: 24%; padding-top: 15px; }

/* ===== Fichas técnicas (Maderas y Tableros) ===== */
.sheets { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.sheet { background: var(--bone); border: 1px solid var(--border); display: flex; flex-direction: column; }
.sheet .body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sheet h4 { font-size: clamp(21px, 2vw, 25px); }
.sheet .specs { margin: 0; }
.sheet .specs > div { grid-template-columns: 110px 1fr; }
.sheet .actions { margin-top: auto; display: grid; gap: 14px; justify-items: start; padding-top: 6px; }
@media (max-width: 860px) { .sheets { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sheet .specs > div { grid-template-columns: 1fr; } }
.group + .group { margin-top: clamp(56px, 7vw, 88px); }

/* Servicio de taller */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--ink); }
.service .intro { display: grid; gap: 18px; }
.service h3 { font-size: clamp(24px, 2.6vw, 32px); }
.service ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--border); }
.service li { font-family: var(--font-display); font-size: 17px; padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; }
.service li span { color: var(--wood); font-size: 13px; padding-top: 3px; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .service ul { grid-template-columns: 1fr; } }

/* ===== Zona Mader Balear & Fusta Antiga® (identidad propia dentro de la landing) ===== */
.mb-intro { display: grid; grid-template-columns: 1fr 1fr; background: var(--walnut); color: var(--walnut-fg); }
.mb-intro .text { padding: var(--section-y) clamp(24px, 6vw, 96px) var(--section-y) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.mb-intro .label { color: rgba(237,231,220,.65); }
.mb-intro h2 { font-family: var(--font-mb); font-weight: 500; letter-spacing: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; max-width: 14ch; }
.mb-intro p { color: rgba(237,231,220,.9); max-width: 48ch; }
.mb-intro .motto { font-family: var(--font-display); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: rgba(237,231,220,.7); }
.mb-intro .ph { aspect-ratio: auto; min-height: 420px; background: #2E241A; }
.mb-intro .ph.is-empty { background: repeating-linear-gradient(135deg, #33281D 0 14px, #2E241A 14px 28px); }
.mb-intro .ph.is-empty::after { color: rgba(237,231,220,.55); border-color: rgba(237,231,220,.2); }
@media (max-width: 860px) { .mb-intro { grid-template-columns: 1fr; } .mb-intro .ph { min-height: 0; aspect-ratio: 4 / 3; } .mb-intro .text { padding: var(--section-y) var(--gutter); } }

.mb-zone {
  --bone: #F3EEE6; --secondary: #E8E0D3; --border: #D6CCBC; --wood: #7A4A2E; --wood-dark: #5E3820;
  background: var(--bone);
}
.mb-zone .bg-secondary { background: var(--secondary); }
.mb-zone h2, .mb-zone h3, .mb-zone h4 { font-family: var(--font-mb); font-weight: 500; letter-spacing: 0; }
.mb-zone .h2 { font-size: clamp(34px, 4.6vw, 58px); }
.mb-zone .card h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; }
.mb-zone .more h4 { font-size: clamp(26px, 2.6vw, 32px); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px); }
.card .ph { margin-bottom: 22px; }
.card .num { display: block; margin-bottom: 4px; }
.card h3 { margin-bottom: 6px; }
.card .small-sub { font-family: var(--font-display); font-size: 14px; color: var(--stone); margin-bottom: 14px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* ===== Obras ===== */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.work .ph { margin-bottom: 20px; aspect-ratio: 4 / 5; }
.work .ph img { transition: transform .6s ease; }
.work:hover .ph img { transform: scale(1.025); }
.work h3 { font-size: 22px; margin: 6px 0 8px; }
.work--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.work--featured .ph { aspect-ratio: 3 / 2; margin-bottom: 0; }
.work--featured h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.work--featured .work-text { display: grid; gap: 4px; justify-items: start; }
.work--featured .btn { margin-top: 20px; }
@media (max-width: 900px) { .works { grid-template-columns: 1fr; } .work--featured { grid-template-columns: 1fr; } }

/* ===== Cómo trabajamos ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps .n { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--wood); line-height: 1; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ===== Empresa ===== */
.company { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.company img { width: 100%; max-width: 340px; height: auto; }
.company .text { display: grid; gap: 16px; }
.company h2 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 800px) { .company { grid-template-columns: 1fr; } .company img { max-width: 260px; } }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact .h2 { margin: 18px 0 18px; }
.contact .claim { margin-top: 14px; font-style: italic; font-size: clamp(19px, 1.8vw, 22px); color: var(--wood); }
.contact .review { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--border); background: var(--secondary); display: grid; gap: 6px; }
.contact .review .stars { color: var(--wood); letter-spacing: .15em; font-size: 15px; }
.contact .review blockquote { margin: 0; font-style: italic; font-size: 18px; }
.contact .review figcaption { font-family: var(--font-display); font-size: 13px; color: var(--stone); }
.contact-line { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 18px; font-family: var(--font-display); font-size: 14px; color: var(--stone); line-height: 1.6; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field > label, .field > legend { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--stone); padding: 0; }
.field input[type="text"], .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  padding: 10px 0; width: 100%; -webkit-appearance: none; appearance: none; transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #9b968d; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wood); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; color: var(--ink); border: 1px solid var(--border); padding: 8px 14px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--wood); background: rgba(138,90,59,.08); }
.choices input { width: 16px; height: 16px; accent-color: var(--wood); margin: 0; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--stone); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--wood); flex: none; }
.submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.success { display: none; border-left: 2px solid var(--wood); padding: 8px 0 8px 24px; }
.success:focus { outline: none; }
.success h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.is-sent .form { display: none; }
.is-sent .success { display: block; }

/* ===== Pie ===== */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { font-size: 16px; margin: 0 0 10px; }
/* Bloque de empresa dentro del pie: logo + información */
.footer .company { grid-template-columns: auto minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.footer .company .logo { height: 130px; width: auto; max-width: none; }
.footer .company h2 { font-size: clamp(24px, 2.6vw, 32px); }
.footer .company .lead { color: var(--ink); max-width: 60ch; }
.footer .company .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.footer .company .tags li { color: var(--ink); font-size: 13px; }
@media (max-width: 800px) { .footer .company { grid-template-columns: 1fr; } .footer .company .logo { height: 100px; } }
.footer p, .footer li { font-size: 15px; color: var(--stone); line-height: 1.6; }
.footer ul { margin-top: 10px; display: grid; gap: 2px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .mb-name { font-family: var(--font-mb); font-size: 19px; font-weight: 600; color: var(--wood); }
.footer .legal { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-size: 13px; color: var(--stone); line-height: 1.6; }
.footer .legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr; } }

/* Marcador visible de datos pendientes (quitar la clase al rellenarlos) */
.pending { background: rgba(138, 90, 59, 0.14); padding: 0 4px; font-size: .92em; }

/* Botón flotante WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ===== Mejoras v1 (auditoría web-mejorar) ===== */

/* Huecos sin foto: se muestran rayados con el nombre del archivo (decisión del cliente: así sabe qué falta). */

/* Interlocutor (foto personal) */
.person { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.person .ph { max-width: 340px; width: 100%; aspect-ratio: 340 / 440; } /* mismo tamaño que la foto de juancarlosgamez.com */
.person .ph img { filter: grayscale(0.2) brightness(0.88); } /* mismo filtro que juancarlosgamez.com */
.person-text { display: grid; gap: 18px; }
.person-text p:not(.label):not(.lead) { max-width: 58ch; }
@media (max-width: 800px) { .person { grid-template-columns: 1fr; } .person .ph { max-width: 320px; } }

/* Formulario de mínima fricción */
.form--min .opt { text-transform: none; letter-spacing: 0; color: #9b968d; font-size: 12px; }
.form-legal { grid-column: 1 / -1; font-size: 13px; color: var(--stone); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 5. Botón "volver arriba" (encima del de WhatsApp) */
.to-top {
  position: fixed; right: 24px; bottom: 84px; z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bone); color: var(--ink); border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0,0,0,.12); opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* 5. Barra de zonas fija en móvil (aparece al bajar del inicio) */
.zonebar { display: none; }
@media (max-width: 1080px) {
  html { scroll-padding-top: calc(var(--header-h) + 46px); }
  .zonebar {
    display: flex; position: fixed; z-index: 45; left: 0; right: 0; top: var(--header-h);
    background: rgba(247,245,241,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
    transform: translateY(-110%); transition: transform .25s ease; visibility: hidden;
  }
  .zonebar::-webkit-scrollbar { display: none; }
  .zonebar.is-visible { transform: none; visibility: visible; }
  .header.is-open ~ .zonebar { visibility: hidden; }
  .zonebar a { flex: 1 0 auto; text-align: center; padding: 12px 14px; font-family: var(--font-display); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--stone); white-space: nowrap; border-bottom: 2px solid transparent; }
  .zonebar a.is-active { color: var(--ink); border-bottom-color: var(--wood); }
}

/* 6. Fichas de Maderas y Tableros: carrusel horizontal en móvil (ahorra ~8 pantallas de scroll) */
@media (max-width: 700px) {
  .sheets {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; scrollbar-width: thin;
  }
  .sheet { flex: 0 0 86%; scroll-snap-align: start; }
  .group-title::after { content: "Deslice para ver más →"; display: block; width: 100%; font-family: var(--font-display); font-size: 12px; color: var(--wood); }
}

/* 1. Aviso del envío por correo */
.success .note { font-size: 15px; color: var(--stone); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
