/* home.css — página de inicio (versión bold editorial) */

/* ---------- HERO BOLD ---------- */
.hero {
  position: relative;
  padding: 0;
  height: clamp(700px, 86vh, 920px);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: stretch;
  border-bottom: 1px solid var(--ink-12);
}

.hero > * {
  min-height: 0;
  min-width: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
}

.hero__type {
  padding: var(--s-6) var(--gutter) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-4);
  position: relative;
}

@media (max-width: 980px) {
  .hero__type {
    padding: var(--s-5) var(--gutter) var(--s-5);
    gap: var(--s-4);
    order: 2;
  }
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: auto;
}

.hero__top span {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .hero__top {
    margin-bottom: var(--s-3);
  }
}

.hero__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero__statement .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: word-rise 900ms cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.hero__statement .word:nth-child(1) { animation-delay: 100ms; }
.hero__statement .word:nth-child(2) { animation-delay: 220ms; }
.hero__statement .word:nth-child(3) { animation-delay: 340ms; }
.hero__statement .word:nth-child(4) { animation-delay: 460ms; }
.hero__statement .word:nth-child(5) { animation-delay: 580ms; }
.hero__statement .word:nth-child(6) { animation-delay: 700ms; }
.hero__statement .word:nth-child(7) { animation-delay: 820ms; }

.hero__statement em {
  font-style: italic;
}

@keyframes word-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__statement .word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.hero__bottom p {
  font-size: 0.9375rem;
  color: var(--ink-60);
  max-width: 32ch;
  line-height: 1.5;
  margin: 0;
}

.hero__cta {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .hero__cta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero media — pieza grande dominante */
.hero__media {
  position: relative;
  background: var(--bone);
  overflow: hidden;
  border-left: 1px solid var(--ink-12);
  margin: 0;
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 42%;
  display: block;
}

@media (max-width: 980px) {
  .hero__media {
    border-left: 0;
    border-bottom: 1px solid var(--ink-12);
    aspect-ratio: 4 / 5;
    max-height: 75vh;
    order: 1;
  }
}

@media (max-width: 560px) {
  .hero__media {
    aspect-ratio: 4 / 5;
    max-height: 80vh;
  }
}

/* Tag flotante en hero (esquina) */
.hero__tag {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: var(--s-1) var(--s-2);
  border-radius: 4px;
}

.hero__tag strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--cream);
}

/* ---------- FEATURED ASIMÉTRICO ---------- */
.featured {
  padding-top: clamp(var(--s-6), 9vw, var(--s-9));
  padding-bottom: var(--s-7);
}

.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-7);
  gap: var(--s-3);
}

.featured__head h2 {
  flex: 1;
  font-size: clamp(1.875rem, 4.2vw, 3.25rem);
  line-height: 1.05;
}

.featured__head .meta {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .featured__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--s-5);
  }
}

.featured__rows {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.featured__row {
  display: grid;
  gap: var(--s-3);
  align-items: stretch;
  min-height: 0;
}

.featured__row--01 {
  grid-template-columns: 1.4fr 1fr;
}

.featured__row--02 {
  grid-template-columns: 1fr 1.4fr;
}

@media (max-width: 760px) {
  .featured__row,
  .featured__row--01,
  .featured__row--02 {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

.featured__col {
  display: grid;
  gap: var(--s-3);
  grid-template-rows: 1fr 1fr;
  min-height: 0;
}

@media (max-width: 760px) {
  .featured__col {
    grid-template-rows: auto auto;
  }
}

/* Card variantes para layout asimétrico — uniformamos altura por fila */
.featured__big,
.featured__small {
  display: flex;
  flex-direction: column;
}

.featured__big .piece-card__media {
  flex: 1;
  margin-bottom: var(--s-2);
}

.featured__small .piece-card__media {
  flex: 1;
  margin-bottom: var(--s-1);
}

/* Mobile: cada media respeta una aspect-ratio para no estirar feo */
@media (max-width: 760px) {
  .featured__big .piece-card__media,
  .featured__small .piece-card__media {
    aspect-ratio: 4 / 5;
    flex: none;
  }
}

.featured__big .piece-card__name {
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
}

.featured__small .piece-card__name {
  font-size: 1.125rem;
}

/* Card hover (más sutil con foto real) */
.piece-card {
  position: relative;
  overflow: visible;
}

.piece-card__media {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}

.piece-card__media img {
  transition: transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.piece-card:hover .piece-card__media img {
  transform: scale(1.03);
}

.piece-card .placeholder-img {
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.piece-card:hover .placeholder-img {
  transform: scale(1.02);
}

/* Sello visible en card (número) */
.piece-card__num {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  z-index: 2;
  font-family: var(--font-text);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}

/* ---------- TALLER ---------- */
.taller {
  padding-top: var(--s-8);
  padding-bottom: var(--s-9);
  border-top: 1px solid var(--ink-12);
}

.taller__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 920px) {
  .taller__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

.taller__media {
  aspect-ratio: 4 / 5;
  background: var(--bone);
  overflow: hidden;
}

@media (max-width: 920px) {
  .taller__media {
    aspect-ratio: 5 / 4;
    max-height: 60vh;
  }
}

.taller__text .eyebrow {
  margin-bottom: var(--s-2);
  display: inline-block;
}

.taller__text h2 {
  margin-bottom: var(--s-3);
  max-width: 14ch;
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
}

.taller__text p {
  color: var(--ink-60);
  margin-bottom: var(--s-3);
  max-width: 50ch;
  font-size: 1rem;
}
