/* =========================================================
   Guillermo López Calleja — web personal
   Valores tomados del diseño de Figma "Guille Portfolio"
   Escritorio: diseño a 1440 px · Móvil: diseño a 375 px
   ========================================================= */

/* ---------- Tipografía (alojada en el propio servidor) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Variables ---------- */
:root {
  --text: #252525;
  --bg: #ffffff;
  --rule: #e3e3e3;
  --rule-dark: rgba(255, 255, 255, 0.28);
  --overlay: rgba(0, 0, 0, 0.85);
  --pad: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

.page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--pad);
  min-height: 100vh;
}
.page > main { flex: 1 0 auto; }

/* ---------- Cabecera ---------- */
.nav-desktop {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  min-height: 162px;
  font-weight: 500;
  font-size: 16px;
}
.nav-desktop .nav-group { display: flex; flex-direction: column; gap: 8px; }
.nav-desktop .nav-group ul { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; font-size: 14px; }
.nav-desktop .nav-recon { grid-column: span 2; }
.nav-desktop .nav-contact { justify-self: end; white-space: nowrap; }
.nav-desktop .nav-services { justify-self: start; }

.nav-mobile { display: none; }

/* ---------- Bloque Servicios / Reconocimientos (solo móvil) ---------- */
.info { display: none; }

/* ---------- Home: proyectos ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 50px;
  padding: 120px 0 134px;
  align-items: start;
}
.project { display: flex; flex-direction: column; color: var(--text); }
.project:hover { text-decoration: none; }
.project-head {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
}
.project-head .title { white-space: nowrap; }
.project-head .title.is-italic { font-style: italic; }
.project-head .rule { flex: 1 1 0; min-width: 1px; height: 4px; border-top: 1px solid var(--rule); }
.project-head .num { white-space: nowrap; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  align-items: start;
}
.thumb { position: relative; overflow: hidden; aspect-ratio: var(--r); background: #ececec; }
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.thumb.span-2 { grid-column: span 2; }
.thumb-note { font-size: 11px; align-self: start; }
.c1 { grid-column: 1; grid-row: 1; }
.c2 { grid-column: 2; grid-row: 1; }
.c3 { grid-column: 3; grid-row: 1; }

@media (hover: hover) {
  .project:hover .thumb img { filter: grayscale(0); }
}
.project:focus-visible .thumb img { filter: grayscale(0); }

/* ---------- Proyecto abierto ---------- */
.project-view[hidden] { display: none; }

