/* Neela adapter: preserves its editorial composition without depending on the
   legacy jQuery runtime. */
body.template-neela { overflow-x: hidden; }
body.template-neela [data-animation-direction] { opacity: 1; transform: none; }
body.template-neela [data-neela-motion="pending"] { opacity: 0; transition: opacity .48s ease, transform .48s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--neela-motion-delay, 0ms); will-change: opacity, transform; }
body.template-neela [data-neela-motion="pending"][data-animation-direction="from-left"] { transform: translate3d(-2rem, 0, 0); }
body.template-neela [data-neela-motion="pending"][data-animation-direction="from-right"] { transform: translate3d(2rem, 0, 0); }
body.template-neela [data-neela-motion="pending"][data-animation-direction="from-top"] { transform: translate3d(0, -1.5rem, 0); }
body.template-neela [data-neela-motion="pending"][data-animation-direction="from-bottom"] { transform: translate3d(0, 1.5rem, 0); }
body.template-neela [data-neela-motion="revealed"] { opacity: 1; transform: none; }
#header { position: sticky; top: 0; z-index: 1000; }
body:has([aria-label="Explorar diseños de invitación"]) #header { top: 52px; }
.nav-section .nav-logo { display: flex; align-items: center; width: auto; max-width: min(19rem, calc(100% - 4rem)); height: 70px; padding: 0; overflow: hidden; color: #4f7584; font-family: "Playfair Display", serif; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.08; text-align: left; text-wrap: balance; }
.neela-skip-link { position: fixed; z-index: 9999; top: .75rem; left: .75rem; padding: .75rem 1rem; color: #fff; background: #4f7584; transform: translateY(-160%); }
.neela-skip-link:focus { transform: translateY(0); }
body.template-neela a:focus-visible, body.template-neela button:focus-visible, body.template-neela input:focus-visible, body.template-neela select:focus-visible, body.template-neela textarea:focus-visible { outline: 3px solid #9fc2ce; outline-offset: 3px; }
#preloader { display: none !important; }
#hero { min-height: min(760px, 100svh); background: linear-gradient(135deg, #365562, #698c98); }
#hero::before { content: ''; position: absolute; inset: 0; background: rgba(22, 43, 50, .38); z-index: 1; }
#hero .neela-hero-media { object-position: center; }
#hero .btn { color: #fff; border-color: rgba(255, 255, 255, .9); background: rgba(24, 50, 59, .25); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
#hero .btn:hover { color: #365562; background: #fff; }
.neela-location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.neela-location-card { overflow: hidden; background: #fff; box-shadow: 0 15px 36px rgba(20, 48, 58, .14); }
.neela-location-media { display: block; width: 100%; height: 15rem; object-fit: cover; }
.neela-location-card__content { padding: 2rem; }
.neela-location-card__notes { color: #52646a; }
.neela-location-map { display: block; width: 100%; margin-top: 1.25rem; }
.neela-location-map iframe { display: block; width: 100%; min-height: 15rem; border: 0; }
.neela-location-card__link { margin-top: 1.25rem; }
#wedding-party { background-image: linear-gradient(rgba(44, 74, 84, .74), rgba(44, 74, 84, .8)), url('../images/bridesmaids-background.jpg'); background-position: center; background-size: cover; }
#wedding-party .row.center { justify-content: center; row-gap: 1.5rem; }
#wedding-party .image { aspect-ratio: 1 / 1; overflow: hidden; background: #f4f1ed; box-shadow: 0 14px 32px rgba(21, 43, 51, .22); }
#wedding-party .image > picture, #wedding-party .image > picture img, #wedding-party .nl-portrait-empty { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The original theme drew these frames with JavaScript-generated nodes. The
   adapter owns the composition so it remains stable without jQuery/parallax. */
#loveline { padding-block: clamp(5rem, 8vw, 8rem); }
.neela-story-list { position: relative; max-width: 62rem; margin-inline: auto; }
.neela-story-list::before { content: ''; position: absolute; top: 3rem; bottom: 2rem; left: 50%; width: 1px; background: rgba(79, 117, 132, .22); transform: translateX(-50%); }
.neela-story-list > .year { position: relative; z-index: 3; display: grid; width: 7.25rem; min-height: 4.5rem; margin: 0 auto 3.75rem; place-items: center; color: #4f7584; background: #fff; border: 1px solid rgba(79, 117, 132, .55); font-family: "Playfair Display", serif; font-size: 1.45rem; }
.neela-story-list > .year::before { content: ''; position: absolute; inset: .45rem -.55rem; border: 1px solid rgba(79, 117, 132, .32); pointer-events: none; }
.neela-story-list > .year .neela-style { position: static; padding: 0; border: 0; }
.neela-story-list .neela-story-entry { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; min-height: 34rem; margin: 0 0 clamp(5rem, 9vw, 8rem); }
.neela-story-list .neela-story-entry .neela-story-media { position: relative; z-index: 1; grid-row: 1; width: auto; padding: 0; box-shadow: 0 1.5rem 3.5rem rgba(29, 51, 59, .14); }
.neela-story-entry .neela-story-media picture, .neela-story-entry .neela-story-media img { display: block; width: 100%; }
.neela-story-entry .neela-story-media img { height: auto; object-fit: contain; }
.neela-story-list .neela-story-entry--media-left .neela-story-media { grid-column: 1 / 9; }
.neela-story-list .neela-story-entry--media-right .neela-story-media { grid-column: 5 / 13; }
.neela-story-list .neela-story-entry--media-left .neela-story-media--portrait { grid-column: 2 / 8; }
.neela-story-list .neela-story-entry--media-right .neela-story-media--portrait { grid-column: 6 / 12; }
.neela-story-list .neela-story-entry .neela-story-copy { position: relative; z-index: 2; grid-row: 1; width: auto; margin: 0; }
.neela-story-list .neela-story-entry--media-left .neela-story-copy { grid-column: 7 / 13; }
.neela-story-list .neela-story-entry--media-right .neela-story-copy { grid-column: 1 / 7; }
.neela-story-list .neela-story-entry .neela-story-copy .description { position: relative; display: block; box-sizing: border-box; width: 100%; padding: clamp(2rem, 4vw, 3.5rem); color: rgba(255, 255, 255, .9); background: #4f7584; box-shadow: 0 1.25rem 3rem rgba(29, 51, 59, .18); }
.neela-story-entry .neela-story-copy .description::before { content: ''; position: absolute; inset: .7rem; border: 1px solid rgba(255, 255, 255, .42); pointer-events: none; }
.neela-story-entry .neela-story-copy .description .neela-style { position: relative; padding: 0; border: 0; }
.neela-story-entry .neela-story-copy .neela-item-title { margin-bottom: .75rem; color: #fff; }
.neela-story-entry .neela-story-copy p { margin: 0; }
.neela-story-list .neela-story-entry > .date { position: absolute; z-index: 3; top: -1.75rem; right: 1.75rem; padding: .8rem 1rem; color: #4f7584; background: #fff; border: 1px solid rgba(79, 117, 132, .42); box-shadow: 0 .75rem 1.75rem rgba(29, 51, 59, .1); }
.neela-story-list .neela-story-entry--media-right > .date { right: auto; left: 1.75rem; }
#the-wedding .neela-invitation-card { position: relative; isolation: isolate; min-height: 31rem; margin: 2rem 1rem; border: 1px solid rgba(255, 255, 255, .72); outline: 1px solid rgba(255, 255, 255, .48); outline-offset: .8rem; }
#the-wedding .neela-invitation-card::before { content: ''; position: absolute; z-index: -1; inset: .75rem; border: 1px solid rgba(255, 255, 255, .32); pointer-events: none; }
#giftregistry .wedding-gifts li .info { position: relative; top: 0; float: none; margin-top: 1.5rem; opacity: 1; max-height: none; text-align: left; }
#giftregistry .wedding-gifts li:hover .info { top: 0; max-height: none; }
#giftregistry .wedding-gifts li .info .img { display: block; }
#giftregistry .wedding-gifts li .info img { display: block; width: min(100%, 22rem); max-height: 18rem; margin: 0 auto 1.25rem; padding: 0; object-fit: contain; }
#giftregistry [data-b13-registry-copy] { min-height: 44px; margin-inline: 0; }
.neela-registry-image { position: relative; width: min(100%, 22rem); margin: 0 auto 1.25rem; padding: 0; overflow: hidden; border: 1px solid rgba(79, 117, 132, .2); background: #fff; box-shadow: 0 .75rem 2rem rgba(29, 51, 59, .12); cursor: zoom-in; }
.neela-registry-image img { margin: 0 !important; transition: transform .35s ease; }
.neela-registry-image__hint { position: absolute; right: .75rem; bottom: .75rem; display: inline-flex; min-height: 44px; padding: .65rem .85rem; align-items: center; gap: .5rem; color: #fff; background: rgba(42, 71, 81, .88); font-size: .78rem; letter-spacing: .04em; }
.neela-registry-image:hover img, .neela-registry-image:focus-visible img { transform: scale(1.025); }
.neela-gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.neela-gallery-item { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; color: #fff; background: #dfe7e9; cursor: zoom-in; }
.neela-gallery-item picture, .neela-gallery-item img { display: block; width: 100%; height: 100%; }
.neela-gallery-item img { aspect-ratio: 1 / 1; object-fit: cover; transition: transform .45s ease; }
.neela-gallery-item__overlay { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; background: rgba(42, 71, 81, .58); opacity: 0; transition: opacity .3s ease; }
.neela-gallery-item:hover img, .neela-gallery-item:focus-visible img { transform: scale(1.045); }
.neela-gallery-item:hover .neela-gallery-item__overlay, .neela-gallery-item:focus-visible .neela-gallery-item__overlay { opacity: 1; }
.neela-lightbox { width: min(92vw, 78rem); max-width: none; height: min(90vh, 54rem); max-height: none; padding: 0; overflow: visible; border: 0; color: #fff; background: transparent; }
.neela-lightbox::backdrop { background: rgba(13, 25, 30, .92); backdrop-filter: blur(4px); }
.neela-lightbox__panel { position: relative; display: grid; width: 100%; height: 100%; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: center; }
.neela-lightbox figure { display: grid; min-width: 0; max-height: 100%; margin: 0; place-items: center; }
.neela-lightbox__image { display: block; max-width: 100%; max-height: calc(90vh - 4rem); object-fit: contain; border: .65rem solid #fff; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .5); }
.neela-lightbox__caption { width: 100%; padding-top: .75rem; text-align: center; }
.neela-lightbox__close, .neela-lightbox__previous, .neela-lightbox__next { display: grid; width: 3rem; height: 3rem; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #fff; background: rgba(42, 71, 81, .72); cursor: pointer; }
.neela-lightbox__close { position: absolute; z-index: 2; top: 0; right: 0; }
.neela-lightbox__previous { grid-column: 1; }
.neela-lightbox figure { grid-column: 2; grid-row: 1; }
.neela-lightbox__next { grid-column: 3; }
.neela-scroll-top { position: fixed; z-index: 1001; right: 1.25rem; bottom: 1.25rem; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: #4f7584; box-shadow: 0 10px 28px rgba(24, 50, 59, .3); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
body:has([aria-label="Explorar diseños de invitación"]) .neela-scroll-top { bottom: 6.25rem; }
.neela-scroll-top:hover { background: #365562; transform: translateY(-2px); }
.neela-scroll-top[hidden] { display: none; }
#rsvp .form-wrapper { max-width: 46rem; margin-inline: auto; }
#rsvp .form-floating { width: 100%; }
#rsvp input, #rsvp select, #rsvp textarea { width: 100%; min-height: 3rem; }
@media (max-width: 991px) {
  .nav-section .container { padding-inline: 1rem; }
  #nav-mobile-btn { min-width: 44px; min-height: 44px; }
  #neela-main-menu { position: absolute; top: 58px; right: 0; display: none; width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 100px); padding: .75rem 0; overflow-y: auto; background: rgba(255, 255, 255, .98); box-shadow: 0 18px 40px rgba(24, 50, 59, .2); }
  #neela-main-menu.is-open { display: block; }
  #neela-main-menu.is-open > li { display: block; width: 100%; }
  #neela-main-menu a { display: block; min-height: 44px; padding: .7rem 1.25rem; }
  #neela-main-menu .dropdown-menu { position: static; display: block; padding-left: 1rem; border: 0; box-shadow: none; }
  #hero { min-height: 700px; }
  #hero .hero-wrapper { margin-top: 70px; }
  #hero .hero-title { line-height: 1.08; }
  #hero .btn { min-height: 48px; padding-inline: 1.5rem; }
  #rsvp .form-wrapper { padding: 1.5rem 1rem; border-width: 12px; }
  #rsvp .form-check-wrapper { display: grid; gap: .75rem; }
  .neela-location-card__content { padding: 1.25rem; }
  .neela-location-map iframe { min-height: 13rem; }
  .section-title { margin-bottom: 48px; font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .neela-story-list::before { left: 2rem; }
  .neela-story-list > .year { margin-left: 0; }
  .neela-story-list .neela-story-entry { display: block; min-height: 0; margin-left: 1rem; }
  .neela-story-list .neela-story-entry .neela-story-media, .neela-story-list .neela-story-entry .neela-story-copy { width: calc(100% - 1rem); }
  .neela-story-list .neela-story-entry .neela-story-copy { margin: -2rem 0 0 1rem; }
  .neela-story-list .neela-story-entry--media-right .neela-story-copy { margin: -2rem 1rem 0 0; }
  .neela-story-list .neela-story-entry > .date, .neela-story-list .neela-story-entry--media-right > .date { top: 1rem; right: 1rem; left: auto; }
  #the-wedding .neela-invitation-card { min-height: 0; margin-inline: 1.25rem; }
  .neela-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .neela-scroll-top { right: 1rem; }
  body:has([aria-label="Explorar diseños de invitación"]) .neela-scroll-top { bottom: 12.5rem; }
}
@media (max-width: 575px) {
  .neela-story-list::before { left: 1rem; }
  .neela-story-list > .year { width: 6.25rem; margin-left: .5rem; }
  .neela-story-list .neela-story-entry { margin-left: 0; }
  .neela-story-list .neela-story-entry .neela-story-media, .neela-story-list .neela-story-entry .neela-story-copy { width: 100%; }
  .neela-story-list .neela-story-entry .neela-story-copy, .neela-story-list .neela-story-entry--media-right .neela-story-copy { width: calc(100% - 1rem); margin: -1.25rem auto 0; }
  .neela-story-list .neela-story-entry .neela-story-copy .description { padding: 2rem 1.5rem; }
  #the-wedding .neela-invitation-card { margin-inline: .75rem; outline-offset: .45rem; }
  .neela-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neela-lightbox { width: 96vw; height: 86vh; }
  .neela-lightbox__panel { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; }
  .neela-lightbox__close, .neela-lightbox__previous, .neela-lightbox__next { width: 2.5rem; height: 2.5rem; }
  .neela-lightbox__image { border-width: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  body.template-neela [data-neela-motion] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* === Jerarquia de encabezados ===============================================
   Los titulos de item -momentos de la historia, sedes y agenda- eran h4
   colgando de un h2 de seccion: un salto de dos niveles. Suben a h3.

   El tema fija el cuerpo por etiqueta -h3 a 30pt y h4 a 21pt-, asi que subir de
   nivel los agrandaria un cincuenta por ciento. Esta clase les devuelve los
   21pt que tenian: no es un rediseño, es el mismo aspecto con la estructura
   corregida.
   ========================================================================== */

.template-neela .neela-item-title {
  font-size: 21pt;
}

/* Titulo que nombra una seccion para quien la recorre con lector de pantalla y
   que no debe ocupar sitio en pantalla. Ni display:none ni visibility:hidden
   servirian: sacarian el titulo tambien del arbol de accesibilidad. */
.template-neela .neela-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
