:root {
    --bg: #F8F8F6;
    --ink: #0D0D0D;
    --rose: #C8D8E8;
    --light: #D4E4F0;
    --rose-dark: #1A3A5C;
    --rose-deep: #0D2840;
    --gold-1: #D4E4F0;
    --gold-2: #8BAFC8;
    --gold-3: #4A7A9B;
    --line: rgba(13, 40, 64, 0.18);
    --card: rgba(255, 255, 255, 0.75);
    --white: #ffffff;
    --title-rose-gradient: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    --cursive: "Cormorant Garant", serif;
    --title: "Montserrat", sans-serif;
    --text: "Cormorant Garant", serif;
    --sans: "Montserrat", sans-serif;
    --section-space: clamp(52px, 8.5vh, 90px);
    --section-space-mobile: clamp(40px, 7vh, 40px);
    --title-size: clamp(2.3rem, 8vw, 3.3rem);
    --body-size: clamp(1.05rem, 2.2vw, 1.18rem);
}

/* Global rose-gold titles (countdown excluded) */
.invitado-nombre,
.dresscode-title,
.gifts-title,
.media-share-title,
.rsvp-title,
.frase-texto,
.playlist-title {
    font-family: var(--cursive) !important;
    background: var(--title-rose-gradient) !important;
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.itinerary-title, .event-titulo, .trayectoria-title, .wishes-title {
   font-family: var(--cursive) !important;
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: none !important;
}

.event-inicial,
.event-resto,
.itinerary-inicial,
.itinerary-resto,
.gifts-title-inicial,
.gifts-title-resto,
.playlist-title-inicial,
.playlist-title-resto,
.dresscode-title-inicial,
.dresscode-title-resto,
.media-share-inicial,
.media-share-resto,
.wishes-title-inicial,
.wishes-title-resto,
.rsvp-title-inicial,
.rsvp-title-resto,
.frase-texto span {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    animation: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: #0f1012;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 82% 74%, rgba(200, 216, 232, 0.08) 0%, rgba(200, 216, 232, 0) 48%),
        linear-gradient(180deg, #141519 0%, #0d0e10 100%);
    color: var(--ink);
    font-family: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

@keyframes foilShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.gold-gradient {
    background: linear-gradient(120deg, #D4E4F0 0%, #8BAFC8 35%, #4A7A9B 60%, #8BAFC8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.rose-gradient {
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

/* Portada */
.portada {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 18px 50px;
    transition: opacity .7s ease, transform .7s ease;
    overflow: hidden;
}

.portada.abrir {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

.portada-fondo {
    position: absolute;
    inset: 0;
    background: url("images/FN.png") center/cover no-repeat;
}

.portada-fondo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 40, 64, 0.22), rgba(13, 40, 64, 0.08));
}

.portada-contenido {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portada-subtitulo {
    margin: 2px 0 0;
    font-family: var(--title);
    font-size: clamp(1rem, 4.2vw, 1.25rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-invitado .ampersand,
.historia-resto,
.countdown-resto,
.event-resto,
.itinerary-resto,
.gifts-title-resto,
.playlist-title-resto,
.dresscode-title-resto,
.media-share-resto,
.wishes-title-resto,
.rsvp-title-resto {
    color: var(--rose-dark);
}

.portada-nombre-principal {
    margin: 8px 0 16px;
    line-height: .95;
    text-align: center;
    font-family: var(--cursive);
    font-weight: 500;
    font-size: clamp(3.2rem, 14vw, 5.4rem);
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    padding: 5px;
}

.portada-sobre-btn {
    margin: 2px 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.portada-sobre-img {
    width: min(360px, 84vw);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.16));
    transition: transform .3s ease, filter .3s ease;
}

.portada-sobre-btn:hover .portada-sobre-img,
.portada-sobre-btn:focus-visible .portada-sobre-img {
    transform: translateY(-6px) scale(1.03);
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.22));
}

.portada-sobre-btn:focus-visible {
    outline: 2px solid rgba(147, 82, 94, 0.45);
    outline-offset: 10px;
}

.portada-boton {
    margin-top: 2px;
    min-width: 210px;
}

.portada-subtitulo,
.invitado-nombre,
.historia-inicial,
.countdown-inicial,
.event-inicial,
.itinerary-inicial,
.gifts-title-inicial,
.playlist-title-inicial,
.dresscode-title-inicial,
.media-share-inicial,
.wishes-title-inicial,
.rsvp-title-inicial {
    background: linear-gradient(120deg, #D4E4F0 0%, #8BAFC8 35%, #4A7A9B 60%, #8BAFC8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.portada-boton,
.btn-calendar,
.btn-location,
.btn-gift,
.btn-playlist,
.btn-dresscode,
.btn-media-share,
.btn-rsvp,
.btn-wish-toggle,
.btn-wish-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 148px;
    min-height: 34px;
    border: 1px solid rgba(220, 228, 236, 0.9);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.95));
    color: #2f3a46;
    font-family: var(--title);
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-size: .56rem;
    line-height: 1;
    padding: 8px 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 6px 14px rgba(16, 24, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .25s cubic-bezier(0.22, 1, 0.36, 1), border-color .25s ease, color .25s ease;
}

.portada-boton::before,
.btn-calendar::before,
.btn-location::before,
.btn-gift::before,
.btn-playlist::before,
.btn-dresscode::before,
.btn-media-share::before,
.btn-rsvp::before,
.btn-wish-toggle::before,
.btn-wish-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.2) 10%, rgba(240, 245, 250, 0.38) 50%, rgba(222, 231, 238, 0.56) 100%);
    transform: translateX(-105%);
    opacity: .72;
    transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), opacity .45s ease;
}

.portada-boton:hover,
.btn-calendar:hover,
.btn-location:hover,
.btn-gift:hover,
.btn-playlist:hover,
.btn-dresscode:hover,
.btn-media-share:hover,
.btn-rsvp:hover,
.btn-wish-toggle:hover,
.btn-wish-submit:hover {
    transform: translateY(-1px);
    border-color: rgba(198, 210, 222, 0.98);
    box-shadow: 0 10px 20px rgba(16, 24, 32, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.97);
    color: #252f3a;
}

.portada-boton:hover::before,
.btn-calendar:hover::before,
.btn-location:hover::before,
.btn-gift:hover::before,
.btn-playlist:hover::before,
.btn-dresscode:hover::before,
.btn-media-share:hover::before,
.btn-rsvp:hover::before,
.btn-wish-toggle:hover::before,
.btn-wish-submit:hover::before {
    transform: translateX(0);
    opacity: .92;
}

.portada-boton:focus-visible,
.btn-calendar:focus-visible,
.btn-location:focus-visible,
.btn-gift:focus-visible,
.btn-playlist:focus-visible,
.btn-dresscode:focus-visible,
.btn-media-share:focus-visible,
.btn-rsvp:focus-visible,
.btn-wish-toggle:focus-visible,
.btn-wish-submit:focus-visible {
    outline: 1.5px solid rgba(214, 224, 234, 0.95);
    outline-offset: 2px;
    border-color: rgba(198, 210, 222, 0.98);
}