/* Escritorio: capa oscura sobre la Home */
.project-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: #fff;
}
.pv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 24px;
  min-height: 100%;
}
.pv-text {
  grid-column: span 2;
  padding: 0 24px;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 100vh;
  overflow-y: auto;
}
/* El bloque superior mide 240 px como en el diseño: 24 + botón 24 + 182 + gap 10 */
.pv-close {
  align-self: flex-start;
  margin: 24px 0 182px;
  height: 24px;
  color: #fff;
}
.pv-close span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.pv-close svg { width: 24px; height: 24px; }
.pv-titleblock { display: flex; flex-direction: column; gap: 24px; }
.pv-title { font-size: 24px; font-weight: 500; }
.pv-title:focus { outline: none; }
.pv-titleblock .rule { height: 4px; border-top: 1px solid var(--rule-dark); }
.pv-body p { font-size: 16px; }
.pv-body p + p { margin-top: 1.22em; }
.pv-body .pending { opacity: 0.6; font-style: italic; }
.pv-media {
  grid-column: span 4;
  padding: 0 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-media img, .pv-media video { width: 100%; height: auto; }
html.is-locked { overflow: hidden; }

/* ---------- Contacto ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  padding: 120px 0 48px;
  align-items: start;
}
.about-photo { aspect-ratio: 674 / 539; overflow: hidden; background: #111; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 48px; }
.about-text h1 { font-size: 24px; font-weight: 600; }
.about-text p + p { margin-top: 1.22em; }

/* ---------- Texto legal ---------- */
.legal { padding: 120px 0 48px; max-width: 70ch; }
.legal h1 { font-size: 24px; font-weight: 600; margin-bottom: 48px; }
.legal h2 { font-size: 16px; font-weight: 600; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.5; }
.legal p + p { margin-top: 0.8em; }

/* ---------- Pie ---------- */
.site-footer {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 10px;
  padding: 24px 0;
  font-weight: 500;
  font-size: 16px;
}
.site-footer .f-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer .f-name { grid-column: span 2; }
.site-footer .f-contact { grid-column: span 2; }
.site-footer .f-legal a, .site-footer .f-social a { white-space: nowrap; }

/* =========================================================
   Móvil (diseño a 375 px)
   ========================================================= */
@media (max-width: 1023px) {
  .page { gap: 10px; }

  .nav-desktop { display: none; }
  .nav-mobile { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
  .nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 25px; }
  .menu-btn {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    position: relative;
  }
  .menu-btn::after { content: ""; position: absolute; inset: -10px; } /* área táctil de 44 px */
  .menu-btn svg { width: 24px; height: 24px; }
  .menu-btn .i-close { display: none; }
  .nav-mobile.is-open .menu-btn .i-open { display: none; }
  .nav-mobile.is-open .menu-btn .i-close { display: block; }
  .menu { display: flex; flex-direction: column; gap: 0; }
  .menu[hidden] { display: none; }
  .menu .rule { height: 0; border-top: 1px solid var(--rule); }
  .menu ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 24px; }
  .menu a[aria-current="page"] { font-weight: 700; }

  main { display: block; }

  /* Home */
  .projects {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    padding: 14px 0 0; /* 24 de separación con la barra menos el gap de la página */
  }
  .project-head { font-size: 14px; }
  .thumbs { grid-template-columns: minmax(0, 1fr); }
  .thumb { display: none; }
  .thumb.is-mobile { display: block; grid-column: 1; grid-row: 1; aspect-ratio: 327 / 175; }
  .thumb-note { display: none; }

  .info {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 48px 0;
    font-weight: 500;
  }
  .info .nav-group { display: flex; flex-direction: column; gap: 8px; }
  .info ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

  /* Proyecto abierto: página blanca en lugar de capa */
  .project-view {
    position: static;
    inset: auto;
    z-index: auto;
    overflow: visible;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--text);
    padding-top: 14px;
  }
  .pv-grid { display: flex; flex-direction: column; gap: 24px; min-height: 0; }
  .pv-text { position: static; padding: 0; max-height: none; overflow: visible; gap: 24px; }
  .pv-close { display: none; }
  .pv-titleblock { gap: 8px; }
  .pv-titleblock .rule { border-top-color: var(--rule); }
  .pv-media { padding: 0; gap: 12px; }
  body.project-open .projects,
  body.project-open .info { display: none; }
  html.is-locked { overflow: auto; }

  /* Contacto */
  .about {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    padding: 14px 0 0;
  }
  .about-photo { aspect-ratio: 327 / 445; }
  .about-text h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal { padding-top: 40px; }

  /* Pie */
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
  .site-footer .f-name { display: none; }
  .site-footer .f-contact { grid-column: span 2; grid-row: 1; }
  .site-footer .f-legal { grid-column: 1; grid-row: 2; }
  .site-footer .f-social { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
}

/* =========================================================
   CONTENIDO AMPLIADO
   ========================================================= */
.info h2 { font-size: 16px; font-weight: 500; }
.thumb video { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter 0.5s ease; }
.thumb-note.span-note { grid-column: 2 / span 2; }
@media (hover: hover) { .project:hover .thumb video { filter: grayscale(0); } }

