/* Portafolio: método (4 tarjetas), hero de puerta y relacionados. Carga después de pdp-showroom.css. */

/* ---------- Cómo trabajamos ---------- */

.pdp-method__lead {
  max-width: 44rem;
}

.pdp-method__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.pdp-method__card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #050505;
  color: #fff;
  isolation: isolate;
}

.pdp-method__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-method__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.62) 62%, rgba(0, 0, 0, 0.9) 100%);
}

.pdp-method__card::after {
  content: "";
  position: absolute;
  left: clamp(16px, 1.8vw, 24px);
  right: clamp(16px, 1.8vw, 24px);
  bottom: 0;
  height: 3px;
  background: #00cc00;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-method__card:hover img {
  transform: scale(1.07);
}

.pdp-method__card:hover::after {
  transform: scaleX(1);
}

.pdp-method__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(16px, 1.8vw, 24px);
}

.pdp-method__copy small {
  display: block;
  margin-bottom: 8px;
  color: var(--pdp-green-text, #00cc00);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.pdp-method .pdp-method__copy h3,
html[data-theme="light"] body.pdp-deck .pdp-method__copy h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--pdp-font-display, var(--font-display));
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.pdp-method__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .pdp-method__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .pdp-method__copy p {
    font-size: 0.84rem;
  }
}

/* ---------- Puertas ---------- */

.pdp-macro-card[data-open-macro="experiencias"] img {
  object-position: 68% center;
}

/* ---------- Hero de puerta (billboard) ---------- */

.pdp-look__billboard img {
  transform-origin: 60% 40%;
  animation: pdp-billboard-drift 22s ease-in-out infinite alternate;
}

.pdp-look__billboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(60% 70% at 12% 100%, rgba(0, 204, 0, 0.22), transparent 70%);
  mix-blend-mode: screen;
}

.pdp-look__billboard-copy > * {
  animation: pdp-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pdp-look__billboard-copy > :nth-child(2) {
  animation-delay: 80ms;
}

.pdp-look__billboard-copy > :nth-child(3) {
  animation-delay: 160ms;
}

@keyframes pdp-billboard-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes pdp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Galería dentro de la puerta ---------- */

.pdp-look__gallery {
  margin-top: 4px;
}

/* ---------- También podemos ayudarte ---------- */

.pdp-look-sheet .pdp-macro-related {
  position: relative;
  animation: pdp-rise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(120ms + var(--i, 0) * 70ms);
}

.pdp-look-sheet .pdp-macro-related::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #00cc00;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pdp-look-sheet .pdp-macro-related strong {
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

.pdp-look-sheet .pdp-macro-related:hover::after,
.pdp-look-sheet .pdp-macro-related:focus-visible::after {
  transform: scaleX(1);
}

.pdp-look-sheet .pdp-macro-related:hover strong,
.pdp-look-sheet .pdp-macro-related:focus-visible strong {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .pdp-look__billboard img,
  .pdp-look__billboard-copy > *,
  .pdp-look-sheet .pdp-macro-related,
  .pdp-method__card img {
    animation: none;
    transition: none;
    transform: none;
  }
}