.portada-boton:active,
.btn-calendar:active,
.btn-location:active,
.btn-gift:active,
.btn-playlist:active,
.btn-dresscode:active,
.btn-media-share:active,
.btn-rsvp:active,
.btn-wish-toggle:active,
.btn-wish-submit:active,
.music-btn:active,
.rsvp-popup-close:active,
.music-fab-btn:active {
    transform: scale(0.97);
}

.invitacion {
    position: relative;
    opacity: 0;
    transition: opacity .6s ease;
}

.invitacion.revelar {
    opacity: 1;
}

/* Hero */
.hero-invitado {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-invitado::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(120px, 20vh, 220px);
    background: linear-gradient(to bottom, rgba(247, 244, 239, 0), rgba(247, 244, 239, 0.45) 65%, rgba(247, 244, 239, 0.75));
    pointer-events: none;
    z-index: 2;
}

.hero-invitado-fondo {
    position: absolute;
    inset: 0;
    background: url("images/F5.jpeg") center/cover no-repeat;
    transform: scale(1.012);
    transform-origin: center;
}

.hero-invitado-overlay {
    position: absolute;
    inset: 5px 0 0 0;
    background: linear-gradient(to bottom, rgba(26, 12, 19, 0.32), rgba(26, 12, 19, 0.05) 58%, rgba(255, 248, 250, 0.18));
}

.hero-invitado-contenido {
    position: relative;
    z-index: 2;
    text-align: center;
    width: min(620px, 100%);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.hero-meta-hidden {
    display: none;
}

.hero-invitado-nombres {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-size: clamp(2rem, 8vw, 4rem);
}

.hero-invitado-nombres .nombre {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--cursive);
    line-height: 1;
}

.hero-invitado-nombres .inicial,
.hero-invitado-nombres .resto,
.event-titulo,
.historia-titulo,
.countdown-titulo,
.gifts-title,
.playlist-title,
.dresscode-title,
.media-share-title,
.wishes-title,
.rsvp-title,
.album-title,
.frase-texto {
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.hero-invitado-fecha {
    margin-top: 18px;
    letter-spacing: .32em;
    font-family: var(--title);
    font-size: .9rem;
    color: var(--white);
}

/* Names editorial */
.names-editorial {
    padding: 44px 18px;
    text-align: center;
    background-image: url("images/FN.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 5;
}

html.js-anim .names-editorial.fade-in-element,
html.js-anim .names-editorial.fade-in-element.visible,
html.js-anim .names-editorial.fade-in-element.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

#names,
#names * {
    animation: none !important;
    transform: none !important;
}

#names {
    background-attachment: scroll;
}

.names-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.name-lines {
    font-size: 50px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-family: var(--cursive);
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.date-vertical {
    border-left: 1px solid var(--line);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    letter-spacing: .12em;
    font-weight: 600;
    font-size: 50px;
    font-family: var(--text);
    font-style: italic;
    background: linear-gradient(120deg, #D4E4F0 0%, #8BAFC8 35%, #4A7A9B 60%, #8BAFC8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.music-text {
    margin: 30px 0 0;
    font-size: 25px;
    color: var(--rose-dark);
    font-family: var(--cursive);
}

.music-btn {
    margin-top: 10px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: var(--rose-dark);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.music-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(31, 17, 21, 0.16);
}

.music-btn.is-playing {
    background: var(--rose-dark);
    color: #fff;
}

.names-text {
    max-width: 560px;
    margin: 18px auto 18px;
    font-size: 20px;
    color: var(--light);
    font-family: var(--text);
    line-height: 1.45;
}

.mono {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mono-img {
    width: 120px;
    max-width: 40vw;
    height: auto;
    object-fit: contain;
}

.mono.hero-mono {
    margin-top: 0;
}

.hero-mono-img {
    width: 100px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, .1));
}

.quote-names {
    font-size: 40px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--cursive);
    background: linear-gradient(120deg, #D4E4F0 0%, #8BAFC8 35%, #4A7A9B 60%, #8BAFC8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Base sections */
.section {
    position: relative;
    padding: var(--section-space) 18px;
    text-align: center;
}

.events-section,
.agenda-section,
.dresscode-section,
.gifts-section,
.playlist-section,
.media-share-section,
.wishes-section,
.rsvp-section,
.final-cierre-section,
.bendiciones-section,
.invitado-section {
    padding-left: 18px;
    padding-right: 18px;
}

.section-inner,
.events-container,
.agenda-panel,
.container {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
}

.events-fondo,
.historia-fondo,
.countdown-fondo,
.invitado-fondo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.events-overlay,
.historia-overlay,
.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 250, 252, 0.5);
}

.countdown-section {
    min-height: 90vh;
    min-height: 90dvh;
    padding: 26px 18px 56px;
    display: flex;
    align-items: stretch;
}

.countdown-section .countdown-fondo {
    background-image: url("images/F3.jpeg");
    background-position: center;
}

.countdown-section .countdown-overlay {
    background: linear-gradient(to bottom, rgba(24, 11, 18, 0.62) 0%, rgba(24, 11, 18, 0.34) 36%, rgba(255, 248, 250, 0.22) 100%);
}

.countdown-section .section-inner {
    width: min(940px, 100%);
    min-height: calc(90vh - 82px);
    min-height: calc(90dvh - 82px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(42px, 9vh, 88px);
}

.countdown-section .countdown-titulo {
    margin: 0 0 20px;
    text-align: center;
    background: none;
    -webkit-background-clip: initial;
    animation: none;
    color: #f8f4ef;
    text-shadow: 0 2px 16px rgba(20, 10, 15, 0.35);
}

.countdown-section .countdown-inicial,
.countdown-section .countdown-resto,
.countdown-section .countdown-espacio {
    background: none;
    -webkit-background-clip: initial;
    animation: none;
    color: #f8f4ef;
    text-shadow: 0 2px 10px rgba(20, 10, 15, 0.3);
}

.countdown-section .countdown {
    margin-top: 0;
}

.countdown-section .countdown-number {
    min-width: 78px;
    padding: 16px 12px;
    color: #0D2840;
    background: linear-gradient(to bottom, rgba(212, 228, 240, 0.88), rgba(200, 216, 232, 0.78));
    border: 1px solid rgba(139, 175, 200, 0.45);
    box-shadow: 0 14px 28px rgba(22, 10, 15, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 2px 8px rgba(16, 8, 12, 0.38);
}

.countdown-section .countdown-label,
.countdown-section .countdown-separator {
    color: #f5efe8;
    text-shadow: 0 2px 8px rgba(16, 8, 12, 0.3);
}

.countdown-section .countdown-label {
    letter-spacing: .14em;
}

.countdown-section .btn-calendar {
    margin-top: 20px;
    padding: 8px 14px;
    font-size: .56rem;
    letter-spacing: .11em;
    color: #f7f0e8;
    border-color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 10px 20px rgba(20, 10, 15, 0.14);
}

.countdown-section .btn-calendar:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.9);
}

