/* Eco Perforaciones y Construcciones — colores del CV: naranja, crema, azul y café. */
:root {
  --orange: #ff741f;
  --orange-dark: #d9550a;
  --cream: #fff6e3;
  --cream-2: #fdeccb;
  --paper: #fffcf6;
  --blue: #3a6daf;
  --blue-dark: #24497c;
  --ink: #37332f;
  --ink-2: #6b625a;
  --line: #ecdfc6;
  --brown: #2b2622;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(55, 51, 47, .45);
  --font-h: "Urbanist", "Segoe UI", sans-serif;
  --font-b: "DM Sans", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.02rem/1.65 var(--font-b); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-h); color: var(--blue); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 8px; }
.hl { color: var(--orange); }
.mark { background: linear-gradient(transparent 62%, rgba(255, 116, 31, .28) 62%); padding: 0 .08em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .8rem/1 var(--font-h); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font: 700 .98rem/1 var(--font-h); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--light, .btn--plain { background: transparent; border-color: var(--line); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Barra superior y encabezado */
.topbar { background: var(--blue-dark); color: #dfe8f5; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar__links { display: flex; gap: 18px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 252, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.rig { width: 34px; height: 42px; color: var(--blue); flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name b { font: 800 1.3rem/1.05 var(--font-h); color: var(--blue); }
.brand__name small { font: 600 .82rem/1.2 var(--font-h); color: var(--orange-dark); letter-spacing: .02em; }
.brand--light .rig, .brand--light .brand__name b { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 9px 13px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 .98rem/1 var(--font-h); }
.nav a:not(.btn):hover { background: var(--cream); }
.nav a[aria-current="page"] { color: var(--orange-dark); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: 11px 18px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--blue); border-radius: 2px; }

/* Secciones */
.section { padding: 92px 0; }
.section--cream { background: var(--cream); }
.section--blue { background: var(--blue); color: #e9f0fa; }
.section--blue h2, .section--blue h3 { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head p { max-width: 52ch; color: var(--ink-2); }

/* Banda naranja (como los encabezados del CV) */
.band { background: var(--orange); color: #fff; }
.band .wrap { display: flex; align-items: center; gap: 18px; padding: 26px 0; }
.band__icon { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; flex: none; }
.band__icon svg { width: 30px; height: 30px; }
.band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { color: #fff3e6; font-size: .95rem; }

/* Portada */
.hero { background: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 70px 0 0; }
.hero__text { padding-bottom: 70px; }
.hero__text .lead { margin-top: 22px; }
.hero__art { align-self: end; }
.hero__art svg { width: 100%; height: auto; }
.creds { background: #fff; border-bottom: 1px solid var(--line); }
.creds ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.creds li { display: flex; gap: 12px; align-items: center; font-size: .93rem; color: var(--ink-2); }
.creds b { display: block; font: 800 1.08rem/1.15 var(--font-h); color: var(--blue); }
.creds svg { width: 34px; height: 34px; color: var(--orange); flex: none; }
.page-head { background: var(--cream); padding: 74px 0 64px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 18px; }

/* Lista numerada de servicios */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.svc-list li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 14px; padding: 24px 18px 24px 0; border-bottom: 1px solid var(--line); }
.svc-list .n { font: 800 1.5rem/1 var(--font-h); color: var(--orange); grid-row: span 2; }
.svc-list p { color: var(--ink-2); font-size: .96rem; }

/* Tarjetas con ícono */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.tile svg { width: 64px; height: 64px; color: var(--blue); margin-bottom: 18px; }
.tile h3 { color: var(--orange-dark); margin-bottom: 8px; }
.tile p { color: var(--ink-2); font-size: .95rem; }

/* Clientes como texto */
.names { display: flex; flex-wrap: wrap; gap: 10px; }
.names span { padding: 10px 18px; border-radius: 40px; border: 1.5px solid var(--line); background: #fff; font: 700 1rem/1 var(--font-h); color: var(--blue-dark); }

/* Llamado final */
.cta { background: var(--blue); color: #e9f0fa; border-radius: 22px; padding: 54px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { margin-top: 12px; }
.cta .actions { margin-top: 0; justify-content: flex-end; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 34px solid rgba(255, 116, 31, .9); z-index: 0; }
.cta > * { position: relative; z-index: 1; }

/* Nosotros */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split .lead { margin-top: 18px; }
.mv { display: grid; gap: 18px; }
.mv article { background: #fff; border-left: 5px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px; box-shadow: var(--shadow); }
.mv h3 { margin-bottom: 8px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.values li { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values li:nth-child(3n) { border-right: 0; }
.values b { display: block; font: 800 1.2rem/1.2 var(--font-h); color: var(--blue); margin-bottom: 8px; }
.values span { color: var(--ink-2); font-size: .96rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font: 700 1.05rem/1.35 var(--font-h); color: var(--ink); }
.states { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.states span { padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; font: 700 .95rem/1 var(--font-h); }

/* Servicios detallados */
.svc-rows { display: grid; gap: 22px; }
.svc-row { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 28px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-items: start; }
.svc-row svg { width: 72px; height: 72px; color: var(--blue); }
.svc-row h3 { font-size: 1.45rem; margin-bottom: 10px; }
.svc-row p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: r; }
.route li { counter-increment: r; padding: 0 22px 0 0; position: relative; }
.route li::before { content: counter(r, decimal-leading-zero); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 1.1rem/1 var(--font-h); margin-bottom: 18px; position: relative; z-index: 1; }
.route li::after { content: ""; position: absolute; top: 26px; left: 54px; right: 0; border-top: 2px dashed rgba(255, 255, 255, .5); }
.route li:last-child::after { display: none; }
.route h3 { margin-bottom: 8px; }

/* Obras */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { padding: 10px 16px; border-radius: 40px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 .95rem/1 var(--font-h); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ob { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ob:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ob__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--cream); border-bottom: 3px solid var(--orange); }
.ob[data-kind="rehab"] .ob__top { border-bottom-color: var(--blue); }
.ob[data-kind="estudio"] .ob__top { border-bottom-color: var(--ink); }
.ob__type { font: 700 .78rem/1.2 var(--font-h); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ob__top svg { width: 34px; height: 34px; color: var(--orange); flex: none; }
.ob[data-kind="rehab"] .ob__top svg { color: var(--blue); }
.ob[data-kind="estudio"] .ob__top svg { color: var(--ink); }
.ob__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ob__body { padding: 20px; display: grid; gap: 8px; }
.ob__body h3 { font-size: 1.15rem; }
.ob__body p { color: var(--ink-2); font-size: .94rem; }
.ob__more { margin-top: auto; padding: 0 20px 18px; font: 700 .92rem/1 var(--font-h); color: var(--orange-dark); }
.status { color: var(--ink-2); margin-top: 18px; }

/* Detalle de obra */
.back { display: inline-block; margin-bottom: 26px; text-decoration: none; font-weight: 600; }
.detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.detail__rows { margin: 0; background: var(--cream); border-radius: var(--radius); padding: 10px 26px; }
.detail__rows div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail__rows div:last-child { border-bottom: 0; }
.detail__rows dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.detail__rows dd { margin: 4px 0 0; font: 700 1.1rem/1.35 var(--font-h); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 36px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); }
.gallery figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 6px; }

/* Formularios */
.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font: 700 .93rem/1.3 var(--font-h); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 109, 175, .18); }
.field [aria-invalid="true"] { border-color: #c2410c; }
.req { color: var(--orange-dark); }
.err, .form-error { color: #b42318; font-size: .88rem; margin-top: 5px; }
.help { font-size: .88rem; color: var(--ink-2); margin-top: 5px; }
.thanks { background: var(--cream); border-radius: var(--radius); padding: 26px; }
.thanks b { display: block; font: 800 1.3rem/1.2 var(--font-h); color: var(--blue); margin-bottom: 8px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; background: var(--cream); border-radius: 12px; padding: 14px 16px; }
.contact-list svg { width: 26px; height: 26px; color: var(--orange-dark); justify-self: center; }
.contact-list b { display: block; font: 700 .8rem/1.2 var(--font-h); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }

/* Texto legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal p, .legal ul { margin: 0 0 12px; color: var(--ink); }

/* Pie */
.site-footer { background: var(--brown); color: #d9cfc3; padding: 70px 0 26px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 36px; }
.site-footer p { margin-top: 14px; font-size: .94rem; }
.site-footer h4 { color: var(--orange); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: var(--orange); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding-top: 22px; font-size: .88rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); z-index: 40; }
.wa-float svg { width: 30px; height: 30px; }

/* Adaptación a tableta y teléfono */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .creds ul { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 70px 1fr; }
  .svc-row .ticks { grid-column: 2; }
  .route { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .route li:nth-child(2)::after { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .values li:nth-child(3n) { border-right: 1px solid var(--line); }
  .values li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 860px) {
  .topbar span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 6px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .nav .btn { margin: 10px 0 0; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 50px; gap: 0; }
  .hero__text { padding-bottom: 30px; }
  .split, .form-layout, .detail, .cta { grid-template-columns: 1fr; }
  .cta { padding: 38px 26px; }
  .cta::after { width: 140px; height: 140px; border-width: 22px; right: -50px; top: -50px; opacity: .55; }
  .cta .actions { justify-content: flex-start; }
  .section { padding: 68px 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar__links { flex-direction: column; gap: 2px; align-items: center; }
  .tiles, .grid, .creds ul, .foot-grid, .values, .facts { grid-template-columns: 1fr; }
  .values li { border-right: 0 !important; }
  .facts div:nth-child(odd) { border-right: 0; }
  .svc-row { grid-template-columns: 1fr; padding: 26px; }
  .svc-row .ticks { grid-column: auto; }
  .route { grid-template-columns: 1fr; }
  .route li::after { display: none; }
  .form-card { padding: 24px; }
  .brand__name b { font-size: 1.12rem; }
}
/* ---- Fotos y logo (16/11/2026) ---- */
.logo { width: 54px; height: 54px; border-radius: 50%; flex: none; background: #fff; box-shadow: 0 2px 8px rgba(55, 51, 47, .18); }
.site-footer .logo { width: 64px; height: 64px; }
.hero__photo { position: relative; align-self: center; margin-bottom: 70px; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 16px 16px 0 var(--orange); }
.hero__badge { position: absolute; left: -22px; bottom: 28px; background: var(--blue); color: #e9f0fa; border-radius: 14px; padding: 14px 18px; font-size: .88rem; line-height: 1.3; box-shadow: var(--shadow); }
.hero__badge b { display: block; font: 800 1.6rem/1.1 var(--font-h); color: #fff; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-column: span 2; grid-row: span 2; }
.page-head--photo { position: relative; overflow: hidden; background: var(--brown); border-bottom: 0; padding: 110px 0 90px; }
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 26, 23, .88) 0%, rgba(30, 26, 23, .62) 55%, rgba(30, 26, 23, .25) 100%); z-index: 1; }
.page-head--photo .wrap { position: relative; z-index: 2; }
.page-head--photo h1 { color: #fff; }
.page-head--photo .lead { color: #efe6da; }
.page-head--photo .eyebrow { color: #ffb68a; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { padding: 7px 12px; border-radius: 30px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font: 600 .86rem/1 var(--font-h); border: 1px solid rgba(255, 255, 255, .28); }
.jump a:hover { background: var(--orange); border-color: var(--orange); }
.svc-row { grid-template-columns: minmax(260px, 400px) 1fr; padding: 22px; gap: 34px; align-items: center; scroll-margin-top: 100px; }
.svc-row .ticks { margin-top: 16px; }
.svc-row__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.svc-row__img--fit { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 10px; }
.svc-row__n { display: block; font: 800 .95rem/1 var(--font-h); color: var(--orange); letter-spacing: .1em; margin-bottom: 8px; }
.photo { width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; border-radius: var(--radius); margin-top: 26px; box-shadow: var(--shadow); }
.logo-big { width: 170px; height: 170px; border-radius: 50%; margin-bottom: 22px; box-shadow: var(--shadow); background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 17, 15, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
@media (max-width: 860px) {
  .hero__photo { margin: 10px 0 40px; }
  .hero__badge { left: 12px; bottom: 12px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .svc-row { grid-template-columns: 1fr; }
  .page-head--photo { padding: 80px 0 64px; }
}
@media (max-width: 600px) {
  .logo { width: 46px; height: 46px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
/* ---- Registros (17/11/2026) ---- */
.regs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.reg img { height: 92px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 18px; }
.reg h3 { margin-bottom: 8px; }
.reg p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .regs { grid-template-columns: 1fr; } }

/* ---- Portada vertical y 4 registros (17/11/2026) ---- */
.hero__photo img { aspect-ratio: 4 / 5; }
.regs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- Barra superior compacta en celular (18/11/2026): teléfono principal y correo; se oculta solo el segundo teléfono ---- */
@media (max-width: 600px) {
  .topbar { font-size: .76rem; }
  .topbar .wrap { padding: 6px 0; }
  .topbar__links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
  .topbar__links a:nth-child(2) { display: none; }
}

/* ---- Clientes dentro de Obras (18/11/2026) ---- */
.clients { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.clients li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 16px; }
.clients img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.clients li:hover img { filter: none; opacity: 1; }
@media (hover: none) { .clients img { filter: none; opacity: 1; } }
.clients__group { font-size: 1.15rem; margin: 0 0 16px; }
.clients__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.clients__more b { margin-right: 4px; }
.clients__more span { padding: 8px 14px; border-radius: 40px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
@media (max-width: 600px) { .clients { grid-template-columns: repeat(2, 1fr); gap: 10px; } .clients li { padding: 12px; } }
/* ---- Logos de clientes: altura fija para Safari/iPhone (18/11/2026). Con aspect-ratio + max-height:100% Safari dejaba que el logo se saliera del cuadro ---- */
.clients li { aspect-ratio: auto; height: 120px; min-width: 0; overflow: hidden; }
.clients img { max-height: 84px; }
@media (max-width: 600px) { .clients li { height: 96px; } .clients img { max-height: 66px; } }