/* ---------- Diseño: tarjetas de proyecto ---------- */
.diseno { padding-bottom: var(--space-section); }
.dz-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dz-cover { aspect-ratio: 16 / 9; }
.dz-card-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; height: 100%; width: 100%;
  border-radius: 22px; overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(16px) saturate(140%);
  transition: transform var(--duration-normal) var(--ease-out-expo), border-color var(--duration-normal), box-shadow var(--duration-normal);
}
.dz-card-btn:hover { transform: translateY(-4px); border-color: rgba(255, 90, 95, 0.55); box-shadow: var(--glass-shadow), 0 30px 60px -30px rgba(227, 52, 63, 0.85); }
.dz-card-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.dz-cover { display: block; margin: 10px 10px 0; border-radius: 14px; overflow: hidden; background: #000; }
.dz-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo); }
.dz-card-btn:hover .dz-cover img { transform: scale(1.04); }
.dz-card-meta { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.dz-type { align-self: flex-start; font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; background: rgba(227, 52, 63, 0.2); border: 1px solid rgba(255, 90, 95, 0.45); }
.dz-title { margin-top: 8px; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.dz-client { font-weight: 300; color: var(--text-soft); }
.dz-open { margin-top: 10px; font-size: 0.86rem; font-weight: 500; color: var(--red-bright); }

/* ---------- ficha de proyecto con galería ---------- */
.dz-modal {
  border: 0; padding: 0; color: #fff; overflow: visible;
  width: min(94vw, 1240px); max-height: 92svh;
  background: transparent;
}
.dz-modal[open] { display: grid; grid-template-columns: 1.7fr 1fr; gap: 0; animation: pop var(--duration-normal) var(--ease-out-expo); }
.dz-m-gallery, .dz-m-info {
  background: linear-gradient(160deg, rgba(60, 14, 22, 0.92), rgba(20, 7, 10, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
}
.dz-m-gallery { border-radius: 24px 0 0 24px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dz-m-info { border-radius: 0 24px 24px 0; border-left: 0; padding: clamp(22px, 3vw, 40px); overflow-y: auto; max-height: 92svh; }
.dz-main { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.dz-main img { width: 100%; height: 100%; object-fit: contain; }
.dz-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--glass-border); background: rgba(11, 5, 6, 0.5); color: #fff; font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: background-color var(--duration-fast); }
.dz-arrow:hover { background: var(--red); border-color: var(--red); }
.dz-prev { left: 12px; }
.dz-next { right: 12px; }
.dz-m-bar { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 0 4px; }
.dz-caption { font-weight: 500; }
.dz-counter { color: var(--text-mute); font-variant-numeric: tabular-nums; }
.dz-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
.dz-thumbs button { all: unset; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.5; border: 2px solid transparent; transition: opacity var(--duration-fast), border-color var(--duration-fast); }
.dz-thumbs button:hover { opacity: 0.85; }
.dz-thumbs button[aria-current='true'] { opacity: 1; border-color: var(--red-bright); }
.dz-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dz-m-type { display: inline-block; margin: 0; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 11px; border-radius: 999px; background: rgba(227, 52, 63, 0.22); border: 1px solid rgba(255, 90, 95, 0.45); }
.dz-m-title { margin: 16px 0 4px; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.dz-m-client { margin: 0 0 18px; color: var(--text-soft); font-weight: 400; }
.dz-m-desc { margin: 0 0 20px; font-weight: 300; color: var(--text-soft); line-height: 1.7; }
.dz-m-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.dz-m-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.dz-m-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 10px var(--red-bright); flex: none; }
.dz-m-links { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .dz-grid { grid-template-columns: 1fr; }
  .dz-modal[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .dz-m-gallery { border-radius: 24px 24px 0 0; }
  .dz-m-info { border-radius: 0 0 24px 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); border-top: 0; max-height: none; overflow: visible; }
  .dz-arrow { width: 40px; height: 40px; }
}
