/* =========================================================
   SUMA QAMAÑA — An Aymara Exhibition
   Hoja de estilos personalizada sobre Bulma CSS
   Paleta: beige cálido, marrón café, terracota, blanco cálido
   Tipografía: Fraunces (display) + Work Sans (cuerpo)
   ========================================================= */

:root {
  --sq-cream:        #FBF6EE; /* blanco cálido */
  --sq-beige:         #E9DBC6; /* beige del logo original */
  --sq-beige-soft:    #F3EAD9; /* beige claro de fondo */
  --sq-brown-dark:    #3B2A1E; /* marrón oscuro / texto principal */
  --sq-brown-mid:     #6B4A34; /* café */
  --sq-terracotta:    #B5502E; /* terracota / acento */
  --sq-terracotta-lt: #D97F5E;
  --sq-gold:          #A9863B; /* detalle dorado tenue */
  --sq-shadow:        0 10px 30px rgba(59, 42, 30, 0.12);
  --sq-radius:        14px;
  --sq-font-display:  'Fraunces', 'Georgia', serif;
  --sq-font-body:     'Work Sans', sans-serif;
}

/* =========== BASE =========== */
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sq-font-body);
  color: var(--sq-brown-dark);
  background-color: var(--sq-beige-soft);
  overflow-x: hidden;
}
::selection {
  background: var(--sq-terracotta);
  color: var(--sq-cream);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sq-terracotta);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========== TYPOGRAPHY =========== */
.sq-title {
  font-family: var(--sq-font-display);
  font-weight: 600;
  color: var(--sq-brown-dark);
  font-size: 2.4rem;
  margin-bottom: 0.5rem !important;
}
.sq-subtitle {
  font-family: var(--sq-font-display);
  font-weight: 600;
  color: var(--sq-brown-dark);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.sq-eyebrow {
  font-family: var(--sq-font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sq-terracotta);
  margin-bottom: 0.6rem;
}
.sq-section-lead {
  max-width: 640px;
  color: var(--sq-brown-mid);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.sq-body-text {
  color: var(--sq-brown-mid);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}
.sq-body-text em {
  color: var(--sq-terracotta);
  font-style: normal;
  font-weight: 600;
}
.sq-body-text strong { color: var(--sq-brown-dark); }

/* Diamond divider — echoes the rhombus motif from the original logo */
.sq-divider {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 1.2rem 0;
}
.sq-diamond {
  width: 9px;
  height: 9px;
  background: var(--sq-terracotta);
  transform: rotate(45deg);
  display: inline-block;
  opacity: 0.85;
}
.sq-diamond:nth-child(2) { opacity: 1; width: 11px; height: 11px; }

/* =========== NAVBAR =========== */
.sq-navbar {
  background-color: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(59,42,30,0.08);
  transition: box-shadow 0.3s ease;
}
.sq-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sq-nav-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}
.sq-brand-text {
  font-family: var(--sq-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sq-brown-dark);
  letter-spacing: 0.02em;
}
.sq-nav-link {
  font-family: var(--sq-font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--sq-brown-mid) !important;
  letter-spacing: 0.02em;
  position: relative;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sq-nav-link:hover {
  color: var(--sq-terracotta) !important;
  background-color: transparent !important;
  border-bottom-color: var(--sq-terracotta);
}
.navbar-burger {
  color: var(--sq-brown-dark);
}
.navbar-burger:hover {
  background-color: var(--sq-beige);
}
.navbar-burger span {
  background-color: var(--sq-brown-dark);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--sq-cream);
    box-shadow: var(--sq-shadow);
  }
}

/* =========== BUTTONS =========== */
.sq-btn-primary {
  background-color: var(--sq-terracotta);
  color: var(--sq-cream) !important;
  border: 2px solid var(--sq-terracotta);
  border-radius: 999px;
  padding: 1.5rem 2rem;
  font-family: var(--sq-font-body);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  height: auto;
}
.sq-btn-primary:hover {
  background-color: var(--sq-brown-dark);
  border-color: var(--sq-brown-dark);
  color: var(--sq-cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(59,42,30,0.25);
}
.sq-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =========== HERO =========== */
.sq-hero {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--sq-brown-dark);
}
.sq-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--sq-brown-dark);
}
.sq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59,42,30,0.55) 0%, rgba(59,42,30,0.72) 55%, rgba(59,42,30,0.85) 100%);
}
.sq-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}
.sq-hero-logo {
  width: 200px;
  max-width: 60vw;
  height: auto;
  margin: 0 auto 1.2rem;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.35));
}
.sq-hero-subtitle {
  font-family: var(--sq-font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--sq-beige);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}
