/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-2:      #f6f4f0;
  --paper:     #ffffff;
  --ink:       #241c14;
  --ink-soft:  #3c3123;
  --ink-mute:  #7d6f5c;
  --accent:    #d9791f;
  --accent-2:  #8a3324;
  --accent-blue: #0060d8;
  --line:      rgba(36, 28, 20, 0.14);
  --line-soft: rgba(36, 28, 20, 0.08);
  --shadow-1:  0 10px 30px rgba(36, 28, 20, 0.10);
  --shadow-2:  0 24px 60px rgba(36, 28, 20, 0.18);

  --sans:  Tahoma, Verdana, Geneva, sans-serif;
  --serif: var(--sans);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 64px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. UTILITIES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1.1rem;
  max-width: 20ch;
}

.section-lede {
  max-width: 60ch;
  color: var(--ink-mute);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }

/* Scroll reveal — defensive: content visible by default, JS enhances */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Never let a JS failure hide content */
.no-js .reveal, html:not(.js-ready) .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); background: var(--accent-2); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-3px); }

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), height .3s var(--ease-out);
}
.nav.is-solid { background: transparent; }
.nav-inner {
  width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1rem; color: var(--ink); flex-shrink: 0; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-logo span { white-space: nowrap; }
.nav-menu {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); height: 100vh;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1.6rem; padding: 2rem 2.2rem;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
  box-shadow: -20px 0 60px rgba(0,0,0,0.18);
  z-index: 1001;
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu a { font-size: 1.15rem; }
.nav-menu a { font-size: .92rem; font-weight: 600; position: relative; padding-block: .3rem; color: var(--ink-soft); }
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-menu a:hover::after, .nav-menu a.is-active::after { right: 0; }
.nav-menu a.is-active { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--paper) !important; padding: .6rem 1.2rem; border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); }

/* Header is always transparent, so nav text stays white everywhere — the
   dark bevel keeps it readable both over hero photos and over the light
   section backgrounds once scrolled. The desktop inline menu (>=960px) is
   scoped separately from the mobile off-canvas panel, which keeps dark
   text on its own solid white background regardless of these rules. */
@media (min-width: 960px) {
  .nav-menu a:not(.nav-cta) {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 8px rgba(0,0,0,.35);
  }
  .nav-menu a.is-active { color: #fff; }
}
.nav-logo { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; z-index: 1002;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out); }
/* Open state sits on top of the (light) off-canvas panel, so the icon
   that morphs into an X needs to flip to dark to stay visible — this is
   the visible "close / go back" affordance for the expanded menu. */
.nav-toggle[aria-expanded="true"] span { background: var(--ink); box-shadow: none; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding-block: calc(var(--nav-h) + 2rem) 3rem;
  background: var(--bg);
  overflow: clip;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease-soft);
  animation: heroSlideZoom 14s linear infinite;
  animation-play-state: paused;
}
.hero-slide.is-active { opacity: 1; animation-play-state: running; z-index: 1; }
@keyframes heroSlideZoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero-slider-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(15,10,6,.62) 0%, rgba(15,10,6,.42) 42%, rgba(15,10,6,.66) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transform: none; }
}
.hero-halo {
  position: absolute; inset: -20% -10% auto -10%; height: 70%; z-index: 3;
  background: radial-gradient(45% 60% at 50% 30%, rgba(217,121,31,0.22), transparent 72%);
  filter: blur(70px);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.hero-inner { position: relative; z-index: 4; max-width: 720px; padding-inline: 1.25rem; }
.hero-logo {
  width: 130px; height: 130px; margin: 0 auto 1.4rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  padding: 8px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-logo { background: rgba(255,255,255,0.78); }
}
@media (min-width: 720px) {
  .hero-logo { width: 170px; height: 170px; }
}
.kicker { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); margin-bottom: 1.1rem; }
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: .98;
  max-width: 16ch;
  margin-inline: auto 1.4rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero-title em {
  font-style: normal; font-weight: 800; color: #fff;
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow:
    -1.5px -1.5px 0 var(--ink), 0 -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink),
    -1.5px 0 0 var(--ink), 1.5px 0 0 var(--ink),
    -1.5px 1.5px 0 var(--ink), 0 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink);
}
.hero-sub { max-width: 52ch; margin-inline: auto; color: rgba(255,255,255,0.88); text-shadow: 0 1px 10px rgba(0,0,0,.4); font-size: 1.08rem; margin-bottom: 2.1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 4; }

