/* ═══════════════════════════════════════════════════════════════════════════
   Ópera de Morelia — HOME V3 · composición coherente
   Clases v3-* nuevas: inmunes al cascade heredado. Un solo archivo.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ──────────── BASE ──────────── */
.v3-wrap{
  max-width: var(--ds-container, 1180px);
  margin: 0 auto;
  padding: 0 var(--ds-gutter, clamp(24px, 5vw, 64px));
}
.v3-h2{
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #F2EDE2;
  margin: 0;
  text-wrap: balance;
}
.v3-h2 em{
  font-style: normal;
  color: #BDB09D;
}
.v3-p{
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.008em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 16px;
  max-width: 56ch;
  text-wrap: pretty;
}
.v3-kicker{
  font-family: 'Inter Tight', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(189,176,157,0.75);
  margin: 0 0 14px;
}
.v3-link{
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #BDB09D;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease, gap .25s ease;
}
.v3-link:hover{
  color: #F2EDE2;
  gap: 12px;
}
.v3-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vh, 52px);
}

/* ──────────── HERO LINE REVEAL ──────────── */
.hero-title .hl{
  display: block;
  overflow: hidden;
}
.hero-title .hl > span{
  display: block;
  transform: translateY(112%);
  animation: v3HlUp 1s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-title .hl:nth-child(2) > span{
  animation-delay: .14s;
}
@keyframes v3HlUp{
  to{ transform: translateY(0); }
}

/* ──────────── MARQUEE — una década pasando ──────────── */
.v3-marquee{
  background: #000;
  padding: clamp(48px, 7vh, 72px) 0;
  overflow: hidden;
  position: relative;
}
.v3-marquee::before,
.v3-marquee::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}
.v3-marquee::before{
  left: 0;
  background: linear-gradient(90deg, #000 0%, transparent 100%);
}
.v3-marquee::after{
  right: 0;
  background: linear-gradient(270deg, #000 0%, transparent 100%);
}
.v3-marquee{
  cursor: grab;
  touch-action: pan-y;          /* drag horizontal nuestro; scroll vertical nativo */
  user-select: none;
  -webkit-user-select: none;
}
.v3-marquee.is-dragging{
  cursor: grabbing;
}
.v3-marquee:focus-visible{
  outline: 2px solid rgba(189,176,157,0.7);
  outline-offset: -2px;
}
.v3-marquee-track{
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  will-change: transform;
}
.v3-marquee-track img{
  height: clamp(150px, 22vh, 220px);
  width: auto;
  border-radius: 10px;
  display: block;
  filter: saturate(1.02);
  transition: filter .4s ease;
  pointer-events: none;          /* el drag es del contenedor */
}

/* Hint de affordance — visible hasta el primer drag */
.v3-marquee-hint{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 980px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s ease, transform .5s ease;
}
.v3-marquee-hint span{
  color: rgba(189,176,157,0.9);
  animation: v3HintNudge 2.2s ease-in-out infinite;
  display: inline-block;
}
.v3-marquee-hint span:last-child{
  animation-delay: 1.1s;
}
@keyframes v3HintNudge{
  0%, 100%{ transform: translateX(0); }
  50%{ transform: translateX(3px); }
}
.v3-marquee-hint.is-gone{
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

/* ──────────── MANIFESTO — editorial left ──────────── */
.v3-manifesto{
  background: linear-gradient(180deg, #0b0a07 0%, #060503 60%, #000 100%);
  padding: clamp(88px, 13vh, 140px) 0;
}
.v3-statement{
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: #F2EDE2;
  margin: 0 0 28px;
  max-width: 18ch;
  text-wrap: balance;
  text-indent: -0.04em;
}
.v3-manifesto-p{
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  letter-spacing: -0.008em;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.v3-manifesto-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.v3-manifesto-stats{
  display: flex;
  flex-direction: column;
}
.v3-mstat{
  padding: 22px 0;
  border-top: 1px solid rgba(189,176,157,0.16);
}
.v3-mstat:last-child{
  border-bottom: 1px solid rgba(189,176,157,0.16);
}
.v3-mstat b{
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
  font-weight: 500;
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #F2EDE2;
  font-variant-numeric: lining-nums;
  margin-bottom: 4px;
}
.v3-mstat span{
  font-family: 'Inter Tight', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(189,176,157,0.72);
}
.v3-partners{
  font-family: 'Inter Tight', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.42);
  margin: 0;
}

/* ──────────── PRODUCCIONES ──────────── */
.v3-prods{
  background: #000;
  padding: clamp(88px, 13vh, 140px) 0;
}
.v3-prods-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.v3-prod{
  display: block;
  text-decoration: none;
  position: relative;
}
.v3-prod-img{
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #101013;
  margin-bottom: 18px;
  position: relative;
}
.v3-prod-img::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.v3-prod:hover .v3-prod-img::after{
  opacity: 1;
}
.v3-prod-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.v3-prod:hover .v3-prod-img img{
  transform: scale(1.045);
  filter: brightness(1.08) saturate(1.06);
}
.v3-prod-year{
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 980px;
  z-index: 2;
}
.v3-prod-title{
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 500;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #F2EDE2;
  margin-bottom: 6px;
  transition: color .2s ease;
}
.v3-prod:hover .v3-prod-title{
  color: #ffffff;
}
.v3-prod-meta{
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.55);
  font-variant-numeric: oldstyle-nums;
}

/* ──────────── OMAR — split editorial ──────────── */
.v3-omar{
  background: linear-gradient(180deg, #000 0%, #08090c 55%, #000 100%);
  padding: clamp(88px, 13vh, 140px) 0;
  overflow: visible;
}
.v3-omar-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.v3-omar-role{
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(189,176,157,0.9);
  margin: 10px 0 26px;
}
.v3-omar-text .v3-link{
  margin-top: 12px;
}
.v3-omar-photo{
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-width: 460px;
  justify-self: end;
  box-shadow: 0 32px 80px -24px rgba(0,0,0,0.8);
  background: #101013; /* placeholder mientras carga — nunca void negro */
  width: 100%;
}
.v3-omar-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  transition: filter .45s ease;
}
.v3-omar-photo:hover img{
  filter: brightness(1.06);
}
.v3-omar-photo figcaption{
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 980px;
}

/* ──────────── ESCUELA Y CORO ──────────── */
.v3-learn{
  background: #000;
  padding: clamp(88px, 13vh, 140px) 0;
}
.v3-learn-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.v3-learn-card{
  display: block;
  text-decoration: none;
  background: #101013;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.55);
  transition: background .3s ease, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.v3-learn-card:hover{
  background: #16161a;
  transform: translateY(-3px);
  box-shadow: 0 24px 56px -20px rgba(0,0,0,0.7);
}
.v3-learn-img{
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #16161a; /* placeholder mientras carga */
}
.v3-learn-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .45s ease;
}
.v3-learn-card:hover .v3-learn-img img{
  transform: scale(1.04);
  filter: brightness(1.07);
}
.v3-learn-body{
  display: block;
  padding: 26px 28px 30px;
}
.v3-learn-title{
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 48, "SOFT" 30, "wght" 500;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.018em;
  color: #F2EDE2;
  margin-bottom: 8px;
}
.v3-learn-meta{
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 16px;
}
.v3-learn-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #BDB09D;
  transition: color .2s ease, gap .25s ease;
}
.v3-learn-card:hover .v3-learn-cta{
  color: #F2EDE2;
  gap: 12px;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 960px){
  .v3-prods-grid{ grid-template-columns: 1fr 1fr; }
  .v3-prods-grid .v3-prod:nth-child(3){ display: none; }
  .v3-omar-grid{ grid-template-columns: 1fr; gap: 40px; }
  .v3-omar-photo{ justify-self: start; max-width: 380px; }
  .v3-manifesto-grid{ grid-template-columns: 1fr; gap: 44px; }
  .v3-manifesto-stats{
    flex-direction: row;
    gap: 0;
  }
  .v3-mstat{
    flex: 1;
    border-top: 1px solid rgba(189,176,157,0.16);
    border-bottom: 1px solid rgba(189,176,157,0.16);
    padding: 18px 0;
  }
  .v3-mstat b{ font-size: 2rem; }
}
@media (max-width: 640px){
  .v3-prods-grid{ grid-template-columns: 1fr; }
  .v3-prods-grid .v3-prod:nth-child(3){ display: block; }
  .v3-learn-grid{ grid-template-columns: 1fr; }
  .v3-marquee-track img{ height: 130px; }
  .v3-mstat span{ font-size: 10px; letter-spacing: 0.14em; }
}

/* ──────────── REDUCED MOTION ──────────── */
@media (prefers-reduced-motion: reduce){
  /* el auto-scroll lo apaga el JS; el drag manual sigue disponible */
  .v3-marquee-hint span{ animation: none; }
  .hero-title .hl > span{ animation: none; transform: none; }
  .v3-prod-img img, .v3-learn-img img{ transition: none; }
}
