/* VII Semana de la Arquitectura de Cantabria 2026 — visual line aligned with coacan.es */

/* —— Self-hosted fonts (Anaheim + Maven Pro) —— */
@font-face {
  font-family: 'Anaheim';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anaheim-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anaheim';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anaheim-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: 'Anaheim';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/anaheim-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anaheim';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/anaheim-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: 'Anaheim';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/anaheim-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anaheim';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/anaheim-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: 'Maven Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/maven-pro-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/maven-pro-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: 'Maven Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/maven-pro-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/maven-pro-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: 'Maven Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/maven-pro-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/maven-pro-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;
}

:root {
  --bg: #f7f7f7;
  --bg-card: #ffffff;
  --bg-soft: #fdfbfb;
  --ink: #252525;
  --ink-secondary: #333333;
  --ink-muted: #696f72;
  --ink-faint: #999999;
  --rule: #ebedee;
  --accent: #f45b69;
  --accent-hover: #f12b3d;
  --slate: #435b66;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 68rem;
  --font: 'Anaheim', 'Maven Pro', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* —— Institutional top bar (COACAN cue) —— */
.topbar {
  background: var(--slate);
  color: #fff;
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}
.topbar__brand {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.topbar__org {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* —— Hero —— */
.hero {
  padding: calc(var(--space) * 1.75) var(--space) var(--space);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.75rem, 5.5vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: 0.3px;
  color: var(--ink);
  max-width: 22ch;
}
.hero__sub {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 40ch;
}
.hero .rule {
  max-width: 4.5rem;
  border-top-width: 2px;
  border-color: var(--accent);
}

/* —— Main —— */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--space) * 1.25) var(--space) calc(var(--space) * 2);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.card--main { min-height: 100%; }

.card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  outline-offset: 3px;
}
.card__link:hover,
.card__link:focus-visible {
  box-shadow: 0 0 0 1px var(--accent);
}
.card__link:focus-visible {
  outline: 2px solid var(--accent);
}

.card__figure {
  margin: 0;
  background: #ebedee;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.card--main .card__figure {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card--main .card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.card__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.card__teaser {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  flex: 1;
}
.card__btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.card__link:hover .card__btn,
.card__link:focus-visible .card__btn {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* —— Related / secondary —— */
.related {
  margin-top: calc(var(--space) * 2);
  padding-top: calc(var(--space) * 1.25);
  border-top: 1px solid var(--rule);
}
.related__head {
  margin-bottom: 1.25rem;
}
.related__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.related__heading {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.card--secondary {
  max-width: 36rem;
}
.card--secondary .card__link {
  flex-direction: row;
  align-items: stretch;
}
.card--secondary .card__figure {
  flex: 0 0 38%;
  max-width: 10.5rem;
  border-bottom: 0;
  border-right: 1px solid var(--rule);
  aspect-ratio: 1;
}
.card--secondary .card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card--secondary .card__body {
  padding: 1rem 1.15rem;
  gap: 0.5rem;
}
.card--secondary .card__title {
  font-size: 1.05rem;
}
.card--secondary .card__teaser {
  font-size: 0.85rem;
  line-height: 1.5;
}
.card--secondary .card__btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.card--secondary .card__link:hover .card__btn,
.card--secondary .card__link:focus-visible .card__btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 420px) {
  .card--secondary .card__link {
    flex-direction: column;
  }
  .card--secondary .card__figure {
    flex: none;
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}

/* —— Footer —— */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space) calc(var(--space) * 2);
  color: var(--ink-faint);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.footer .rule {
  margin-bottom: 1.25rem;
}
.footer p {
  margin: 0.15rem 0;
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(37, 37, 37, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
}
.lightbox[hidden] { display: none !important; }

.lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  font-family: var(--font);
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(244, 91, 105, 0.85);
  border-color: var(--accent);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox__figure {
  margin: 0;
  max-width: min(96vw, 1100px);
  max-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}
.lightbox__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  color: #e8e8e8;
  font-size: 0.85rem;
  text-align: center;
}
.lightbox__download {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lightbox__download:hover,
.lightbox__download:focus-visible {
  color: var(--accent);
}

/* —— Hero jump links —— */
.hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.5rem;
}
.hero__jump a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--rule);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.hero__jump a:hover,
.hero__jump a:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* —— Sections —— */
.section {
  margin-bottom: calc(var(--space) * 2.25);
  scroll-margin-top: 1rem;
}
.section__head {
  margin-bottom: 1.35rem;
}
.section__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
  line-height: 1.2;
}
.section__lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 48ch;
}

/* —— Day chips (sticky mini-nav) —— */
.day-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.65rem 0;
  margin: 0 0 1.25rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.day-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--slate);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.day-chip:hover,
.day-chip:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* —— Agenda days —— */
.agenda {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.day {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 1rem 1rem 1.1rem;
  scroll-margin-top: 3.5rem;
}
@media (min-width: 640px) {
  .day {
    gap: 1rem 1.35rem;
    padding: 1.15rem 1.35rem 1.25rem;
  }
}
.day__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.55rem 0.45rem;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  align-self: start;
}
.day__badge--coral { background: var(--accent); }
.day__badge--slate { background: var(--slate); }
.day__num {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.day__mon {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0.15rem;
}
.day__body { min-width: 0; }
.day__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--ink);
  line-height: 1.3;
}
.day__meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.day__footnote {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.event {
  display: grid;
  gap: 0.15rem 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
}
.event:first-child {
  padding-top: 0;
  border-top: 0;
}
@media (min-width: 560px) {
  .event {
    grid-template-columns: 12.5rem 1fr;
    align-items: start;
  }
  .event__venue {
    grid-column: 2;
  }
}
.event__time {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.event__time--omit {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.event__title {
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.4;
}
.event__venue {
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.event__note {
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* —— Arquicines film meta (used inside .event__title) —— */
.film__meta {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.film__note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-faint);
}

/* Arquicines day chips: slightly denser for oct+nov list */
#arquicines .day-nav {
  margin-bottom: 1.35rem;
}
#arquicines .day-chip {
  min-width: 2.4rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.72rem;
}

/* —— Footer venues —— */
.footer__venues {
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer__venues > div {
  display: grid;
  gap: 0.1rem;
}
.footer__venues dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.footer__venues dd {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
