/* ============================================================
   09-HISTORIA.css — NUESTRA HISTORIA
   ============================================================
   Sección de 2 columnas: a un lado el texto narrativo de cómo
   se conocieron los novios, al otro una foto en marco arco.

   La foto va en assets/historia/
   ============================================================ */

/* La sección externa es full-width (sin max-width) y sirve solo como contenedor
   de posicionamiento para la flor decorativa. El layout real de 2 columnas
   vive en .story__inner. */
.story {
  position: relative;
  max-width: none;
  padding: 5rem 0;
}

.story__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  text-align: left;
}

/* Las flores decorativas (story__floral--side-left/--side-right)
   las maneja 02-fondo.css con sus reglas genéricas. */

.story__text {
  text-align: center;
  padding: 0 1rem;
  color: var(--accent);
}

/* Título "Nuestra historia" con dos estilos */
.story__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  line-height: 1;
}
.story__title-upper {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 0.4em;
}
.story__title-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--accent);
  margin-top: -0.15em;
  margin-left: 0.6em;
}

.story__text p {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 auto 1.3rem;
  max-width: 380px;
}

/* Foto en marco arco */
.story__photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.story__frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 0 0 / 32% 32% 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #efe7d8 0%, #d6c8ad 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}
.story__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  padding: 1rem;
}

/* Sparkles decorativos a los lados */
.story__sparkles {
  position: absolute;
  top: 0;
  height: 100%;
  width: 60px;
  color: var(--accent);
  opacity: 0.7;
  pointer-events: none;
}
.story__sparkles--left { left: -10px; }
.story__sparkles--right { right: -10px; }

/* Mobile: una columna, título + texto arriba y foto debajo (como en la
   referencia de la versión mobile). */
@media (max-width: 720px) {
  .story { padding: 3.5rem 0; }
  .story__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
  }
  .story__text { order: 1; }
  .story__photo { order: 2; }
  .story__sparkles { display: none; }
}
