/* ═══════════════════════════════════════════════════════════════════════════
   FASE R — Photo moment overlays + newsletter center + spacing
   ═══════════════════════════════════════════════════════════════════════════ */

/* ──────────── 1. PHOTO MOMENT — heavy scrim bottom-left where text sits ──────────── */

/* Override the previous ::before fade-top to be useful */
.mod-photomoment::before{
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  width: auto !important;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.45) 18%,
      rgba(0,0,0,0.15) 35%,
      rgba(0,0,0,0.15) 55%,
      rgba(0,0,0,0.55) 80%,
      rgba(0,0,0,0.95) 100%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  display: block !important;
  filter: none !important;
}

/* Strong text scrim — left bottom radial dark for readability */
.mod-photomoment::after{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(ellipse 75% 65% at 20% 80%,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.55) 35%,
      rgba(0,0,0,0.20) 60%,
      transparent 80%) !important;
  pointer-events: none !important;
  z-index: 3 !important;
  filter: none !important;
  width: auto !important;
  height: auto !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
}

/* Text must be above scrim */
.mod-photomoment .mod-inner,
.mod-photomoment-text{
  z-index: 5 !important;
  position: relative !important;
}

/* Title text shadow stronger for guaranteed readability */
.mod-photomoment-quote,
.mod-photomoment h2,
.mod-photomoment-text > h2{
  text-shadow:
    0 2px 30px rgba(0,0,0,0.85),
    0 1px 4px rgba(0,0,0,0.5) !important;
}
.mod-photomoment-caption{
  text-shadow:
    0 2px 12px rgba(0,0,0,0.85),
    0 1px 3px rgba(0,0,0,0.5) !important;
}

/* ──────────── 2. NEWSLETTER — title perfectly centered ──────────── */
.opm-newsletter{
  text-align: center !important;
}
.opm-newsletter-inner{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 clamp(24px, 5vw, 64px) !important;
  text-align: center !important;
}
.opm-newsletter-h2,
.opm-newsletter-eyebrow,
.opm-newsletter-lede,
.opm-newsletter-form,
.opm-newsletter-fine,
.opm-newsletter-feedback{
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  width: 100% !important;
}
.opm-newsletter-h2{
  max-width: 700px !important;
  margin: 0 auto 18px !important;
  text-align: center !important;
}
.opm-newsletter-lede{
  max-width: 540px !important;
  margin: 0 auto 36px !important;
}
.opm-newsletter-form{
  max-width: 480px !important;
  margin: 0 auto 18px !important;
  justify-content: center !important;
}
.opm-newsletter-fine{
  max-width: 540px !important;
  margin: 18px auto 0 !important;
}

/* ──────────── 3. SPACING — separar mejor partitura ↔ ¿Cantamos juntos? ──────────── */
/* Add explicit margin between photomoment and final-cta */
.mod-photomoment + .mod-final-cta,
.mod-photomoment + section.mod-section{
  margin-top: 0 !important;
  padding-top: clamp(96px, 14vh, 160px) !important;
}

/* Photo moment finishes with stronger fade-to-black so siguiente section breathes */
.mod-photomoment{
  padding-bottom: 0 !important;
}

/* ──────────── 4. FINAL CTA — sin background photo (queda muy denso después del photo moment) ──────────── */
.mod-final-cta{
  background-image: none !important;
  background: linear-gradient(180deg, #000 0%, #060606 50%, #000 100%) !important;
}
.mod-final-cta .mod-inner{
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 clamp(24px, 5vw, 64px) !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* ──────────── 5. PHOTO MOMENT internal padding — text shouldn't hit edge ──────────── */
.mod-photomoment .mod-inner,
.mod-photomoment-text{
  padding-top: clamp(96px, 14vh, 160px) !important;
  padding-bottom: clamp(56px, 9vh, 110px) !important;
  padding-left: clamp(28px, 6vw, 80px) !important;
  padding-right: clamp(28px, 6vw, 80px) !important;
}

/* ──────────── 6. Heavier scrim for the partitura photomoment specifically ──────────── */
/* (Partitura photo has score in foreground bottom-right, chairs back — left has wall) */
section.mod-photomoment[aria-label*="Diez años"] ::after,
section.mod-photomoment[aria-label*="Mulata"] ::after{
  background:
    radial-gradient(ellipse 80% 70% at 20% 75%,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.48) 35%,
      rgba(0,0,0,0.18) 60%,
      transparent 80%) !important;
}

/* ──────────── 11. CONTACTO cards — all left-aligned consistent ──────────── */
.contacto-grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.contacto-card{
  background: rgba(255,255,255,0.025) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  padding: 32px 36px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 14px !important;
}
.contacto-card .ct-label,
.contacto-card .ct-value,
.contacto-card .ct-sub{
  text-align: left !important;
  width: 100% !important;
  margin: 0 !important;
}
.contacto-card .ct-label{
  font-family: 'Inter Tight', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: rgba(189,176,157,0.85) !important;
  font-style: normal !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.contacto-card .ct-value{
  font-family: 'Inter Tight', sans-serif !important;
  font-size: clamp(20px, 2vw, 28px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.012em !important;
  color: #F2EDE2 !important;
  font-style: normal !important;
  margin: 0 !important;
}
.contacto-card .ct-value a{
  color: inherit !important;
  text-decoration: none !important;
  transition: color .2s !important;
}
.contacto-card .ct-value a:hover{
  color: #BDB09D !important;
}
.contacto-card .ct-sub{
  font-family: 'Inter Tight', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  letter-spacing: -0.005em !important;
  color: rgba(255,255,255,0.55) !important;
  font-style: normal !important;
}

@media (max-width: 760px){
  .contacto-grid{
    grid-template-columns: 1fr !important;
  }
  .contacto-card[style*=\"1/-1\"]{
    grid-column: 1 !important;
  }
}

/* ──────────── 8. PHOTO MOMENT BR — show explicit line breaks ──────────── */
.mod-photomoment-quote br,
.mod-photomoment h2 br,
.mod-photomoment-text > h2 br{
  display: block !important;
  content: "" !important;
  line-height: 1 !important;
}

/* Force max-width narrower so text doesn't wrap mid-phrase */
.mod-photomoment-quote,
.mod-photomoment h2,
.mod-photomoment-text > h2{
  max-width: 720px !important;
  white-space: normal !important;
}

/* ──────────── 9. HISTORIA photo — object-position center ──────────── */
.mod-historia-img img{
  object-fit: cover !important;
  object-position: 50% 30% !important;
}

/* ──────────── 10. Mobile photo moment override ──────────── */
@media (max-width: 768px){
  .mod-photomoment::after{
    background:
      linear-gradient(180deg,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.2) 30%,
        rgba(0,0,0,0.4) 60%,
        rgba(0,0,0,0.9) 100%) !important;
  }
  .mod-photomoment::before{
    background: linear-gradient(180deg,
      rgba(0,0,0,0.7) 0%,
      rgba(0,0,0,0.3) 20%,
      rgba(0,0,0,0.3) 60%,
      rgba(0,0,0,0.95) 100%) !important;
  }
}
