/* =====================================================
   Portfolio Slider Pro — Frontend CSS
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

.psp-root {
  --psp-bg:      transparent;
  --psp-surface: #0f1218;
  --psp-border:  rgba(255,255,255,0.08);
  --psp-accent:  #c8a96e;
  --psp-accent2: #e8c98e;
  --psp-text:    #e8e4dc;
  --psp-muted:   rgba(232,228,220,0.5);
  --psp-radius:  14px;

  width: 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 20px;
  padding: 48px 20px 36px;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Grain — desactivado para fondo transparente */
.psp-root::before { display: none; }

/* Glow blob — desactivado para fondo transparente */
.psp-root::after  { display: none; }

/* ── STAGE ── */
.psp-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 380px;
  z-index: 1;
}

/* ── TRACK WRAPPER ── */
.psp-track-wrap {
  flex: 1;
  max-width: 700px;
  height: 420px;
  position: relative;
  perspective: 1400px;
}

.psp-track {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ── CARDS ── */
.psp-card {
  position: absolute;
  inset: 0;
  border-radius: var(--psp-radius);
  overflow: hidden;
  background: var(--psp-surface);
  border: 1px solid var(--psp-border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--psp-border);
  transition: all 0.65s cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.psp-card.is-active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0) scale(1) rotateY(0deg);
  z-index: 10;
}

.psp-card.is-prev {
  opacity: 0.3;
  transform: translateX(-52%) scale(0.82) rotateY(16deg);
  z-index: 5;
  pointer-events: all;
  cursor: pointer;
}

.psp-card.is-next {
  opacity: 0.3;
  transform: translateX(52%) scale(0.82) rotateY(-16deg);
  z-index: 5;
  pointer-events: all;
  cursor: pointer;
}

.psp-card.is-prev-far,
.psp-card.is-next-far {
  opacity: 0;
  pointer-events: none;
}

/* ── BROWSER BAR ── */
.psp-browser-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  background: rgba(12,15,22,0.97);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  z-index: 3;
  border-bottom: 1px solid var(--psp-border);
  flex-shrink: 0;
}

.psp-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.psp-dot-r { background: #ff5f57; }
.psp-dot-y { background: #febc2e; }
.psp-dot-g { background: #28c840; }

.psp-url-bar {
  flex: 1;
  height: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin: 0 8px;
  padding: 0 10px;
  font-size: 11px;
  color: var(--psp-muted);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* ── SCREENSHOT ── */
.psp-screenshot-wrap {
  position: absolute;
  top: 34px; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.psp-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.psp-card.is-active:hover .psp-screenshot {
  transform: scale(1.02);
}

.psp-shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0f1218 25%, rgba(255,255,255,0.04) 50%, #0f1218 75%);
  background-size: 200% 100%;
  animation: psp-shimmer 2s infinite;
  position: absolute;
  inset: 0;
}

@keyframes psp-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── OVERLAY ── */
.psp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(8,10,15,0.4) 60%, rgba(8,10,15,0.92) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── CARD INFO ── */
.psp-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 26px;
  z-index: 4;
}

.psp-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--psp-accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.psp-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--psp-text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.psp-display-url {
  font-size: 11px;
  color: var(--psp-muted);
  letter-spacing: 0.03em;
}

.psp-visit-btn {
  position: absolute;
  bottom: 22px;
  right: 26px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--psp-accent);
  color: #080a0f !important;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s, opacity 0.35s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 4px 20px rgba(200,169,110,0.3);
}

.psp-card.is-active .psp-visit-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s 0.25s, transform 0.4s 0.25s, background 0.2s, box-shadow 0.2s;
}

.psp-visit-btn:hover {
  background: var(--psp-accent2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(200,169,110,0.45) !important;
}

.psp-visit-btn svg {
  width: 11px; height: 11px;
  flex-shrink: 0;
}

/* ── NAV BUTTONS ── */
.psp-nav {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--psp-border);
  background: rgba(15,18,24,0.9);
  backdrop-filter: blur(8px);
  color: var(--psp-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  z-index: 20;
  margin: 0 10px;
}

.psp-nav svg {
  width: 18px; height: 18px;
  pointer-events: none;
}

.psp-nav:hover {
  border-color: var(--psp-accent);
  color: var(--psp-accent);
  background: rgba(200,169,110,0.1);
  transform: scale(1.1);
}

/* ── DOTS ── */
.psp-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  z-index: 1;
  position: relative;
}

.psp-dot-nav {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.psp-dot-nav.is-active {
  background: var(--psp-accent);
  width: 22px;
}

/* ── LABEL ── */
.psp-label {
  text-align: center;
  font-size: 12px;
  color: var(--psp-muted);
  margin-top: 10px;
  letter-spacing: 0.06em;
  min-height: 18px;
  z-index: 1;
  position: relative;
}

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */

/* Tablets */
@media (max-width: 768px) {
  .psp-root { padding: 32px 12px 28px; }

  .psp-track-wrap { height: 320px; max-width: 100%; }

  .psp-nav { width: 38px; height: 38px; margin: 0 4px; }
  .psp-nav svg { width: 15px; height: 15px; }

  .psp-card.is-prev { transform: translateX(-42%) scale(0.8) rotateY(12deg); opacity: 0.2; }
  .psp-card.is-next { transform: translateX(42%) scale(0.8) rotateY(-12deg); opacity: 0.2; }

  .psp-title { font-size: 1.15rem; }
  .psp-info { padding: 18px 18px; }
  .psp-visit-btn { padding: 6px 13px; font-size: 10px; }
}

/* Mobile */
@media (max-width: 480px) {
  .psp-root { padding: 24px 8px 20px; border-radius: 14px; }

  .psp-stage { gap: 0; }

  .psp-track-wrap { height: 260px; }

  .psp-nav { width: 34px; height: 34px; margin: 0 2px; }

  .psp-card.is-prev,
  .psp-card.is-next { opacity: 0.12; transform: translateX(±38%) scale(0.78); }

  .psp-browser-bar { height: 28px; }
  .psp-url-bar { font-size: 9px; }
  .psp-dot { width: 8px; height: 8px; }

  .psp-info { padding: 14px 14px; }
  .psp-title { font-size: 1rem; }
  .psp-tag { font-size: 9px; }
  .psp-visit-btn { padding: 5px 11px; font-size: 9px; bottom: 14px; right: 14px; }

  .psp-dots { gap: 5px; margin-top: 16px; }
  .psp-dot-nav { width: 5px; height: 5px; }
  .psp-dot-nav.is-active { width: 16px; }
}
