/* ==========================================================
   Eco Hermet — obras realizadas (obras.html)
   ========================================================== */

.obras-section { padding-top: 32px; }
.obras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.obra { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.obra[hidden] { display: none; }
.obra--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.obra--wide .obra-body { padding: 32px 34px; align-content: center; }
.obra--wide h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }

.obra-gallery { display: grid; gap: 4px; background: #fff; }
.obra-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e5e9e2; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.obra-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.obra-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(35, 40, 37, .82); color: #fff; font-size: .82rem; font-weight: 650; }
.obra-count svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.obra-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.obra-thumbs button { display: block; padding: 0; border: 0; background: #e5e9e2; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.obra-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .obra-media:hover img { transform: scale(1.03); }
  .obra-thumbs button:hover img { opacity: .85; }
}

.obra-body { display: grid; gap: 12px; align-content: start; padding: 22px 24px 26px; }
.obra-tag { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.obra h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; color: var(--navy); }
.obra-body > p { margin: 0; color: var(--ink-2); }
.obra-works { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 2px 0 4px; padding: 0; }
.obra-works li { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.obra-body .btn { justify-self: start; }

@media (max-width: 900px) {
  .obras-grid { grid-template-columns: 1fr; gap: 22px; }
  .obra--wide { display: flex; }
  .obra--wide .obra-body { padding: 22px 20px 24px; }
}

.lb-figure .lb-pos { white-space: nowrap; }
