/* Mensaje y fotografía: se mantienen las fuentes y variables de la invitación. */
.parents-section { display: none; position: relative; padding: 70px 22px 58px; text-align: center; scroll-margin-top: 24px; }
[data-stage="cover"] .parents-section, html[data-restored="true"] .parents-section { display: block; }
.parents-section:focus { outline: none; }
.parents-story { max-width: 590px; margin: 0 auto 46px; }
.parents-keepsake { width: 48px; margin: 0 auto 24px; }
.parents-keepsake svg { display: block; width: 100%; fill: none; stroke: var(--accent-pink, #a8456e); stroke-width: 1.25; opacity: .7; }
.parents-keepsake path:last-child { stroke: var(--accent-blue, #2f6c88); }
.parents-title { max-width: 520px; margin: 0 auto 26px; font-family: var(--serif); font-size: clamp(31px, 4.2vw, 44px); line-height: 1.15; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; color: var(--ink-strong, var(--ink)); }
.parents-copy { max-width: 535px; margin: 0 auto; color: var(--ink-soft, var(--ink)); font-size: 17px; font-weight: 500; line-height: 1.9; }
.parents-signature { max-width: 500px; margin: 25px auto 0; color: var(--accent-pink, #a8456e); font-family: var(--sans); font-size: 15px; font-style: italic; font-weight: 600; line-height: 1.8; }
.parents-reveal { transition: opacity 650ms ease, transform 650ms ease; }
.parents-section.is-ready .parents-reveal:not(.is-visible) { opacity: 0; transform: translateY(14px); }
.parents-section.is-ready .parents-reveal.is-visible { opacity: 1; transform: none; }
.family-photo { width: min(100%, 440px); margin: 0 auto; }
.family-photo-frame { position: relative; isolation: isolate; width: 100%; aspect-ratio: var(--family-photo-ratio, 4 / 5); border: 1px solid #fffbf7a1; border-radius: 25px; background: #f7f2ea; box-shadow: 0 24px 43px -23px #68536970, 0 6px 16px -11px #68536940; overflow: hidden; }
.family-photo-opener { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; border-radius: inherit; background: #faf7ef; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.family-photo-opener:disabled { cursor: default; }
.family-photo-opener:focus-visible { outline: 3px solid var(--accent-blue, #2f6c88); outline-offset: -8px; }
.family-photo-image { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.family-photo-placeholder { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; padding: 30px; background: radial-gradient(circle at 5% 0%, #f2d9e240, transparent 60%), radial-gradient(circle at 95% 100%, #cee6ef50, transparent 60%), #faf7ef; color: #9a7886; }
.family-photo-placeholder::before { content: ""; position: absolute; inset: 18px; border: 1px dashed #b8a9b166; border-radius: 17px; pointer-events: none; }
.family-photo-placeholder svg { width: 60px; fill: none; stroke: #a58a96; stroke-width: 1.3; }
.photo-placeholder-title { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.photo-placeholder-note { max-width: 200px; font-size: 11px; line-height: 1.7; color: #8c7b83; }
.photo-zoom-hint { position: absolute; z-index: 1; right: 15px; bottom: 15px; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #fffaf2d9; color: #827187; opacity: 0; transition: opacity .3s; }
[data-revealed="true"] .photo-zoom-hint { opacity: 1; }
.photo-zoom-hint svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cloud-definitions { position: absolute; pointer-events: none; }
#parents-cloud-pink stop:last-child { stop-color: color-mix(in srgb, var(--pink) 45%, #f1edf1); }
#parents-cloud-blue stop:last-child { stop-color: color-mix(in srgb, var(--blue) 50%, #ecf1f3); }
.cloud-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.cloud-mist { position: absolute; inset: 0; opacity: var(--cloud-mist-opacity, 1); background: #f4f5f5; transition: opacity 400ms; pointer-events: none; }
.photo-cloud { position: absolute; display: block; width: var(--cloud-width, 100%); aspect-ratio: 240 / 140; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; pointer-events: auto; transform: translate3d(var(--drag-x, 0px), var(--drag-y, 0px), 0) rotate(var(--cloud-tilt, 0deg)); transition: transform 420ms ease, opacity 350ms ease; }
.photo-cloud svg { display: block; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 8px 9px #9f91a526); }
.photo-cloud:focus-visible { outline: none; }
.photo-cloud:focus-visible svg { filter: drop-shadow(0 0 3px #547e95) drop-shadow(0 4px 7px #547e9566); }
.photo-cloud.is-dragging { z-index: 12; cursor: grabbing; transition: none; }
.photo-cloud.is-clearing { transform: translate3d(var(--leave-x, 150px), var(--leave-y, -60px), 0) rotate(var(--leave-angle, 12deg)) scale(.8); opacity: 0; pointer-events: none; transition-delay: var(--cloud-delay, 0ms); }
.photo-cloud--1 { top: -14%; left: -28%; --cloud-tilt: -8deg; }
.photo-cloud--2 { top: -12%; left: 25%; --cloud-tilt: 8deg; }
.photo-cloud--3 { top: 9%; left: -34%; --cloud-width: 110%; --cloud-tilt: -5deg; }
.photo-cloud--4 { top: 17%; left: 28%; --cloud-tilt: 8deg; }
.photo-cloud--5 { top: 35%; left: -29%; --cloud-width: 110%; --cloud-tilt: -7deg; }
.photo-cloud--6 { top: 46%; left: 23%; --cloud-width: 110%; --cloud-tilt: 7deg; }
.photo-cloud--7 { top: 64%; left: -30%; --cloud-width: 108%; --cloud-tilt: -5deg; }
.photo-cloud--8 { top: 75%; left: 24%; --cloud-width: 105%; --cloud-tilt: 5deg; }
.cloud-hint { max-width: 300px; margin: 22px auto 0; font-size: 12px; font-weight: 600; line-height: 1.7; color: var(--ink-soft, var(--ink)); }
.parents-photo-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 12px auto 0; }
.view-family-photo, .parents-continue { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 4px; border: 0; background: none; font-size: 11px; font-weight: 700; color: var(--ink-soft, var(--ink)); cursor: pointer; text-decoration: none; }
.view-family-photo { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #7d677a55; }
.view-family-photo:hover, .parents-continue:hover { color: var(--ink-strong, var(--ink)); text-decoration: underline; text-underline-offset: 5px; }
.view-family-photo svg, .parents-continue svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.family-photo-outcome { margin: 26px auto 0; animation: parents-photo-arrive 500ms ease both; }
.family-photo-outcome p { max-width: 320px; margin: 0 auto 22px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.3; color: var(--ink-strong, var(--ink)); }
.parents-section [hidden], .family-photo-dialog [hidden] { display: none !important; }
.parents-section.is-photo-restored .family-photo-outcome { animation: none; }
.family-photo-dialog { position: fixed; inset: 0; width: min(940px, calc(100vw - 32px)); height: fit-content; max-height: calc(100svh - 32px); margin: auto; padding: 18px; border: 1px solid #fffaf4c7; border-radius: 25px; background: #faf6edf2; color: var(--ink-strong, var(--ink)); box-shadow: 0 18px 70px #5a455840; overflow: auto; }
.family-photo-dialog:not([open]) { display: none; }
.family-photo-dialog::backdrop { background: linear-gradient(120deg, #eac4d5df, #c2dfeadf); backdrop-filter: blur(8px); }
.family-photo-dialog.is-fallback-open { z-index: 1000; box-shadow: 0 0 0 100vmax #d0c5dbe8, 0 18px 70px #5a455840; }
.family-photo-dialog-header { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.family-photo-dialog-header h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.family-photo-dialog-header button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 9px 11px; border: 1px solid #c7b5c04d; border-radius: 24px; background: #fffcf7; color: #746173; cursor: pointer; font-size: 12px; font-weight: 700; }
.family-photo-dialog-header button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#family-photo-large { display: block; width: 100%; max-height: calc(100svh - 130px); object-fit: contain; border-radius: 15px; }
.family-photo-modal-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; min-height: min(440px, calc(100svh - 140px)); padding: 30px; text-align: center; color: #8b7687; border: 1px dashed #beaeb86e; border-radius: 15px; }
.family-photo-modal-placeholder svg { width: 62px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.family-photo-modal-placeholder p { max-width: 300px; margin: 5px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.family-photo-modal-placeholder span { max-width: 250px; font-size: 12px; line-height: 1.7; }
body.family-photo-modal-open { overflow: hidden; }
@keyframes parents-photo-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .parents-section { padding: 62px 22px 46px; }
  .parents-story { margin-bottom: 36px; }
  .parents-keepsake { width: 43px; margin-bottom: 22px; }
  .parents-title { font-size: 32px; margin-bottom: 22px; }
  .parents-copy { font-size: 15.5px; line-height: 1.85; }
  .parents-signature { margin-top: 22px; font-size: 13px; }
  .family-photo-frame { border-radius: 21px; }
  .photo-placeholder-title { font-size: 22px; }
  .family-photo-outcome p { font-size: 24px; }
  .family-photo-dialog { padding: 13px; border-radius: 21px; }
  .family-photo-dialog-header h2 { font-size: 17px; }
  .family-photo-dialog-header button { font-size: 11px; }
}
@media (max-width: 359px) {
  .parents-section { padding-left: 18px; padding-right: 18px; }
  .parents-title { font-size: 29px; }
  .parents-copy { font-size: 15px; }
  .parents-photo-actions { column-gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .parents-reveal, .photo-cloud, .cloud-mist, .photo-zoom-hint { transition: none; }
  .parents-section.is-ready .parents-reveal:not(.is-visible) { opacity: 1; transform: none; }
  .photo-cloud.is-clearing { transform: none; }
  .family-photo-outcome { animation: none; }
}

/* Pulido visual: nota de papel para el mensaje, foto con halo rosa y azul y dos columnas en pantallas grandes. */
.parents-keepsake { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%; background: #ffffffd0; box-shadow: 0 10px 24px -14px #6a4f6a73, inset 0 0 0 1px #ffffff; }
.parents-keepsake svg { width: 36px; opacity: 1; stroke-width: 1.6; }
.parents-title { margin-bottom: 22px; }
.parents-copy { position: relative; max-width: 560px; padding: 26px 30px; border-radius: 26px; background: #ffffffad; color: var(--ink-strong, var(--ink)); box-shadow: 0 18px 40px -26px #5a456080, inset 0 0 0 1px #ffffffcc; font-size: 17px; line-height: 1.8; text-wrap: pretty; }
.parents-signature { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; font-size: 16px; }
.parents-signature::before, .parents-signature::after { content: ""; flex: 0 0 26px; height: 1px; background: currentColor; opacity: .45; }
.family-photo { position: relative; isolation: isolate; width: min(100%, 420px); }
.family-photo::before { content: ""; position: absolute; z-index: -1; inset: 8% -10% 2%; border-radius: 50%; background: radial-gradient(circle at 25% 50%, #f7a9c299, transparent 60%), radial-gradient(circle at 75% 50%, #8fd0ea99, transparent 60%); filter: blur(34px); pointer-events: none; }
.family-photo-frame { border: 0; border-radius: 28px; box-shadow: 0 30px 56px -28px #5a456099, 0 10px 22px -14px #5a456055; }
.photo-zoom-hint { width: 42px; height: 42px; background: #ffffffe6; color: var(--accent-pink, #a8456e); box-shadow: 0 6px 14px -6px #5a456066; }
.cloud-hint { margin-top: 24px; font-size: 14px; font-weight: 700; color: var(--ink-strong, var(--ink)); }
.parents-photo-actions { gap: 10px 14px; margin-top: 16px; }
.view-family-photo { min-height: 46px; padding: 11px 20px; border-radius: 999px; background: #ffffffd9; color: var(--ink-strong, var(--ink)); font-size: 13px; text-decoration: none; box-shadow: 0 8px 20px -12px #5a456066; }
.view-family-photo:hover { background: #fff; text-decoration: none; }
.parents-continue { font-size: 13px; }
.family-photo-outcome p { font-weight: 500; }
@media (min-width: 960px) {
  .parents-section { display: none; max-width: 1060px; margin: 0 auto; padding: 96px 40px 80px; }
  [data-stage="cover"] .parents-section, html[data-restored="true"] .parents-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "story photo" "story actions" "story outcome"; column-gap: 64px; align-items: start; }
  .parents-story { grid-area: story; align-self: center; margin: 0; text-align: left; }
  .parents-keepsake { margin-left: 0; }
  .parents-title { margin-left: 0; font-size: 46px; }
  .parents-copy { margin-left: 0; }
  .parents-signature { justify-content: flex-start; }
  .parents-signature::before { display: none; }
  .family-photo { grid-area: photo; }
  .parents-photo-actions { grid-area: actions; }
  .family-photo-outcome { grid-area: outcome; }
}
@media (max-width: 480px) {
  .parents-section { padding-left: 16px; padding-right: 16px; }
  .parents-keepsake { width: 56px; height: 56px; }
  .parents-keepsake svg { width: 31px; }
  .parents-copy { padding: 20px 20px; border-radius: 22px; font-size: 15.5px; line-height: 1.75; }
  .parents-signature { font-size: 14px; }
  .family-photo-frame { border-radius: 24px; }
  .cloud-hint { font-size: 13px; }
}
@media (min-width: 960px) { .cloud-hint { max-width: 380px; } }
@media (max-width: 480px) {
  .parents-signature { display: block; max-width: 280px; }
  .parents-signature::before, .parents-signature::after { display: none; }
}
