/* ETAPA 02: Portada editorial basada en la referencia aprobada.
   Este archivo se carga después de styles.css y se limita a la sección .cover. */

.cover {
  --cover-bg: #FFFCF9;
  --cover-ink: #22201F;
  --cover-sage: #9CAF88;
  --cover-blush: #F4C3C4;
  width: 100%;
  max-width: 780px;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--cover-bg);
  color: var(--cover-ink);
  text-align: center;
  box-shadow: 0 12px 40px rgba(70, 54, 48, .065);
  overflow: hidden;
  isolation: isolate;
}
.cover__photo {
  position: relative;
  width: 100%;
  height: clamp(350px, 58svh, 700px);
  overflow: hidden;
  background: linear-gradient(140deg, #b5b3b0, #e2e0dc 48%, #b1b1af);
}
.cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: none;
}
.cover__image-caption {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg,#d1cfcb,#e7e6e2,#c2bfbb);
  color: #726e68;
  font: 600 11px/1.9 var(--font-sans);
  letter-spacing: .20em;
  text-transform: uppercase;
}
.cover__photo--empty .cover__image-caption { display: flex; }

.cover__paper {
  position: relative;
  z-index: 1;
  margin-top: -55px;
  padding: 35px 20px 39px;
  background: var(--cover-bg);
  border-radius: 50% 50% 0 0 / 57px 57px 0 0;
}
.cover__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}
.cover__eyebrow {
  margin: 0 0 6px;
  font: 600 clamp(9px, 2.5vw, 11px)/1.6 var(--font-sans);
  letter-spacing: .34em;
  text-transform: uppercase;
}
.cover__names {
  margin: 3px auto 5px;
  font: 400 clamp(54px, 13.9vw, 99px)/1.05 var(--font-script);
  letter-spacing: -.018em;
  white-space: nowrap;
}
.cover__names-amp {
  color: #8BA67C;
  font: inherit;
}
.cover__divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: min(100%, 144px);
  margin: 2px auto 19px;
  color: #789767;
}
.cover__divider::before,
.cover__divider::after {
  content: "";
  height: 1px;
  background: #A8BC98;
  flex: 1;
}
.cover__divider svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cover__vow {
  max-width: 270px;
  margin: 0 auto 19px;
  color: #292927;
  font: 600 clamp(9px, 2.25vw, 10px)/2.07 var(--font-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.cover__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 9px;
  min-height: 39px;
  padding: 8px 20px;
  max-width: 100%;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: #FCE9E8;
  color: #252321;
  font: 600 clamp(9px, 2.35vw, 10px)/1.55 var(--font-sans);
  letter-spacing: .21em;
  white-space: nowrap;
  text-transform: uppercase;
}
.cover__date svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #383632;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.cover__location {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  margin: 0 auto;
  color: #35332F;
  font: 600 clamp(9px, 2.4vw, 10px)/1.7 var(--font-sans);
  letter-spacing: .27em;
  text-transform: uppercase;
}
.cover__location svg {
  flex-shrink: 0;
  width: 17px;
  height: 20px;
  fill: none;
  stroke: #628251;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cover__flower {
  position: absolute;
  z-index: 0;
  width: clamp(106px, 25vw, 180px);
  height: auto;
  pointer-events: none;
  opacity: .94;
}
.cover__flower--left {
  left: -35px;
  bottom: -26px;
  transform: rotate(-19deg);
}
.cover__flower--right {
  right: -35px;
  bottom: -24px;
  transform: scaleX(-1) rotate(-17deg);
}
/* El detalle en la esquina superior derecha es más discreto que en el sobre. */
.cover__flower--top {
  z-index: 2;
  width: clamp(73px, 17vw, 110px);
  top: -57px;
  right: -19px;
  transform: rotate(18deg);
  opacity: .8;
}
@media (min-width: 700px) {
  .cover__photo { height: min(66svh, 675px); }
  .cover__paper { margin-top: -79px; border-radius: 50% 50% 0 0 / 82px 82px 0 0; padding: 48px 30px 64px; }
  .cover__names { margin-top: 1px; margin-bottom: 7px; }
  .cover__divider { width: 173px; margin-bottom: 21px; }
  .cover__vow { max-width: 355px; margin-bottom: 23px; }
  .cover__flower--top { top: -90px; }
}
@media (max-width: 359px) {
  .cover__paper { padding-left: 10px; padding-right: 10px; }
  .cover__names { font-size: clamp(47px, 14.7vw, 53px); }
  .cover__date { padding-left: 12px; padding-right: 12px; column-gap: 6px; letter-spacing: .15em; }
  .cover__flower { width: 102px; }
}
@media (max-height: 620px) and (min-width: 360px) {
  .cover__photo { height: 53svh; min-height: 300px; }
  .cover__paper { padding-bottom: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-content.is-visible .cover__content {
    animation: coverReveal .85s ease-out both;
  }
  @keyframes coverReveal {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}
