/* ═══════════════════════════════════════════════════
   productos.css — CGI Product Photography Page
   Design system: dark bg, teal accent, Syne + Cormorant
   ═══════════════════════════════════════════════════ */

/* ── §1 HERO ── */
#prod-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 180px 56px 100px;
  overflow: hidden;
}

#prod-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(94, 252, 232, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.prod-hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.prod-hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.85) 0%,
    rgba(8, 8, 8, 0.55) 50%,
    rgba(8, 8, 8, 0.2) 100%
  );
}

.prod-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.prod-hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 16px 0 28px;
}

.prod-hero-h1 em {
  font-style: italic;
  color: var(--teal);
}

.prod-hero-sub {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
  max-width: 500px;
  margin-bottom: 40px;
  font-family: 'Syne', sans-serif;
  font-weight: 400;
}

/* ── §2 CATEGORÍAS ── */
#prod-sectores {
  padding: 120px 56px;
  background: var(--off-black);
}

.prod-sectores-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.prod-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.prod-cat-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.prod-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.prod-cat-card:hover img {
  transform: scale(1.05);
}

.prod-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 35%,
    rgba(0, 0, 0, 0.1) 60%
  );
  pointer-events: none;
}

.prod-cat-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
}

.prod-cat-num {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.prod-cat-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.prod-cat-desc {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

/* ── §3 GALERÍA MASONRY ── */
#galeria-prod {
  padding: 120px 56px;
  background: var(--black);
}

.galeria-prod-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#galeria-prod .section-title em {
  font-style: italic;
  color: var(--teal);
}

.prod-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 12px;
  margin-top: 56px;
}

.pgal-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.pgal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pgal-item:hover img {
  transform: scale(1.04);
}

.pgal-tall {
  grid-row: span 2;
}

.pgal-wide {
  grid-column: span 2;
}

.pgal-sq {
  grid-row: span 1;
  grid-column: span 1;
}

/* ── §4 DETALLE / TEXTURA ── */
#prod-textura {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-tex-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.prod-tex-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-tex-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.5) 0%,
    rgba(8, 8, 8, 0.88) 100%
  );
}

.prod-tex-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 40px;
}

.prod-tex-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.prod-tex-title em {
  font-style: italic;
  color: var(--teal);
}

.prod-tex-sub {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  max-width: 500px;
  margin: 24px auto 0;
}

.prod-tex-pills {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.prod-tex-pill {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── §5 PROCESO 3 PASOS ── */
#prod-proceso {
  padding: 120px 56px;
  background: var(--off-black);
}

.prod-proceso-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#prod-proceso .section-title em {
  font-style: italic;
  color: var(--teal);
}

.prod-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.prod-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prod-step-img {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.prod-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.prod-step:hover .prod-step-img img {
  transform: scale(1.04);
}

.prod-step-num {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.prod-step-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.3;
}

.prod-step-desc {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.45);
}

/* ── SECTION TITLE SHARED ── */
#prod-sectores .section-title em,
#galeria-prod .section-title em,
#prod-proceso .section-title em {
  font-style: italic;
  color: var(--teal);
}

/* ── RESPONSIVE ── */

@media (max-width: 1100px) {
  .prod-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prod-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .prod-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }

  .prod-step-img {
    height: 200px;
    width: 260px;
    flex-shrink: 0;
  }

  .prod-step-content {
    flex: 1;
  }
}

@media (max-width: 768px) {
  #prod-hero {
    padding: 140px 28px 72px;
  }
  .prod-hero-overlay {
    background: rgba(8, 8, 8, 0.78);
  }

  #prod-sectores {
    padding: 80px 28px;
  }

  #galeria-prod {
    padding: 80px 28px;
  }

  #prod-proceso {
    padding: 80px 28px;
  }

  #prod-textura .prod-tex-inner {
    padding: 60px 28px;
  }

  .prod-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .prod-steps {
    grid-template-columns: 1fr;
  }

  .prod-step {
    flex-direction: column;
  }

  .prod-step-img {
    width: 100%;
    height: 220px;
  }

  .prod-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .prod-cat-grid {
    grid-template-columns: 1fr;
  }

  .prod-cat-card {
    height: auto;
    aspect-ratio: 4/5;
  }

  .prod-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: unset;
    gap: 8px;
  }

  .pgal-item {
    aspect-ratio: 1/1;
  }

  .pgal-tall {
    grid-row: span 1;
    aspect-ratio: 1/1;
  }

  .prod-hero-h1 {
    font-size: clamp(48px, 12vw, 80px);
  }
}

/* ── LARGE SCREENS ── */
@media(min-width:1600px){
  .prod-sectores-inner,
  .galeria-prod-inner,
  .prod-proceso-inner,
  .prod-tex-inner { max-width: 1440px; }
  .prod-cat-grid { gap: 16px; }
  .prod-gallery-grid { max-width: 1440px; margin-left: auto; margin-right: auto; }
}
