/* Montsana — hoja de estilos
   Mobile-first: base para móvil, media queries min-width para pantallas mayores. */

/* Fuente autoalojada (sin Google Fonts: no se transfieren IPs a terceros).
   Archivo variable (de @fontsource-variable/archivo), ejes de peso y anchura. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-wdth.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fff;
  --paper-2: #efeeea;    /* gris piedra para secciones alternas */
  --line: #dddcd7;
  --muted: #686864;
  --text: #3b3b38;
  --ink: #222220;
  --white: #fff;

  /* Verde del logo */
  --accent: #1b5e32;
  --accent-ink: #134425;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 4.5rem;
  --bar-h: 3.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* Titulares algo estrechos, como un rótulo de obra */
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0 0 0.5em; font-weight: 650; font-stretch: 88%; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); font-weight: 700; line-height: 1.02; }
h2 { font-size: clamp(1.65rem, 1.35rem + 1.3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-stretch: 94%; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; }
.skip-link:focus { top: 1rem; }

.container { max-width: 75rem; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section--alt { background: var(--paper-2); }
.section--tight { padding-top: 0; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; color: var(--text); max-width: 38rem; }

/* Cabecera de sección: título y, debajo, una frase que explica qué hay */
.sec-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); display: grid; gap: 0.6rem; max-width: 42rem; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }
.sec-head a { justify-self: start; }

/* Botones y enlaces */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  border: 1px solid var(--accent); border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: var(--white);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.more { font-weight: 600; color: var(--accent); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.more:hover { color: var(--accent-ink); text-decoration-thickness: 2px; }

/* Barra superior (escritorio) */
.topbar { display: none; background: var(--paper-2); color: var(--muted); font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; }
.topbar p { margin: 0; display: flex; gap: 1.5rem; }
.topbar a { color: var(--ink); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
@media (min-width: 64em) { .topbar { display: block; } }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand__logo { height: 2.9rem; width: auto; }
.brand__name { font-weight: 750; letter-spacing: 0.2em; font-size: 1.02rem; }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 0.25rem; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--paper); padding: 0.5rem var(--gutter) 2rem; overflow-y: auto; }
.nav-open .site-nav { display: block; }
.nav-open body { overflow: hidden; }
.site-nav ul { list-style: none; }
.site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.4rem; font-weight: 650; font-stretch: 88%; color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-phone { margin-top: 1.5rem; }
.site-nav .nav-phone a { border: 0; font-size: 1rem; font-weight: 400; font-stretch: 100%; color: var(--muted); padding: 0.25rem 0; }
.site-nav .nav-phone strong { color: var(--ink); font-size: 1.3rem; display: block; }

@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; padding: 0; background: none; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: 1.75rem; }
  .site-nav a { padding: 0.3rem 0; border: 0; font-size: 0.98rem; font-weight: 500; font-stretch: 100%; color: var(--text); text-underline-offset: 0.45em; text-decoration-thickness: 1px; }
  .site-nav a:hover { color: var(--ink); text-decoration: underline; }
  .site-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
  .site-nav .nav-phone { display: none; }
  .site-nav .nav-cta a { background: var(--accent); color: var(--white); padding: 0.6rem 1.1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
  .site-nav .nav-cta a:hover { background: var(--accent-ink); color: var(--white); }
}

/* Barra de contacto inferior (móvil) */
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--ink); color: var(--white); padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; height: var(--bar-h); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.mobile-bar a + a { border-left: 1px solid #44443f; }
.mobile-bar svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 64em) { body { padding-bottom: 0; } .mobile-bar { display: none; } }

