/* Proyectos: tarjetas tipo mosaico agrupadas por sección */

/* =====================================================================
   PROYECTOS · tarjetas con el diseño de Hito, agrupadas por sección
   ===================================================================== */
.pz { position: relative; z-index: 2; padding: 140px 40px 120px; }
.pz-inner { max-width: 1180px; margin: 0 auto; }
.pz-title { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: .98; }
.pz-lead { color: var(--text-secondary); font-weight: 300; font-size: 1.05rem; line-height: 1.7; max-width: 520px; }
.pz-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 70px; }
.pg + .pg { margin-top: 90px; }
.pg-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: end; border-top: 1px solid rgba(255,255,255,.85); padding-top: 18px; margin-bottom: 22px; }
.pg-letter { font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--text-muted); letter-spacing: 1px; align-self: start; padding-top: 6px; }
.pg-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.pg-head p { font-family: 'Inter Tight', 'Inter', sans-serif; color: var(--text-muted); font-size: .9rem; margin-top: 8px; }
.pg-count { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: .9rem; color: var(--text-secondary); white-space: nowrap; }
.pg-count b { font-size: 2.4rem; font-weight: 600; letter-spacing: -1.5px; color: var(--text); margin-right: 6px; font-family: 'Inter', sans-serif; }
.pg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.pt {
    --mx: 50%; --my: 50%;
    position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; isolation: isolate;
    padding: 22px; border-radius: 8px; background: var(--c); color: #222; text-decoration: none;
    transition: transform .18s ease-out, box-shadow .18s ease-out;
}
.pt:nth-child(even) { border-radius: 4px; }
/* Tarjeta con enlace: sube 2px y gana una sombra suave en capas */
@media (hover: hover) and (pointer: fine) {
    .pt:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 6px 12px -4px rgba(0,0,0,.10), 0 18px 32px -16px rgba(0,0,0,.18); }
}
.pt.span7 { grid-column: span 7; grid-row: span 2; }
.pt.span5 { grid-column: span 5; }
.pt.span12 { grid-column: span 12; }
.pt-row { display: flex; align-items: flex-start; gap: 14px; }
.pt-ic { flex: none; width: 48px; height: 48px; border-radius: 4px; background: rgba(34,34,34,.1); display: flex; align-items: center; justify-content: center; }
.pt-ic svg { width: 28px; height: 28px; }
.pt-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pt-kind { font: 500 13px 'Inter Tight', 'Inter', sans-serif; color: #333; }
.pt h4 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt.span7 h4 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.05em; }
.pt-tag { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 3px 8px; border-radius: 4px; background: #222; color: #fff; white-space: nowrap; }
.pt-tag.line { background: transparent; color: #222; box-shadow: inset 0 0 0 1px #222; }
.pt p { font-size: .95rem; line-height: 1.55; color: #333; max-width: 560px; }
.pt-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.pt-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-tech span { font: 500 12px 'Inter Tight', 'Inter', sans-serif; color: #222; padding: 5px 9px; border-radius: 4px; background: rgba(34,34,34,.08); }
.pt-go { flex: none; width: 44px; height: 44px; border-radius: 4px; border: 1.5px solid #222; display: flex; align-items: center; justify-content: center; color: #222; transition: background .3s ease, color .3s ease; }
.pt-go svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.pt:hover .pt-go { background: #222; color: #fff; }
.pt:hover .pt-go svg { transform: translate(2px, -2px); }
.pt.soon .pt-go { border-style: dashed; }
.pt.soon:hover .pt-go { background: transparent; color: #222; }
.pt-mini { margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-mini span { background: rgba(255,255,255,.35); border-radius: 4px; padding: 10px 12px; font-size: 12.5px; color: #222; display: flex; flex-direction: column; gap: 2px; }
.pt-mini b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.5px; }
.pt-sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.pt-sites a { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 4px; background: rgba(255,255,255,.4); color: #222; text-decoration: none; font-size: 13px; transition: background .25s ease; }
.pt-sites a:hover { background: rgba(255,255,255,.75); }
.pt-sites b { font-weight: 700; letter-spacing: -.3px; font-size: 14px; }
.pt-sites small { color: #333; display: inline-flex; align-items: center; gap: 6px; }
.pt-sites small::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: #222; }
.pt-cover { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.pt > *:not(.pt-cover) { position: relative; z-index: 1; pointer-events: none; }
.pt .pt-sites, .pt .pt-sites a { pointer-events: auto; }
@media (max-width: 900px) {
    .pz { padding: 100px 18px 90px; }
    .pt.span7, .pt.span5, .pt.span12 { grid-column: span 12; grid-row: auto; }
    .pg-head { grid-template-columns: 1fr auto; } .pg-letter { display: none; }
    .pt-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-mini { grid-template-columns: 1fr 1fr; }
}

/* Juego al final, como proyecto paralelo */
.gm .chap { --chap-accent: var(--gm-ember); --chap-ink: var(--gm-muted); --chap-rule: var(--gm-line); --chap-dot: var(--gm-ember); }