.countdown-section .btn-calendar::before {
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 10%, rgba(212, 228, 240, 0.24) 52%, rgba(255, 255, 255, 0.52) 100%);
}

.invitado-fondo,
.invitado-fondo.events-fondo,
.bendiciones-fondo {
    background-image: none;
    background:
        radial-gradient(circle at 14% 20%, rgba(212, 228, 240, 0.46) 0%, rgba(212, 228, 240, 0) 46%),
        radial-gradient(circle at 86% 18%, rgba(200, 216, 232, 0.34) 0%, rgba(200, 216, 232, 0) 50%),
        radial-gradient(circle at 74% 84%, rgba(238, 244, 248, 0.4) 0%, rgba(238, 244, 248, 0) 52%),
        linear-gradient(152deg, #FAFAFA 0%, #EEF4F8 52%, #F8F8F6 100%);
}

.events-fondo {
    background-image: url("images/FN.png");
}

.historia-fondo {
    background-image: url("images/FN.png");
}

.historia-section,
.agenda-section,
.dresscode-section,
.wishes-section,
.rsvp-section,
.media-share-section,
.gifts-section {
    background: var(--white);
}

/* Invitado */
.invitado-section {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bendiciones-section {
    min-height: 58vh;
    padding: clamp(56px, 9vh, 96px) 18px;
    position: relative;
    z-index: 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invitado-section .events-overlay {
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0.74), rgba(255, 250, 252, 0.66));
}

.bendiciones-section .events-overlay {
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0.68), rgba(255, 250, 252, 0.6));
}

.invitado-tarjeta {
    position: relative;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: clamp(34px, 5.2vw, 56px) clamp(22px, 4.5vw, 44px);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
    overflow: hidden;
}

.invitado-tarjeta,
.bendiciones-tarjeta,
.section-inner.dresscode-inner,
.gifts-inner,
.section-inner.wishes-inner,
.rsvp-section .rsvp-panel,
.final-cierre-inner,
.agenda-section .agenda-panel {
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bendiciones-tarjeta {
    position: relative;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(36px, 5.6vw, 62px) clamp(24px, 5vw, 52px);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
    overflow: hidden;
}

.invitado-tarjeta::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
}

.bendiciones-tarjeta::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
}

.invitado-tarjeta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 253, 250, 0.83), rgba(255, 250, 246, 0.76));
    pointer-events: none;
}

.bendiciones-tarjeta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 253, 250, 0.85), rgba(255, 250, 246, 0.78));
    pointer-events: none;
}

.invitado-contenido {
    position: relative;
    z-index: 2;
}

.bendiciones-contenido {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bendiciones-texto {
    margin: 0;
    color: #1A3A5C;
    font-family: var(--text);
    font-size: clamp(1.08rem, 2.5vw, 1.34rem);
    line-height: 1.75;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.56);
}

.bendiciones-nombre {
    margin: 20px 0 0;
    font-family: var(--cursive);
    font-size: clamp(2rem, 7vw, 3.05rem);
    line-height: 1.08;
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.bendiciones-separador {
    margin: 10px 0 0;
    font-family: var(--text);
    font-style: italic;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    color: #a4764c;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.46);
}

.invitado-mensaje,
.invitado-lugares {
    color: #1A3A5C;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
}

.invitado-section::before {
    display: none;
}

.event-card,
.invitado-tarjeta,
.agenda-panel,
.rsvp-panel,
.gift-option,
.section-inner.media-share-inner,
.section-inner.wishes-inner,
.section-inner.gifts-inner,
.section-inner.playlist-inner {
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(6px);
    border-radius: 0;
    padding: 18px;
}

.invitado-mensaje,
.historia-texto,
.playlist-text,
.dresscode-text,
.media-share-text,
.wishes-text,
.rsvp-intro,
.gifts-text,
.gift-option-text,
.event-direccion {
    color: var(--rose-dark);
    font-family: var(--text);
    font-size: var(--body-size);
    line-height: 1.55;
}

.invitado-mensaje {
    font-family: var(--cursive);
    font-size: 20px;
    margin: 0;
}

.invitado-nombre {
    margin: 10px 0 6px;
    font-family: var(--cursive);
    font-size: 35px;
}

.invitado-lugares {
    margin: 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--rose-dark);
}

#numero-lugares {
    font-weight: 700;
}

/* Historia */
.countdown-titulo{
    font-family: var(--cursive);
    font-weight: 400;
}

.historia-titulo,
.event-titulo,
.itinerary-title,
.gifts-title,
.playlist-title,
.dresscode-title,
.media-share-title,
.wishes-title,
.rsvp-title, 
.trayectoria-title{
    margin: 0 0 14px;
    font-family: var(--title);
    font-size: var(--title-size);
    font-weight: 500;
}

.historia-palabra,
.countdown-palabra,
.rsvp-title-palabra {
    display: inline-flex;
    align-items: baseline;
}

.historia-fotos {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.historia-foto {
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.historia-foto img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.historia-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gold-2);
    top: 10px;
    left: 10px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
    z-index: 2;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 8px 0 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    min-width: 72px;
    display: inline-flex;
    justify-content: center;
    padding: 14px 10px;
    background: #0D0D0D;
    color: var(--rose-dark);
    font-family: var(--text);
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.14);
}

.countdown-label {
    margin-top: 8px;
    color: var(--rose-dark);
    font-family: var(--title);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.countdown-separator {
    color: var(--rose-dark);
    transform: translateY(-12px);
}

.btn-calendar {
    display: inline-flex;
    margin-top: 22px;
}

/* Events */
.events-container {
    display: grid;
    gap: 18px;
}

#events .event-card {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 40px;
}

#events .event-icon {
    width: 124px;
    height: 124px;
    margin: 0 auto 14px;
}

.event-photo-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(139, 175, 200, 0.92);
    box-shadow: 0 0 0 3px rgba(235, 245, 252, 0.8), 0 14px 28px rgba(20, 35, 52, 0.2);
}

#events .event-time,
#events .event-lugar,
#events .event-direccion {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.event-icon,
.playlist-icon,
.gifts-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 8px;
}

.event-icon lord-icon,
.playlist-icon lord-icon,
.gifts-icon lord-icon {
    width: 100%;
    height: 100%;
}

.event-time,
.event-lugar,
.event-direccion,
.itinerary-time,
.itinerary-name,
.gift-option-title,
.dresscode-tone-name {
    margin: 6px 0;
    color: var(--rose-dark);
    font-family: var(--text);
}

.event-time,
.itinerary-time {
    font-size: 1.35rem;
    font-style: italic;
}

.event-lugar,
.gift-option-title {
    font-size: 1.45rem;
    font-family: var(--title);
}

.btn-location,
.btn-gift,
.btn-playlist,
.btn-dresscode,
.btn-media-share {
    display: inline-flex;
    margin-top: 10px;
}