/* =============================================================
   8. MARQUEE
   ============================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  padding-block: .9rem;
}
.marquee-track {
  display: flex; gap: .8rem; white-space: nowrap; width: max-content;
  animation: marqueeScroll 32s linear infinite;
  font-family: var(--sans); font-weight: 700; letter-spacing: .04em; font-size: 1rem; color: var(--bg);
}
.marquee-track span { padding-inline: .2rem; opacity: .9; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   9. GALLERY
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.gallery-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  text-align: left;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s var(--ease-out);
}
.gallery-card-label {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1.1rem 1.1rem;
  font-family: var(--sans); font-weight: 700; font-size: 1.02rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(20,14,8,0.82), transparent);
  transform: translateY(6px);
  opacity: .92;
  transition: transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover { transform: translateY(-8px); box-shadow: 0 30px 55px rgba(217,121,31,0.28), var(--shadow-2); }
  .gallery-card:hover img { transform: scale(1.08); filter: saturate(1.12) brightness(1.03); }
  .gallery-card:hover .gallery-card-label { transform: translateY(0); }
}

/* =============================================================
   9b. MOMENTOS (video gallery)
   ============================================================= */
.momentos { background: var(--bg-2); }
.momentos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.momento-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: #000;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  text-align: left;
}
.momento-card img {
  width: 100%; height: 100%; object-fit: cover; opacity: .88;
  transition: transform .7s var(--ease-out), opacity .4s var(--ease-out);
}
.momento-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease-bounce), background .3s var(--ease-out);
}
.momento-play::before {
  content: ""; position: absolute; top: 50%; left: 56%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--accent-2);
}
.momento-label {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1rem 1rem;
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(20,14,8,0.85), transparent);
}
@media (hover: hover) and (pointer: fine) {
  .momento-card:hover { transform: translateY(-8px); box-shadow: 0 30px 55px rgba(217,121,31,0.28), var(--shadow-2); }
  .momento-card:hover img { transform: scale(1.06); opacity: 1; }
  .momento-card:hover .momento-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
}

/* =============================================================
   10. EXPOSICIONES
   ============================================================= */
.expo-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}
.expo-card:last-child { border-bottom: 1px solid var(--line); }
.expo-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1); }
.expo-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.expo-dates { font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; margin-bottom: .6rem; }
.expo-body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .7rem; }
.expo-quote { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: .8rem; }
.expo-artist { font-weight: 700; color: var(--accent-2); margin-bottom: .9rem; }
.expo-text { color: var(--ink-mute); max-width: 62ch; }
.expo-highlight { margin-top: 1.2rem; font-family: var(--sans); font-weight: 800; font-size: 1.15rem; color: var(--accent-2); }

.expo-participants { margin-top: 1.4rem; }
.expo-participants summary {
  cursor: pointer; font-weight: 700; color: var(--ink); padding: .7rem 0;
  border-top: 1px solid var(--line-soft);
}
.expo-participants ul { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem 1.5rem; }
.expo-participants li { font-size: .92rem; color: var(--ink-mute); padding-block: .2rem; }
.expo-participants li strong { color: var(--ink-soft); }

/* =============================================================
   11. CONVOCATORIA
   ============================================================= */
.convocatoria { background: var(--bg-2); }
#convocatoria-abierta { background: var(--bg); border-top: 1px solid var(--line-soft); }
.convocatoria-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.convocatoria-badge {
  display: inline-block; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em;
  color: var(--accent-2); margin-bottom: 1.3rem;
}
.convocatoria-list { margin-bottom: 1.4rem; }
.convocatoria-list li {
  position: relative; padding-left: 1.4rem; margin-bottom: .55rem; font-weight: 600; color: var(--ink-soft);
}
.convocatoria-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.convocatoria-send { margin-bottom: .8rem; font-weight: 600; }
.convocatoria-send a { color: var(--accent-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.convocatoria-note { color: var(--ink-mute); font-size: .92rem; margin-bottom: 1.6rem; }
.convocatoria-dates { margin-bottom: 1.8rem; }
.convocatoria-dates p { font-weight: 600; margin-bottom: .3rem; }
.convocatoria-dates strong { color: var(--accent); }
.convocatoria-media {
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  max-width: 400px; width: 100%; margin-inline: auto;
}
.convocatoria-media iframe { width: 100%; height: 640px; border: 0; display: block; }
@media (max-width: 539.98px) {
  .convocatoria-media iframe { height: 560px; }
}
.convocatoria-media.convocatoria-video { max-width: 340px; background: #000; }
.convocatoria-media video { width: 100%; display: block; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }

/* =============================================================
   12. APRENDICES / WORKSHOPS
   ============================================================= */
.workshop-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.workshop-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 2rem; box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .workshop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
}
.workshop-card h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.workshop-card p { color: var(--ink-mute); margin-bottom: 1.2rem; }
.workshop-status { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.workshop-status.is-open { background: rgba(217,121,31,0.14); color: var(--accent-2); }
.workshop-status.is-soon { background: var(--line-soft); color: var(--ink-mute); }
.workshop-card-soon { opacity: .85; }
.workshop-link { font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }

/* =============================================================
   13. ARTISTA
   ============================================================= */
.artist-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 3rem; }
.artist-card {
  background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1);
}
.artist-card img { aspect-ratio: 4/3; object-fit: cover; }
.artist-card h3, .artist-card p { padding-inline: 1.6rem; }
.artist-card h3 { margin-top: 1.4rem; font-size: 1.3rem; }
.artist-card p { color: var(--ink-mute); margin-block: .6rem 1.6rem; }
.artist-collective-title { font-size: 1.3rem; margin-bottom: 1.4rem; max-width: 42ch; }
.artist-collective-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem 1.6rem;
}
.artist-collective-list li {
  display: flex; flex-direction: column; gap: .15rem; padding-block: .8rem; border-bottom: 1px solid var(--line-soft);
}
.artist-collective-list strong { color: var(--ink); font-weight: 700; }
.artist-collective-list span { color: var(--ink-mute); font-size: .9rem; }

