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

:root {
  --bg:        #F8F6F2;
  --bg-rgb:    248 246 242;
  --bg-off:    #F0EBE3;
  --bg-dark:   #DDD1BF;

  --text:      #2A231C;
  --text-mid:  #655A4E;
  --text-soft: #8E8378;

  --sand:      #E7D7B7;
  --grass:     #C9AA69;
  --olive:     #64613B;
  --rock:      #A58B79;
  --sky:       #77A6DD;

  --rule:      #D5CABC;

  --nav-height: 170px;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--nav-height); }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a, button, [role="button"] { cursor: none; }

/* ── CURSOR ─────────────────────────────────────── */
#cursor-wand {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

#cursor-wand svg {
  width: 38px; height: 38px;
  overflow: visible;
  animation: wandPulse 1.8s ease-in-out infinite;
}

@keyframes wandPulse {
  0%,100% { filter: drop-shadow(0 0 5px rgba(255,255,255,0.95)) drop-shadow(0 0 12px rgba(255,255,255,0.5)); }
  50%      { filter: drop-shadow(0 0 10px rgba(255,255,255,1))   drop-shadow(0 0 24px rgba(255,255,255,0.8)); }
}

.trail-star {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  line-height: 1;
  animation: trailFade 0.85s ease-out forwards;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
  color: var(--text);
  text-shadow:
    0 0 5px rgba(255,255,255,1),
    0 0 12px rgba(255,255,255,0.7),
    0 0 22px rgba(255,255,255,0.35);
}

@keyframes trailFade {
  0%   { opacity: 1;   transform: translate(-50%,-50%) scale(1.2); }
  60%  { opacity: 0.6; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.75); }
  100% { opacity: 0;   transform: translate(calc(-50% + var(--dx2)),calc(-50% + var(--dy2))) scale(0.2); }
}

@media (hover: none) and (pointer: coarse) {
  #cursor-wand,
  .trail-star {
    display: none !important;
  }

  body,
  a, button, [role="button"] {
    cursor: auto;
  }
}

/* ── MENU OVERLAY ───────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,8,0.96);
  z-index: 1000;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
  padding: 0 10vw;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1);
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-close {
  position: absolute; top: 36px; right: 40px;
  background: none; border: none; color: #f5f4f0;
  font-size: 26px; cursor: none; line-height: 1;
  opacity: 0.5; transition: opacity 0.2s;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.menu-close:hover { opacity: 1; }

.menu-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.menu-nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 68px);
  color: #f5f4f0; text-decoration: none;
  letter-spacing: -0.02em; line-height: 1.2;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.2s;
  cursor: none;
}
.menu-overlay.open .menu-nav a { opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-nav a:nth-child(1) { transition-delay: 0.07s; }
.menu-overlay.open .menu-nav a:nth-child(2) { transition-delay: 0.13s; }
.menu-overlay.open .menu-nav a:nth-child(3) { transition-delay: 0.19s; }
.menu-overlay.open .menu-nav a:nth-child(4) { transition-delay: 0.25s; }
.menu-nav a:hover { color: #fff; }

.menu-overlay-footer {
  position: absolute; bottom: 36px; left: 40px;
  display: flex; gap: 32px;
  opacity: 0; transition: opacity 0.5s ease 0.28s;
}
.menu-overlay.open .menu-overlay-footer { opacity: 1; }

.menu-overlay-footer a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #666; text-decoration: none;
  transition: color 0.2s; cursor: none;
}
.menu-overlay-footer a:hover { color: #f5f4f0; }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  width: 100%; background-color: rgb(var(--bg-rgb) / 90%);
  z-index: 500;
}

.header-top {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 44px 0 44px;
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.05s both;
}

.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 120px; width: auto; display: block; }

/* ── DESKTOP NAV (links horizontales, se oculta en mobile) ── */
.desktop-nav {
  display: flex; align-items: center; gap: 32px;
}
.desktop-nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sky); text-decoration: none;
  cursor: none;
  transition: color 0.2s, letter-spacing 0.25s;
}
.desktop-nav a:hover { color: var(--text); letter-spacing: 0.16em; }