/* Agenda */
.agenda-section {
    padding: clamp(56px, 9vh, 88px) 18px;
    text-align: center;
    background-image: url("images/FN.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.agenda-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 40, 64, 0.08), rgba(13, 40, 64, 0.04) 35%, rgba(13, 40, 64, 0.1));
    pointer-events: none;
    z-index: 1;
}

.agenda-section .agenda-panel {
    border: 1px solid rgba(255, 245, 234, 0.44);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 36px rgba(36, 15, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    padding: clamp(24px, 4vw, 34px) clamp(16px, 3.4vw, 28px);
    width: min(680px, 100%);
    position: relative;
    z-index: 2;
}

.agenda-section .itinerary-title {
    margin-bottom: 20px;
    text-align: center;
    font-family: var(--title);
    font-size: var(--title-size);
    font-weight: 500;
}

.agenda-itinerary {
    display: grid;
    gap: 16px;
}

.itinerary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.itinerary-name {
    text-align: center;
    margin: 0;
    font-family: var(--title);
    font-size: clamp(1.35rem, 3.2vw, 1.65rem);
    line-height: 1.25;
}

.itinerary-time {
    margin: 0;
    white-space: nowrap;
    font-size: clamp(1.06rem, 2.7vw, 1.25rem);
}

.agenda-section .itinerary-name,
.agenda-section .itinerary-time,
.agenda-section .itinerary-divider,
.agenda-section .itinerary-title {
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 24%, #1A3A5C 50%, #8BAFC8 76%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 2px 8px rgba(30, 12, 19, 0.24);
}

.agenda-section .itinerary-title,
.gift-option-title {
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.itinerary-icon {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.05rem;
    line-height: 1;
}

.itinerary-icon i {
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 24%, #1A3A5C 50%, #8BAFC8 76%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    text-shadow: 0 2px 10px rgba(94, 76, 30, 0.16);
    animation: itineraryIconFloat 2.4s ease-in-out infinite;
}

.agenda-section .itinerary-item {
    opacity: 0;
    transform: translateY(14px);
}

.agenda-section.visible .itinerary-item {
    animation: itineraryReveal .75s cubic-bezier(.22, .61, .36, 1) forwards;
}

.agenda-section.visible .itinerary-item:nth-child(1) { animation-delay: .04s; }
.agenda-section.visible .itinerary-item:nth-child(2) { animation-delay: .12s; }
.agenda-section.visible .itinerary-item:nth-child(3) { animation-delay: .2s; }
.agenda-section.visible .itinerary-item:nth-child(4) { animation-delay: .28s; }
.agenda-section.visible .itinerary-item:nth-child(5) { animation-delay: .36s; }
.agenda-section.visible .itinerary-item:nth-child(6) { animation-delay: .44s; }
.agenda-section.visible .itinerary-item:nth-child(7) { animation-delay: .52s; }

@keyframes itineraryReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes itineraryIconFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.itinerary-divider {
    display: block;
    margin: 2px 0 0;
    font-size: 1.35rem;
    line-height: 1;
}

/* Separador itinerary -> events */
.section-separador {
    padding: 0;
    margin: 0;
    background: transparent;
    line-height: 0;
    position: relative;
    min-height: clamp(320px, 52vh, 560px);
    overflow: hidden;
}

.separador-foto-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

html.js-anim .separador-foto-img {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .82s cubic-bezier(0.22, 1, 0.36, 1), transform .82s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-anim .section-separador.visible .separador-foto-img {
    opacity: 1;
    transform: translateY(0);
}

#gallery-auto,
.gallery-auto-section,
#separador-itinerario,
#separador-regalos,
#separador-momentos,
.section-separador {
    padding: 0;
    margin: 0;
}

/* Separators */
.photo-separator-section {
    padding: 0;
}

.photo-separator-image {
    width: 100%;
    height: 64vh;
    object-fit: cover;
}

.photo-separator-image-secondary {
    object-position: center;
}

/* Gifts */
.gifts-section {
    min-height: 56vh;
    padding: clamp(56px, 9vh, 92px) 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gifts-fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(212, 228, 240, 0.46) 0%, rgba(212, 228, 240, 0) 46%),
        radial-gradient(circle at 86% 18%, rgba(200, 216, 232, 0.34) 0%, rgba(200, 216, 232, 0) 50%),
        radial-gradient(circle at 74% 84%, rgba(238, 244, 248, 0.4) 0%, rgba(238, 244, 248, 0) 52%),
        linear-gradient(152deg, #FAFAFA 0%, #EEF4F8 52%, #F8F8F6 100%);
}

.gifts-section .events-overlay {
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0.66), rgba(255, 250, 252, 0.58));
}

.gifts-inner {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
    border: 2px solid rgba(200, 173, 98, 0.66);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
    padding: clamp(34px, 5.4vw, 56px) clamp(22px, 4.6vw, 46px);
    overflow: hidden;
}

.gifts-inner::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(214, 194, 122, 0.94);
    pointer-events: none;
}

.gifts-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 253, 250, 0.85), rgba(255, 250, 246, 0.78));
    pointer-events: none;
}

.gifts-inner > * {
    position: relative;
    z-index: 2;
}

.gift-option {
    background: transparent;
    border: none;
    padding: 0;
}

.gifts-title,
.gifts-text {
    text-align: center;
}

.gifts-text {
    max-width: 620px;
    margin: 0 auto;
}

.gift-option-envelope {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

/* Playlist */
.playlist-inner {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 10px 8px;
}

.playlist-media-wrap {
    width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.playlist-block {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

.playlist-divider {
    width: min(420px, 78%);
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(to right, rgba(214, 194, 122, 0), rgba(214, 194, 122, 0.9), rgba(214, 194, 122, 0));
}

#playlist .playlist-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 10px;
}

#playlist .playlist-text {
    max-width: 620px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.38);
}

#playlist .btn-playlist {
    margin-top: 14px;
}

#playlist .media-share-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 8px;
}

#playlist .media-share-text {
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.38);
}

#playlist .media-share-qr-wrap {
    width: min(228px, 100%);
    margin: 10px auto 6px;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* Dresscode */
.dresscode-palette {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dresscode-section {
    min-height: 56vh;
    padding: clamp(56px, 9vh, 92px) 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dresscode-section + .gifts-section {
    margin-top: -1px;
}

.dresscode-fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(212, 228, 240, 0.46) 0%, rgba(212, 228, 240, 0) 46%),
        radial-gradient(circle at 86% 18%, rgba(200, 216, 232, 0.34) 0%, rgba(200, 216, 232, 0) 50%),
        radial-gradient(circle at 74% 84%, rgba(238, 244, 248, 0.4) 0%, rgba(238, 244, 248, 0) 52%),
        linear-gradient(152deg, #FAFAFA 0%, #EEF4F8 52%, #F8F8F6 100%);
}

.dresscode-fondo,
.gifts-fondo {
    background-attachment: scroll;
}

.dresscode-section .events-overlay {
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0.66), rgba(255, 250, 252, 0.58));
}

.section-inner.dresscode-inner {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(34px, 5.4vw, 56px) clamp(22px, 4.6vw, 46px);
    border: 2px solid rgba(200, 173, 98, 0.66);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
    overflow: hidden;
    display: grid;
    gap: 24px;
}

