/* ==========================================================
   Eco Hermet — versión «Escaparate»
   Azul marino, azul eléctrico y verde esmeralda sobre blanco.
   ========================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #232825;
  --navy-2: #2f3531;
  --blue: #4f7f17;
  --blue-2: #42690f;
  --green: #8cbd3b;
  --green-2: #7aa92c;
  --on-green: #1b2410;   /* texto sobre el verde del logo (contraste 7:1) */
  --wa: #1fa855;
  --white: #ffffff;
  --soft: #f3f5f0;
  --line: #dfe4da;
  --ink: #1e2320;
  --ink-2: #464c48;
  --ink-3: #6c736e;

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 6px;
  --shadow: 0 18px 40px -22px rgba(35, 40, 37, .45);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--white); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.label { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.label-light { color: #b9db82; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.center-head .label { justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: .96rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.btn .i-wa { fill: var(--wa); }
.btn-lg { min-height: 56px; padding: 0 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 10px 22px -12px rgba(140, 189, 59, .8); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light .i-wa { fill: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-2); }
  .btn-light:hover { background: var(--soft); }
  .btn-outline:hover { background: var(--navy); color: #fff; }
  .btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
}
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Fotos y huecos ---------- */
.media { position: relative; overflow: hidden; background: #e5e9e2; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { visibility: hidden; }
.media.is-missing { background: repeating-linear-gradient(135deg, #e8ece5 0 14px, #dfe4dc 14px 15px); }
.media.is-missing::after {
  content: "Foto pendiente · " attr(data-ph); position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  font: 600 .72rem/1.4 var(--font); color: var(--ink-3); background: #fff; padding: 6px 9px; border-radius: 4px; overflow-wrap: anywhere;
}
.media-dark { background: var(--navy); }
.media-dark.is-missing { background: linear-gradient(135deg, #232825, #2f3631 60%, #3d5a1f); }
.media-dark.is-missing::after { left: auto; right: 16px; bottom: 16px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow 200ms ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(35, 40, 37, .6); }

.topbar { background: var(--navy); color: #d3d9d2; font-size: .86rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.topbar-info li { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info svg { width: 15px; height: 15px; fill: #a8d65e; color: #a8d65e; }
.topbar-info a { text-decoration: none; color: #fff; font-weight: 600; }
.topbar-zone { margin: 0; font-weight: 600; color: #fff; }
.site-header.is-scrolled .topbar { display: none; }

.mainbar { border-bottom: 1px solid var(--line); }
.mainbar-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.brand-mark path { stroke: var(--blue); }
.brand-name { display: grid; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.brand-name small { font-size: .62rem; font-weight: 600; letter-spacing: .16em; color: var(--ink-3); margin-top: 3px; }
.brand-light { color: #fff; }
.brand-light .brand-name small { color: #a6afa7; }

.nav > ul:first-child { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink-2); padding: 10px 14px; border-radius: var(--radius); transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--blue); background: var(--soft); } }
.nav-products-mobile { display: none; }
.mainbar-actions { display: flex; align-items: center; gap: 10px; }

.productbar { background: var(--soft); border-bottom: 1px solid var(--line); }
.productbar ul { display: flex; justify-content: space-between; list-style: none; margin-block: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.productbar ul::-webkit-scrollbar { display: none; }
.productbar a { display: block; padding: 12px 10px; font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; position: relative; }
.productbar a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .productbar a:hover::after { transform: scaleX(1); } }
.site-header.is-scrolled .productbar { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy); transition: transform 200ms var(--ease-out); }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .topbar-info .topbar-hide-sm, .topbar-zone, .productbar { display: none; }
  .mainbar-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.12rem; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 40px); bottom: 0; background: #fff; overflow-y: auto;
    padding: 12px var(--gutter) 96px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .site-header.is-scrolled .nav { top: var(--header-h); }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav > ul:first-child { flex-direction: column; gap: 0; }
  .nav > ul:first-child a { font-size: 1.4rem; font-weight: 700; color: var(--navy); padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-products-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
  .nav-products-mobile a { background: var(--soft); padding: 14px; font-size: .95rem; color: var(--navy); }
}
@media (max-width: 520px) { .topbar-info li:nth-child(2) { display: none; } }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(calc(100svh - 160px), 720px); display: flex; align-items: center; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(35,40,37,.88) 0%, rgba(35,40,37,.6) 45%, rgba(35,40,37,.15) 100%); }
.hero-content { padding: 80px 0 150px; }
.hero-kicker { font-size: 1.05rem; font-weight: 600; color: #a8d65e; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 1.2rem + 4vw, 4.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; max-width: 19ch; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 50ch; color: rgba(255,255,255,.9); margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: enter 700ms var(--ease-out) both; }
  [data-enter] > :nth-child(2) { animation-delay: 60ms; }
  [data-enter] > :nth-child(3) { animation-delay: 120ms; }
  [data-enter] > :nth-child(4) { animation-delay: 180ms; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 600px) { .hero-content { padding: 56px 0 72px; } .hero-actions .btn { width: 100%; } .hero::before { background: rgba(35,40,37,.72); } }

/* ---------- Ventajas ---------- */
.perks { position: relative; z-index: 2; margin-top: -86px; }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.perk { display: flex; gap: 18px; align-items: flex-start; padding: 30px 28px; color: #fff; }
.perk svg { width: 44px; height: 44px; flex: none; color: #fff; }
.perk h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.perk p { margin: 0; font-size: .94rem; color: rgba(255,255,255,.85); }
.perk-blue { background: var(--blue); }
.perk-navy { background: var(--navy); }
.perk-green { background: var(--green); }
@media (max-width: 900px) { .perks { margin-top: 0; } .perks-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; width: 100%; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 8vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-ink { background: var(--navy); color: #fff; }
.section-ink p { color: #c9cfc9; }

/* ---------- Empresa ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-visual { position: relative; padding: 0 0 40px 0; }
.about-photo { aspect-ratio: 4 / 3.6; border-radius: var(--radius); }
.about-badge { position: absolute; right: -16px; bottom: 0; background: var(--blue); color: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 240px; }
.about-badge strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.about-badge span { font-size: .9rem; color: rgba(255,255,255,.88); }
.about-copy > p { color: var(--ink-2); margin: 18px 0 26px; }
.about-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-points li { display: flex; gap: 12px; }
.about-points svg { width: 30px; height: 30px; flex: none; color: var(--green); }
.about-points h3 { font-size: 1rem; margin-bottom: 4px; }
.about-points p { margin: 0; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-badge { right: 12px; } }
@media (max-width: 520px) { .about-points { grid-template-columns: 1fr; } }

/* ---------- Producto central ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.feature-col li { position: relative; padding-top: 18px; }
.feature-col li::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px; background: var(--blue); }
.feature-col h3 { margin-bottom: 6px; color: var(--navy); }
.feature-col p { margin: 0; color: var(--ink-3); font-size: .95rem; }
.feature-col:first-child { text-align: right; }
.feature-col:first-child li::before { left: auto; right: 0; }
.feature-photo { aspect-ratio: 1; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-photo { order: -1; aspect-ratio: 4 / 3; }
  .feature-col:first-child { text-align: left; }
  .feature-col:first-child li::before { left: 0; right: auto; }
  .feature-col { gap: 24px; }
}

/* ---------- Fichas de producto ---------- */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.product-media { aspect-ratio: 4 / 3; }
.product-media img { transition: transform 500ms var(--ease-out); }
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--blue); }
.product-body h3 { color: var(--navy); margin-bottom: 6px; }
.product-body p { color: var(--ink-3); font-size: .94rem; flex: 1; }
.product-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius); background: var(--soft); color: var(--navy); font-weight: 650; font-size: .9rem; text-decoration: none; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.product-link::after { content: "→"; transition: transform 200ms var(--ease-out); }
.product-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .product:hover .product-media img { transform: scale(1.03); }
  .product-link:hover { background: var(--green); color: var(--on-green); }
  .product-link:hover::after { transform: translateX(3px); }
}
@media (max-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .products { grid-template-columns: repeat(2, 1fr); gap: 14px; } .product-body { padding: 16px; } }
@media (max-width: 480px) { .products { grid-template-columns: 1fr; } }

/* ---------- Antes / después ---------- */
.ad-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ad-copy p { margin: 18px 0 28px; max-width: 40ch; }
@media (max-width: 900px) { .ad-grid { grid-template-columns: 1fr; } }
.ba { --pos: 50%; position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer.is-missing { background: #2b302d; }
.ba-before.is-missing { background: #343a36; }
.ba-layer.is-missing::after { background: rgba(255,255,255,.12); color: #c9cfc9; }
.ba-layer:not(.ba-before).is-missing::after { left: auto; right: 12px; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--navy); border-width: 0 0 2px 2px; }
.ba-handle span::before { left: 13px; transform: translateY(-50%) rotate(45deg); }
.ba-handle span::after { right: 13px; transform: translateY(-50%) rotate(-135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:focus-within .ba-handle span { outline: 2px solid #b9db82; outline-offset: 3px; }
.ba-tag { position: absolute; top: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(35,40,37,.75); padding: 7px 10px; border-radius: 4px; pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--green); }

/* ---------- Trabajos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filter { font: inherit; font-size: .92rem; font-weight: 600; min-height: 42px; padding: 0 16px; cursor: pointer; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.filter:active { transform: scale(0.97); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .filter:not(.is-active):hover { border-color: var(--navy); color: var(--navy); } }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px; }
.gallery li[hidden] { display: none; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.g-item { width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); cursor: zoom-in; display: block; }
.g-item img { transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .g-item:hover img { transform: scale(1.03); } }
.g-item.is-missing { cursor: default; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; } .gallery .g-tall { grid-row: span 1; } }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 23, 21, .95); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 200ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 84dvh; width: auto; border-radius: 4px; }
@keyframes lb-in { from { opacity: 0; } }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lb-close:active, .lb-nav:active { transform: scale(0.95); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: calc(50% - 24px); }
.lb-next { right: 16px; top: calc(50% - 24px); }
@media (hover: hover) and (pointer: fine) { .lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); } }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 24px; } }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps li:last-child .step-n { background: var(--green); }
.steps h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.steps p { margin: 0; font-size: .9rem; color: var(--ink-3); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Banda de contacto ---------- */
.cta-band { background: var(--blue); color: #fff; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0; }
.cta-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.88); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-light svg { fill: var(--green); }
@media (max-width: 560px) { .cta-band-actions, .cta-band-actions .btn { width: 100%; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-lead { color: var(--ink-2); margin: 16px 0 0; }
.contact-cita { color: var(--ink-2); margin: 10px 0 0; font-size: .95rem; }
.contact-cita { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; border: 1px solid var(--line, #d9e2ea); border-radius: 12px; background: #f4f8fb; }
.contact-cita p { margin: 0; font-weight: 600; color: var(--navy); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.quote-form { margin-top: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .9rem; font-weight: 650; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease; }
.field textarea { resize: vertical; }
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 127, 23, .16); }
.field.has-error input, .field.has-error select { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .86rem; margin: 0; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--green); }
.field-check .field-error { grid-column: 1 / -1; }
.field-check label { font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.hp { position: absolute; left: -9999px; }

/* Medición en obra (trabajos complejos) */
.measure-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 2px solid var(--blue); border-radius: var(--radius); background: rgba(79, 127, 23, .05); cursor: pointer; }
.measure-card[hidden], .field[hidden] { display: none; }
.measure-card input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.measure-card label { display: grid; gap: 4px; cursor: pointer; }
.measure-card strong { font-size: 1rem; }
.measure-card span { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.measure-card:has(input:checked) { border-color: var(--green); background: rgba(140, 189, 59, .07); }

/* Fotos: cámara o galería */
.field-label { font-size: .9rem; font-weight: 650; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-btn { width: 100%; cursor: pointer; font-size: .95rem; padding: 0 1em; }
.photo-btn:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
/* En ordenador no hay cámara trasera: un único botón de selección */
@media (hover: hover) and (pointer: fine) {
  .photo-actions { grid-template-columns: 1fr; }
  .photo-btn-camera { display: none; }
}
.photo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.photo-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(30, 35, 32, .78); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.photo-remove::before { content: ""; position: absolute; inset: -8px; }
.photo-hint { margin: 0; font-size: .86rem; color: var(--ink-3); }
.photo-hint.is-limit { color: #b3261e; font-weight: 600; }
.form-status { margin: 0; font-weight: 650; min-height: 1.6em; }
.form-status.is-ok { color: var(--blue); }
.form-status.is-error { color: #b3261e; }
.form-hint { margin: 0; font-size: .85rem; color: var(--ink-3); }

.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 16px; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 16px 18px; }
.contact-cards svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 50%; background: var(--navy); fill: #fff; color: #fff; }
.contact-cards svg.i-wa { background: var(--wa); }
.contact-cards span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-cards a { font-weight: 650; text-decoration: none; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .contact-cards a:hover { text-decoration: underline; } }
.map { margin-top: 16px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; font-size: .92rem; color: var(--ink-2); }
.map-consent p { margin: 0; max-width: 30ch; }

/* ---------- Preguntas ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 650; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; background: var(--blue); transition: transform 200ms var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { color: var(--ink-2); padding: 0 20px 18px; margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: #bfc6bf; font-size: .95rem; padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-grid > div > p { margin: 18px 0 0; max-width: 40ch; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; position: relative; padding-bottom: 10px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--green); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #e8ece6; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; text-decoration: underline; } }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 28px; border-top: 1px solid #353c37; font-size: .86rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Acciones rápidas ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(35,40,37,.5); transition: transform 160ms var(--ease-out); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:active { transform: scale(0.95); }
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -16px rgba(35,40,37,.6); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; text-decoration: none; font-weight: 650; font-size: .92rem; color: var(--navy); transition: transform 160ms var(--ease-out); }
  .action-bar a:active { transform: scale(0.97); }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar svg { width: 20px; height: 20px; fill: var(--navy); }
  .action-bar .i-wa { fill: var(--wa); }
  .action-bar-main { background: var(--green); color: var(--on-green) !important; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- Página legal ---------- */
.legal { padding: 56px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.pending { background: #fff6dc; border: 1px solid #e6cf86; color: #5c4a10; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }
.legal-header { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.legal h2 { padding-top: 1.2em; border-top: 1px solid #e5e9e2; scroll-margin-top: 96px; }
.legal h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: .35em; }
.legal-updated { color: #5d645f; font-size: .95rem; margin: -12px 0 20px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.legal-toc a { font-weight: 600; }
.legal .todo { background: #fff6dc; color: #5c4a10; padding: 0 4px; border-radius: 3px; }
.table-scroll { overflow-x: auto; margin: 12px 0 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e5e9e2; }
.legal th { background: var(--soft); }
.legal-footer { border-top: 1px solid #e5e9e2; padding: 24px 0; font-size: .9rem; color: #5d645f; }
.form-legal { font-size: .82rem; line-height: 1.5; color: #5d645f; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; }
}

/* Enlace al catálogo bajo las soluciones */
.products-more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
@media (max-width: 480px) { .products-more .btn { width: 100%; } }

/* ---------- Selector de perfil en la barra superior ---------- */
.topbar-profiles { display: flex; align-items: center; gap: 2px; font-size: .84rem; }
.topbar-profiles span { color: #a7b0a8; margin-right: 6px; }
.topbar-profiles a { color: #fff; text-decoration: none; font-weight: 600; padding: 4px 9px; border-radius: 999px; transition: background-color 200ms ease; }
.topbar-profiles a.is-current { background: rgba(168, 214, 94, .18); color: #a8d65e; }
@media (hover: hover) and (pointer: fine) { .topbar-profiles a:hover { background: rgba(255,255,255,.12); } }
@media (max-width: 1240px) { .topbar-profiles { display: none; } }
.lang-menu { flex: none; display: flex; gap: 2px; margin-left: auto; padding: 2px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; }
.lang-menu a { color: #d3d9d2; text-decoration: none; font-weight: 700; font-size: .76rem; letter-spacing: .04em; padding: 3px 7px; border-radius: 4px; transition: background-color 200ms ease, color 200ms ease; }
.lang-menu a[aria-current="true"] { background: var(--green); color: var(--on-green); }
@media (hover: hover) and (pointer: fine) { .lang-menu a:not([aria-current="true"]):hover { background: rgba(255,255,255,.12); color: #fff; } }
.nav-profiles-title { display: none; }
@media (max-width: 1020px) {
  .nav-profiles-title { display: block; margin: 28px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .nav-profiles-title + .nav-products-mobile { margin-top: 10px; }
}
.nav a[aria-current="page"] { color: var(--blue); }
@media (min-width: 1021px) and (max-width: 1180px) { .nav a { padding: 10px; } }

/* ---------- Portada rotativa ---------- */
.hero-slides { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1200ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active img { animation: hero-zoom 9s ease-out both; }
}
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-ui { position: absolute; left: 0; right: 0; bottom: 112px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; z-index: 1; }
.hero-caption { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 650; font-size: .92rem; text-decoration: none; padding: 7px 12px; border-radius: 999px; background: rgba(35,40,37,.45); backdrop-filter: blur(6px); }
.hero-caption svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { position: relative; width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: background-color 200ms ease, width 300ms var(--ease-out); }
.hero-dots button::before { content: ""; position: absolute; inset: -12px -2px; }
.hero-dots button[aria-current="true"] { background: #fff; width: 40px; }
.hero-pause { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(35,40,37,.45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.hero-pause .i-play { display: none; fill: currentColor; stroke: none; }
.hero-pause.is-paused .i-play { display: block; }
.hero-pause.is-paused .i-pause { display: none; }
@media (max-width: 900px) { .hero-ui { bottom: 18px; } }
@media (max-width: 600px) { .hero-ui { justify-content: space-between; } .hero-caption { font-size: .82rem; } .hero-dots button { width: 16px; } .hero-dots button[aria-current="true"] { width: 26px; } }

/* ---------- ¿Quién eres? (portada) ---------- */
.profiles { padding-bottom: clamp(48px, 6vw, 80px); }
.profile-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.profile-card .media { position: absolute; inset: 0; z-index: -2; }
.profile-card .media img { transition: transform 600ms var(--ease-out); }
.profile-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35,40,37,.05) 35%, rgba(35,40,37,.9)); }
.profile-card-body { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; gap: 6px; }
.profile-card strong { font-size: 1.35rem; line-height: 1.15; }
.profile-card strong::after { content: "→"; margin-left: .3em; display: inline-block; transition: transform 250ms var(--ease-out); }
.profile-card small { font-size: .92rem; color: rgba(255,255,255,.86); }
.profile-card.is-current { box-shadow: 0 0 0 3px var(--green); }
@media (hover: hover) and (pointer: fine) {
  .profile-card:hover .media img { transform: scale(1.05); }
  .profile-card:hover strong::after { transform: translateX(4px); }
}
@media (max-width: 900px) { .profile-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; } .profile-card { aspect-ratio: 4 / 5; } }
@media (max-width: 420px) { .profile-card strong { font-size: 1.1rem; } .profile-card small { font-size: .82rem; } .profile-card-body { left: 14px; right: 14px; bottom: 14px; } }

/* ---------- Galería (portada) ---------- */
.gallery-chips { list-style: none; margin: -16px 0 28px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gallery-chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .gallery-chips a:hover { border-color: var(--navy); color: var(--navy); } }

/* ---------- Perfil en el formulario ---------- */
.perfil-field { border: 0; padding: 0; margin: 0; }
.perfil-field legend { font-size: .9rem; font-weight: 650; padding: 0; margin-bottom: 6px; }
.perfil-options { display: flex; flex-wrap: wrap; gap: 8px; }
.perfil-options label { position: relative; cursor: pointer; }
.perfil-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.perfil-options span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.perfil-options input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.perfil-options input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Pie con cuatro columnas */
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) {
  .hero-content { padding-bottom: 104px; }
  .hero-caption { min-width: 0; flex: 0 1 auto; }
  .hero-dots { flex: none; gap: 4px; }
  .hero-dots button { width: 10px; }
  .hero-dots button[aria-current="true"] { width: 20px; }
  .hero-caption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-ui { gap: 10px; }
}

/* Sobre nosotros (portada) */
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .about-actions .btn { width: 100%; } }

/* ---------- Logo oficial ---------- */
.brand-logo { display: block; height: 40px; width: auto; }
.brand-logo-footer { height: 76px; }
@media (max-width: 1020px) { .brand-logo { height: 32px; } .brand-logo-footer { height: 68px; } }

/* ---------- Texto legible sobre el verde del logo ---------- */
.perk-green, .perk-green h2 { color: var(--on-green); }
.perk-green svg { color: var(--on-green); }
.perk-green p { color: rgba(27, 36, 16, .82); }
.ba-tag-after { color: var(--on-green); }
.steps li:last-child .step-n { color: var(--on-green); }