/* Portada */
.intro { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.intro__grid { display: grid; gap: 1.25rem 4rem; }
.intro h1 { max-width: 19ch; margin: 0; }
.intro__side { display: grid; gap: 1.25rem; align-content: end; }
.intro__side p { margin: 0; }
@media (min-width: 60em) { .intro__grid { grid-template-columns: 1.55fr 1fr; align-items: end; } }

/* Fotos de obra bajo el titular, a su tamaño (no se estiran a toda la pantalla) */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.strip figure { margin: 0; display: grid; grid-template-rows: 1fr auto; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 0.45rem; }
.strip__a { grid-column: 1 / -1; }
.strip__a img { aspect-ratio: 4 / 3; }
.strip__b img, .strip__c img { aspect-ratio: 3 / 4; }
@media (min-width: 48em) {
  .strip { grid-template-columns: 2fr 1fr 1fr; gap: 0.75rem; }
  .strip__a { grid-column: auto; }
  .strip img { aspect-ratio: auto; height: clamp(18rem, 40vw, 31rem); }
  .strip__a img, .strip__b img, .strip__c img { aspect-ratio: auto; }
}

/* Datos de confianza (texto del cliente) */
.facts { display: grid; gap: 1.25rem; list-style: none; padding-block: 2.25rem 0; }
.facts strong { display: block; color: var(--ink); font-weight: 650; }
.facts span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 48em) { .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Servicios de la portada: lista con foto, nombre y qué incluye */
.index { list-style: none; display: grid; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem 1.25rem; align-items: center; padding: 1rem 0; text-decoration: none; }
.index__img { display: block; }
.index img, .index .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.index h3 { margin: 0; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); }
.index p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }
.index .arrow { display: none; }
.index a:hover h3 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.ph.ph--icon { background: var(--paper-2); color: var(--accent); padding: 0.5rem; }
.ph.ph--icon svg { width: 2.4rem; height: 2.4rem; opacity: 1; }
@media (min-width: 48em) {
  .index { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .index a { grid-template-columns: 10rem 1fr; padding: 1.25rem 0; }
}

/* Dos columnas */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Proceso (antes / diseño / después): es una secuencia real, por eso va numerado */
.process { display: grid; gap: 2.25rem; list-style: none; counter-reset: paso; }
.process li { counter-increment: paso; }
.process figure { margin: 0 0 1rem; }
.process img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.process figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.process h3::before { content: counter(paso) ". "; color: var(--accent); }
.process p { margin: 0; color: var(--muted); }
@media (min-width: 48em) { .process { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Galería de obras */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; list-style: none; }
.gallery__item { margin: 0; }
.gallery__fig { margin: 0; }
.gallery__item a { display: block; overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery__item img, .gallery__item .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .2s; }
.gallery__item a:hover img { opacity: .88; }
.gallery__item figcaption { font-size: 0.85rem; color: var(--muted); padding-top: 0.4rem; }
.gallery.is-collapsed .gallery__item.is-extra { display: none; }
.gallery-more { margin-top: 1.5rem; }
@media (min-width: 48em) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 72em) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 72em) { .gallery--home { grid-template-columns: repeat(3, 1fr); } .gallery--home .gallery__item img { aspect-ratio: 1; } }

/* Hueco de foto pendiente */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; aspect-ratio: 4 / 3; background: var(--line); color: var(--muted); font-size: 0.8rem; text-align: center; padding: 1rem; }
.ph svg { width: 1.8rem; height: 1.8rem; opacity: .55; }

/* Visor de fotos */
.lightbox { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: #1a1a18; color: var(--white); }
.lightbox::backdrop { background: #1a1a18; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem var(--gutter); font-size: 0.85rem; color: #a8a8a2; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__caption { padding: 0.75rem var(--gutter) calc(1rem + env(safe-area-inset-bottom, 0px)); text-align: center; color: #d0d0ca; font-size: 0.9rem; min-height: 3rem; margin: 0; }
.lightbox button { background: none; border: 0; color: var(--white); cursor: pointer; width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; }
.lightbox button svg { width: 1.5rem; height: 1.5rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4) !important; }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }

/* Antes / después */
.ba { position: relative; overflow: hidden; background: var(--line); user-select: none; --pos: 50%; }
.ba__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before .ba__img { height: 100%; }
.ba__label { position: absolute; top: 0.6rem; background: var(--white); color: var(--ink); font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: var(--radius); pointer-events: none; }
.ba__label--before { left: 0.6rem; }
.ba__label--after { right: 0.6rem; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222220' stroke-width='2'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 1.2rem no-repeat; box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__range:focus-visible + .ba__handle { outline: 2px solid var(--accent); }
.ba-wrap { max-width: 50rem; }
.ba-wrap figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

/* Lista de lo que incluye un servicio */
.checklist { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.checklist strong { color: var(--ink); display: block; font-weight: 650; }
.checklist span { color: var(--muted); }
@media (min-width: 56em) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Testimonios */
.testimonials { display: grid; gap: 1.5rem; list-style: none; }
.testimonial { margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.testimonial blockquote { margin: 0 0 0.75rem; font-size: 1.15rem; color: var(--ink); }
.testimonial figcaption { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 60em) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

/* Bloque de contacto / zona */
.contact-block { display: grid; gap: 2.5rem; }
@media (min-width: 60em) { .contact-block { grid-template-columns: 1.2fr 1fr; } }
.big-phone { display: inline-block; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; font-stretch: 88%; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1.1; margin: 0.25rem 0 1rem; }
.big-phone:hover { color: var(--accent); }
.data { margin: 0; display: grid; gap: 1rem; }
.data dt { font-size: 0.9rem; color: var(--muted); }
.data dd { margin: 0; color: var(--ink); font-weight: 500; }
.data a { text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.areas { color: var(--text); }

/* Migas */
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* Cabecera de páginas internas */
.page-top { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-top__grid { display: grid; gap: 1.25rem 4rem; }
.page-top h1 { margin: 0; }
@media (min-width: 60em) { .page-top__grid { grid-template-columns: 1.1fr 1fr; align-items: end; } }
/* Foto bajo el título de los servicios, dentro del ancho de la página */
.page-band { max-width: 75rem; margin: clamp(1.5rem, 4vw, 2.5rem) auto 0; padding-inline: var(--gutter); }
.page-band img { width: 100%; height: clamp(13rem, 36vw, 28rem); object-fit: cover; }

/* Formulario */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; background: var(--white); border: 1px solid #c9c8c2; border-radius: var(--radius); font-size: 1rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea, .check.is-invalid input { border-color: #a4372b; outline-color: #a4372b; }
.field__error { color: #a4372b; font-size: 0.85rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; flex-wrap: wrap; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--accent); }
.check > span:not(.field__error) { flex: 1; }
.check .field__error { flex-basis: 100%; }
.check a, .legal a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.form__status { padding: 0.9rem 1rem; border-left: 3px solid; margin: 0; }
.form__status--ok { background: #eaf2ec; border-color: var(--accent); color: var(--accent-ink); }
.form__status--error { background: #f6e9e6; border-color: #a4372b; color: #6e231b; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Textos legales */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose a { color: var(--accent); }
.todo { background: #fff3c4; color: #5a4a00; padding: 0 0.2em; }

/* Pie */
.site-footer { background: var(--ink); color: #b4b4ae; padding-block: 3rem 1.5rem; font-size: 0.93rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand { color: var(--white); }
.site-footer .brand__logo { height: 3.4rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h2 { font-size: 0.95rem; color: var(--white); font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin-bottom: 0.6rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.35rem; }
.footer-grid address { font-style: normal; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #44443f; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.notfound { min-height: 55vh; display: grid; align-content: center; }

/* Filtros de la página de obras */
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.filters button { min-height: 2.75rem; padding: 0.5rem 1rem; border: 1px solid #c9c8c2; border-radius: var(--radius); background: var(--white); cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 600; }
.filters .n { color: var(--muted); font-weight: 400; margin-left: 0.3rem; }
.filters button[aria-pressed="true"] .n { color: #c9c8c2; }
.gallery__item.is-filtered { display: none; }

/* Diseño 3D frente a obra terminada */
.compare { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.compare figure { margin: 0; }
.compare img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.compare figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
@media (min-width: 48em) { .compare { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56em) { .checklist--short { grid-template-columns: repeat(3, 1fr); } }

/* Opciones en línea del formulario */
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.choice legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.4rem; padding: 0; width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; font-weight: 400; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }

/* WhatsApp flotante (solo escritorio; en móvil está la barra inferior) */
.wa-float { display: none; }
@media (min-width: 64em) {
  .wa-float { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 999px; background: #1f6f43; color: var(--white); font-weight: 600; font-size: 0.95rem; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
  .wa-float:hover { background: #185a36; }
  .wa-float svg { width: 1.2rem; height: 1.2rem; }
}

/* Obras con ficha (tarjetas) */
.projects { list-style: none; display: grid; gap: 1.75rem 1rem; }
@media (min-width: 40em) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project-card a { display: block; text-decoration: none; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); margin-bottom: 0.75rem; transition: opacity .2s; }
.project-card a:hover img { opacity: .88; }
.project-card h3 { margin: 0 0 0.15rem; font-size: 1.25rem; }
.project-card a:hover h3 { color: var(--accent); }
.project-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Ficha de obra */
.obra-meta { margin: 0.75rem 0 0; color: var(--muted); font-weight: 500; }
.obra-texto { margin-bottom: 1.5rem; }
.obra-texto p:last-child { margin-bottom: 0; }
.gallery__fig { position: relative; }
.gallery__tag { position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1; background: var(--white); color: var(--ink); font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: var(--radius); pointer-events: none; }
.gallery--obra .gallery__item img { aspect-ratio: 4 / 3; }
@media (min-width: 72em) { .gallery--obra { grid-template-columns: repeat(3, 1fr); } }