.dresscode-gifts-block {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.dresscode-gifts-divider {
    width: min(420px, 78%);
    height: 1px;
    margin: 4px auto;
    background: linear-gradient(to right, rgba(214, 194, 122, 0), rgba(214, 194, 122, 0.9), rgba(214, 194, 122, 0));
}

.section-inner.dresscode-inner,
.gifts-inner {
    border: 2px solid rgba(200, 173, 98, 0.66);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
}

.section-inner.dresscode-inner::before,
.gifts-inner::before {
    border: 2px solid rgba(214, 194, 122, 0.94);
}

.section-inner.dresscode-inner::after,
.gifts-inner::after {
    background: linear-gradient(to bottom, rgba(255, 253, 250, 0.85), rgba(255, 250, 246, 0.78));
}

.section-inner.dresscode-inner::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(214, 194, 122, 0.94);
    pointer-events: none;
}

.section-inner.dresscode-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 253, 250, 0.85), rgba(255, 250, 246, 0.78));
    pointer-events: none;
}

.section-inner.dresscode-inner > * {
    position: relative;
    z-index: 2;
}

.dresscode-title {
    text-align: center;
}

.dresscode-text {
    max-width: 620px;
    margin: 0 auto 18px;
    text-align: center;
}

.gifts-text {
    max-width: 620px;
    margin: 0 auto;
}

.dresscode-palette {
    display: none;
}

.dresscode-tone {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.dresscode-circle {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tone-green-eyes { background: #5d6a45; }
.tone-cabernet { background: #7e3349; }
.tone-potting-soil { background: #5b4035; }
.tone-buttercream { background: #eadfbd; }

.dresscode-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

/* Wishes */
.wishes-section {
    min-height: 56vh;
    padding: clamp(56px, 9vh, 92px) 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishes-fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(212, 228, 240, 0.46) 0%, rgba(212, 228, 240, 0) 46%),
        radial-gradient(circle at 86% 18%, rgba(200, 216, 232, 0.34) 0%, rgba(200, 216, 232, 0) 50%),
        radial-gradient(circle at 74% 84%, rgba(238, 244, 248, 0.4) 0%, rgba(238, 244, 248, 0) 52%),
        linear-gradient(152deg, #FAFAFA 0%, #EEF4F8 52%, #F8F8F6 100%);
}

.wishes-section .events-overlay {
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0.66), rgba(255, 250, 252, 0.58));
}

.section-inner.wishes-inner {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
    border: 2px solid rgba(200, 173, 98, 0.66);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
    padding: clamp(34px, 5.4vw, 56px) clamp(22px, 4.6vw, 46px);
    overflow: hidden;
}

.section-inner.wishes-inner > * {
    position: relative;
    z-index: 2;
}

.wishes-icon {
    width: 98px;
    height: 98px;
    margin: 0 auto 10px;
}

.wishes-icon lord-icon {
    width: 100%;
    height: 100%;
}

.wishes-title,
.wishes-text {
    text-align: center;
}

.wishes-text {
    max-width: 620px;
    margin: 0 auto 14px;
}

/* Final closing section */
.final-cierre-section {
    min-height: 50vh;
    padding: clamp(52px, 8vh, 84px) 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-cierre-fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(212, 228, 240, 0.46) 0%, rgba(212, 228, 240, 0) 46%),
        radial-gradient(circle at 86% 18%, rgba(200, 216, 232, 0.34) 0%, rgba(200, 216, 232, 0) 50%),
        radial-gradient(circle at 74% 84%, rgba(238, 244, 248, 0.4) 0%, rgba(238, 244, 248, 0) 52%),
        linear-gradient(152deg, #FAFAFA 0%, #EEF4F8 52%, #F8F8F6 100%);
}

.final-cierre-section .events-overlay {
    background: linear-gradient(to bottom, rgba(255, 250, 252, 0.66), rgba(255, 250, 252, 0.58));
}

.final-cierre-inner {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    margin: 0 auto;
    border: 2px solid rgba(200, 173, 98, 0.66);
    background: url("images/FN.png") center/cover no-repeat;
    box-shadow: 0 20px 38px rgba(69, 33, 42, 0.2);
    padding: clamp(34px, 5.4vw, 56px) clamp(22px, 4.6vw, 46px);
    overflow: hidden;
}

.final-cierre-inner::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(214, 194, 122, 0.94);
    pointer-events: none;
}

.final-cierre-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 253, 250, 0.85), rgba(255, 250, 246, 0.78));
    pointer-events: none;
}

.final-cierre-inner > * {
    position: relative;
    z-index: 2;
}

.final-cierre-section .frase-texto {
    text-align: center;
    font-size: clamp(2.2rem, 8vw, 3.6rem);
    line-height: 1.15;
}

/* Media share */
.media-share-inner {
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 10px 8px;
}

.media-share-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 10px;
}

.media-share-icon lord-icon {
    width: 100%;
    height: 100%;
}

.media-share-text {
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.38);
}

.media-share-qr-wrap {
    width: min(248px, 100%);
    margin: 16px auto 8px;
    border: 1px solid rgba(214, 194, 122, 0.44);
    background: rgba(255, 255, 255, 0.78);
    padding: 10px;
    box-shadow: 0 10px 22px rgba(71, 35, 44, 0.12);
}

.media-share-qr {
    width: 100%;
}

#media-share .btn-media-share {
    margin-top: 10px;
}

/* Wishes */
.wishes-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.wish-panel {
    margin-top: 14px;
}

.wish-form {
    display: grid;
    gap: 10px;
}

.wish-field {
    text-align: left;
}

.wish-field label {
    display: block;
    margin-bottom: 4px;
    color: var(--light);
    font-family: var(--text);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wish-field input,
.wish-field textarea,
#rsvp-name,
#guest-count,
.rsvp-radio-option {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1rem;
    padding: 10px 12px;
}

.wish-status {
    margin: 6px 0 0;
    color: var(--rose-dark);
    font-size: .95rem;
}

.wishes-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    text-align: left;
    padding: 14px;
}

.wish-card-name {
    margin: 0;
    font-family: var(--title);
    color: var(--rose-dark);
}

.wish-card-message {
    margin: 8px 0;
    color: var(--rose-dark);
}

.wish-card-date,
.wishes-empty {
    margin: 0;
    color: var(--light);
    font-size: .88rem;
}

/* Gift modal */
.gift-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gift-modal.active {
    display: block;
}

.gift-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
}

.gift-modal-card {
    position: relative;
    width: min(430px, calc(100% - 28px));
    margin: 10vh auto 0;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 22px 18px 16px;
    text-align: center;
}

.gift-modal-close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.7rem;
    color: var(--rose-dark);
}

.gift-modal-title {
    margin: 0 0 8px;
    font-family: var(--cursive);
    font-size: 2rem;
}

