/* Revisión 9: papelería de boda, bloques de color y composición editorial. */
.section:not(.story-intro) { padding-block: 88px; }
.section h2 { font-family: 'Marcellus', Georgia, serif; font-size: clamp(32px, 3.3vw, 48px); text-transform: uppercase; line-height: 1.15; }
.section h2 em { display: block; font: 42px/1.3 var(--signature); text-transform: none; }
.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow { font-size: 10px; }
.section .button { border-radius: 50%; padding-inline: 26px; }

/* Retrato y fecha, seguidos por el relato sobre una franja de paisaje. */
.story-intro { display: block; padding: 0; background: var(--cream); color: var(--coffee); }
.story-copy { max-width: none; padding: 120px max(24px, calc((100vw - 760px) / 2)); margin: 0; text-align: center; background: linear-gradient(#4b4031bf, #4b4031bf), url('../images/rsvp-bg.jpg') center 48% / cover; color: var(--cream); }
.story-copy .story-opening { font: 25px/1.6 'Marcellus', Georgia, serif; color: var(--cream); }
.story-copy p { font-size: 16px; line-height: 1.9; }
.story-copy p:last-child { margin-bottom: 0; }
.story-copy #story-title { color: var(--cream); margin-bottom: 36px; }

.save-date { background: var(--cream); }
.save-date h2 em { display: inline; font-size: 40px; }
.countdown { max-width: 680px; border: 0; }
.countdown strong { font-family: 'Marcellus', Georgia, serif; font-size: 68px; }
.countdown-unit + .countdown-unit::before { height: 24px; top: 28px; }
.save-date .calendar-row { margin-top: 16px; }

/* Fotografías amplias y detalles, en dos filas alternadas. */
.venues { background: #faf5f1; position: relative; isolation: isolate; }
.venues::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../images/optimized/bosque-lugares-fondo-v14.png') center / cover no-repeat; opacity: .32; pointer-events: none; }
.venues-grid { grid-template-columns: 1fr; gap: 66px; max-width: 1120px; margin: auto; }
.venue, .venue-2 { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; gap: 0; background: #ead5ca; }
.venue .venue-photo { aspect-ratio: 4/3; border-radius: 0; }
.venue-copy { padding: 40px 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.venue-2 { background: var(--soft-sage); }
.venue .venue-photo { height: 100%; min-height: 420px; }
.venue-copy h3 { font: 32px/1.25 'Marcellus', Georgia, serif; min-height: 0; }
.venue-copy .eyebrow { font: 30px/1.2 var(--signature); letter-spacing: 0; text-transform: none; }
.venue-time { display: block; border: 0; padding: 0; margin-bottom: 16px; }
.venue-time > span { display: block; font: 26px/1.4 'Marcellus', Georgia, serif; }
.venue-time > time { display: block; text-align: center; margin-top: 8px; }
.venue-address { min-height: 0; font-size: 15px; }
.venue-actions { justify-content: center; gap: 14px; }
.venue-actions .button { border-radius: 999px; }
.venue-actions .text-link { font-size: 10px; }
.venue-2 { grid-template-columns: 1fr 1.3fr; }
.venue-2 .venue-photo { order: 2; }

/* Vestimenta en una franja taupe, el itinerario ilustrado sobre crema. */
.dress-code { background: var(--taupe); border: 0; color: #fff9f5; }
.dress-code h2, .dress-code h3, .dress-code .eyebrow { color: #fff9f5; }
.dress-heading h2 { font-family: var(--signature); text-transform: none; font-size: 56px; }
.dress-options { max-width: 900px; gap: 70px; }
.dress-options article { grid-template-columns: 85px 1fr; }
.dress-options img { background: var(--cream); border-radius: 2px; padding: 6px; mix-blend-mode: normal; }
.dress-options p { font-size: 16px; }
.dress-options .text-link:focus-visible { outline-color: #fff9f5; }
.timeline { background: var(--cream); }
.timeline ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1100px; position: relative; }
.timeline ol::before { content: ''; position: absolute; top: 87px; left: 12.5%; right: 12.5%; height: 1px; background: var(--taupe); }
.timeline li, .timeline li:last-child { display: flex; flex-direction: column; align-items: center; text-align: center; border: 0; padding: 0 18px; gap: 16px; position: relative; }
.timeline li::before { content: ''; width: 11px; height: 11px; border: 1px solid var(--taupe); border-radius: 50%; background: var(--cream); margin: 1px 0 4px; z-index: 1; }
.timeline li > img { order: -2; width: 65px; height: 65px; margin: 0; opacity: .75; }
.timeline-number { display: none; }
.timeline li > div { display: flex; flex-direction: column; gap: 10px; }
.timeline-time { margin: 0; font-size: 12px; }
.timeline h3 { font: 30px/1.2 var(--signature); margin: 0; }
.timeline li div > p:last-child { font-size: 14px; }

/* Un álbum horizontal enmarcado sobre café. */
.gallery { background: var(--coffee); color: var(--cream); }
.gallery h2, .gallery .eyebrow { color: var(--cream); }
/* Natural image heights create a compact collage without cropping faces. */
.gallery-grid { display: block; columns: 2; column-gap: 14px; max-width: 1050px; }
.gallery-grid .register { break-inside: avoid; margin: 0 0 14px; padding: 0; }
.gallery-grid .register:nth-child(even) { padding: 0; }
.gallery-photo { display: block; width: 100%; height: auto; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--cream); color: var(--cream); }
.gallery-photo img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.gallery-photo:hover img { transform: none; }
.gallery-photo > span { position: absolute; inset: auto 0 0; border: 0; padding: 22px 12px 10px; font-size: 10px; background: linear-gradient(transparent, #241d16a6); }
.gallery-photo:focus-visible { outline-color: var(--cream); }
.gallery-carousel { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; max-width: 1050px; margin: auto; }
.gallery-carousel .gallery-grid { columns: auto; display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding: 4px 8px 4px 4px; scroll-behavior: smooth; }
.gallery-carousel .register { margin: 0; flex: 0 0 auto; }
.gallery-thumbnail { display: block; padding: 4px; border: 1px solid transparent; opacity: .65; transition: opacity 180ms, border-color 180ms; }
.gallery-thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.gallery-thumbnail[aria-current="true"] { border-color: var(--cream); opacity: 1; }
.gallery-thumbnail:hover { opacity: 1; }
.gallery-thumbnail:focus-visible { outline-color: var(--cream); }
.gallery-main { min-width: 0; }
.gallery-featured { height: 560px; border-radius: 0; background: #3b3228; touch-action: pan-y; }
.gallery-featured img { height: 100%; object-fit: contain; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 18px; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #f1e1d660; border-radius: 50%; background: transparent; color: var(--cream); }
.gallery-controls button:focus-visible { outline-color: var(--cream); }
.gallery-controls p { min-width: 64px; text-align: center; font: 12px/1.5 var(--sans); }

.registry { background: var(--cream); }
.gifts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; gap: 30px; border: 1px solid var(--taupe); padding: 36px 28px; }
.gift-link, .gift-link:last-child { grid-template-columns: 1fr; justify-items: center; padding: 12px; border: 0; }
.gift-link svg { justify-self: center; }
.gift-link img { max-width: 100%; }

/* Confirmación en café con una banda lateral de rayas de papelería. */
.rsvp { background: var(--coffee); color: var(--cream); position: relative; }
.rsvp::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 9%; background: repeating-linear-gradient(90deg, var(--cream) 0 8px, transparent 8px 20px); opacity: .85; pointer-events: none; }
.rsvp-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8%; align-items: center; padding-right: 7%; }
.rsvp-heading { text-align: left; margin: 0; }
.rsvp-heading h2, .rsvp-heading > .eyebrow { color: var(--cream); }
.rsvp-heading h2 em::before { content: none; }
.rsvp-heading h2 em { font-size: 40px; margin-top: 8px; }
.rsvp-form { width: 100%; border: 0; background: #faf5f1; padding: 24px 16px; }

.accommodations { background: var(--cream); }
.hotels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1200px; }
.hotel, .hotel:last-child { display: block; border: 0; padding: 0; text-align: center; }
.hotel > img { aspect-ratio: 4/3; margin-bottom: 26px; }
.hotel h3 { font: 26px/1.25 'Marcellus', Georgia, serif; }
.hotel-phone { margin: 16px auto 8px; }
.hotel .eyebrow { margin-bottom: 12px; }
.app-section { background: #e5dbd1; }
.preview-previous, .preview-next { display: grid; place-items: center; }

@media (min-width: 641px) and (max-width: 1000px) {
 .venues-grid { gap: 54px; }
 .venue, .venue-2 { gap: 0; }
 .venue-copy { padding: 30px 20px; }
 .venue-copy h3 { font-size: 28px; }
 .venue-actions { flex-direction: column; align-items: center; }
 .gallery-grid { columns: 2; }
 .rsvp-layout { grid-template-columns: 1fr; max-width: 650px; margin: auto; gap: 34px; }
 .rsvp-heading { text-align: center; }
 .hotels-grid { grid-template-columns: 1fr; gap: 36px; }
 .hotel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; text-align: left; }
 .hotel > img { margin: 0; }
 .hotel-phone { margin-left: 0; }
}
@media (max-width: 640px) {
 .gallery-carousel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .gallery-carousel .gallery-main { grid-row: 1; }
 .gallery-carousel .gallery-grid { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 4px; gap: 10px; }
 .gallery-carousel .register { width: 78px; }
 .gallery-featured { height: clamp(260px, 90vw, 440px); }
 .section:not(.story-intro) { padding: 60px 24px; }
 .section h2 { font-size: 31px; }
 .section h2 em { font-size: 36px; }
 .story-copy { padding: 76px 28px; background-position: center, 73% 48%; }
 .story-copy .story-opening { font-size: 21px; }
 .story-copy p { font-size: 16px; }
 .countdown strong { font-size: 42px; }
 .countdown-unit + .countdown-unit::before { top: 14px; height: 20px; }
 .venues-grid { gap: 46px; }
 .venue, .venue-2 { display: flex; gap: 0; }
 .venue-2 .venue-photo { order: 0; }
 .venue-copy { padding: 32px 20px; }
 .venue .venue-photo { height: auto; min-height: 0; }
 .venue-copy h3 { font-size: 28px; }
 .venue-copy .eyebrow { font-size: 28px; }
 .venue-actions { gap: 14px; }
 .dress-heading h2 { font-size: 48px; }
 .dress-options { gap: 30px; }
 .dress-options article { grid-template-columns: 75px 1fr; gap: 20px; }
 .dress-options p { font-size: 15px; }
 .timeline ol { grid-template-columns: 1fr; gap: 32px; }
 .timeline ol::before { top: 25px; bottom: 25px; left: 25px; right: auto; width: 1px; height: auto; }
 .timeline li, .timeline li:last-child { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 24px; padding: 0; text-align: left; align-items: start; }
 .timeline li::before { display: none; }
 .timeline li > img { background: var(--cream); padding: 10px; position: relative; z-index: 1; opacity: 1; }
 .timeline li > div { padding-top: 4px; }
 .timeline li > img { width: 52px; height: 52px; }
 .timeline h3 { font-size: 28px; }
 .timeline li div > p:last-child { font-size: 13px; }
 .timeline-time { font-size: 10px; }
 .gallery-grid { columns: 2; column-gap: 10px; }
 .gallery-grid .register { margin-bottom: 10px; }
 .gallery-photo { padding: 0; border-radius: 6px; }
 .gallery-photo > span { font-size: 9px; letter-spacing: 0; gap: 5px; padding: 18px 8px 7px; }
 .gallery-photo > span svg { width: 14px; }
 .gifts-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px 16px; }
 .gift-link, .gift-link:last-child { grid-template-columns: 1fr auto 20px; justify-items: start; gap: 10px; }
 .gift-link svg { justify-self: end; }
 .gift-link img { width: 105px; }
 .rsvp::after { inset: auto 0 0; width: 100%; height: 18px; }
 .rsvp-layout { grid-template-columns: 1fr; padding: 0; gap: 30px; }
 .rsvp-heading { text-align: center; }
 .rsvp-heading h2 em { font-size: 34px; }
 .rsvp-form { padding: 18px 8px; }
 .hotels-grid { grid-template-columns: 1fr; gap: 42px; }
 .hotel { text-align: center; }
 .hotel > img { aspect-ratio: 3/2; margin-bottom: 22px; }
 .app-section { gap: 26px; }
}
@media (max-width: 350px) {
 .countdown strong { font-size: 36px; }
 .gallery-photo > span { font-size: 8px; }
 .gift-link, .gift-link:last-child { padding-inline: 0; }
 .gift-link span { font-size: 10px; }
 .venue-actions { gap: 6px; }
}

/* Un único enlace HTTPS de Google Calendar, sin descargas ni ventanas emergentes. */
.calendar-row .calendar-google { border-radius: 999px; background: var(--coffee); color: var(--cream); }
.calendar-row .calendar-google:hover { background: var(--rose-earth); }
