/* srger. Projects - Front styles (idéntico al diseño original) */

.srger-scope, .srger-scope * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.header-center {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 9999;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #111111;
  text-decoration: none; transition: opacity 0.2s ease; cursor: pointer; white-space: nowrap;
}
.header-center:hover { opacity: 0.4; }
.header-right-logo {
  position: fixed; top: 40px; right: 40px; z-index: 9999;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #111111; text-decoration: none;
}
.info-btn {
  position: fixed; bottom: 40px; left: 40px; z-index: 9999; background: transparent; border: none; padding: 0;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #111111; transition: opacity 0.2s ease; cursor: pointer;
}
.info-btn:hover { opacity: 0.4; }
.view-toggle-btn {
  position: fixed; bottom: 40px; right: 40px; z-index: 9999; background: transparent; border: none; padding: 0;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #111111; transition: opacity 0.2s ease; cursor: pointer;
}
.view-toggle-btn:hover { opacity: 0.4; }

.info-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px); z-index: 100000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.info-modal.is-active { opacity: 1; visibility: visible; }
.info-modal-content { position: relative; max-width: 600px; width: 90%; padding: 40px; color: #111111; }
.info-modal-close {
  position: absolute; top: 0; right: 0; background: transparent; border: none; font-size: 24px; font-weight: 300;
  color: #111111; cursor: pointer; line-height: 1; padding: 10px; transition: opacity 0.2s ease;
}
.info-modal-close:hover { opacity: 0.4; }
.info-modal-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 20px 0; text-transform: uppercase; }
.info-modal-body { font-size: 14px; line-height: 1.7; color: #333333; }
.info-modal-body p { margin-top: 0; margin-bottom: 16px; }
.info-modal-body p:last-child { margin-bottom: 0; }

.archive-nav {
  position: fixed; top: 40px; left: 40px; z-index: 9999;
  display: flex; align-items: flex-start; gap: 120px;
}
.archive-column { position: relative; }
.archive-column-toggle {
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: #111111;
  cursor: pointer; white-space: nowrap; transition: opacity 0.2s ease;
}
.archive-column-toggle:hover { opacity: 0.5; }
.archive-column-list {
  position: absolute; top: 32px; left: 0; z-index: 9999;
  max-height: calc(100vh - 200px); width: 220px; overflow-y: auto; scrollbar-width: none;
  list-style: none; margin: 0; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.archive-column-list::-webkit-scrollbar { display: none; }
.archive-column-list.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.index-item {
  font-size: 12px; color: #111111; margin-bottom: 6px; transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: normal; word-break: normal; overflow-wrap: break-word; cursor: pointer; display: flex; align-items: baseline; gap: 6px;
}
.index-item:last-child { margin-bottom: 0; }
.index-item:hover { opacity: 0.5; transform: translateX(4px); }
.index-item .num { color: #888888; font-size: 10px; flex-shrink: 0; }

.board-canvas {
  position: absolute; left: 50%; transform: translateX(-50%); width: 100vw; min-height: 100vh; background-color: #ffffff;
  user-select: none; padding-bottom: 120px; transition: height 0.5s ease;
}

.draggable-card, .draggable-card * { cursor: grab !important; }
.draggable-card {
  position: absolute; will-change: transform, left, top; z-index: 10;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.8s cubic-bezier(0.16, 1, 0.3, 1), top 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
body.is-dragging-active, body.is-dragging-active *,
.draggable-card:active, .draggable-card:active *,
.draggable-card.is-dragging, .draggable-card.is-dragging * { cursor: grabbing !important; }

.draggable-card.horizontal { width: 850px; max-width: calc(100vw - 80px); }
.draggable-card.vertical { width: 600px; max-width: calc(100vw - 80px); }
.draggable-card.is-highlighted { filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15)); }

.image-container { position: relative; width: 100%; background: transparent; border: none; overflow: hidden; border-radius: 0; }
.image-slider { display: flex; width: 100%; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.image-slider img { width: 100%; flex-shrink: 0; height: auto; display: block; pointer-events: none; }

.nav-arrow, .nav-arrow * { cursor: pointer !important; }
.nav-arrow {
  position: absolute; top: 0; bottom: 0; width: 20%; background: transparent; border: none; color: #ffffff;
  display: flex; align-items: center; justify-content: center; z-index: 25; opacity: 0;
  transition: opacity 0.3s ease; padding: 0 24px; mix-blend-mode: difference;
}
.nav-arrow svg {
  width: 28px; height: 28px; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  fill: none; opacity: 0.7; transition: opacity 0.2s ease, transform 0.2s ease;
}
.image-container:hover .nav-arrow { opacity: 1; }
.nav-arrow:hover svg { opacity: 1; }
.nav-arrow.prev { left: 0; justify-content: flex-start; }
.nav-arrow.next { right: 0; justify-content: flex-end; }
.nav-arrow.prev:hover svg { transform: translateX(-4px); }
.nav-arrow.next:hover svg { transform: translateX(4px); }

.card-label, .card-label * { cursor: pointer !important; }
.card-label { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; padding-top: 2px; }
.card-title-group { display: flex; align-items: center; gap: 6px; }
.card-title { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: #111111; text-transform: uppercase; margin: 0; transition: opacity 0.2s ease; }
.toggle-icon { font-size: 13px; font-weight: 400; color: #888888; transition: color 0.2s ease; }
.card-label:hover .card-title { opacity: 0.5; }
.card-label:hover .toggle-icon { color: #111111; }
.card-number { font-size: 12px; color: #888888; font-weight: 400; }

.card-description { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; opacity: 0; pointer-events: auto; }
.draggable-card.is-open .card-description { max-height: 300px; opacity: 1; }
.card-description-inner { padding-top: 10px; font-size: 12px; line-height: 1.6; color: #555555; max-width: 100%; cursor: text !important; user-select: text; }
.card-description-text { margin: 0 0 10px 0; }
.card-description-text:last-child { margin-bottom: 0; }
.card-link-btn {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: #111111; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer !important; transition: opacity 0.2s ease;
}
.card-link-btn:hover { opacity: 0.5; }

.board-canvas.grid-mode .draggable-card, .board-canvas.grid-mode .draggable-card * { cursor: default !important; }
.board-canvas.grid-mode .card-label, .board-canvas.grid-mode .card-label *,
.board-canvas.grid-mode .nav-arrow, .board-canvas.grid-mode .nav-arrow * { cursor: pointer !important; }
.board-canvas.grid-mode .draggable-card { position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 0 auto 60px auto; }
.board-canvas.grid-mode { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding: 140px 60px 100px 60px; width: 100vw; }

@media (max-width: 767px) {
  .main-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 16px;
    display: flex !important; justify-content: flex-start !important; align-items: center !important;
    z-index: 9999; background: #ffffff;
  }
  .header-center {
    display: none !important;
  }
  .header-right-logo {
    position: fixed !important; bottom: 20px !important; right: 16px !important; top: auto !important; left: auto !important;
    transform: none !important; font-size: 13px !important; margin: 0 !important; flex: none !important;
    white-space: nowrap !important; text-align: right !important; z-index: 9999;
  }
  .archive-nav {
    position: static !important; top: auto !important; left: auto !important;
    flex: 1 !important; display: flex !important; flex-wrap: wrap !important; gap: 10px !important; align-items: center !important;
  }
  .archive-column-toggle { font-size: 13px !important; text-align: left !important; }
  .info-btn { bottom: 20px !important; left: 16px !important; font-size: 13px !important; }
  .view-toggle-btn { display: none !important; }
  .board-canvas, .board-canvas.grid-mode {
    display: flex !important; flex-direction: column !important; position: relative !important; left: 0 !important;
    transform: none !important; width: 100% !important; padding: 80px 16px 60px 16px !important; gap: 40px !important; height: auto !important;
  }
  .draggable-card, .draggable-card.horizontal, .draggable-card.vertical, .board-canvas.grid-mode .draggable-card {
    position: relative !important; top: auto !important; left: auto !important; transform: none !important;
    width: 100% !important; max-width: 100% !important; margin: 0 0 10px 0 !important; cursor: default !important;
  }
  .draggable-card * { cursor: default !important; }
  .card-label { margin-top: 12px !important; padding: 0 !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
  .card-title { font-size: 14px !important; font-weight: 600 !important; color: #111111 !important; display: block !important; visibility: visible !important; opacity: 1 !important; }
  .card-number { font-size: 12px !important; color: #888888 !important; display: block !important; visibility: visible !important; opacity: 1 !important; }
  .toggle-icon { display: none !important; }
  .card-description { position: relative !important; max-height: none !important; opacity: 1 !important; display: block !important; visibility: visible !important; margin-top: 6px !important; }
  .card-description-inner { padding-top: 4px !important; font-size: 13px !important; line-height: 1.5 !important; color: #555555 !important; }
  .archive-column-list {
    position: fixed !important; top: 50px !important; left: 16px !important; background: #ffffff; padding: 16px; z-index: 10000;
    max-height: calc(100vh - 120px); max-width: none; width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .archive-column-list.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .index-item { font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f7f7f7; }
  .index-item:last-child { border-bottom: none; }
  .nav-arrow { opacity: 0.8 !important; width: 25%; padding: 0 12px; }
  .info-modal-content { padding: 24px; }
}