.nav-area { display: flex; flex-direction: column; align-items: flex-end; padding-top: 2px; }

.menu-btn {
  background: none; border: none; cursor: none;
  padding: 0; position: relative;
  width: 36px; height: 24px;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.menu-btn:hover { opacity: 0.65; transform: scale(1.05); }

.menu-btn-bar {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.25s ease;
}
.menu-btn-bar:nth-child(1) { top: 0; }
.menu-btn-bar:nth-child(2) { top: 11px; left: auto; right: 0; width: 70%; }
.menu-btn-bar:nth-child(3) { top: 22px; }
.menu-btn:hover .menu-btn-bar:nth-child(2) { width: 100%; }
.menu-btn.is-open .menu-btn-bar:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-btn.is-open .menu-btn-bar:nth-child(2) { opacity: 0; width: 100%; }
.menu-btn.is-open .menu-btn-bar:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ── RESPONSIVE NAV: hamburguesa solo en mobile ──── */
@media (min-width: 721px) {
  .nav-area { display: none; }
}
@media (max-width: 720px) {
  .desktop-nav { display: none; }

  :root { --nav-height: 96px; }
  .header-top { padding: 18px 24px 0 24px; }
  .logo-img { height: 64px; }
}

/* ── HERO (fondo, ocupa la primera pantalla completa) ── */
.hero-section {
  position: relative; z-index: 2;
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s both;
  background-image: url('/images/site/background-image.jpg');
  background-size: cover;
  background-position: center;
}

/* ── ABOUT ROCK (columna izquierda, al lado del about) ── */
.about-rock {
  flex: 0 0 44%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  min-height: 440px;
}
.rock-img {
  width: 100%; max-width: 460px; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.18)) drop-shadow(0 3px 8px rgba(0,0,0,0.1));
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.rock-img:hover {
  filter: drop-shadow(0 22px 56px rgba(0,0,0,0.24)) drop-shadow(0 3px 8px rgba(0,0,0,0.1));
  transform: translateY(-7px) rotate(1.2deg);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ABOUT ──────────────────────────────────────── */
.about-section {
  background-color: var(--bg-off);
  padding: 72px 44px 80px; position: relative;
}
.about-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--text); opacity: 0.8;
  clip-path: polygon(
    0% 40%, 1% 10%, 2% 70%, 3% 20%, 4% 65%, 6% 15%, 8% 60%,
    10% 20%, 13% 65%, 16% 15%, 19% 60%, 22% 20%, 25% 65%,
    28% 15%, 31% 60%, 34% 20%, 37% 65%, 40% 15%, 43% 60%,
    46% 20%, 49% 65%, 52% 15%, 55% 60%, 58% 20%, 61% 65%,
    64% 15%, 67% 60%, 70% 20%, 73% 65%, 76% 15%, 79% 60%,
    82% 20%, 85% 65%, 88% 15%, 91% 60%, 93% 20%, 95% 65%,
    97% 15%, 99% 60%, 100% 40%,
    100% 80%, 99% 100%, 97% 55%, 95% 90%, 93% 50%, 91% 90%,
    88% 55%, 85% 90%, 82% 50%, 79% 90%, 76% 55%, 73% 90%,
    70% 50%, 67% 90%, 64% 55%, 61% 90%, 58% 50%, 55% 90%,
    52% 55%, 49% 90%, 46% 50%, 43% 90%, 40% 55%, 37% 90%,
    34% 50%, 31% 90%, 28% 55%, 25% 90%, 22% 50%, 19% 90%,
    16% 55%, 13% 90%, 10% 50%, 8% 90%, 6% 55%, 4% 90%,
    3% 50%, 2% 90%, 1% 55%, 0% 80%
  );
}

.about-flex {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 56px;
}

.about-inner { flex: 1; max-width: 620px; margin: 0; position: relative; }

@media (max-width: 720px) {
  .about-flex { flex-direction: column; gap: 32px; }
  .about-rock { flex: 0 0 auto; width: 100%; min-height: 340px; }
  .about-inner { max-width: 100%; }
}

.about-label {
  position: static; text-align: left; margin-bottom: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.1em; line-height: 2.1;
  color: var(--text-soft); text-transform: uppercase;
}