/* Galería del proyecto abierto */
.pv-media { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-content: flex-start; align-items: flex-start; }
.m { margin: 0; position: relative; background: rgba(255,255,255,0.04); }
.m img, .m video { display: block; width: 100%; height: auto; }
.m-w { flex: 0 0 100%; }
.m-pair { flex: 0 0 calc(50% - 4px); }
.m-trio { flex: 0 0 calc(33.333% - 5.34px); }
.m-half { flex: 0 0 calc(50% - 4px); }
.m-narrow { flex: 0 0 66%; }
.pv-count { margin-top: auto; padding: 48px 0 24px; font-size: 14px; opacity: 0.6; }
.pv-text { min-height: 100vh; }
.pv-body .pending { opacity: 0.6; font-style: italic; }

/* Botón de sonido sobre los vídeos */
.sound {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px;
  font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px;
}
.sound svg { width: 16px; height: 16px; }
.sound .w { display: none; }
.sound[aria-pressed="true"] .w { display: inline; }
.sound[aria-pressed="true"] .x { display: none; }

/* =========================================================
   ANIMACIONES
   (todas se desactivan si el sistema pide menos movimiento)
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}

/* --- 1. Pantalla de carga --- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg); color: var(--text);
  font-size: 14px; font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.no-js .loader, .is-ready .loader { opacity: 0; visibility: hidden; }
.loader-n { display: inline-block; }

/* --- 2. Textos que suben desde una máscara --- */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
li .ln, .project-head .ln { display: inline-block; vertical-align: bottom; }
.ln-i { display: block; }
.js .ln-i { transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .is-ready .site-header .ln-i,
.js.is-ready .site-header .ln-i,
.js.is-ready .about-text .ln-i,
.js.is-ready .agenda h1 .ln-i,
.js .project.in .ln-i,
.js .project-view.is-in .ln-i { transform: none; }

.js .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s ease 0.25s, transform 1.2s var(--ease-out) 0.25s; }
.js.is-ready .fade-up { opacity: 1; transform: none; }

/* --- 3. Miniaturas que se descubren al entrar en pantalla --- */
.js .project .thumb { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); transition-delay: var(--d, 0ms); }
.js .project .thumb > * { transform: scale(1.12); transition: transform 1.6s var(--ease-out), filter 0.5s ease; transition-delay: var(--d, 0ms), 0ms; }
.js .project.in .thumb { clip-path: inset(0 0 0 0); }
.js .project.in .thumb > * { transform: none; }
.js .project .project-head .rule { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-io) 0.1s; }
.js .project.in .project-head .rule { transform: none; }
.js .project .thumb-note { opacity: 0; transition: opacity 0.8s ease 0.6s; }
.js .project.in .thumb-note { opacity: 1; }

.js .about-photo.reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io) 0.1s; }
.js.is-ready .about-photo.reveal { clip-path: inset(0 0 0 0); }

/* --- 4. Al pasar el ratón, el resto de proyectos se apaga --- */
@media (hover: hover) and (min-width: 1024px) {
  .project { transition: opacity 0.5s ease; }
  .projects:has(.project:hover) .project:not(:hover) { opacity: 0.18; }
}

/* --- 5. Proyecto abierto: fondo, imágenes y textos --- */
@media (min-width: 1024px) {
  .project-view { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color 0.6s ease; }
  .project-view::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    opacity: 0; transition: opacity 0.6s ease;
  }
  .project-view.is-in::before { opacity: 1; }
  .js .project-view .m { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .project-view.is-in .m { opacity: 1; transform: none; }
  .js .project-view .m.is-flip-target { transition: none; opacity: 0; transform: none; }
  .js .project-view .pv-body, .js .project-view .pv-count, .js .project-view .pv-close, .js .project-view .rule { opacity: 0; transition: opacity 0.8s ease 0.35s; }
  .js .project-view.is-in .pv-body, .js .project-view.is-in .pv-count, .js .project-view.is-in .pv-close, .js .project-view.is-in .rule { opacity: 1; }
  .project-view.is-out { pointer-events: none; }
  .project-view.is-out::before { opacity: 0; }
  .project-view.is-out .pv-grid { opacity: 0; transition: opacity 0.4s ease; }
  .pv-title { overflow: hidden; }
}
.project-view { scrollbar-width: none; }
.project-view::-webkit-scrollbar { display: none; }
.flip-clone { position: fixed; z-index: 120; margin: 0; object-fit: cover; pointer-events: none; transform-origin: 0 0; will-change: transform; }