/* =============================================================
   14. NOSOTROS
   ============================================================= */
.nosotros { background: var(--bg-2); }
.nosotros-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; max-width: 980px; }
.casa-ceramista-link {
  display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.6rem;
  padding: .9rem 1.4rem; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.casa-ceramista-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.casa-ceramista-link img { width: 44px; height: auto; border-radius: 6px; }
.casa-ceramista-link span { font-weight: 700; color: var(--accent-2); }

/* =============================================================
   15. CONTACTO
   ============================================================= */
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contacto-list { margin-bottom: 2.2rem; }
.contacto-list li { display: flex; flex-direction: column; gap: .2rem; padding-block: .9rem; border-bottom: 1px solid var(--line-soft); }
.contacto-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.contacto-list a { font-weight: 700; color: var(--ink); }
.contacto-list a:hover { color: var(--accent-2); }

.contact-form { background: var(--paper); padding: 1.8rem; border-radius: 18px; box-shadow: var(--shadow-1); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .4rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1.5px solid var(--line);
  font: inherit; background: var(--bg); color: var(--ink); resize: vertical;
  transition: border-color .3s var(--ease-out);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); outline: none; }
.form-hint { margin-top: .9rem; font-size: .82rem; color: var(--ink-mute); }

.contacto-map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-1); min-height: 320px; }
.contacto-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* =============================================================
   16. FOOTER
   ============================================================= */
.footer { background: var(--ink); color: var(--bg); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo img { width: 52px; height: 52px; border-radius: 50%; }
.footer-col h4 { font-family: var(--sans); color: var(--accent); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-col p, .footer-col a { display: block; color: rgba(245,239,227,0.78); font-size: .92rem; margin-bottom: .3rem; }
.footer-col a:hover { color: var(--accent); }
.footer-copy { text-align: center; font-size: .82rem; color: rgba(245,239,227,0.5); padding-top: 1.8rem; border-top: 1px solid rgba(245,239,227,0.12); }
.container.footer-grid { max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }

/* =============================================================
   18. LIGHTBOX
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,14,8,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-out);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(90vw, 900px); max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-2); }
.lightbox video { max-width: min(90vw, 520px); max-height: 86vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-2); background: #000; }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }

/* =============================================================
   19. RESPONSIVE — mobile-first, fixed breakpoints
   ============================================================= */
@media (min-width: 540px) {
  .artist-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .expo-card { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .expo-card-rev .expo-media { order: 2; }
  .convocatoria-grid { grid-template-columns: 1.1fr .9fr; }
  .nosotros-grid { grid-template-columns: 1.1fr .9fr; max-width: none; }
  .contacto-grid { grid-template-columns: 1.05fr .95fr; }
  .workshop-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: auto 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  .nav-menu {
    position: static; width: auto; height: auto;
    flex-direction: row; align-items: center; gap: 1.1rem;
    padding: 0; background: transparent; box-shadow: none; transform: none;
  }
  .nav-menu a { font-size: .86rem; white-space: nowrap; }
  .nav-toggle { display: none; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .momentos-grid { grid-template-columns: repeat(3, 1fr); }
  /* Icon-only logo in this mid range: keeps the whole bar on one line so it
     never grows past --nav-h and cover the hero content underneath. */
  .nav-logo span { display: none; }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
  .nav-menu { gap: 1.6rem; }
  .nav-menu a { font-size: .92rem; }
  .nav-logo span { display: inline; }
}

/* Mobile nav panel (below 960px) */
@media (max-width: 959.98px) {
  .nav-cta { align-self: flex-start; }
}

/* =============================================================
   20. REDUCED MOTION — only gate genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 70s; }
  .hero-halo { display: none; }
}
