/* =============================================
   CASE STUDY — estilos compartidos
============================================= */

.page-case main,
.page-case section {
  position: relative;
  z-index: 1;
}

.cs-section,
.cs-title-block,
.cs-credits {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 36px;
  padding-right: 36px;
}

/* =====================
   1. HERO
===================== */
.cs-hero-contained {
  max-width: 900px;
  margin: calc(var(--nav-h) + 56px) auto 0;
  padding: 0 36px;
}

.cs-hero-contained img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Modificador — hero más chico, para objetos que se aprecian mejor a menor escala */
.cs-hero-contained.cs-hero-narrow {
  max-width: 480px;
}

/* Hero con 2 imágenes lado a lado */
.cs-hero-pair {
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cs-hero-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  border-radius: 2px;
}

.cs-title-block {
  padding-top: 40px;
  padding-bottom: 32px;
  margin-bottom: 0;
}

.cs-title {
  font-size: clamp(44px, 7.5vw, 80px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1;
}

.cs-meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.cs-meta span {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* =====================
   SECTION — separador visual fuerte entre secciones
===================== */
.cs-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid rgba(240,240,240,0.1);
}

.cs-section-label {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
}

.cs-text {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(240,240,240,0.55);
  max-width: 680px;
  margin-bottom: 36px;
}

.cs-text-small {
  font-size: 14px;
  max-width: 600px;
  margin-bottom: 28px;
}

.cs-caption {
  font-size: 13px;
  color: var(--dim);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* =====================
   2. MOTION
===================== */
.cs-motion-contained {
  max-width: 540px;
  aspect-ratio: 3/4;
}

/* Variante horizontal (video 4:3 / paisaje) */
.cs-motion-contained.cs-motion-landscape {
  max-width: 880px;
  aspect-ratio: 4/3;
}

.cs-motion-contained video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* =====================
   3. CAMPAIGN
===================== */
.cs-pair-contained {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
}

.cs-pair-img {
  aspect-ratio: 4/5;
}

.cs-pair-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* =====================
   GRIDS genéricas
===================== */
.cs-grid {
  display: grid;
  gap: 16px;
}

.cs-grid-img {
  aspect-ratio: 3/4;
}

.cs-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Sculptural Studies */
.cs-sculptural-row {
  margin-bottom: 44px;
}

.cs-sculptural-row:last-child {
  margin-bottom: 0;
}

.cs-sculptural-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 8px;
}

.cs-grid-2-contained {
  grid-template-columns: repeat(2, 1fr);
  max-width: 740px;
}

/* Color range */
.cs-grid-4color-contained {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
}

/* Pares m\u00e1s grandes (usado en skin-beauty) */
.cs-grid-2-large-contained {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px;
}

/* Styled at home — 2 filas de 3 */
.cs-grid-3x2-contained {
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
}

.cs-variant-label {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 48px 0 18px;
}

/* =====================
   CARRUSELES — una imagen grande arrastrable, snap, autoplay
===================== */
.cs-carousel {
  position: relative;
  max-width: 640px;
}

.cs-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  border-radius: 2px;
}

.cs-carousel-track:active {
  cursor: grabbing;
}

.cs-carousel-track::-webkit-scrollbar { display: none; }

.cs-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4/5;
  scroll-snap-align: start;
}

.cs-carousel-square .cs-carousel-slide {
  aspect-ratio: 1/1;
}

.cs-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 2px;
}

.cs-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #f0f0f0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cs-carousel-btn:hover {
  opacity: 1;
  background: transparent;
}

.cs-carousel-prev { left: -44px; }
.cs-carousel-next { right: -44px; }

.cs-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cs-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240,240,240,0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.cs-carousel-dot.active {
  background: rgba(240,240,240,0.8);
}

/* =====================
   UGC label
===================== */
.cs-ugc-label {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 64px 0 16px;
}

/* Mosaico scrolleable — varias imágenes visibles a la vez (People Responded) */
.cs-mosaic-scroll {
  position: relative;
  max-width: 1100px;
}

.cs-mosaic-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cs-mosaic-track::-webkit-scrollbar { display: none; }

.cs-mosaic-slide {
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 1/1;
  scroll-snap-align: start;
}

.cs-mosaic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* =====================
   Single image contenida (flat lay) — versión chica para ecommerce
===================== */
.cs-single-contained {
  max-width: 540px;
  margin-bottom: 20px;
}

.cs-single-contained img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.cs-single-small {
  max-width: 360px;
  margin-bottom: 20px;
}

.cs-single-small img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* Placeholder genérico para imágenes pendientes */
.placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(240,240,240,0.03),
    rgba(240,240,240,0.03) 10px,
    rgba(240,240,240,0.06) 10px,
    rgba(240,240,240,0.06) 20px
  );
  border: 0.5px dashed rgba(240,240,240,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ph-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  padding: 16px;
}

/* =====================
   7. CREDITS
===================== */
.cs-credits {
  padding-top: 64px;
  padding-bottom: 88px;
  border-top: 1px solid rgba(240,240,240,0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-credits-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-credits-tags span {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}

.cs-back {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.cs-back:hover {
  color: var(--fg);
}

/* =====================
   MOTION — grid 2x2 de videos
===================== */
.cs-grid-2x2-contained {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

.cs-grid-video {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}

.cs-grid-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================
   DETAIL — lupa interactiva
===================== */
.cs-magnify {
  position: relative;
  max-width: 760px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  cursor: crosshair;
}

.cs-magnify img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.cs-magnify-lens {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(240, 240, 240, 0.45);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  background-repeat: no-repeat;
  background-color: var(--bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.cs-magnify:hover .cs-magnify-lens {
  opacity: 1;
}

.cs-magnify-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
}

@media (hover: none) {
  .cs-magnify-lens { display: none; }
  .cs-magnify { cursor: default; }
  .cs-magnify-hint { display: none; }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 640px) {
  .cs-grid-2x2-contained {
    max-width: 100%;
  }

  .cs-magnify {
    max-width: 100%;
    aspect-ratio: 4/5;
  }

  .cs-hero-contained {
    margin-top: calc(var(--nav-h) + 28px);
    padding: 0 16px;
  }

  .cs-hero-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cs-section,
  .cs-title-block,
  .cs-credits {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cs-section { padding-top: 48px; padding-bottom: 48px; }

  .cs-pair-contained {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cs-grid-2-contained {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .cs-grid-2-large-contained {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .cs-grid-4color-contained {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-grid-3x2-contained {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-mosaic-slide { width: 160px; }

  .cs-credits { padding: 48px 16px 64px; }

  .cs-carousel-prev { left: 8px; }
  .cs-carousel-next { right: 8px; }

  .cs-carousel-btn {
    background: rgba(8,8,8,0.55);
    border-radius: 50%;
    opacity: 1;
  }
}

/* =====================
   SCRUB VIDEO — controlado por scroll
===================== */
.cs-scrub-video {
  max-width: 540px;
  aspect-ratio: 3/4;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
}

.cs-scrub-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-scrub-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 14px;
}

/* =====================
   UGC — reels verticales (9:16)
===================== */
.cs-reel-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
}

.cs-reel-row .cs-grid-video {
  aspect-ratio: 9/16;
}

@media (max-width: 640px) {
  .cs-reel-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