/* Cambio de página suave (enlaces internos) */
.js body { transition: opacity 0.35s ease; }
.js body.is-leaving { opacity: 0; }

/* Scroll suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Móvil: galerías a una columna */
@media (max-width: 1023px) {
  .m-pair, .m-trio, .m-half, .m-narrow { flex: 0 0 100%; }
  .pv-media { gap: 12px; }
  .pv-text { min-height: 0; }
  .pv-count { display: none; }
  .thumb-note.span-note { display: none; }
  .js .project-view .ln-i { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .js .ln-i, .js .fade-up, .js .project .thumb, .js .project .thumb > *, .js .project .project-head .rule,
  .js .about-photo.reveal, .js .project-view .m, .js .project .thumb-note,
  .js .project-view .pv-body, .js .project-view .pv-count, .js .project-view .pv-close, .js .project-view .rule {
    transition: none !important; transform: none !important; clip-path: none !important; opacity: 1 !important;
  }
}

/* =========================================================
   SERVICIOS COMO FILTRO
   ========================================================= */
.svc { cursor: pointer; }
.svc.is-active { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.project { transition: opacity 0.5s ease; }
.projects[data-filter="direccion"] .project:not([data-cat="direccion"]),
.projects[data-filter="audiovisual"] .project:not([data-cat="audiovisual"]),
.projects[data-filter="sonido"] .project:not([data-cat="sonido"]) { opacity: 0.18; }
.projects[data-filter] .project:not(.is-match) .thumb img,
.projects[data-filter] .project:not(.is-match) .thumb video { filter: grayscale(1); }
.projects[data-filter] .project.is-match .thumb img,
.projects[data-filter] .project.is-match .thumb video { filter: grayscale(0); }
@media (hover: hover) and (min-width: 1024px) {
  .projects[data-preview="direccion"] .project:not([data-cat="direccion"]),
  .projects[data-preview="audiovisual"] .project:not([data-cat="audiovisual"]),
  .projects[data-preview="sonido"] .project:not([data-cat="sonido"]) { opacity: 0.18; }
}

/* =========================================================
   AGENDA
   ========================================================= */
.agenda { padding: 120px 0 96px; }
.agenda h1 { font-size: 24px; font-weight: 600; margin-bottom: 72px; }
.ag-h { font-size: 14px; font-weight: 500; opacity: 0.55; margin: 0 0 8px; }
.ag-list + .ag-h { margin-top: 72px; }
.ag-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px;
  padding: 16px 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.ag-list .ag-row:last-child { border-bottom: 1px solid var(--rule); }
.ag-row time { font-variant-numeric: tabular-nums; font-weight: 500; }
.ag-ev { grid-column: span 3; }
.ag-ci { justify-self: end; }
.ag-past { opacity: 0.55; }
@media (max-width: 1023px) {
  .agenda { padding: 40px 0 48px; }
  .agenda h1 { margin-bottom: 40px; }
  .ag-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .ag-ev { grid-column: 1 / -1; grid-row: 2; }
  .ag-pl { grid-column: 1; grid-row: 3; opacity: 0.7; }
  .ag-row time { grid-column: 1; grid-row: 1; }
  .ag-ci { grid-column: 2; grid-row: 1; }
  .ag-list + .ag-h { margin-top: 48px; }
}

/* Próximamente (cabecera) y reconocimientos (Contacto) */
.next a { font-variant-numeric: tabular-nums; }
.next[hidden] { display: none; }
.recon-h { font-size: 16px; font-weight: 600; margin: 48px 0 12px; }
.recon { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