.about-title-handwritten {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 46px;
  font-style: normal; font-weight: 700; color: var(--olive);
  margin-bottom: 30px; line-height: 1.05; letter-spacing: -0.01em;
}

.about-body p {
  font-size: 14.5px; line-height: 1.8; margin-bottom: 16px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--text-mid); max-width: 620px;
}
.about-body p:last-child { margin-bottom: 0; }

.collab-btn {
  display: inline-block; margin-top: 32px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
  padding: 14px 30px; border: 1px solid var(--text); border-radius: 999px;
  color: var(--text); text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.collab-btn:hover { background: var(--olive); color: var(--bg); }

/* ── MAP SECTION ────────────────────────────────── */
.map-section {
  display: flex; min-height: 420px;
  background-color: var(--bg); position: relative;
}

.map-left {
  flex: 0 0 42%;
  padding: 60px 0 60px 44px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.map-loc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 32px 22px 0;
  position: relative;
  opacity: 0.9;
  transition: opacity 0.25s, padding-left 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: none;
}
.map-loc-item:hover { opacity: 1; padding-left: 6px; }

.map-loc-item::before {
  content: '+';
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--bg);
  font-size: 11px; font-weight: 700; line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgb(var(--bg-rgb) / 70%);
  transition: transform 0.25s ease;
}
.map-loc-item:hover::before,
.map-loc-item.active::before { transform: scale(1.3) rotate(90deg); }

.map-loc-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgb(var(--bg-rgb) / 70%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.map-loc-item:hover .map-loc-name,
.map-loc-item.active .map-loc-name {
  border-color: var(--text);
  background: var(--bg-off);
}

.map-loc-item.taller .map-loc-name {
  border-style: dashed;
  opacity: 0.5;
}

.map-loc-item.taller::before { opacity: 0.4; }

.map-address {
  font-size: 12px; line-height: 1.8;
  color: var(--text-soft); font-style: italic;
  letter-spacing: 0.02em; margin-top: 36px;
  padding-right: 32px;
}
.map-right {
  flex: 0 0 55%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.map-right:hover .map-img { filter: grayscale(0%) contrast(1.07); }
#map-lines-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

.map-right picture {
  width: 50%;
  display: block;
  margin-left: auto;
}

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

.map-pin{
    position:absolute;
    width:1px;
    height:1px;
}

#target-territorio{
    left:80%;
    top:20%;
}

#target-taller{
    left:68%;
    top:43%;
}

#target-residencia{
    left:82%;
    top:63%;
}

@media (max-width: 680px) {
  .map-section {
    position: relative;
    min-height: 70vh;
  }

  #map-lines-svg { display: none; }

  .map-right {
    position: absolute; inset: 0;
    width: 100%; height: 100%; z-index: 1;
  }
  .map-right picture { width: 100%; height: 100%; }
  .map-img { width: 100%; height: 100%; object-fit: cover; }

  .map-left {
    position: absolute; inset: 0;
    z-index: 2; padding: 0;
    pointer-events: none;
  }
  .map-locations { position: static; }
  .map-address { display: none; }

  .map-loc-item {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0; gap: 6px;
    pointer-events: auto;
  }
  #pin-territorio { left: 70%; top: 20%; }
  #pin-taller     { left: 48%; top: 46%; }
  #pin-residencia { left: 74%; top: 64%; }

  .map-loc-name { font-size: 10.5px; padding: 6px 12px; white-space: nowrap; }
}

/* ── STARS SPACER ───────────────────────────────── */
.stars-section {
  background-color: var(--bg); min-height: 200px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 40px; padding: 56px 0;
}

.star-row {
  font-size: 14px; opacity: 0;
  transform: translateY(10px); color: var(--text);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.star-row.visible { opacity: 0.3; transform: translateY(0); }
.star-row:nth-child(2).visible { transition-delay: 0.15s; }
.star-row:nth-child(3).visible { transition-delay: 0.3s; }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background-color: var(--bg-dark); padding: 32px 44px;
  display: flex; justify-content: center;
  position: relative;
}
.footer-center {
  display: flex; gap: 18px;
  position: relative; padding-top: 20px;
}

