/* Fotografías reales: mosaicos coordinados y vistas completas al ampliar. */
html.work-comparison-open { overflow: hidden; }
.category-content .work-comparison { height: auto; overflow: visible; border-radius: 0; margin: 0; min-width: 0; }
.work-gallery-grid { display: grid; height: 440px; gap: 10px; }
.work-gallery-grid--residential { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
.work-gallery-grid--business { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.work-photo-link { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--surface-line); border-radius: 9px; color: var(--navy); background: #edf1f5; transition: box-shadow 180ms ease; }
.work-photo-link:hover { text-decoration: none; box-shadow: 0 5px 20px #03113324; }
.work-photo-link:focus-visible, .work-comparison-expand:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.work-photo-label { flex: 0 0 auto; display: block; padding: 9px 5px; background: #eaf0f8; color: var(--navy); font-size: 11px; font-weight: 750; line-height: 1.2; letter-spacing: .055em; text-align: center; text-transform: uppercase; }
.work-photo-link--after .work-photo-label, .work-photo-link--residential .work-photo-label { background: var(--yellow); }
.work-photo-link--extra { grid-column: 1 / -1; }
.work-photo-link--extra .work-photo-label { background: var(--navy); color: #fff; }
.work-photo-frame { display: block; flex: 1 1 0; min-height: 0; overflow: hidden; }
.category-content .work-comparison .work-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.category-content .work-comparison .work-photo-link--installation img { object-position: 50% 52%; }
.category-content .work-comparison .work-photo-link--residential img { object-position: 50% 45%; }
.category-content .work-comparison .work-photo-link--extra img { object-position: 50% 48%; }
.work-photo-zoom { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--navy); background: #ffffffed; box-shadow: 0 2px 8px #03113326; pointer-events: none; }
.work-photo-zoom svg, .work-comparison-expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.category-content .work-comparison > figcaption { position: static; padding: 16px 0 0; background: transparent; color: var(--body-copy); font-size: 15px; line-height: 1.45; }
.work-comparison figcaption strong { display: block; font-size: 18px; line-height: 1.35; color: var(--navy); font-weight: 650; }
.work-comparison figcaption p { margin: 7px 0 10px; font-size: 15px; }
.work-comparison-expand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0; color: var(--blue); font-size: 15px; font-weight: 700; }
.work-comparison-dialog { max-width: 1080px; width: calc(100% - 40px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 28px; border-radius: 14px; background: #fff; }
.work-comparison-dialog .dialog-close { top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; background: #f0f3f8; color: var(--navy); }
.work-comparison-dialog .work-comparison-kicker { margin: 0 50px 7px 0; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.work-comparison-dialog h2 { margin: 0 50px 22px 0; color: var(--navy); font-size: 28px; }
.work-comparison-full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work-comparison-full figure { margin: 0; min-width: 0; }
.work-comparison-full figcaption { padding: 9px 12px; border-radius: 7px 7px 0 0; background: #eaf0f8; color: var(--navy); font-size: 16px; font-weight: 700; text-align: center; }
.work-comparison-full figure:last-child figcaption { background: var(--yellow); }
.work-comparison-full a { display: block; background: #f5f7fa; }
.work-comparison-full img { display: block; width: 100%; height: auto; max-height: 68dvh; object-fit: contain; }
.work-comparison-dialog .work-comparison-hint { margin: 16px 0 0; color: var(--body-copy); font-size: 14px; }
.work-detail-dialog { max-width: 760px; }
.work-comparison-full--single { grid-template-columns: minmax(0, 1fr); }
.work-comparison-full--single figure:last-child figcaption { background: var(--navy); color: #fff; }
@media (min-width: 601px) and (max-width: 1100px) {
  .work-gallery-grid { height: 470px; }
}
@media (max-width: 600px) {
  .work-gallery-grid { height: clamp(400px, 100vw, 520px); }
  .work-photo-label { font-size: 12px; }
  .work-comparison-dialog { width: calc(100% - 24px); padding: 22px 16px; }
  .work-comparison-dialog h2 { font-size: 24px; }
  .work-comparison-full { gap: 10px; }
  .work-comparison-full figcaption { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .work-photo-link { transition: none; } }
