/* Web Systems 3.1 · Tarjetas reutilizables de proyectos
 * Este módulo se carga de forma condicional desde functions.php.
 */

/* Projects */
.featured-work { background: var(--paper); }
.featured-case { display: grid; grid-template-columns: .7fr 1.3fr; overflow: hidden; border-radius: var(--radius-lg); color: white; background: var(--ink); box-shadow: var(--shadow); }
.featured-case-copy { padding: 52px; }
.project-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.project-card-meta span { color: var(--blue-2); font-size: 8px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.project-card-meta small { padding-left: 10px; border-left: 1px solid currentColor; color: #858d9a; font-size: 8px; }
.featured-case-logo { width: 160px; height: 58px; display: block; margin: 36px 0 28px; object-fit: contain; object-position: left center; filter: invert(1) grayscale(1) brightness(2); }
.featured-case-copy h3 { margin: 0; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.04; letter-spacing: -.048em; }
.featured-case-copy > p { margin: 20px 0 0; color: #9fa7b4; font-size: 13px; line-height: 1.7; }
.featured-case-copy ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 27px 0 32px; padding: 0; list-style: none; }
.featured-case-copy li { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line-dark); border-radius: 7px; color: #b7beca; font-size: 8px; }
.featured-case-copy li svg { color: #7896ff; }
.featured-case-browser { position: relative; min-width: 0; padding: 52px 0 0 42px; background: radial-gradient(circle at 70% 50%, rgba(37,87,255,.18), transparent 45%), #0e1118; }
.browser-chrome { height: 43px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid rgba(255,255,255,.11); border-bottom: 0; border-radius: 15px 0 0 0; background: #171b23; }
.browser-chrome > i { width: 7px; height: 7px; border-radius: 50%; background: #3b404b; }
.browser-chrome > small { margin-left: 16px; color: #707887; font-size: 8px; }
.browser-image { height: 470px; display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-right: 0; background: white; }
.browser-image img { width: 100%; display: block; object-fit: cover; object-position: top; }
.case-system-label { position: absolute; padding: 9px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(20,24,33,.93); color: #bec4ce; box-shadow: 0 12px 28px rgba(0,0,0,.3); backdrop-filter: blur(8px); font-size: 8px; }
.label-one { top: 125px; left: 12px; }.label-two { right: 28px; top: 260px; }.label-three { left: 75px; bottom: 37px; }
.home-project-grid, .projects-full-grid, .related-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card[hidden] { display: none !important; }
.project-card-media { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; border-bottom: 1px solid var(--line); background: #e7eaf0; }
.project-card-media > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform .45s ease; }
.project-card:hover .project-card-media > img { transform: scale(1.025); }
.project-logo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: 70px; background: linear-gradient(145deg, #f8f9fb, #e7eaf0); }
.project-logo-placeholder img { max-width: 230px; max-height: 90px; object-fit: contain; }
.live-cover { position: absolute; top: 13px; right: 13px; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(65,202,118,.27); border-radius: 99px; color: #27894d; background: rgba(245,255,248,.92); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.live-cover i { width: 5px; height: 5px; border-radius: 50%; background: #44d17d; }
.project-card-content { padding: 25px; }
.project-card h3 { margin: 12px 0 9px; font-size: 26px; letter-spacing: -.04em; }
.project-card-content > p { min-height: 63px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 23px; }
.project-card-tags span { padding: 6px 8px; border-radius: 6px; color: #69707d; background: #f0f2f5; font-size: 7px; font-weight: 750; }
.project-card-featured { grid-column: span 2; display: grid; grid-template-columns: 1.15fr .85fr; }
.project-card-featured .project-card-media { aspect-ratio: auto; min-height: 430px; border-bottom: 0; border-right: 1px solid var(--line); }
.project-card-featured .project-card-content { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.project-card-featured .project-card-content > p { min-height: 0; }
.center-action { display: flex; justify-content: center; margin-top: 38px; }

@media (max-width: 1120px) {
  .project-card-featured { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .related-case-card .project-card { grid-template-columns: 1fr; }
  .related-case-card .project-card-media { min-height: 410px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .project-card-featured { display: block; grid-column: auto; }
  .project-card-featured .project-card-media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-card-featured .project-card-content { padding: 25px; }
  .project-logo-placeholder { padding: 45px; }
}