.gift-modal-title,
.gift-option-title-envelope .gift-inicial,
.gift-option-title-envelope .gift-resto {
    background: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    animation: foilShine 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

.gift-modal-data,
.gift-copy-feedback {
    color: var(--rose-dark);
    font-size: 1.05rem;
}

/* RSVP */
.rsvp-form {
    margin-top: 12px;
    display: grid;
    gap: 12px;
    text-align: left;
}

.rsvp-form.is-locked {
    opacity: .75;
}

.form-group label,
.rsvp-label {
    display: block;
    margin-bottom: 6px;
    color: var(--rose-dark);
    font-family: var(--text);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rsvp-response-group {
    display: grid;
    gap: 8px;
}

.rsvp-radio-option {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.rsvp-radio-option input {
    width: auto;
    margin: 0;
}

.btn-rsvp {
    width: 100%;
}

.rsvp-final-container {
    margin-top: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    padding: 12px;
}

.rsvp-final-container p {
    margin: 0;
    color: var(--rose-dark);
}

.rsvp-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

/* RSVP section styling */
.rsvp-section {
    min-height: 62vh;
    padding: clamp(56px, 9vh, 92px) 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-fondo {
    position: absolute;
    inset: 0;
    background-image: url("images/FN.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rsvp-section .events-overlay {
    background: none;
}

.rsvp-inner {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
}

.rsvp-section .rsvp-panel {
    border: 1px solid rgba(255, 245, 234, 0.46);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 36px rgba(36, 15, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    padding: clamp(28px, 4.5vw, 42px) clamp(18px, 4vw, 30px);
}

.rsvp-icon {
    width: 98px;
    height: 98px;
    margin: 0 auto 10px;
}

.rsvp-icon lord-icon {
    width: 100%;
    height: 100%;
}

.rsvp-title,
.rsvp-intro {
    text-align: center;
}

.rsvp-intro {
    max-width: 620px;
    margin: 0 auto 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.38);
}

.rsvp-popup-overlay.active {
    display: flex;
}

.rsvp-popup {
    width: min(420px, calc(100% - 28px));
    background: var(--white);
    border: 1px solid var(--line);
    padding: 18px;
    text-align: center;
}

.rsvp-popup-message {
    margin: 0 0 12px;
    color: var(--rose-dark);
    font-size: 1.05rem;
}

.rsvp-popup-close {
    border: 1px solid var(--rose-dark);
    background: var(--white);
    color: var(--rose-dark);
    font-family: var(--title);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .65rem;
    padding: 10px 12px;
}

.rsvp-popup.is-error {
    border-color: rgba(147, 82, 94, 0.42);
}

.rsvp-popup.is-error .rsvp-popup-message {
    color: var(--rose-deep);
}

/* Frase + trayectoria */
.frase-texto {
    margin: 0;
    font-family: var(--cursive);
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
}

.trayectoria-section {
    min-height: 56vh;
    padding: clamp(56px, 9vh, 92px) 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trayectoria-fondo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(212, 228, 240, 0.46) 0%, rgba(212, 228, 240, 0) 46%),
        radial-gradient(circle at 86% 18%, rgba(200, 216, 232, 0.34) 0%, rgba(200, 216, 232, 0) 50%),
        radial-gradient(circle at 74% 84%, rgba(238, 244, 248, 0.4) 0%, rgba(238, 244, 248, 0) 52%),
        linear-gradient(152deg, #FAFAFA 0%, #EEF4F8 52%, #F8F8F6 100%);
}

.trayectoria-inner {
    position: relative;
    z-index: 2;
    width: min(1020px, 100%);
    margin: 0 auto;
}

.trayectoria-inner .playlist-title {
    text-align: center;
    margin-bottom: 22px;
}

.trayectoria-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.trayectoria-item {
    margin: 0;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(13, 40, 64, 0.12);
    background: var(--white);
    overflow: hidden;
}

.trayectoria-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.trayectoria-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.trayectoria-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 14, 0.92);
}

.trayectoria-lightbox.active {
    display: flex;
}

.trayectoria-lightbox img {
    width: min(92vw, 980px);
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trayectoria-lightbox-close,
.trayectoria-lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(12, 18, 26, 0.66);
    color: #f8f8f6;
    cursor: pointer;
}

.trayectoria-lightbox-close {
    top: 22px;
    right: 24px;
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
    line-height: 1;
}

.trayectoria-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 56px;
    font-size: 1.5rem;
}

.trayectoria-lightbox-nav.prev {
    left: 18px;
}

.trayectoria-lightbox-nav.next {
    right: 18px;
}

/* Footer */
.footer {
    padding: 20px 18px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    background: #0D0D0D;
    color: #F8F8F6;
}

#social-icons {
    display: flex;
    gap: 16px;
}

#social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform .2s ease, background-color .2s ease;
}

#social-icons a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.footer-logo img {
    width: 90px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 20, 28, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.56);
    padding: 8px 12px;
    color: #fff;
    font-weight: 600;
    font-family: var(--title);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .6rem;
    opacity: 0;
    transform: translate(-50%, 14px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.scroll-hint,
.scroll-hint svg {
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.38));
}

