/* ── Base común de las tres webs de hormigón (cada sitio redefine las variables en sitios/<sitio>.css) ── */
:root {
  --tinta: #111418;
  --tinta-2: #2a2f36;
  --texto: #3b4048;
  --texto-suave: #5d636c;
  --fondo: #ffffff;
  --suave: #f5f3ef;
  --borde: #e3e0da;
  --acento: #d42a1f;
  --acento-texto: #b82218;
  --sobre-acento: #ffffff;
  --wa: #0f7a40;
  --f-tit: system-ui, sans-serif;
  --f-txt: system-ui, sans-serif;
  --peso-tit: 800;
  --tracking-tit: -0.02em;
  --radio: 10px;
  --radio-g: 16px;
  --sombra: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .07);
  --ancho: 1200px;
  --margen: clamp(16px, 4vw, 32px);
  --alto-cab: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-cab) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 400 1.0625rem/1.65 var(--f-txt);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento-texto); text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--f-tit); font-weight: var(--peso-tit); color: var(--tinta); line-height: 1.12; letter-spacing: var(--tracking-tit); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.75rem); }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.35rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tinta); color: #fff; padding: .6em 1em; border-radius: var(--radio); }
.saltar:focus { left: 8px; }
.envoltura { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }
.ico { display: inline-grid; width: 1.15em; height: 1.15em; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ── botones ── */
.botones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .8em 1.35em; border-radius: var(--radio); border: 2px solid transparent;
  font: 700 1rem/1.1 var(--f-txt); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico-flecha { transition: transform .15s ease; }
.btn:hover .ico-flecha { transform: translateX(3px); }
.btn--acento { background: var(--acento); color: var(--sobre-acento); }
.btn--acento:hover { filter: brightness(1.06); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0b6434; }
.btn--linea { border-color: currentColor; color: var(--tinta); background: transparent; }
.btn--linea:hover { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.btn--claro { background: #fff; color: var(--tinta); }
.btn--claro:hover { background: #f1f1f1; }
.btn--bloque { width: 100%; }

/* ── cabecera ── */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--fondo-cab, #fff); border-bottom: 1px solid var(--borde-cab, var(--borde)); }
.cabecera__in { display: flex; align-items: center; gap: 24px; min-height: var(--alto-cab); }
.logo { display: block; flex: none; }
.logo img { height: var(--alto-logo, 52px); width: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu > a, .desplegable > summary {
  display: inline-flex; align-items: center; gap: 4px; padding: .55em .8em; border-radius: 8px;
  color: var(--color-menu, var(--tinta)); text-decoration: none; font-weight: 700; font-size: .98rem; cursor: pointer; list-style: none;
}
.desplegable > summary::-webkit-details-marker { display: none; }
.menu > a:hover, .desplegable > summary:hover, .menu > a[aria-current="page"] { color: var(--acento-menu, var(--acento-texto)); }
.desplegable { position: relative; }
.desplegable .ico-abajo { width: 16px; height: 16px; transition: transform .2s; }
.desplegable[open] .ico-abajo { transform: rotate(180deg); }
.desplegable__panel {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 250px; z-index: 5;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-g); box-shadow: var(--sombra); padding: 8px;
  display: grid;
}
.desplegable__panel a { display: block; padding: .55em .8em; border-radius: 8px; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .95rem; }
.desplegable__panel a:hover { background: var(--suave); color: var(--acento-texto); }
.cabecera__acciones { display: flex; gap: 10px; align-items: center; }
.cabecera__tel { font-weight: 800; color: var(--color-menu, var(--tinta)); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; white-space: nowrap; }
.boton-menu { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--color-menu, var(--tinta)); cursor: pointer; padding: 10px; }
.boton-menu svg { width: 100%; height: 100%; }

@media (max-width: 1020px) {
  :root { --alto-cab: 68px; }
  .boton-menu { display: block; }
  .cabecera__acciones .btn, .cabecera__tel { display: none; }
  .menu {
    position: fixed; inset: var(--alto-cab) 0 0 0; z-index: 49; margin: 0; padding: 16px var(--margen) 120px;
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-abierto .menu { visibility: visible; opacity: 1; transform: none; }
  .menu-abierto { overflow: hidden; }
  .menu > a, .desplegable > summary { font-size: 1.15rem; padding: .8em .4em; border-bottom: 1px solid var(--borde); border-radius: 0; color: var(--tinta); justify-content: space-between; width: 100%; }
  .desplegable__panel { position: static; translate: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .menu .menu__movil { display: grid; gap: 10px; margin-top: 18px; }
}
.menu__movil { display: none; }

/* ── portada ── */
.portada { position: relative; isolation: isolate; color: #fff; display: grid; align-items: end; min-height: clamp(560px, 88vh, 860px); padding-block: clamp(110px, 14vw, 160px) clamp(40px, 6vw, 72px); overflow: hidden; }
.portada__foto { position: absolute; inset: 0; z-index: -2; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--velo-portada, linear-gradient(180deg, rgb(0 0 0 / .25), rgb(0 0 0 / .72))); }
.portada h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.portada__texto { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: rgb(255 255 255 / .92); margin-bottom: 1.6em; }
.portada .eyebrow { color: var(--eyebrow-portada, #fff); }

.portadilla { background: var(--fondo-portadilla, var(--tinta)); color: #fff; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); position: relative; isolation: isolate; }
.portadilla--foto { background: var(--tinta) var(--foto) center / cover no-repeat; }
.portadilla--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / .78), rgb(0 0 0 / .45)); }
.portadilla h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 22ch; }
.portadilla__sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 60ch; color: rgb(255 255 255 / .88); }
.portadilla .botones { margin-top: 1.4em; }
.portadilla .eyebrow { color: var(--eyebrow-oscuro, #fff); }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .9rem; color: rgb(255 255 255 / .7); }
.migas li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.migas a { color: rgb(255 255 255 / .85); text-decoration: none; }
.migas a:hover { color: #fff; text-decoration: underline; }

/* ── bandas y cabezas de sección ── */
.banda { padding-block: clamp(56px, 8vw, 104px); }
.banda--suave { background: var(--suave); }
.cabeza { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.cabeza--centro { margin-inline: auto; text-align: center; }
.cabeza .intro { font-size: 1.1rem; color: var(--texto-suave); }
.cabeza .intro p:last-child { margin-bottom: 0; }
.eyebrow { font: 800 .8rem/1.2 var(--f-txt); letter-spacing: .16em; text-transform: uppercase; color: var(--acento-texto); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--acento); border-radius: 2px; flex: none; }
.cabeza--centro .eyebrow { justify-content: center; }

/* ── rejillas y tarjetas ── */
.rejilla { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 900px) { .rejilla--3 { grid-template-columns: repeat(3, 1fr); } .rejilla--4 { grid-template-columns: repeat(4, 1fr); } .rejilla--2 { grid-template-columns: repeat(2, 1fr); } }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-g); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.tarjeta:has(a):hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta__enlace { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.tarjeta__foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--suave); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.03); }
.tarjeta__cuerpo { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; flex: 1; }
.tarjeta__cuerpo p { color: var(--texto-suave); font-size: 1rem; }
.tarjeta__cuerpo p:last-of-type { margin-bottom: 0; }
.tarjeta__mas { margin-top: auto; padding-top: 14px; font-weight: 800; color: var(--acento-texto); display: inline-flex; align-items: center; gap: .4em; }
.rejilla--blog .tarjeta h3 { font-size: 1.15rem; }

/* ── pasos ── */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.paso { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-g); padding: clamp(20px, 2.4vw, 30px); position: relative; }
.paso__n { display: block; font: 900 2.6rem/1 var(--f-tit); color: var(--acento); margin-bottom: 14px; letter-spacing: -.03em; }
.paso p { margin: 0; font-size: 1rem; color: var(--texto-suave); }
.banda--suave .paso, .banda--suave .tarjeta { border-color: transparent; }

/* ── listas ── */
.ventajas, .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ventajas li, .checklist li { display: flex; gap: 12px; align-items: flex-start; }
.ventajas .ico, .checklist .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--acento); color: var(--sobre-acento); margin-top: 1px; }
.ventajas strong { color: var(--tinta); display: block; font-size: 1.05rem; }
.ventajas p { margin: .25em 0 0; color: var(--texto-suave); font-size: .98rem; }
.ventajas--rejilla { gap: 24px 32px; }
@media (min-width: 760px) { .ventajas--rejilla { grid-template-columns: repeat(2, 1fr); } }
.checklist { margin-block: 1.2em; }
.checklist li span { font-weight: 600; color: var(--tinta); }