.sq-hero-secondary {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--sq-terracotta-lt);
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.sq-hero-desc {
  color: var(--sq-beige);
  max-width: 560px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
  font-size: 1.02rem;
}

.sq-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sq-beige);
  font-size: 1.3rem;
  z-index: 2;
  animation: sq-bounce 2.2s infinite;
}
@keyframes sq-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* =========== SECTIONS =========== */
.sq-section {
  padding: 6rem 0;
  background-color: var(--sq-beige-soft);
}
.sq-section-alt {
  background-color: var(--sq-beige);
}
.sq-about-columns { margin-top: 2rem; }
.sq-about-figure img {
  border-radius: var(--sq-radius);
  box-shadow: var(--sq-shadow);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* =========== SCROLL REVEAL =========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].sq-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========== IMAGE GALLERY =========== */
.sq-gallery-item {
  border-radius: var(--sq-radius);
  overflow: hidden;
  box-shadow: var(--sq-shadow);
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background-color: var(--sq-beige);
}
.sq-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.sq-gallery-item:hover img {
  transform: scale(1.08);
}
.sq-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59,42,30,0) 45%, rgba(59,42,30,0.82) 100%);
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sq-gallery-item:hover .sq-gallery-overlay {
  opacity: 1;
}
.sq-gallery-overlay span {
  color: var(--sq-cream);
  font-size: 0.85rem;
  font-weight: 500;
}
.sq-gallery-overlay i {
  color: var(--sq-cream);
  margin-right: 0.4rem;
}

/* =========== LIGHTBOX =========== */
.sq-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27, 19, 13, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.sq-lightbox.is-active {
  display: flex;
}
.sq-lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: sq-zoom-in 0.3s ease;
}
@keyframes sq-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.sq-lightbox-caption {
  color: var(--sq-beige);
  margin-top: 1.2rem;
  font-size: 0.95rem;
  text-align: center;
  padding: 0 1rem;
}
.sq-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(251,246,238,0.1);
  border: 2px solid rgba(251,246,238,0.4);
  color: var(--sq-cream);
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sq-lightbox-close:hover {
  background: var(--sq-terracotta);
  border-color: var(--sq-terracotta);
  transform: scale(1.06);
}
.sq-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(251,246,238,0.12);
  border: 2px solid rgba(251,246,238,0.35);
  color: var(--sq-cream);
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sq-lightbox-nav:hover {
  background: var(--sq-terracotta);
  border-color: var(--sq-terracotta);
  transform: translateY(-50%) scale(1.06);
}
.sq-lightbox-prev { left: 1.5rem; }
.sq-lightbox-next { right: 1.5rem; }