.scroll-hint.mostrar {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scroll-hint-hand {
    width: 16px;
    height: 16px;
    animation: hintPulse 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Music button */
.music-fab {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 95;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.music-fab.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.music-fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    color: var(--rose-dark);
    font-size: 1.1rem;
}

.music-fab-icon-off {
    display: none;
}

.music-fab.playing .music-fab-icon-on {
    display: inline-block;
}

.music-fab.playing .music-fab-icon-off {
    display: none;
}

.music-fab:not(.playing) .music-fab-icon-on {
    display: none;
}

.music-fab:not(.playing) .music-fab-icon-off {
    display: inline-block;
}

.musica-status,
.musica-progress-fill {
    display: none;
}

/* Reveal animation targets from script */
html.js-anim .section,
html.js-anim .separator,
html.js-anim .footer,
html.js-anim .fade-in-element {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .82s cubic-bezier(0.22, 1, 0.36, 1), transform .82s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-anim .section.visible,
html.js-anim .separator.visible,
html.js-anim .footer.visible,
html.js-anim .fade-in-element.is-visible,
html.js-anim .fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

html.js-anim .section.visible h2,
html.js-anim .section.visible h3,
html.js-anim .section.visible p,
html.js-anim .section.visible label,
html.js-anim .section.visible .itinerary-item,
html.js-anim .section.visible .gift-option,
html.js-anim .section.visible .wish-panel,
html.js-anim .section.visible .wishes-list,
html.js-anim .section.visible .wishes-actions,
html.js-anim .section.visible .rsvp-form,
html.js-anim .section.visible .rsvp-panel,
html.js-anim .section.visible .dresscode-gifts-block,
html.js-anim .section.visible .invitado-tarjeta,
html.js-anim .section.visible .bendiciones-tarjeta,
html.js-anim .section.visible .final-cierre-inner {
    animation: sectionSoftReveal .78s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--reveal-order, 0) * 90ms);
}

html.js-anim .section.visible h2,
html.js-anim .section.visible h3 {
    animation-delay: calc(var(--reveal-order, 0) * 90ms + 40ms);
}

html.js-anim .section.visible p,
html.js-anim .section.visible label {
    animation-delay: calc(var(--reveal-order, 0) * 90ms + 120ms);
}

@keyframes sectionSoftReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared zoom reveal for icons + buttons */
html.js-anim .zoom-in-element,
html.js-anim .section :is(.btn-location, .btn-playlist, .btn-dresscode, .btn-media-share, .btn-gift, .btn-rsvp, .btn-wish-toggle, .btn-wish-submit, .btn-calendar),
html.js-anim .section :is(.event-icon, .playlist-icon, .media-share-icon, .wishes-icon, .rsvp-icon, .itinerary-icon) {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity .72s cubic-bezier(0.22, 1, 0.36, 1), transform .72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

html.js-anim .zoom-in-element,
html.js-anim .section :is(.event-icon, .playlist-icon, .media-share-icon, .wishes-icon, .rsvp-icon, .itinerary-icon) {
    transition-delay: 160ms;
}

html.js-anim .section :is(.btn-location, .btn-playlist, .btn-dresscode, .btn-media-share, .btn-gift, .btn-rsvp, .btn-wish-toggle, .btn-wish-submit, .btn-calendar) {
    transition-delay: 240ms;
}

html.js-anim .zoom-in-element.visible,
html.js-anim .zoom-in-element.is-visible,
html.js-anim .section.visible :is(.btn-location, .btn-playlist, .btn-dresscode, .btn-media-share, .btn-gift, .btn-rsvp, .btn-wish-toggle, .btn-wish-submit, .btn-calendar),
html.js-anim .section.visible :is(.event-icon, .playlist-icon, .media-share-icon, .wishes-icon, .rsvp-icon, .itinerary-icon) {
    opacity: 1;
    transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
    .invitado-tarjeta:hover,
    .bendiciones-tarjeta:hover,
    .section-inner.dresscode-inner:hover,
    .gifts-inner:hover,
    .section-inner.wishes-inner:hover,
    .rsvp-section .rsvp-panel:hover,
    .final-cierre-inner:hover,
    .agenda-section .agenda-panel:hover {
        transform: translateY(-2px);
        box-shadow: 0 24px 42px rgba(69, 33, 42, 0.22);
    }
}

/* Responsive */
@media (max-width: 720px) {
    .section {
        padding-top: var(--section-space-mobile);
        padding-bottom: var(--section-space-mobile);
    }

    #gallery-auto,
    .gallery-auto-section,
    #separador-itinerario,
    #separador-regalos,
    #separador-wishes,
    #separador-rotativo,
    .section-separador {
        padding: 0;
        margin: 0;
    }

    .section-separador {
        min-height: clamp(260px, 42vh, 400px);
    }

    .countdown-section {
        min-height: 78vh;
        min-height: 78dvh;
        padding: 16px 14px 42px;
    }

    .countdown-section .section-inner {
        padding-top: clamp(28px, 1vh, 46px);
    }

    .countdown-section .countdown-titulo {
        margin-bottom: 16px;
    }

    .countdown-section .countdown-number {
        min-width: 64px;
        padding: 13px 8px;
        font-size: 1.45rem;
    }

    .countdown-section .btn-calendar {
        padding: 8px 12px;
        font-size: .55rem;
    }

    .names-editorial {
        padding: 40px 18px;
    }

    .name-lines,
    .date-vertical {
        font-size: 42px;
    }

    .bendiciones-section {
        min-height: auto;
        padding: clamp(46px, 7vh, 70px) 14px;
    }

    .gifts-section {
        min-height: auto;
        padding: clamp(46px, 7vh, 70px) 14px;
    }

    .wishes-section {
        min-height: auto;
        padding: clamp(46px, 7vh, 70px) 14px;
    }

    .final-cierre-section {
        min-height: auto;
        padding: clamp(44px, 7vh, 68px) 14px;
    }

    .rsvp-section {
        min-height: auto;
        padding: clamp(46px, 7vh, 70px) 14px;
    }

    .invitado-tarjeta {
        width: min(720px, 100%);
        padding: 30px 16px;
    }

    .bendiciones-tarjeta {
        width: min(760px, 100%);
        padding: 30px 16px;
    }

    .gifts-inner {
        width: min(760px, 100%);
        padding: 30px 16px;
    }

    .section-inner.wishes-inner {
        width: min(760px, 100%);
        padding: 30px 16px;
    }

    .final-cierre-inner {
        width: min(760px, 100%);
        padding: 30px 16px;
    }

    .rsvp-section .rsvp-panel {
        padding: 26px 14px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .invitado-tarjeta::before {
        inset: 8px;
    }

    .bendiciones-tarjeta::before {
        inset: 8px;
    }

    .gifts-inner::before {
        inset: 8px;
    }

    .section-inner.wishes-inner::before {
        inset: 8px;
    }

    .final-cierre-inner::before {
        inset: 8px;
    }

    .agenda-section {
        padding: clamp(44px, 8vh, 68px) 14px;
    }

    .agenda-section .agenda-panel {
        padding: 22px 14px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .agenda-itinerary {
        gap: 14px;
    }

    .itinerary-icon {
        font-size: 1.72rem;
    }

    .historia-fotos {
        grid-template-columns: 1fr;
    }

    .historia-foto img {
        height: 310px;
    }

    .countdown-number {
        min-width: 62px;
        font-size: 1.45rem;
    }

    .countdown-label {
        font-size: .58rem;
    }

    .events-container {
        grid-template-columns: 1fr;
    }

    #events .event-icon {
        width: 150px;
        height: 150px;
    }

    #playlist .playlist-icon {
        width: 92px;
        height: 92px;
    }

    .media-share-icon {
        width: 92px;
        height: 92px;
    }

    .wishes-icon {
        width: 92px;
        height: 92px;
    }

    .rsvp-icon {
        width: 92px;
        height: 92px;
    }

    .dresscode-actions {
        grid-template-columns: 1fr;
    }

    .photo-separator-image,
    .gallery-auto-slider {
        height: 58vh;
    }

    .scroll-hint {
        bottom: 16px;
    }
}

@media (min-width: 900px) {
    .agenda-section {
        background-attachment: fixed;
    }

    .dresscode-fondo,
    .gifts-fondo,
    .wishes-fondo,
    .rsvp-fondo,
    .final-cierre-fondo {
        background-attachment: fixed;
    }
}

@media (max-width: 430px) {
    .name-lines,
    .date-vertical {
        font-size: 45px;
    }

    .music-btn {
        width: 50px;
        height: 50px;
    }

    .itinerary-name {
        font-size: 1.22rem;
    }

    #events .event-icon {
        width: 150px;
        height: 150px;
    }

    #playlist .playlist-icon {
        width: 84px;
        height: 84px;
    }

    .media-share-icon {
        width: 84px;
        height: 84px;
    }

    .wishes-icon {
        width: 84px;
        height: 84px;
    }

    .rsvp-icon {
        width: 84px;
        height: 84px;
    }

    .itinerary-time {
        font-size: 1rem;
    }

    .names-text {
        font-size: 20px;
    }

    .portada-boton,
    .btn-calendar,
    .btn-location,
    .btn-gift,
    .btn-playlist,
    .btn-dresscode,
    .btn-media-share,
    .btn-rsvp,
    .btn-wish-toggle,
    .btn-wish-submit {
        width: auto;
        min-width: 158px;
    }

    .wishes-buttons {
        grid-template-columns: 1fr;
    }

    .event-time,
    .event-lugar,
    .event-direccion,
    .historia-texto,
    .playlist-text,
    .dresscode-text,
    .media-share-text,
    .wishes-text,
    .rsvp-intro,
    .gifts-text,
    .gift-option-text {
        font-size: 1.05rem;
    }

    .hero-invitado-nombres {
        flex-wrap: wrap;
    }

    .countdown {
        gap: 4px;
    }

    .countdown-number {
        min-width: 52px;
        padding: 12px 6px;
        font-size: 1.2rem;
    }

    .countdown-separator {
        transform: translateY(-10px);
        font-size: .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


@media (max-width: 768px) {
    .trayectoria-grid {
        grid-template-columns: 1fr;
    }

    .trayectoria-lightbox-nav {
        width: 38px;
        height: 50px;
    }
}

.invitado-tarjeta {
    background: url("images/FB.png") center/cover no-repeat;
    border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
}

.invitado-tarjeta::before {
    border: 2px solid rgba(200, 216, 232, 0.85);
}

.invitado-tarjeta::after {
    background: transparent;
}

.bendiciones-tarjeta {
    background: url("images/FB.png") center/cover no-repeat;
    border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
}

.bendiciones-tarjeta::before {
    border: 3px solid rgba(200, 216, 232, 0.85);
}

.bendiciones-tarjeta::after {
    background: transparent;
}

#agenda {
    background-image: url("images/FB.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#agenda::before {
    background: transparent;
}

#agenda .agenda-panel {
    background: url("images/FN.png") center/cover no-repeat;
       border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
}

#agenda .itinerary-name,
#agenda .itinerary-time,
#agenda .itinerary-divider,
#agenda .itinerary-title,
#agenda .itinerary-inicial,
#agenda .itinerary-resto,
#agenda .itinerary-icon i,
.trayectoria-title {
    background: linear-gradient(120deg, #F8FCFF 0%, #EAF3FA 24%, #D8E8F4 50%, #EAF3FA 76%, #F8FCFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-separador {
    min-height: clamp(380px, 60vh, 680px);
}

.section-separador .separador-foto-img {
    height: clamp(380px, 60vh, 680px);
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#invitado,
#bendiciones,
#events,
#dresscode,
#trayectoria-laboral,
#playlist,
#wishes-section,
#rsvp-section,
#frase-final,
#footer {
    background-image: url("images/FN.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#invitado .invitado-fondo,
#bendiciones .bendiciones-fondo,
#agenda::before,
#events .events-fondo,
#dresscode .dresscode-fondo,
#trayectoria-laboral .trayectoria-fondo,
#playlist .events-fondo,
#wishes-section .wishes-fondo,
#rsvp-section .rsvp-fondo,
#frase-final .final-cierre-fondo,
#invitado .events-overlay,
#bendiciones .events-overlay,
#events .events-overlay,
#dresscode .events-overlay,
#trayectoria-laboral .events-overlay,
#playlist .events-overlay,
#wishes-section .events-overlay,
#rsvp-section .events-overlay,
#frase-final .events-overlay {
    display: none !important;
    background: transparent !important;
}

#footer {
    background-color: transparent !important;
}

#trayectoria-laboral .trayectoria-title-inicial,
#trayectoria-laboral .trayectoria-title-resto {
    background: linear-gradient(120deg, #F8FCFF 0%, #EAF3FA 24%, #D8E8F4 50%, #EAF3FA 76%, #F8FCFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Replicar estilo Agenda en Events y Wishes */
#events {
    background-image: url("images/FB.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#events .event-card {
    background: url("images/FN.png") center/cover no-repeat;
    border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
}

#events .event-titulo,
#events .event-inicial,
#events .event-resto,
#events .event-time,
#events .event-lugar,
#events .event-direccion, #trayectoria-laboral .trayectoria-title, #wishes-section .wishes-title{
    background: linear-gradient(120deg, #FFFFFF 0%, #F3F8FC 22%, #E3EEF7 50%, #F3F8FC 78%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 8px rgba(210, 230, 246, 0.28);
}

#wishes-section {
    background-image: url("images/FB.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

#wishes-section .wishes-inner {
    background: url("images/FN.png") center/cover no-repeat !important;
    border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
}

#wishes-section .wishes-title,
#wishes-section .wishes-title-inicial,
#wishes-section .wishes-title-resto,
#wishes-section .wishes-text,
#wishes-section .wishes-icon {
    background: linear-gradient(120deg, #FFFFFF 0%, #F3F8FC 22%, #E3EEF7 50%, #F3F8FC 78%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 8px rgba(210, 230, 246, 0.28);
}

/* Replicar estilo Bendiciones en Dresscode, Playlist y RSVP */
#dresscode .dresscode-inner,
#playlist .playlist-media-wrap,
#rsvp-section .rsvp-panel {
    position: relative;
    overflow: hidden;
    background: url("images/FB.png") center/cover no-repeat;
    border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
    padding: 20px;
}

#playlist .playlist-media-wrap::before,
#rsvp-section .rsvp-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
}

#playlist .playlist-media-wrap::after,
#rsvp-section .rsvp-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#playlist .playlist-media-wrap > *,
#rsvp-section .rsvp-panel > * {
    position: relative;
    z-index: 2;
}