/* ── cifras ── */
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.cifra { display: grid; gap: 4px; }
.cifra__n { font: 900 clamp(2.2rem, 4vw, 3.2rem)/1 var(--f-tit); color: var(--acento); letter-spacing: -.03em; }
.cifra__t { font-weight: 600; color: var(--texto-suave); }
.banda--cifras { background: var(--tinta); }
.banda--cifras .cifra__t, .banda--cifras h2 { color: #fff; }
.banda--cifras .cifras { text-align: center; }

/* ── dividido ── */
.dividido { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .dividido { grid-template-columns: 1.05fr .95fr; } .dividido--invertido > :first-child { order: 2; } }
.dividido__foto img { width: 100%; border-radius: var(--radio-g); aspect-ratio: 4 / 3.4; object-fit: cover; }
.dividido .cabeza { margin-bottom: 20px; }

/* ── prosa ── */
.prosa { max-width: 70ch; }
.prosa--ancha { max-width: 80ch; }
.prosa h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 1.6em; }
.prosa h3 { margin-top: 1.4em; }
.prosa ul, .prosa ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prosa li { margin-bottom: .4em; }
.prosa li::marker { color: var(--acento); }
.prosa li > p { margin: 0; }
.prosa strong { color: var(--tinta); }
.prosa table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .98rem; }
.prosa th, .prosa td { border-bottom: 1px solid var(--borde); padding: .6em .5em; text-align: left; }
.prosa > :first-child { margin-top: 0; }
.prosa--legal { max-width: 80ch; font-size: 1rem; }
.prosa--legal h2 { font-size: 1.35rem; }