/* =========== VIDEO CARDS =========== */
.sq-video-card, .sq-article-card {
  background-color: var(--sq-cream);
  border-radius: var(--sq-radius);
  overflow: hidden;
  box-shadow: var(--sq-shadow);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sq-video-card:hover, .sq-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(59,42,30,0.18);
}
.sq-video-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}
.sq-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sq-video-thumb:hover img { transform: scale(1.06); }
.sq-video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59,42,30,0.25);
}
.sq-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--sq-terracotta);
  color: var(--sq-cream);
  border: 3px solid rgba(251,246,238,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.sq-play-btn:hover {
  background: var(--sq-brown-dark);
  transform: translate(-50%, -50%) scale(1.08);
}
.sq-card-title {
  font-family: var(--sq-font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--sq-brown-dark);
  margin-bottom: 0.5rem;
}
.sq-card-text {
  color: var(--sq-brown-mid);
  font-size: 0.92rem;
  line-height: 1.65;
}
.sq-card-text em {
  color: var(--sq-terracotta);
  font-style: italic;
  font-weight: 600;
}
.card-content { padding: 1.4rem; }

/* =========== VIDEO MODAL =========== */
.sq-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(27,19,13,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.sq-video-modal.is-active { display: flex; }
.sq-video-modal-inner {
  width: min(880px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sq-video-modal.has-description .sq-video-modal-inner {
  width: min(1180px, 94vw);
}
.sq-vimeo-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  /* padding-top se define dinámicamente por JS según la proporción de cada video */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #000;
}
.sq-vimeo-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.sq-video-modal-desc {
  display: none;
  background: var(--sq-cream);
  border-radius: var(--sq-radius);
  padding: 1.6rem 1.8rem;
  max-height: 60vh;
  overflow-y: auto;
}
.sq-video-modal-desc .sq-eyebrow { margin-bottom: 0.5rem; }
.sq-video-modal-desc-text p {
  color: var(--sq-brown-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.sq-video-modal-desc-text p:last-child { margin-bottom: 0; }
.sq-video-modal-desc-text strong { color: var(--sq-brown-dark); }
.sq-video-modal-desc-text em {
  color: var(--sq-terracotta);
  font-style: normal;
  font-weight: 600;
}

/* En pantallas amplias, video y descripción van lado a lado */
@media screen and (min-width: 900px) {
  .sq-video-modal.has-description .sq-video-modal-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .sq-video-modal.has-description .sq-video-modal-media {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sq-video-modal.has-description .sq-video-modal-desc {
    flex: 1;
    display: block;
    max-height: min(70vh, 560px);
  }
}

/* =========== ARTICLES =========== */
.sq-read-more {
  color: var(--sq-terracotta);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  background: transparent;
  border: 2px solid var(--sq-terracotta);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  font-family: var(--sq-font-body);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sq-read-more:hover {
  background-color: var(--sq-terracotta);
  color: var(--sq-cream);
  transform: translateY(-2px);
}
.sq-read-more i { transition: transform 0.2s ease; }
.sq-read-more:hover i { transform: translateX(3px); }

/* =========== CULTURE CARDS =========== */
.sq-culture-card {
  background-color: var(--sq-cream);
  border-radius: var(--sq-radius);
  overflow: hidden;
  box-shadow: var(--sq-shadow);
  position: relative;
  padding-bottom: 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sq-culture-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(59,42,30,0.18);
}
.sq-culture-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sq-culture-icon {
  width: 54px;
  height: 54px;
  background: var(--sq-terracotta);
  color: var(--sq-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: -27px auto 1rem;
  position: relative;
  z-index: 2;
  border: 4px solid var(--sq-cream);
  box-shadow: 0 4px 12px rgba(59,42,30,0.25);
}
.sq-culture-card .sq-card-title,
.sq-culture-card .sq-card-text {
  text-align: center;
  padding: 0 1.2rem;
}

/* =========== INFO BLOCKS =========== */
.sq-info-block { margin-bottom: 4rem; }
.sq-info-block:last-child { margin-bottom: 0; }
.sq-info-block-reverse .column:first-child { order: 2; }
.sq-info-block-reverse .column:last-child { order: 1; }
@media screen and (max-width: 768px) {
  .sq-info-block-reverse .column:first-child { order: 1; }
  .sq-info-block-reverse .column:last-child { order: 2; }
}

/* =========== SOCIAL ICONS (usados en el footer) =========== */
.sq-social-icons {
  display: flex;
  gap: 0.8rem;
}
.sq-social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sq-beige);
  border: 2px solid transparent;
  color: var(--sq-brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.sq-social-icons a:hover {
  background: var(--sq-terracotta);
  border-color: var(--sq-brown-dark);
  color: var(--sq-cream);
  transform: translateY(-3px);
}

/* =========== LANGUAGE TOGGLE =========== */
.sq-lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sq-beige);
  color: var(--sq-brown-dark);
  border: 2px solid var(--sq-brown-dark);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sq-lang-toggle:hover {
  background: var(--sq-terracotta);
  border-color: var(--sq-terracotta);
  color: var(--sq-cream);
  transform: translateY(-2px);
}
.sq-lang-toggle i { font-size: 0.85rem; }
.sq-lang-toggle.is-loading-translate {
  opacity: 0.6;
  cursor: wait;
}
.sq-lang-toggle.is-loading-translate i {
  animation: sq-spin 0.8s linear infinite;
}
@keyframes sq-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========== EXHIBIT BLOCKS (Exposiciones en Video) =========== */
.sq-exhibit-block { margin-bottom: 4.5rem; }
.sq-exhibit-block:last-child { margin-bottom: 0; }
.sq-exhibit-block-reverse .column:first-child { order: 2; }
.sq-exhibit-block-reverse .column:last-child { order: 1; }
@media screen and (max-width: 768px) {
  .sq-exhibit-block-reverse .column:first-child { order: 1; }
  .sq-exhibit-block-reverse .column:last-child { order: 2; }
}
.sq-exhibit-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sq-terracotta);
  margin-bottom: 0.6rem;
}

/* Crédito curatorial (Sobre la exposición) */
.sq-exhibit-credit {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sq-beige);
  color: var(--sq-brown-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}
.sq-exhibit-credit strong {
  font-family: var(--sq-font-display);
  font-size: 1.05rem;
}

/* Subsecciones dentro de "Habitar el Altiplano" (Textiles, Ritualidad, etc.) */
.sq-expo-subsection {
  margin-top: 4rem;
  margin-bottom: 2rem;
  max-width: 760px;
}
.sq-expo-subsection .sq-subtitle { margin-bottom: 0.8rem; }
.sq-expo-grid { margin-bottom: 1rem; }

.sq-exhibit-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--sq-radius);
  box-shadow: var(--sq-shadow);
}
.sq-exhibit-thumb img { border-radius: var(--sq-radius); }
.sq-exhibit-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  background: transparent;
  border: 2px solid var(--sq-terracotta);
  color: var(--sq-terracotta);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sq-exhibit-watch-btn:hover {
  background-color: var(--sq-terracotta);
  color: var(--sq-cream);
  transform: translateY(-2px);
}

/* =========== ARTICLE MODAL =========== */
.sq-article-modal {
  position: fixed;
  inset: 0;
  background: rgba(27, 19, 13, 0.88);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.sq-article-modal.is-active { display: flex; }
.sq-article-modal-inner {
  background-color: var(--sq-cream);
  border-radius: var(--sq-radius);
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
  animation: sq-zoom-in 0.3s ease;
}
.sq-article-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--sq-cream);
  background: rgba(59,42,30,0.55);
  border: 2px solid rgba(251,246,238,0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sq-article-modal-close:hover {
  background: var(--sq-terracotta);
  border-color: var(--sq-terracotta);
  transform: scale(1.06);
}
.sq-article-modal-image {
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  border-radius: var(--sq-radius) var(--sq-radius) 0 0;
  position: relative;
}
.sq-article-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carrusel de fotos (varios ángulos de una misma pieza) */
.sq-piece-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.sq-piece-slide {
  min-width: 100%;
  height: 100%;
}
.sq-piece-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sq-piece-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59,42,30,0.5);
  border: 2px solid rgba(251,246,238,0.6);
  color: var(--sq-cream);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.sq-piece-carousel-arrow:hover {
  background: var(--sq-terracotta);
  border-color: var(--sq-terracotta);
}
.sq-piece-carousel-prev { left: 0.8rem; }
.sq-piece-carousel-next { right: 0.8rem; }
.sq-piece-carousel.has-multiple .sq-piece-carousel-arrow {
  display: flex;
  transform: translateY(calc(-50% - 14px));
}
.sq-piece-carousel-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  display: none;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}
.sq-piece-carousel.has-multiple .sq-piece-carousel-dots { display: flex; }
.sq-piece-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(251,246,238,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.sq-piece-dot.is-active {
  background: var(--sq-cream);
  transform: scale(1.3);
}

.sq-article-modal-body {
  padding: 2rem 2.2rem 2.5rem;
}
.sq-article-modal-title {
  font-family: var(--sq-font-display);
  font-weight: 600;
  color: var(--sq-brown-dark);
  font-size: 1.8rem;
  margin: 0.4rem 0 1.4rem;
  line-height: 1.25;
}
.sq-article-modal-text p {
  color: var(--sq-brown-mid);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.sq-article-modal-text p:last-child { margin-bottom: 0; }
.sq-article-modal-text strong { color: var(--sq-brown-dark); }
.sq-article-modal-text em {
  color: var(--sq-terracotta);
  font-style: normal;
  font-weight: 600;
}

/* Navegación anterior/siguiente dentro del modal de pieza */
.sq-piece-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sq-beige);
}
.sq-piece-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 2px solid var(--sq-terracotta);
  color: var(--sq-terracotta);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-family: var(--sq-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sq-piece-nav-btn:hover {
  background-color: var(--sq-terracotta);
  color: var(--sq-cream);
  transform: translateY(-2px);
}
@media screen and (max-width: 480px) {
  .sq-piece-nav-btn { font-size: 0.78rem; padding: 0.55rem 0.85rem; }
}

/* Figura + leyenda de herramientas (ej. telar en el artículo del awayu) */
.sq-article-figure {
  margin: 1.6rem 0 1.2rem;
}
.sq-article-figure img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--sq-shadow);
  display: block;
}
.sq-article-figure figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sq-brown-mid);
  margin-top: 0.6rem;
  font-style: italic;
}
.sq-loom-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
  padding: 1.2rem 1.4rem;
  background: var(--sq-beige-soft);
  border-radius: 10px;
  border: 1px solid var(--sq-beige);
}
.sq-loom-legend dt {
  font-family: var(--sq-font-display);
  font-weight: 600;
  color: var(--sq-terracotta);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.sq-loom-legend dd {
  color: var(--sq-brown-mid);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}
.sq-loom-legend dd em {
  font-style: normal;
  font-weight: 600;
  color: var(--sq-brown-dark);
}
@media screen and (max-width: 480px) {
  .sq-loom-legend { grid-template-columns: 1fr; }
}

/* =========== FOOTER =========== */
.sq-footer {
  background-color: var(--sq-brown-dark);
  color: var(--sq-beige);
  padding: 4rem 0 0;
}
.sq-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.sq-footer-brand img {
  height: 46px;
  width: auto;
  border-radius: 6px;
}
.sq-footer-brand span {
  font-family: var(--sq-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--sq-cream);
}
.sq-footer-text {
  color: var(--sq-beige);
  opacity: 0.75;
  font-size: 0.92rem;
}
.sq-footer-heading {
  font-family: var(--sq-font-display);
  font-weight: 600;
  color: var(--sq-cream);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.sq-footer-links {
  list-style: none;
}
.sq-footer-links li { margin-bottom: 0.6rem; }
.sq-footer-links a {
  color: var(--sq-beige);
  opacity: 0.8;
  font-size: 0.92rem;
}
.sq-footer-links a:hover {
  opacity: 1;
  color: var(--sq-terracotta-lt);
}
.sq-footer-bottom {
  border-top: 1px solid rgba(233,219,198,0.15);
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
}
.sq-footer-bottom p {
  color: var(--sq-beige);
  opacity: 0.65;
  font-size: 0.85rem;
}

/* =========== RESPONSIVE =========== */

/* Tablets y menú móvil (hasta 1023px, breakpoint de Bulma para el burger) */
@media screen and (max-width: 1023px) {
  .navbar-end { padding: 0.5rem 0 1rem; }
  .navbar-end .navbar-item { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .sq-lang-toggle {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  .sq-title { font-size: 1.9rem; }
  .sq-section { padding: 4rem 0; }
  .sq-hero-logo { width: 150px; }
  .sq-hero-desc { font-size: 0.95rem; }
  .sq-culture-card .sq-card-title, .sq-culture-card .sq-card-text { padding: 0 0.8rem; }

  .sq-exhibit-block { margin-bottom: 3rem; }
  .sq-exhibit-block .column:first-child { margin-bottom: 1.5rem; }

  .sq-lightbox-nav { width: 44px; height: 44px; font-size: 1.1rem; }
  .sq-lightbox-prev { left: 0.6rem; }
  .sq-lightbox-next { right: 0.6rem; }
  .sq-lightbox-close { top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; }
  .sq-lightbox img { max-width: 92vw; max-height: 70vh; }

  .sq-article-modal-image { aspect-ratio: 4/3; }
  .sq-article-modal-body { padding: 1.5rem 1.3rem 2rem; }
  .sq-article-modal-title { font-size: 1.4rem; }

  .footer .columns .column { text-align: center; margin-bottom: 1.5rem; }
  .sq-footer-brand { justify-content: center; }
  .sq-social-icons { justify-content: center; }
}

/* Celulares pequeños */
@media screen and (max-width: 480px) {
  .sq-title { font-size: 1.55rem; }
  .sq-subtitle { font-size: 1.3rem; }
  .sq-section { padding: 3rem 0; }
  .sq-section-lead { font-size: 0.95rem; margin-bottom: 1.8rem; }

  .sq-brand-text { font-size: 0.98rem; }
  .sq-nav-logo { height: 34px; }

  .sq-hero-logo { width: 125px; }
  .sq-hero-subtitle { font-size: 1.1rem; }
  .sq-hero-secondary { font-size: 0.72rem; letter-spacing: 0.18em; }
  .sq-hero-desc { font-size: 0.9rem; }
  .sq-btn-primary { padding: 1.2rem 1.5rem; font-size: 0.88rem; width: 100%; }

  .sq-gallery-overlay span { font-size: 0.78rem; }
  .sq-card-title { font-size: 1.02rem; }
  .sq-card-text { font-size: 0.88rem; }

  .sq-culture-icon { width: 46px; height: 46px; font-size: 1.05rem; margin-top: -23px; }

  .sq-play-btn { width: 52px; height: 52px; font-size: 0.95rem; }

  .sq-article-modal-body { padding: 1.2rem 1rem 1.6rem; }
  .sq-article-modal-title { font-size: 1.2rem; }
  .sq-eyebrow { font-size: 0.7rem; }

  .sq-exhibit-watch-btn { font-size: 0.85rem; padding: 0.6rem 0.9rem; }

  .sq-lightbox-nav { width: 38px; height: 38px; font-size: 1rem; }
  .sq-lightbox-caption { font-size: 0.85rem; }
}
