/* PREVIEW — páginas de proyecto en estilo escandinavo (mismas reglas que scandi.css) */
:root {
  --ink: #000;
  --ink-2: rgb(0 0 0 / 64%);
  --ink-3: rgb(0 0 0 / 56%);
  --line: rgb(0 0 0 / 10%);
  --line-2: rgb(0 0 0 / 18%);
  --wash: rgb(0 0 0 / 4%);
  --bg-body: #fff;
  --text-main: #000;
  --text-muted: rgb(0 0 0 / 64%);
  --text-soft: rgb(0 0 0 / 56%);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(24px, 5vw, 64px);
}
html, body { background: #fff; }
body { font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--ink); }
.container { max-width: 1160px; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Hero: alineado a la izquierda, escala Stripe */
.project-hero { padding: 96px 0 56px; }
.project-hero-inner { text-align: center; max-width: none; }
.project-kicker { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--ink-3); margin-bottom: 16px; }
.project-title { font-size: clamp(2.4rem, 4.2vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 24px; }
.project-subtitle { margin: 0 auto 48px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; letter-spacing: -0.005em; }
.project-subtitle strong { color: var(--ink); font-weight: 500; }
.project-hero-media { border-radius: 12px; max-height: 560px; margin-top: 0; }

/* Texto + meta */
.project-layout { padding: 72px 0; }
.project-layout-grid { column-gap: 96px; }
.project-copy h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px; }
.project-copy p { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 64ch; margin: 0 0 16px; }
.project-copy strong { color: var(--ink); font-weight: 500; }
.project-meta { font-size: 16px; color: var(--ink-2); }
.project-meta-label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.project-meta-main { font-size: 17px; font-weight: 500; color: var(--ink); }
.meta-pill { font-size: 14px; padding: 6px 12px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.meta-pill:hover { background: #fff; }
.project-link-arrow, .nav-link-arrow { font-size: 16px; font-weight: 500; color: var(--ink); }

/* Galería */
.project-gallery { padding: 24px 0 56px; }
.project-gallery-grid { gap: 20px; }
.gallery-main, .gallery-item { border-radius: 12px; background: var(--wash); }
.gallery-item--thin-border { border: 1px solid var(--line-2); }

/* Leer más */
.text-collapse.is-collapsed::after { background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff); }
/* "Leer más / Leer menos": solo texto, sin botón (subrayado al pasar el ratón) */
.read-more { font-size: 15px; font-weight: 500; color: var(--ink); background: none !important; border: 0 !important; border-radius: 0; padding: 2px 0; transform: none !important; }
.read-more:hover .read-more__label { text-decoration: underline; text-underline-offset: 3px; }
.read-more:focus-visible { outline-color: var(--ink); }

/* Carrusel y navegación inferior */
.carousel-title { letter-spacing: -0.02em; font-weight: 500; }
.carousel-description { color: var(--ink-2); }
.project-bottom { padding: 56px 0 96px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .project-layout { padding: 48px 0; }
  .project-hero { padding-top: 56px; }
}

/* ---------- Cabecera mínima: avatar + pastilla (igual que la home, sin enlaces) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 92%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-wrapper { max-width: 1160px; margin: 0 auto; padding: 12px var(--gutter); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-avatar { display: block; width: 40px; height: 40px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); background: #fff; flex-shrink: 0; transition: transform .16s ease; }
.nav-avatar:hover { transform: translateY(-1px); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; background: rgba(255,255,255,0.98); color: #0f172a; border: 1px solid rgba(190,242,100,0.85); cursor: pointer; transition: transform .16s ease, background .16s ease; white-space: nowrap; overflow: hidden; flex-shrink: 0; }
.nav-cta::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 10% 0, rgba(190,242,100,0.35), transparent 55%); opacity: 0; mix-blend-mode: screen; transition: opacity .35s ease, transform .35s ease; transform: translate3d(-10px,0,0); pointer-events: none; }
.nav-cta:hover::before { opacity: 1; transform: translate3d(0,0,0); }
.nav-cta:hover { background: linear-gradient(135deg, #f9fffb, #eefce0); transform: translateY(-1px); }
.nav-cta-dot { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 5px rgba(34,197,94,0.35); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(34,197,94,0.4); } 50% { transform: scale(1.16); box-shadow: 0 0 0 7px rgba(34,197,94,0.1); } }

/* ---------- Escala algo más compacta ---------- */
body { font-size: 16px; }
.project-hero { padding-top: 72px; }
.project-title { font-size: clamp(2.25rem, 3.8vw, 3.25rem); }
.project-subtitle { font-size: 18px; }
.project-copy h2 { font-size: 22px; }
.project-copy p { font-size: 16px; }
.project-meta { font-size: 15px; }
.project-meta-main { font-size: 16px; }

/* ---------- Barra inferior centrada cuando la ventana es estrecha ---------- */
@media (max-width: 960px) {
  .project-bottom-nav { align-items: center; text-align: center; }
  .project-bottom-nav a { align-self: center; justify-content: center; }
}

/* ---------- Cursor morado igual que en la home (sustituye al arcoíris de las páginas de proyecto) ---------- */
.custom-cursor {
  width: 22px;
  height: 22px;
  border: 0;
  z-index: 9999;
  background: radial-gradient(circle, #a855f7 0%, #b886f7 100%);
  background-clip: border-box;
  background-origin: padding-box;
  opacity: 0.8;
  transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease;
  will-change: left, top;
}
.custom-cursor.is-hover {
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) scale(3);
  opacity: 0.6;
  border: 0;
  background: radial-gradient(circle, #a855f7 0%, #b886f7 100%);
}