#dresscode .dresscode-inner::before,
#playlist .playlist-media-wrap::before,
#rsvp-section .rsvp-panel::before {
    border: 3px solid rgba(200, 216, 232, 0.85);
}

#dresscode .dresscode-inner::after,
#playlist .playlist-media-wrap::after,
#rsvp-section .rsvp-panel::after {
    background: transparent;
}

/* Frase final sin fondo y card a tamaño completo */
#frase-final {
    background-image: url("images/FB.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 0 !important;
}

#frase-final .final-cierre-inner {
    width: 100%;
    max-width: none;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: transparent;
    padding: 0;
}

#frase-final .final-cierre-inner::before,
#frase-final .final-cierre-inner::after,
#frase-final .final-cierre-fondo,
#frase-final .events-overlay {
    display: none !important;
    background: transparent !important;
}

#frase-final .frase-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid transparent;
    border-image: linear-gradient(120deg, #C8D8E8 0%, #8BAFC8 25%, #4A7A9B 50%, #8BAFC8 75%, #C8D8E8 100%) 1;
    background: url("images/FB.png") center/cover no-repeat;
    box-shadow: 0 0 20px rgba(139, 175, 200, 0.45), 0 14px 32px rgba(20, 35, 52, 0.36);
    padding: 2.1em 1.6em;
}

#frase-final .frase-texto {
    text-align: center;
    width: 100%;
    margin: 0;
    font-size: 23px;
}