.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.footer-copy {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--text-soft);
}

footer a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; cursor: none;
  transition: color 0.2s, letter-spacing 0.25s;
}
footer a:hover { color: var(--text); letter-spacing: 0.17em; }

.map-loc-item { cursor: none; }
.map-loc-item.active .map-loc-name { color: var(--text); }
.map-loc-item.active { opacity: 1; }
.map-loc-item.taller { pointer-events: none; }

/* ── GALLERY PANEL ───────────────────────────────── */
.gallery-section {
  background-color: var(--bg);
  padding: 0 44px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), padding 0.5s ease;
}
.gallery-section.open {
  max-height: 900px;
  padding: 48px 44px 64px;
}
.gallery-inner { max-width: 900px; margin: 0 auto; }
.gallery-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.gallery-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text);
}
.gallery-close {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); background: none; border: none;
}
.gallery-close:hover { color: var(--text); }
.gallery-main {
  width: 100%; height: auto; max-height: 70vh; border-radius: 4px;
  margin-bottom: 12px; object-fit: contain; display: block;
  background-color: var(--bg-off);
}
.gallery-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
}
.gallery-thumb {
  flex: 0 0 auto; width: 96px; height: 64px; border-radius: 3px;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.7; object-fit: cover; display: block;
  background-color: var(--bg-off);
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--text); opacity: 1; }

/* ── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PROGRAM DETAIL ──────────────────────────────── */
.detail-section {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: var(--nav-height);
  padding: 48px 44px 100px;
}
.detail-back {
  display: inline-block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-soft); text-decoration: none;
  margin-bottom: 28px; transition: color 0.2s;
}
.detail-back:hover { color: var(--text); }
.detail-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); margin-bottom: 10px;
}
.detail-title {
  font-size: clamp(28px, 4.5vw, 42px); font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 8px; color: var(--text);
}
.detail-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 36px; }

.detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.detail-photo {
  width: 100%; height: 50vh; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  cursor: none;
  transition: opacity 0.2s ease;
}
.detail-photo:hover { opacity: 0.85; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-photo { width: 80%; }
}
@media (max-width: 560px) {
  .detail-grid { grid-template-columns: 1fr; }
    .detail-photo { width: 80%; }
}

/* ── LIGHTBOX (imagen ampliada, aspect ratio original) ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,8,0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
}
.lightbox.open .lightbox-img { opacity: 1; transform: scale(1); }
.lightbox-close {
  position: absolute; top: 28px; right: 36px;
  background: none; border: none; color: #f5f4f0;
  font-size: 24px; cursor: none; opacity: 0.6; line-height: 1;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-counter {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #cfcdc8; opacity: 0.7;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #f5f4f0;
  font-size: 42px; line-height: 1; cursor: none;
  opacity: 0.55; padding: 12px 18px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-nav.hidden { display: none; }
@media (max-width: 720px) {
  .lightbox-nav { font-size: 30px; padding: 8px 12px; }
  .lightbox-close { top: 18px; right: 20px; }
}

/* ── CONVOCATORIAS GRID ─────────────────────────── */
.conv-section {
  max-width: 900px;
  margin: 0 auto;
  margin-top: var(--nav-height);
  padding: 56px 44px 100px;
}
.conv-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); margin-bottom: 28px;
}
.conv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}

.conv-card {
  display: block; text-decoration: none; color: inherit; cursor: none;
}
.conv-flyer {
  width: 100%; height: 60vh; aspect-ratio: 3 / 4; border-radius: 4px;
  margin-bottom: 14px; transition: opacity 0.25s ease, transform 0.25s ease;
  object-fit: cover; display: block; background-color: var(--bg-off);
}
.conv-flyer-soon {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 4px;
  margin-bottom: 14px; display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.conv-card:hover .conv-flyer-soon,
.conv-card:hover .conv-flyer {
  opacity: 0.82; transform: translateY(-2px);
}
.qm-bg   { fill: var(--bg-dark); }
.qm-mark { fill: var(--text); }
.qm-star { fill: var(--text-soft); opacity: 0.55; }
.conv-card-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text);
}
.conv-card-sub {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px; color: var(--text-soft); margin-top: 4px;
}

