/* Shared editorial rules and project frames. */
body p,body main p,body .service-page p{text-align:justify!important;text-align-last:start;hyphens:auto;-webkit-hyphens:auto}
.service-kicker{text-transform:none!important}
.service-hero img,.reference img,.pic,.project-image,.mc-gallery,.mc-slide,.mc-slide>a,.mc-slide img{background:#fff!important}
.service-hero figure,.reference{overflow:hidden}
.reference>a:first-child{display:block;overflow:hidden}
body .reference img[src*="fiscal-01"],body .service-hero img[src*="fiscal-01"],body .grid .pic img[src*="fiscal-01"],body .mc-slide img[src*="fiscal-01"]{object-fit:cover!important;object-position:center;clip-path:inset(0);transform:scale(1.04)!important}
body .mc-slide:has(img[src*="fiscal-01"])>a{overflow:hidden;aspect-ratio:4/3;display:block}
body .mc-slide img[src*="fiscal-01"]{width:100%;height:100%;max-height:none}
body #servicios{padding-block:36px;scroll-margin-top:92px;background:#fff}
body #servicios .sec-h{display:block;margin-bottom:24px}
body #servicios h2{font-size:clamp(2rem,3.2vw,3rem);margin:0}
body #servicios .svcs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body #servicios .svc{display:block;min-width:0;border:0;padding:0;margin:0;background:none}
body #servicios .service-tile{height:100%;min-height:142px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;text-decoration:none;color:#182622;background:#fff;border:1px solid #d8e1da;border-left:4px solid #385c48;transition:background .2s,border-color .2s}
body #servicios .svc:nth-child(3n+2) .service-tile{border-left-color:#9aa88b}
body #servicios .svc:nth-child(3n) .service-tile{border-left-color:#ab754d}
body #servicios .service-tile:hover{background:#f7f9f5;border-color:#385c48}
body #servicios .service-tile:focus-visible{outline:3px solid #a95a29;outline-offset:4px}
body #servicios h3{font-size:clamp(17px,1.5vw,22px);line-height:1.3;margin:0;font-weight:600}
.tile-arrow{display:flex;align-items:center;justify-content:center;flex:none;width:35px;height:35px;border-radius:50%;border:1px solid #c8d4ca}
.tile-arrow svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:900px){body #servicios .svcs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body #servicios .service-tile{min-height:110px;padding:18px}}
@media(max-width:600px){body #servicios{padding-block:22px;scroll-margin-top:80px}body #servicios .sec-h{margin-bottom:16px}body #servicios .svcs{grid-template-columns:1fr;gap:8px}body #servicios .service-tile{min-height:60px;padding:12px 14px;gap:12px}body #servicios h3{font-size:15px;line-height:1.25}.tile-arrow{width:28px;height:28px}}

/* Readable separation between project headings and descriptions. */
.case-study .mc-info h2,.mc-dialog .mc-info h3,.mc-dialog .mc-info h2{margin:32px 0 16px;line-height:1.35}
.case-study .mc-info h2:first-child,.mc-dialog .mc-info h3:first-child,.mc-dialog .mc-info h2:first-child{margin-top:0}
.case-study .mc-info h2+p,.mc-dialog .mc-info h3+p,.mc-dialog .mc-info h2+p{margin-top:0}

/* Consistent project thumbnails, matching the Fiscalía reference. */
body .grid .proj .pic,body .grid .proj.f-d .pic,body .grid .proj .project-photo-pending{aspect-ratio:4/3;width:100%;height:auto;min-height:0;padding:0;border-radius:16px;overflow:hidden;flex:none}
body .grid .proj .pic .project-image{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;overflow:hidden}
body .grid .proj .pic img,body .grid .proj.f-d .pic img{display:block;width:100%;height:100%;max-height:100%;object-fit:cover!important;object-position:center;transform:none!important;border-radius:inherit}
body .reference img{aspect-ratio:4/3;object-fit:cover!important;border-radius:16px}
/* Main project photograph and selectable mosaic. */
.mc-gallery.has-mosaic{display:grid;grid-template-columns:minmax(0,3fr) minmax(150px,1fr);gap:12px 20px;align-items:start}
.mc-gallery.has-mosaic .mc-track{grid-column:1;grid-row:1;min-width:0;width:100%;border-radius:16px;overflow-x:auto}
.mc-gallery.has-mosaic .mc-slide>a{height:clamp(240px,42vw,560px)}
.mc-gallery.has-mosaic .mc-slide img{height:100%;width:100%;object-fit:contain;max-height:none}
.mc-gallery.has-mosaic .mc-controls{grid-column:1;grid-row:2;margin:0 0 24px}
.gallery-thumbs{grid-column:2;grid-row:1 / span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:620px;overflow:auto;padding:3px}
.gallery-thumbs button{padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:#eef2ed;aspect-ratio:4/3;opacity:.72}
.gallery-thumbs button[aria-pressed="true"]{border-color:#173c32;opacity:1}
.gallery-thumbs button:focus-visible{outline:3px solid #d5803e;outline-offset:2px}
.gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.service-project-button{display:inline-flex;margin:20px 0 0;gap:12px}
@media(max-width:700px){.mc-gallery.has-mosaic{grid-template-columns:minmax(0,1fr);gap:12px}.mc-gallery.has-mosaic .mc-slide>a{height:65vw}.gallery-thumbs{grid-column:1;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));max-height:220px}.mc-gallery.has-mosaic .mc-controls{grid-row:3}.service-project-button{display:flex;justify-content:center}}

/* Compact service actions with deliberate spacing on every screen. */
.service-page .service-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:24px}
.service-page .service-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 16px;font-size:13px;line-height:1.4;min-height:44px;margin:0;width:auto;border-radius:6px;text-align:center}
.service-page .service-actions .service-project-button{background:transparent;color:#182622;border-color:#9eada3}
.service-page .service-actions .service-project-button:hover{background:#eef2ed}
.service-page .service-actions .service-arrow{width:16px;height:16px;flex:none}
@media(max-width:700px){.service-page .service-actions{gap:14px}.service-page .service-actions .btn{max-width:100%;font-size:13px}}