/* ── galería ── */
.galeria { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.galeria__item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radio); background: var(--suave); }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.galeria__item:hover img { transform: scale(1.04); }
.galeria--mini { grid-template-columns: repeat(2, 1fr); }
.galeria--completa { display: block; columns: 4 240px; column-gap: 10px; }
.galeria--completa .galeria__item { aspect-ratio: auto; margin-bottom: 10px; break-inside: avoid; }
.galeria--completa .galeria__item img { height: auto; }
.galeria__pie { text-align: center; margin: 28px 0 0; }
.dividido--galeria { align-items: start; }

/* ── visor de fotos ── */
.visor { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visor::backdrop { background: rgb(8 9 11 / .92); }
.visor[open] { display: grid; place-items: center; }
.visor img { max-width: min(94vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 6px; }
.visor button { position: fixed; border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 52px; height: 52px; border-radius: 50%; padding: 13px; cursor: pointer; }
.visor button:hover { background: rgb(255 255 255 / .24); }
.visor button svg { width: 100%; height: 100%; }
.visor__cerrar { top: 16px; right: 16px; }
.visor__ant { left: 16px; top: 50%; translate: 0 -50%; }
.visor__ant svg { transform: rotate(180deg); }
.visor__sig { right: 16px; top: 50%; translate: 0 -50%; }

/* ── formularios ── */
.form { background: #fff; color: var(--texto); border-radius: var(--radio-g); padding: clamp(20px, 3vw, 32px); box-shadow: var(--sombra); display: grid; gap: 16px; }
.form__titulo { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0; }
.form__texto { margin: -6px 0 0; color: var(--texto-suave); font-size: .98rem; }
.form__campos { display: grid; gap: 14px; }
@media (min-width: 560px) { .form--presupuesto .form__campos { grid-template-columns: 1fr 1fr; } .campo--ancho { grid-column: 1 / -1; } }
.campo label { display: block; font-weight: 700; font-size: .92rem; color: var(--tinta); margin-bottom: 6px; }
.campo label span { font-weight: 500; color: var(--texto-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: .7em .9em; font: 500 1rem/1.3 var(--f-txt); color: var(--tinta);
  background: #fbfbfa; border: 1.5px solid #cfcbc4; border-radius: var(--radio);
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); background: #fff; }
.aviso { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--texto-suave); }
.aviso input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--acento); flex: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__estado { margin: 0; font-weight: 700; min-height: 1.2em; }
.form__estado.ok { color: #0f7a3d; }
.form__estado.error { color: #b3261e; }
.form.enviado .form__campos, .form.enviado .aviso, .form.enviado button { display: none; }

/* ── FAQ ── */
.faqs { display: grid; gap: 10px; max-width: 860px; }
.faq { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); }
.faq summary { cursor: pointer; padding: 1em 1.2em; font-weight: 800; color: var(--tinta); display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq[open] .ico-abajo { transform: rotate(180deg); }
.faq .prosa { padding: 0 1.2em 1em; }

/* ── franja de llamada ── */
.cta { background: var(--fondo-cta, var(--acento)); color: var(--color-cta, #fff); padding-block: clamp(40px, 6vw, 64px); }
.cta__in { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta h2 { color: inherit; margin: 0 0 .25em; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 24ch; }
.cta p { margin: 0; max-width: 56ch; }

/* ── artículo ── */
.articulo__in { max-width: 820px; }
.articulo__fecha { color: var(--texto-suave); font-weight: 600; }
.articulo__foto { margin: 0 0 clamp(24px, 4vw, 40px); }
.articulo__foto img { border-radius: var(--radio-g); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.aviso-cta { margin-top: 48px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radio-g); background: var(--suave); border-left: 6px solid var(--acento); }
.aviso-cta h2 { font-size: 1.5rem; margin-bottom: .3em; }

/* ── pie ── */
.pie { background: var(--fondo-pie, var(--tinta)); color: rgb(255 255 255 / .78); padding-block: clamp(48px, 7vw, 80px) 28px; font-size: .97rem; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__rejilla { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 900px) { .pie__rejilla { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pie h2 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1em; font-family: var(--f-txt); }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie__logo img { height: var(--alto-logo-pie, 84px); width: auto; margin-bottom: 18px; }
.pie__base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .14); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .88rem; color: rgb(255 255 255 / .6); }
.pie__tel { font: 800 1.35rem/1.2 var(--f-tit); }

/* ── WhatsApp y barra del móvil ── */
.wa-flotante { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; padding: 14px; box-shadow: 0 6px 20px rgb(0 0 0 / .25); transition: transform .2s; }
.wa-flotante:hover { transform: scale(1.06); }
.barra-movil { display: none; }
@media (max-width: 760px) {
  .wa-flotante { display: none; }
  .barra-movil { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--borde); backdrop-filter: blur(6px); }
  .barra-movil .btn { min-height: 48px; padding: .6em .8em; }
  .barra-movil .btn--claro { border: 2px solid var(--tinta); }
  body { padding-bottom: 72px; }
  .portada .botones .btn, .portadilla .botones .btn { flex: 1 1 100%; }
}

/* ── 404 / gracias ── */
.error404 { min-height: 56vh; display: grid; align-items: center; }
.error404 h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── piezas compartidas de portada y bandas ── */
.sellos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; color: rgb(255 255 255 / .86); font-size: .98rem; }
.sellos li { display: flex; align-items: baseline; gap: .45em; }
.sellos strong { font: 900 1.5rem/1 var(--f-tit); color: #fff; }
.cabeza-fila { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 44px); }
.cabeza-fila .cabeza { margin-bottom: 0; }
.banda--oscura { background: var(--tinta); color: rgb(255 255 255 / .86); }
.banda--oscura h2, .banda--oscura h3 { color: #fff; }
.banda--oscura .eyebrow { color: var(--eyebrow-oscuro, #fff); }
.banda--oscura .checklist li span { color: #fff; }
.lead { font-size: 1.15rem; }

/* ── aviso de cookies (solo webs con etiqueta de Google) ── */
.aviso-cookies { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #fff; color: var(--texto); border: 1px solid var(--borde); border-radius: var(--radio-g); box-shadow: 0 12px 40px rgb(0 0 0 / .22); padding: 18px 20px; display: grid; gap: 12px; font-size: .95rem; }
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { margin: 0; }
.aviso-cookies a { color: var(--acento-texto); font-weight: 700; }
.aviso-cookies__botones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.aviso-cookies .btn { min-height: 44px; padding-inline: 1.2em; }
@media (max-width: 760px) { .aviso-cookies { bottom: 80px; left: 10px; right: 10px; padding: 12px 14px; gap: 8px; font-size: .86rem; line-height: 1.45; } .aviso-cookies .btn { min-height: 40px; padding: .4em 1em; font-size: .92rem; } }
.pie button.pie__cookies { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; text-align: left; }
.pie button.pie__cookies:hover { text-decoration: underline; }

/* ── tarjeta de WhatsApp (sustituye a los formularios) ── */
.contacto-wa { background: #fff; color: var(--texto); border-radius: var(--radio-g); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sombra); display: grid; gap: 14px; border-top: 5px solid var(--wa); }
.contacto-wa__ico { width: 52px; height: 52px; border-radius: 50%; background: #e7f6ee; color: var(--wa); padding: 12px; display: block; }
.contacto-wa__ico svg { width: 100%; height: 100%; display: block; }
.contacto-wa__titulo { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0; }
.contacto-wa__texto { margin: 0; color: var(--texto-suave); }
.contacto-wa .btn { min-height: 56px; font-size: 1.06rem; }
.contacto-wa__tel { margin: 0; text-align: center; color: var(--texto-suave); font-size: .96rem; }
.contacto-wa__tel a { font-weight: 800; color: var(--tinta); white-space: nowrap; }

/* formulario que abre WhatsApp con el mensaje redactado */
.form--wa { border-top: 5px solid var(--wa); }
.form--wa__cabeza { display: flex; align-items: center; gap: 14px; }
.form--wa__cabeza .contacto-wa__ico { width: 46px; height: 46px; padding: 11px; flex: none; }
.form--wa .btn--wa { min-height: 56px; font-size: 1.06rem; gap: .5em; }
.form--wa .btn--wa svg { width: 1.3em; height: 1.3em; }
.form__nota { margin: -6px 0 0; text-align: center; font-size: .86rem; color: var(--texto-suave); }
.form--wa .form__estado:empty { display: none; }
.form--wa .form__estado a { color: var(--wa); }
.form--wa { container-type: inline-size; }
@container (min-width: 500px) { .form--wa .form__campos { grid-template-columns: 1fr 1fr; } .form--wa .campo--ancho { grid-column: 1 / -1; } }

/* Carpintería Márquez · marrón de la cabecera #6C3610, marrón de botón #5A341E, dorado #BBA07A, azul de títulos #0F2A4D,
   pie azul noche #060816 · Roboto (portada y textos) + Cabin (menú y títulos) + Roboto Condensed (rótulos), como la web anterior */
@font-face { font-family: "Roboto"; src: url(/fuentes/roboto-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabin"; src: url(/fuentes/cabin-var.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url(/fuentes/roboto-condensed-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --tinta: #1d1d1b;
  --tinta-2: #3c3c3c;
  --texto: #3c3c3c;
  --texto-suave: #5b5651;
  --suave: #f7f2ec;
  --borde: #e7ddd1;
  --acento: #6C3610;
  --acento-texto: #6C3610;
  --sobre-acento: #ffffff;
  --marron-boton: #5A341E;
  --oro: #BBA07A;
  --oro-claro: #f0dcbc;
  --azul: #0F2A4D;
  --azul-2: #344d6c;
  --noche: #060816;
  --f-tit: "Cabin", system-ui, sans-serif;
  --f-txt: "Roboto", system-ui, sans-serif;
  --f-rot: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  --peso-tit: 600;
  --tracking-tit: 0;
  --radio: 8px;
  --radio-g: 18px;
  --sombra: 0 1px 2px rgb(60 30 10 / .06), 0 10px 30px rgb(60 30 10 / .09);
  --alto-cab: 82px;
  --alto-logo: 52px;
  --alto-logo-pie: 60px;
  --fondo-cab: #6C3610;
  --borde-cab: #6C3610;
  --color-menu: #ffffff;
  --acento-menu: #f0dcbc;
  --fondo-portadilla: var(--suave);
  --fondo-pie: #060816;
  --eyebrow-portada: #f0dcbc;
  --eyebrow-oscuro: #6C3610;
}
h1, h2, h3, h4 { line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lead, .prosa { line-height: 1.75; }

/* botones redondeados y en mayúsculas, como «LLAMAR» y «RECIBE PRESUPUESTO» */
.btn { border-radius: 999px; font: 600 .95rem/1.15 var(--f-txt); text-transform: uppercase; letter-spacing: .03em; }
.btn--acento { background: var(--marron-boton); border-color: #4a2a17; }
.btn--acento:hover { background: var(--acento); filter: none; }
.btn--claro { color: var(--tinta); }
.btn--linea { color: var(--acento-texto); }
.btn--linea:hover { background: var(--acento); border-color: var(--acento); color: #fff; }
.eyebrow { font: 700 .9rem/1.2 var(--f-rot); letter-spacing: .06em; }
.eyebrow::before { height: 2px; width: 24px; }
.rotulo { font: 700 .95rem/1.2 var(--f-rot); text-transform: uppercase; letter-spacing: .02em; color: var(--acento-texto); margin: 0 0 18px; }
.rotulo--centro { text-align: center; }
.centro { text-align: center; margin: 0; }

/* cabecera marrón con el logotipo en blanco */
.menu > a { font: 600 1.02rem/1.2 var(--f-tit); }
.menu > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--acento-menu); border-radius: 0; }
.cabecera__tel { font-weight: 600; }
.cabecera__tel .ico { color: var(--acento-menu); }
.cabecera .btn--wa { min-height: 44px; }
@media (max-width: 1180px) { .cabecera__tel { display: none; } }
@media (max-width: 1020px) {
  :root { --alto-cab: 68px; --alto-logo: 42px; }
  .menu > a { font-size: 1.15rem; }
  .menu > a[aria-current="page"] { color: var(--acento-texto); box-shadow: none; }
}

/* portada: foto del taller, texto centrado */
.portada--cm { align-items: center; text-align: center; min-height: clamp(540px, 86vh, 820px); padding-block: clamp(64px, 9vw, 120px); }
.portada--cm::before { background: linear-gradient(180deg, rgb(24 14 8 / .58), rgb(24 14 8 / .66)); }
.portada--cm .portada__foto img { object-position: 68% center; }
.portada__in { display: grid; justify-items: center; }
.portada__marca { font: 500 clamp(1.05rem, 1.7vw, 1.3rem)/1.3 var(--f-txt); color: var(--oro-claro); margin: 0 0 14px; }
.portada__marca::before { content: "– "; }
.portada__marca::after { content: " –"; }
.portada--cm h1 { max-width: 12ch; font-family: var(--f-txt); font-weight: 700; font-size: clamp(2.6rem, 5.2vw, 3.8rem); letter-spacing: -.01em; line-height: 1.1; margin-inline: auto; }
.portada--cm .portada__texto { max-width: 58ch; margin-inline: auto; line-height: 1.8; font-size: clamp(1.02rem, 1.4vw, 1.12rem); }
.portada--cm .portada__texto p { margin: 0; }
.portada--cm .portada__texto strong { color: #fff; }
.portada--cm .botones { justify-content: center; }

/* somos especialistas en */
.banda--especialistas { padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 56px); }
.especialidades { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px clamp(28px, 7vw, 80px); padding: 0; margin: 0 0 30px; }
.especialidades a { display: grid; justify-items: center; gap: 8px; text-decoration: none; font: 700 1.02rem/1.2 var(--f-rot); text-transform: uppercase; color: var(--acento-texto); padding: 8px; border-radius: var(--radio); }
.especialidades a:hover { background: var(--suave); }
.especialidades img { width: 60px; height: 60px; }

/* ¿Buscando un carpintero en Huelva? */
.banda--buscando { padding-block: 0 clamp(28px, 3vw, 40px); }
.buscando { max-width: 1060px; margin-inline: auto; text-align: center; padding: clamp(30px, 5vw, 56px) clamp(20px, 5vw, 72px); border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f4ebe1 100%); box-shadow: 0 2px 60px rgb(40 20 5 / .13); }
.buscando__sello img { width: 76px; height: 76px; margin: 0 auto 6px; }
.buscando__sello p { font: 700 1.15rem/1.2 var(--f-txt); color: var(--tinta); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 16px; }
.buscando h2 { color: var(--azul); font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.buscando > p { max-width: 72ch; margin: 0 auto 22px; color: var(--texto); line-height: 1.75; }
.enlace-circulo { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 12px; align-items: center; font: 700 1.12rem/1.25 var(--f-tit); color: var(--azul-2); text-decoration: none; }
.enlace-circulo > span { width: 38px; height: 38px; border-radius: 50%; background: var(--oro); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s; }
.enlace-circulo:hover { text-decoration: underline; }
.enlace-circulo:hover > span { transform: translateX(3px); }

/* nuestras puertas, armarios y vestidores */
.banda--trabajos { padding-block: clamp(24px, 4vw, 48px) clamp(16px, 2vw, 24px); }
.banda--trabajos .cabeza h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.banda--trabajos .cabeza .intro { color: var(--texto); font-size: 1.15rem; }
.rejilla--trabajos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .rejilla--trabajos { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.rejilla--trabajos .tarjeta { border: 0; border-radius: 20px; background: transparent; }
.rejilla--trabajos .tarjeta:has(a):hover { box-shadow: none; }
.rejilla--trabajos .tarjeta__foto { aspect-ratio: 1; border-radius: 20px; }
.rejilla--trabajos .tarjeta__cuerpo { padding: 14px 4px 0; }
.rejilla--trabajos h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-bottom: .15em; }
.rejilla--trabajos .tarjeta__mas { padding-top: 2px; font-size: .95rem; font-weight: 600; }

/* ¿Por qué nos eligen nuestros clientes? */
.titulo-centro { text-align: center; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: clamp(28px, 4vw, 48px); }
.motivos { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); text-align: center; }
@media (min-width: 1000px) { .motivos { grid-template-columns: repeat(4, 1fr); } }
.motivo__ico { display: block; width: 62px; height: 62px; margin: 0 auto 16px; color: var(--acento); }
.motivo__ico svg { width: 100%; height: 100%; }
.motivo h3 { font-size: 1.4rem; margin-bottom: .55em; }
.motivo p { margin: 0; color: var(--texto-suave); font-size: 1rem; line-height: 1.8; }

/* nuestro equipo: la foto del equipo apoyada abajo, sobre el degradado madera de la web anterior */
.banda--equipo { background: linear-gradient(180deg, #ffffff 35%, #f1e7dc 100%); padding-block: clamp(8px, 2vw, 24px) 0; }
.dividido--equipo { align-items: end; }
.dividido--equipo > div:first-child { padding-bottom: clamp(40px, 7vw, 96px); }
@media (max-width: 899px) { .dividido--equipo { gap: 8px; } .dividido--equipo > div:first-child { padding-bottom: 0; } }
.banda--equipo .rotulo { font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--tinta); margin-bottom: .7em; }
.banda--equipo h2 { color: var(--azul-2); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; }
.equipo__foto img { width: 100%; max-width: 600px; margin-inline: auto; }
.enlace-sion { font-size: .95rem; }
.enlace-sion a { color: var(--tinta); text-decoration: none; }
.enlace-sion a:hover { text-decoration: underline; }

/* contacto: formulario a WhatsApp y datos, sobre el marrón de la marca */
.contacto { background: linear-gradient(160deg, #6C3610 0%, #5A341E 100%); color: #fff; padding-block: clamp(56px, 8vw, 100px); scroll-margin-top: var(--alto-cab); }
.contacto__in { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .contacto__in { grid-template-columns: 1.1fr .9fr; } }
.contacto__datos { text-align: center; }
.rotulo--claro { color: var(--oro-claro); letter-spacing: .2em; font-size: 1rem; }
.contacto__tel { display: inline-block; font: 700 clamp(2.2rem, 5vw, 3.2rem)/1 var(--f-txt); color: #fff; text-decoration: none; border: 2px solid rgb(255 255 255 / .75); padding: .28em .5em; margin: 4px 0 26px; white-space: nowrap; }
.contacto__tel:hover { background: rgb(255 255 255 / .08); }
.contacto__lista { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; justify-items: center; }
.contacto__lista li, .contacto__lista a { display: inline-flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; text-decoration: none; }
.contacto__lista a:hover span { text-decoration: underline; }
.contacto__lista .ico { color: var(--oro-claro); width: 1.2em; height: 1.2em; flex: none; }
.contacto__lista span { text-align: left; }
.contacto .botones { justify-content: center; }
.form--wa { border-top-color: var(--oro); }
.contacto .form { box-shadow: 0 18px 50px rgb(20 8 0 / .35); }
.campo input, .campo select, .campo textarea { background: #fff; border-color: #cbbfb2; }
@container (min-width: 420px) { .form--wa .form__campos { grid-template-columns: 1fr 1fr; } .form--wa .campo--ancho { grid-column: 1 / -1; } }

/* páginas de trabajos y legales: cabecera clara, como el fondo blanco de la web anterior */
.portadilla { color: var(--texto); border-bottom: 1px solid var(--borde); }
.portadilla h1 { color: var(--tinta); font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.portadilla__sub { color: var(--texto); max-width: 64ch; }
.portadilla .migas ol { color: var(--texto-suave); }
.portadilla .migas a { color: var(--acento-texto); }
.portadilla .migas a:hover { color: var(--acento); }
.portadilla .btn--claro { background: #fff; color: var(--tinta); border-color: var(--tinta); }
.portadilla .btn--claro:hover { background: var(--tinta); color: #fff; }
.banda--galeria { padding-top: clamp(32px, 5vw, 56px); }
.galeria--completa .galeria__item { border-radius: 6px; }
.descubre { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; align-items: baseline; margin-top: 36px; font: 600 1.02rem/1.3 var(--f-tit); text-transform: uppercase; }
.descubre span { color: var(--texto-suave); font: 400 1rem/1.3 var(--f-txt); text-transform: none; }
.descubre a { color: var(--tinta); text-decoration: none; padding-block: 4px; }
.descubre a:hover, .descubre a[aria-current] { color: var(--acento-texto); text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 600px) {
  .galeria--completa { columns: 2; column-gap: 8px; }
  .galeria--completa .galeria__item { margin-bottom: 8px; }
  .descubre { justify-content: flex-start; }
}
.prosa--legal h2 { color: var(--acento); font-size: 1.3rem; margin-top: 1.8em; }
.prosa--legal h3 { font-size: 1.1rem; margin-top: 1.4em; }

/* pie azul noche, con el lema en dorado */
.pie { color: rgb(255 255 255 / .74); }
.pie__logo img { margin-bottom: 14px; }
.pie__lema { color: var(--oro); font: 700 1.15rem/1.3 var(--f-txt); margin-bottom: .7em; }
.pie h2 { font-family: var(--f-txt); }
.pie__contacto { gap: 10px; }
.pie__redes { display: flex; gap: 10px; margin: 18px 0 0; }
.pie__redes a { display: grid; width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgb(255 255 255 / .09); }
.pie__redes a:hover { background: rgb(255 255 255 / .18); }
.pie__redes svg { width: 100%; height: 100%; }
@media (min-width: 900px) { .pie__rejilla { grid-template-columns: 1.4fr .8fr 1.2fr .9fr; } }