@media (max-width: 620px) {
  .conv-grid { grid-template-columns: 1fr; }
  .conv-flyer { width: 90%; heigth: 50vh; }
}


/* ── PUBLICATIONS LIST ───────────────────────────── */
.pub-list-section {
  min-height: calc(100vh - var(--nav-height));
  margin: 0 auto;
  margin-top: var(--nav-height);
  padding: 56px 44px 100px;
}
.pub-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); margin-bottom: 28px;
}
.pub-list { border-top: 1px solid var(--rule); }
.pub-item { border-bottom: 1px solid var(--rule); }

.pub-item-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 26px 0; background: none; border: none;
  cursor: none; text-align: left; font-family: inherit;
}
.pub-item-header-text { display: flex; flex-direction: column; gap: 6px; }
.pub-item-title {
  font-family: var(--font-editorial);
  font-size: clamp(28px, 4vw, 38px); font-weight: 500; color: var(--text);
  letter-spacing: 0; font-style: normal;
}
.pub-item-sub {
  font-family: var(--font-editorial);
  font-style: italic; font-weight: 300;
  font-size: 17px; line-height: 1.5;
  color: var(--text-soft); max-width: 600px;
}
.pub-item-chevron {
  flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--text);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.pub-item.open .pub-item-chevron { transform: rotate(45deg); }

.pub-item-body {
  max-height: 0; overflow-y: hidden; overflow-x: visible;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1);
}
.pub-item-body-inner { padding: 4px 0 36px; }

.pub-toggle { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pub-toggle-divider { font-size: 12px; color: var(--text-soft); }
.toggle-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase;
  background: none; border: none; cursor: none; padding: 2px 0;
  color: var(--text-soft); position: relative;
  transition: color 0.25s ease;
}
.toggle-btn::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--text);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.toggle-btn:hover { color: var(--text); }
.toggle-btn.active { color: var(--text); font-weight: 700; }
.toggle-btn.active::after { width: 100%; }

.pub-page-viewer {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: auto auto;
  width: 100vw; max-width: 80vw;
  padding: 0 24px;
}
.pub-page-stage {
  position: relative; flex: 1; aspect-ratio: 3 / 2;
  perspective: 1600px; border-radius: 4px; overflow: hidden;
}
.pub-page-slice {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.45,0,0.2,1), opacity 0.4s ease;
  will-change: transform, opacity;
}
.pub-page-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--text); background: none; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; cursor: none;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.pub-page-arrow:hover { background: var(--text); color: var(--bg); }
.pub-page-arrow:disabled { opacity: 0.25; cursor: default; }
.pub-page-arrow:disabled:hover { background: none; color: var(--text); }
.pub-page-counter {
  text-align: center; font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-soft); margin-top: 12px;
}
.pub-viewer-note { font-size: 12px; color: var(--text-soft); margin-top: 12px; }

.pub-page-stage { cursor: pointer; }
@media (hover: hover) {
  .pub-page-stage:hover { opacity: 0.92; }
}

.pub-lightbox .lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
}

.pub-lightbox {
  background: var(--bg);
}

.pub-lightbox .lightbox-close,
.pub-lightbox .lightbox-nav {
  color: var(--text);
}

.pub-lightbox .lightbox-counter {
  color: var(--text-soft);
}

.pub-lightbox .lightbox-img {
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ── COLABORÁ ────────────────────────────────────── */
.collab-section {
  max-width: 720px;
  margin: 0 auto;
  margin-top: var(--nav-height);
  padding: 56px 44px 40px;
}
.collab-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-soft); margin-bottom: 14px;
}
.collab-title {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 22px; color: var(--text);
}
.collab-text p {
  font-size: 15px; line-height: 1.8; color: var(--text-mid);
  margin-bottom: 18px;
}
.collab-text p:last-child { margin-bottom: 0; }

/* ── CONTACTO ────────────────────────────────────── */
.contact-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 44px 100px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-mid); text-decoration: none;
  cursor: none;
  transition: color 0.2s, letter-spacing 0.25s;
}
.contact-info a:hover { color: var(--text); letter-spacing: 0.14em; }
