:root {
    /* PALETA PRINCIPAL DEL PROYECTO */
    --primary-500: #bea17b;

    /* Variantes para mantener coherencia */
    --primary-400: #cbb594;
    --primary-600: #a98d67;
    --primary-700: #917653;
}
.bg-primary-500 {
    --tw-bg-opacity: 1;

    background-color: color-mix(
        in srgb,
        var(--primary-500, #bea17b)
        calc(var(--tw-bg-opacity, 1) * 100%),
        transparent
    );
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px
}

body {
    margin: 0;
    background: #bea17b;
    color: #6f6250;
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 300
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

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

:root {
    --sand: #bea17b;
    --sand-dark: #aa9670;
    --paper: #f5f0e7;
    --paper2: #eee6d9;
    --ink: #75644e;
    --muted: #9d8b72;
    --gold: #a8874f;
    --line: #d9cbb4;
    --script: "Great Vibes", cursive;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: Montserrat, Arial, sans-serif
}

.site {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s
}

.site.unlocked {
    opacity: 1;
    visibility: visible;
    transition: none
}

.section {
    padding: 100px max(22px, calc((100vw - 1120px)/2));
    position: relative
}

.overline {
    font-size: 9px;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: var(--gold)
}

h2 {
    font: 400 clamp(36px, 5vw, 57px)/1.05 var(--serif);
    margin: 14px 0;
    color: #8b765b
}

h3 {
    font: 400 29px var(--serif);
    margin: 10px 0
}

.script-kicker {
    font: 38px var(--script);
    color: #a78c63;
    margin: 0 0 8px
}

.body-copy {
    font: 20px/1.65 var(--serif);
    max-width: 540px;
    margin: 20px auto;
    color: #92816b
}

.section-heading {
    text-align: center;
    margin: 0 auto 45px;
    max-width: 650px
}

.section-heading>p {
    font: 19px/1.5 var(--serif);
    color: #9a8b77
}

.paper-card {
    background: var(--paper);
    background-image: url("../img/backgrounds/paper.svg");
    background-size: cover;
    border: 1px solid #e8dfd1;
    box-shadow: 0 15px 40px #64553a16
}

.envelope-screen {
    position: fixed;
    z-index: 50;
    inset: 0;
    background: #eee8dd url("../img/backgrounds/envelope-bg.svg") center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s, visibility 1.2s
}

.envelope-screen.opened {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.envelope-paper {
    position: relative;
    width: min(82vw, 760px);
    height: min(56vw, 490px);
    min-height: 260px;
    background: #f8f5ee;
    box-shadow: 0 25px 65px #58482d30;
    overflow: hidden;
    border: 1px solid #e0d8ca
}

.envelope-paper:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/backgrounds/paper.svg") center/cover;
    opacity: .9
}

.envelope-top {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(145deg, #fffdf8, #eae2d5);
    clip-path: polygon(0 0, 100% 0, 50% 68%);
    filter: drop-shadow(0 3px 5px #76664b55)
}

.envelope-flap {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(30deg, #e8dfd1, #faf7f0);
    clip-path: polygon(0 100%, 50% 48%, 100% 100%);
    border-top: 1px solid #d7cbb9
}

.envelope-lace {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 25%;
    height: 23px;
    background: repeating-linear-gradient(90deg, transparent 0 7px, #c5b28f 8px 9px, transparent 10px 15px);
    opacity: .55
}

.wax-seal {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 67%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #f5e8c8;
    background: radial-gradient(circle at 35% 30%, #d5b66f, #94713b 70%, #6f512a);
    box-shadow: 0 3px 7px #58432688;
    border: 4px double #d7bd83
}

.wax-seal span {
    font: 31px var(--serif)
}

.open-envelope {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    background: #fffdf4e8;
    border: 1px solid #c4ad85;
    padding: 9px 18px;
    color: #987b50;
    letter-spacing: 2px;
    font-size: 9px;
    cursor: pointer
}

.envelope-hint {
    margin: 26px 0 0;
    font-size: 9px;
    letter-spacing: 3px;
    color: #a08d70
}

.hero {
    height: 100svh;
    min-height: 640px;
    position: relative;
    overflow: hidden;
    color: white;
    background: #655d4e
}

.hero-photo {
    position: absolute;
    inset: 0;
    background: url("../img/photos/hero.svg") center/cover;
    transform: scale(1.02);
    animation: slowzoom 22s ease-in-out infinite alternate
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1f211c35, #1f211c15 40%, #1f211c78)
}

.hero-top,
.hero-bottom {
    position: absolute;
    left: 5%;
    right: 5%;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 2px
}

.hero-top {
    top: 34px
}

.hero-bottom {
    bottom: 30px
}

.hero-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px
}

.hero-center .script-kicker {
    font-size: clamp(40px, 6vw, 65px);
    color: #fff
}

.hero h1 {
    font: clamp(45px, 10vw, 120px)/.95 var(--script);
    font-weight: 400;
    color: #fff;
    margin: 5px 0 22px;
    text-shadow: 0 2px 20px #3337;
    
}
.hero h1,
.hero h1 span {
    font-family: "Sloop Script Bold Two", cursive;
}

.hero h1 i {
    font: italic 45px var(--serif);
    padding: 0 14px;
    color: #ead9b5
}

.hero-subtitle {
    font: 21px var(--serif);
    letter-spacing: 1px
}

.scroll-cue {
    margin-top: 55px;
    font-size: 8px;
    letter-spacing: 2px;
    border-bottom: 1px solid #fff8;
    padding-bottom: 12px
}

.scroll-cue b {
    padding-left: 15px;
    font-size: 14px
}

.music-control {
    position: fixed;
    z-index: 20;
    top: 18px;
    right: 20px;
    border: 1px solid #fff9;
    border-radius: 30px;
    background: #6f604b88;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(8px)
}

.music-note {
    font-size: 18px
}

.side-dots {
    position: fixed;
    z-index: 19;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 12px
}

.side-dots a {
    width: 7px;
    height: 7px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #76664a66
}

.side-dots a.active {
    background: #fff;
    transform: scale(1.35)
}

.welcome {
    padding-top: 105px;
    padding-bottom: 105px;
    display: grid;
    place-items: center;
    background: var(--sand)
}

.welcome-card {
    max-width: 760px;
    width: 100%;
    text-align: center;
    padding: 65px 55px
}

.welcome-card h2 {
    font-size: 54px
}

.flourish {
    font: 35px var(--serif);
    color: var(--gold);
    margin: 25px
}

.names-script {
    font: 45px var(--script);
    color: #a78c63
}

.names-script i {
    font: italic 24px var(--serif);
    padding: 0 8px
}

.date-line {
    font-size: 9px;
    letter-spacing: 2px;
    margin: 20px 0;
    color: #9a886d
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 28px);
    margin: 30px 0
}

.countdown div {
    display: grid;
    gap: 6px
}

.countdown strong {
    font: 38px var(--serif);
    font-weight: 300;
    color: #927d5c
}

.countdown small {
    font-size: 8px;
    letter-spacing: 1.5px
}

.countdown>b {
    font: 20px var(--serif);
    color: #b29b74
}

.outline-link {
    display: inline-block;
    border: 1px solid #b49b70;
    padding: 13px 22px;
    background: transparent;
    color: #987c50;
    font-size: 8px;
    letter-spacing: 2px;
    cursor: pointer
}

.outline-link:hover {
    background: #b49b70;
    color: white
}

.parents {
    background: #bca781
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 850px;
    margin: 0 auto 45px
}

.person-card {
    background: var(--paper);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 240px
}

.person-photo {
    background-size: cover;
    background-position: center;
    min-height: 230px
}

.photo-parent1 {
    background-image: url("../img/photos/parent1.svg")
}

.photo-parent2 {
    background-image: url("../img/photos/parent2.svg")
}

.person-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center
}

.person-info small,
.carousel-slide small {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #a38c66
}

.person-info h3 {
    font-size: 24px
}

.godparents {
    max-width: 760px;
    margin: auto;
    padding: 40px 30px;
    text-align: center
}

.godparents h2 {
    font-size: 43px
}

.carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin: 25px auto 0
}

.carousel-window {
    overflow: hidden;
    flex: 1
}

.carousel-track {
    display: flex;
    transition: transform .45s ease
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 15px 10px
}

.carousel-slide h3 {
    font-size: 27px
}

.line-icon {
    display: block;
    font: 38px var(--serif);
    color: #ad9369;
    margin-bottom: 12px
}

.carousel-arrow {
    border: 0;
    background: transparent;
    color: #a58b63;
    font: 32px var(--serif);
    cursor: pointer
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px
}

.carousel-dots button {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 50%;
    background: #d5c7ad;
    padding: 0
}

.carousel-dots button.active {
    background: #9e8152
}

.location {
    background: var(--paper);
    background-image: url("../img/backgrounds/paper.svg");
    background-size: cover
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 950px;
    margin: auto
}

.location-card {
    background: #fffdf8;
    box-shadow: 0 10px 30px #62553d14
}

.location-card>img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover
}

.location-copy {
    text-align: center;
    padding: 32px 25px 38px
}

.location-copy h3 {
    font-size: 34px
}

.location-copy .time {
    font: 19px var(--serif);
    color: #a38b64;
    letter-spacing: 2px
}

.location-copy p:not(.time) {
    font: 15px/1.6 var(--serif);
    color: #9b8a74
}

.travel-note {
    max-width: 620px;
    margin: 40px auto 0;
    padding: 30px;
    text-align: center
}

.travel-note h3 {
    font-size: 30px
}

.travel-note p {
    font: 17px var(--serif)
}

.text-link {
    border: 0;
    border-bottom: 1px solid #b49b70;
    background: none;
    color: #987c50;
    font-size: 8px;
    letter-spacing: 2px;
    padding: 10px;
    cursor: pointer
}

.timeline {
    background: #bca781
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: auto;
    text-align: center
}

.timeline-grid article {
    background: #f5f0e7a8;
    padding: 30px 15px
}

.timeline-grid span {
    font-size: 9px;
    letter-spacing: 2px;
    color: #9b8056
}

.timeline-grid b {
    display: block;
    font: 30px var(--serif);
    color: #bba27a;
    margin: 20px
}

.timeline-grid h3 {
    font-size: 27px
}

.timeline-grid p {
    font: 15px/1.5 var(--serif);
    color: #96856e
}

.story {
    padding: 0;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: #eee7da;
    min-height: 570px
}

.story-photo {
    min-height: 570px
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.story-copy {
    padding: 80px clamp(30px, 7vw, 100px);
    align-self: center
}

.story-copy h2 {
    font-size: 60px
}

.story-copy>p:not(.script-kicker) {
    font: 18px/1.8 var(--serif);
    color: #91816c
}

.signature {
    font: 40px var(--script);
    color: #a68a5d;
    margin-top: 28px
}

.gallery-section,
.contacts-section,
.timeline {
    background: var(--primary-500);
}

.mosaic {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 10px
}

.mosaic-item {
    border: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: filter .2s, transform .2s
}

.mosaic-item:hover {
    filter: brightness(.85);
    transform: scale(.99)
}

.m1 {
    grid-column: span 2;
    grid-row: span 2;
    background-image: url("../img/photos/gallery1.svg")
}

.m2 {
    background-image: url("../img/photos/gallery2.svg")
}

.m3 {
    background-image: url("../img/photos/gallery3.svg")
}

.m4 {
    background-image: url("../img/photos/gallery4.svg")
}

.m5 {
    background-image: url("../img/photos/gallery5.svg")
}

.m6 {
    background-image: url("../img/photos/gallery6.svg")
}

.gifts {
    background: #eee7da
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: auto
}

.gift-card {
    padding: 38px 25px;
    text-align: center;
    border: 1px solid #d9cbb4;
    background: #f8f4ec
}

.gift-card h3 {
    font-size: 30px
}

.gift-card p {
    font: 16px/1.65 var(--serif);
    color: #97866e
}

.dress {
    background: var(--sand);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center
}

.dress-panel {
    text-align: center;
    padding: 55px 35px
}

.dress-panel h2 {
    font-size: 55px
}

.dress-symbol {
    font: 55px var(--serif);
    color: #ad9369
}

.dress-panel p {
    font: 18px/1.6 var(--serif);
    max-width: 360px;
    margin: 10px auto 25px
}

.palette {
    display: flex;
    justify-content: center;
    margin: 20px
}

.palette i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: -4px;
    border: 2px solid #f5f0e7
}

.palette i:nth-child(1) {
    background: #e7ddce
}

.palette i:nth-child(2) {
    background: #bea17b
}

.palette i:nth-child(3) {
    background: #9e8d73
}

.palette i:nth-child(4) {
    background: #777461
}

.palette i:nth-child(5) {
    background: #ded1bd
}

.dress-panel small {
    font-size: 9px;
    color: #a38b69
}

.tips {
    text-align: center
}

.tips-grid {
    display: grid;
    gap: 12px;
    text-align: left;
    margin-top: 30px
}

.tips-grid article {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid #ffffff80;
    padding: 10px
}

.tips-grid b {
    font: 26px var(--serif);
    color: #fff
}

.tips-grid p {
    font: 17px var(--serif);
    margin: 0
}

.wishes {
    background: #85765d;
    color: #fff
}

.wishes-inner {
    max-width: 600px;
    margin: auto;
    text-align: center
}

.wishes h2 {
    color: #fff
}

.wishes .script-kicker {
    color: #e7d7b7
}

.wishes-inner>p {
    font: 18px var(--serif);
    color: #eee4d2
}

.rsvp-form,
.wish-form {
    max-width: 440px;
    margin: 35px auto 0;
    display: grid;
    gap: 17px;
    text-align: left
}

.rsvp-form label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #f1e7d5
}

.rsvp-form input,
.rsvp-form select,
.wish-form input,
.wish-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d7c9ad;
    background: transparent;
    color: inherit;
    padding: 13px 2px;
    outline: none;
    border-radius: 0
}

.rsvp-form select option {
    color: #5d5140
}

.rsvp-form input::placeholder,
.wish-form input::placeholder,
.wish-form textarea::placeholder {
    color: #e0d4bf
}

.gold-button {
    border: 1px solid #e3d0aa;
    background: #e8ddc9;
    color: #78664a;
    padding: 15px;
    letter-spacing: 2px;
    font-size: 8px;
    cursor: pointer;
    margin-top: 8px
}

.messages,
.songs {
    background: var(--paper);
    text-align: center
}

.wish-form {
    color: #75644e
}

.wish-form input::placeholder,
.wish-form textarea::placeholder {
    color: #9f917d
}

.wish-form textarea {
    min-height: 90px;
    resize: vertical
}

.wish-list {
    max-width: 500px;
    margin: 25px auto;
    text-align: left
}

.wish-entry {
    padding: 12px;
    border-bottom: 1px solid #ddd1bd
}

.wish-entry strong {
    font: 22px var(--serif)
}

.wish-entry p {
    font: 15px var(--serif);
    margin: 5px 0;
    color: #97866e
}

/* === PIE DE PÁGINA === */
.footer {
    background-color: #bea17b;
    color: #ffffff;
    text-align: center;
    padding: 5px 8px;
    font-family: 'BagekiLuxury', serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer .script-kicker {
    font-size: 40px;
    color: #e2d2b2
}

.footer-names {
    font: clamp(50px, 8vw, 82px) var(--script)
}

.footer>p:not(.script-kicker) {
    font-size: 9px;
    letter-spacing: 2px
}

.footer-heart {
    display: block;
    font: 32px var(--serif);
    margin: 22px
}

.footer small {
    font-size: 8px;
    letter-spacing: 2px;
    color: #d4c6ac
}

.lightbox,
.modal {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: none;
    place-items: center;
    background: #1e1b17eF;
    padding: 25px
}

.lightbox.open,
.modal.open {
    display: grid
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain
}

.lightbox button,
.modal-close {
    position: absolute;
    right: 25px;
    top: 15px;
    border: 0;
    background: none;
    color: #fff;
    font: 42px var(--serif);
    cursor: pointer
}

.modal-card {
    position: relative;
    background: var(--paper);
    max-width: 440px;
    width: 100%;
    padding: 55px 35px;
    text-align: center
}

.modal-card .modal-close {
    color: #806e52
}

.modal-card p {
    font: 18px/1.7 var(--serif)
}

.toast {
    position: fixed;
    z-index: 80;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    background: #4c4437;
    color: white;
    padding: 12px 18px;
    font-size: 12px;
    transition: .3s;
    pointer-events: none
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

@keyframes slowzoom {
    to {
        transform: scale(1.12)
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* ETAPA 1 — SOBRE DE DOS PIEZAS, SELLO Y MENÚ */
.envelope-screen {
    background: #e9e2d6 url("../img/backgrounds/envelope-bg.svg") center/cover;
    overflow: hidden
}

.envelope-scene {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    display: grid;
    place-items: center;
    isolation: isolate
}

.envelope-pieces {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none
}

.envelope-piece {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: drop-shadow(0 0 20px #0008);
    will-change: transform, opacity
}

.envelope-down {
    left: 0;
    z-index: 2
}

.envelope-up {
    right: 0;
    z-index: 3
}

.envelope-seal-wrap {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px
}

.open-envelope {
    width: 140px;
    height: 140px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 5px 10px #0005);
    transition: transform .35s ease;
}

.open-envelope:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.open-envelope img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.seal-hint {
    font: 500 10px var(--sans);
    letter-spacing: 2px;
    color: #9a7b3c;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0002;
    transform: translateY(-105px);
}

.envelope-hint {
    position: absolute;
    z-index: 9;
    bottom: 7%;
    left: 0;
    right: 0;
    text-align: center;
    letter-spacing: 3px;
    font-size: 9px;
    color: #9b886c
}

.envelope-screen.opening .envelope-up {
    animation: envelopeUp 1.35s cubic-bezier(.65, 0, .35, 1) forwards
}

/* Al abrirse, las piezas del sobre revelan directamente la portada. */
.envelope-screen.opening {
    background: transparent;
}

.envelope-screen.opening .envelope-down {
    animation: envelopeDown 1.35s cubic-bezier(.65, 0, .35, 1) forwards
}

.envelope-screen.opening .envelope-seal-wrap {
    animation: sealFade .45s ease forwards
}

.envelope-screen.opening .envelope-hint {
    animation: sealFade .4s ease forwards
}

.envelope-screen.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

@keyframes envelopeUp {
    0% {
        transform: translateY(0);
        opacity: 1
    }

    100% {
        transform: translateY(-110%);
        opacity: .15
    }
}

@keyframes envelopeDown {
    0% {
        transform: translateY(0);
        opacity: 1
    }

    100% {
        transform: translateY(110%);
        opacity: .15
    }
}

@keyframes sealFade {
    to {
        opacity: 0;
        transform: translateY(-12px) scale(.85)
    }
}

.music-control {
    top: auto;
    right: 16px;
    bottom: 18px;
    z-index: 30
}

.wedding-menu {
    position: fixed;
    z-index: 35;
    top: 16px;
    right: 16px
}

.menu-toggler {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.menu-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #bea17bB8;
    color: #756044;
    box-shadow: 0 3px 12px #0002;
    cursor: pointer;
    position: relative;
    z-index: 3;
    font-size: 25px;
    backdrop-filter: blur(6px);
    overflow: hidden
}

.menu-icon {
    position: absolute;
    width: 19px;
    height: 19px;
    transition: opacity .28s ease, transform .38s cubic-bezier(.2, .9, .25, 1)
}

.menu-home {
    fill: currentColor;
    stroke: none;
    opacity: 1;
    transform: scale(1) rotate(0)
}

.menu-close {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    opacity: 0;
    transform: scale(.45) rotate(-90deg)
}

.menu-toggler:checked+.menu-button .menu-home {
    opacity: 0;
    transform: scale(.45) rotate(90deg)
}

.menu-toggler:checked+.menu-button .menu-close {
    opacity: 1;
    transform: scale(1) rotate(0)
}

.menu-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(220px, 44vw, 390px);
    padding: 94px 34px 34px;
    background: #bea17bf7;
    box-shadow: -18px 0 45px #211b123d;
    border-left: 1px solid #ffffff38;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%) scale(.96);
    transform-origin: right center;
    transition: transform .62s cubic-bezier(.16, 1, .3, 1), opacity .32s ease, visibility 0s linear .62s
}

.menu-toggler:checked~.menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    transition: transform .72s cubic-bezier(.16, 1, .3, 1), opacity .38s ease, visibility 0s
}

.menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px
}

.menu-panel li {
    border-bottom: 1px solid #ffffff30;
    opacity: 0;
    transform: translateX(32px);
    transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .25, 1)
}

.menu-panel li:last-child {
    border: 0
}

.menu-panel a {
    display: block;
    padding: 14px 6px;
    color: #f5eddf;
    font: 500 11px var(--serif);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: color .2s ease, padding-left .25s ease, letter-spacing .25s ease
}

.menu-panel a:hover {
    color: #e4c991;
    padding-left: 13px;
    letter-spacing: 1.8px
}

.menu-toggler:checked~.menu-panel li {
    opacity: 1;
    transform: translateX(0)
}

.menu-toggler:checked~.menu-panel li:nth-child(1) { transition-delay: .12s }
.menu-toggler:checked~.menu-panel li:nth-child(2) { transition-delay: .17s }
.menu-toggler:checked~.menu-panel li:nth-child(3) { transition-delay: .22s }
.menu-toggler:checked~.menu-panel li:nth-child(4) { transition-delay: .27s }
.menu-toggler:checked~.menu-panel li:nth-child(5) { transition-delay: .32s }
.menu-toggler:checked~.menu-panel li:nth-child(6) { transition-delay: .37s }
.menu-toggler:checked~.menu-panel li:nth-child(7) { transition-delay: .42s }
.menu-toggler:checked~.menu-panel li:nth-child(8) { transition-delay: .47s }
.menu-toggler:checked~.menu-panel li:nth-child(9) { transition-delay: .52s }
.menu-toggler:checked~.menu-panel li:nth-child(10) { transition-delay: .57s }

@media(prefers-reduced-motion:reduce) {

    .envelope-screen.opening .envelope-up,
    .envelope-screen.opening .envelope-down {
        animation-duration: .01ms
    }
}

/* Ajustes Etapa 1: sello en la punta de la solapa y bloqueo del scroll del sobre */
html.envelope-lock,
body.envelope-lock {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-width: none
}

html.envelope-lock::-webkit-scrollbar,
body.envelope-lock::-webkit-scrollbar {
    display: none
}

body.envelope-lock {
    position: fixed;
    inset: 0;
    width: 100%;
    touch-action: none
}

.envelope-screen {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: contain
}

.envelope-scene {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden
}

.envelope-seal-wrap {
    top: 64%
}

/* PORTADA MINIMALISTA — fotografía, nombres y controles */
.hero {
    height: 100svh;
    min-height: 100svh;
}

.hero-photo {
    background-position: center center;
}

.arrival-message {
    padding: clamp(72px, 12vw, 130px) 24px;
    background: var(--sand);
    text-align: center;
}

/* Capas reutilizables: la segunda sección cubre a la primera al hacer scroll. */
.stacking-group {
    position: relative;
}

.stacking-group>.stacking-base {
    position: sticky;
    top: 0;
    z-index: 1;
}

.stacking-group>.stacking-layer {
    position: relative;
    z-index: 2;
    box-shadow: 0 -14px 30px #4f43221f;
}

.arrival-message p {
    max-width: 740px;
    margin: 0 auto;
    color: #fffdf8;
    font: 400 clamp(36px, 5.4vw, 68px)/1.12 var(--serif);
    opacity: 1;
    transform: none;
}

.arrival-message.is-visible p {
    animation: arrivalMessageIn 1.8s cubic-bezier(.22, .8, .3, 1) forwards;
}

.countdown-section {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: end center;
    padding: 80px 22px 13vh;
    overflow: hidden;
    color: #fff;
    background: #655d4e url("../img/photos/hero.jpg") center/cover;
}

.countdown-stacking .countdown-backdrop {
    height: 100svh;
    margin-bottom: -100svh;
    background: #655d4e url("../img/photos/contador.jpg") center/cover;
}

.countdown-stacking .countdown-section {
    z-index: 2;
    background: transparent;
}

.countdown-stacking>.stacking-layer {
    z-index: 3;
}

.countdown-section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #17171322 28%, #17171372 100%);
}

.countdown-section-content {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    text-align: center;
}

.countdown-title,
.countdown-date {
    margin: 0;
    opacity: 0;
    transform: translateY(78px);
}

.countdown-title {
    font: 400 clamp(48px, 7vw, 90px)/.9 var(--script);
    text-shadow: 0 2px 18px #18140c77;
}

.countdown-date {
    margin-top: 14px;
    font: 400 clamp(18px, 2.8vw, 31px)/1.1 var(--serif);
    letter-spacing: .5px;
}

.countdown-display {
    gap: clamp(7px, 1.7vw, 15px);
    margin: 28px 0 0;
}

.countdown-display .countdown-unit {
    min-width: 0;
    flex: 1;
    padding: 13px 8px 11px;
    background: #bea17be8;
    color: #fffdf8;
    opacity: 0;
    transform: translateY(78px);
}

.countdown-display strong {
    color: inherit;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
}

.countdown-display small {
    color: inherit;
    font: 400 clamp(9px, 1.25vw, 13px)/1.1 var(--serif);
    letter-spacing: .5px;
}

.countdown-section.is-visible .countdown-title,
.countdown-section.is-visible .countdown-date,
.countdown-section.is-visible .countdown-unit {
    animation: countdownReveal 1.8s cubic-bezier(.22, .8, .3, 1) forwards;
}

.countdown-section.is-visible .countdown-date { animation-delay: .18s }
.countdown-section.is-visible .countdown-unit:nth-child(1) { animation-delay: .34s }
.countdown-section.is-visible .countdown-unit:nth-child(2) { animation-delay: .46s }
.countdown-section.is-visible .countdown-unit:nth-child(3) { animation-delay: .58s }
.countdown-section.is-visible .countdown-unit:nth-child(4) { animation-delay: .70s }

@keyframes countdownReveal {
    from {
        opacity: 0;
        transform: translateY(78px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Revelado reutilizable para los textos de las secciones al hacer scroll. */
.scroll-text-reveal {
    opacity: 0;
    transform: translateY(34px);
}

.overline.scroll-text-reveal,
small.scroll-text-reveal,
.script-kicker.scroll-text-reveal {
    display: inline-block;
}

.scroll-text-reveal.is-visible {
    animation: textRevealUp 1.15s cubic-bezier(.22, .8, .3, 1) forwards;
}

@keyframes textRevealUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrivalMessageIn {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .arrival-message.is-visible p,
    .countdown-section.is-visible .countdown-title,
    .countdown-section.is-visible .countdown-date,
    .countdown-section.is-visible .countdown-unit,
    .scroll-text-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

.hero-overlay {
    background: linear-gradient(180deg, #17171330 0%, #17171308 48%, #17171328 100%);
}

.hero-center {
    justify-content: flex-start;
    padding: clamp(115px, 17vh, 175px) 18px 0;
}

.hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: clamp(20px, 3vw, px);
    line-height: 1.1;
    text-align: center;
    font-family: "sloop-script-one", cursive;
    opacity: 0;
    transform: scale(.2);
}

.hero h1 i {
    font-size: .55em;
    padding: 0 2px;
}

/* Los nombres aparecen al abrir el sobre. */
.hero h1.names-zoom-in {
    opacity: 1;
    transform: scale(1);
    animation: namesZoomIn 7.4s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes namesZoomIn {
    from {
        opacity: 0;
        transform: scale(.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.music-control {
    top: auto;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #6f604b99;
    backdrop-filter: blur(8px);
}

.music-control .music-note {
    font-size: 20px;
    line-height: 1;
}

.music-control #musicText {
    display: none;
}

.wedding-menu {
    top: 16px;
    right: 16px;
}

.menu-button {
    width: 42px;
    height: 42px;
    background: #6f604b99;
    color: #ffffff79;
    /* border: 1px solid #ffffff80; */
    font-size: 24px;
}

@media (max-width: 760px) {
    .hero {
        min-height: 100svh;
    }

    .hero-center {
        padding-top: 17vh;
    }

    .arrival-message {
        padding: 68px 28px;
    }

    .arrival-message p {
        font-size: clamp(32px, 8vw, 44px);
    }

    .hero h1 {
        gap: 5px;
        font-size: clamp(37px, 10vw, 54px);
    }

    .hero h1 i {
        font-size: .55em;
        padding: 0;
    }

    .wedding-menu {
        top: 14px;
        right: 14px;
    }

    .music-control {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: clamp(34px, 9.5vw, 42px);
    }
}

@font-face {
    font-family: "Sloop Script Bold Two";
    src: url("../fonts/Sloop Script Bold Two Regular/Sloop Script Bold Two Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "The Seasons";
    src: url("../fonts/The Seasons Font/Fontspring-DEMO-theseasons-lt.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cinzel";
    src: url("../fonts/cinzel/Cinzel-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* SECCIÓN DE PADRES — tarjeta con fondo texturizado */
.blessing-section {
    position: relative;
    z-index: 2;
    padding: 0 20px clamp(64px, 10vw, 110px);
    background: var(--sand);
}

.blessing-card {
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(48px, 9vw, 72px) clamp(24px, 6vw, 48px);
    text-align: center;
    color: var(--ink);
    background: #f3ebe4 url("../img/backgrounds/fondo-modelo-v.jpg") center/cover no-repeat;
    box-shadow: 0 10px 30px #4f432233;
}

.blessing-title {
    margin: 0 0 clamp(36px, 7vw, 54px);
    font: 300 clamp(24px, 5.6vw, 32px)/1.25 "The Seasons", var(--serif);
    letter-spacing: .02em;
    text-transform: uppercase;
}

.blessing-group + .blessing-group {
    margin-top: clamp(30px, 6vw, 44px);
}

.blessing-role {
    margin: 0 0 8px;
    font: 400 clamp(26px, 6vw, 34px)/1.1 "Sloop Script Bold Two", cursive;
}

.blessing-name {
    margin: 0;
    font: 300 clamp(15px, 6vw, 20px)/1.15 "The Seasons", var(--serif);
}

/* SECCIÓN DE LA FECHA: el texto sube con el scroll y se detiene al aparecer "Comparte con nosotros este día especial", que pasa por encima */
.countdown-stacking .countdown-section {
    position: sticky;
    top: 0;
    /* tiempo extra con el contador a la vista antes de que llegue la frase 2 */
    margin-bottom: 50svh;
}

/* Velo oscuro sobre TODA la foto (va en la capa fija, no se mueve con el scroll) */
.countdown-section-overlay {
    display: none;
}

.countdown-stacking .countdown-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #17171322 28%, #17171372 100%);
}

/* Entrada y salida con transición suave */
.countdown-section .countdown-title,
.countdown-section .countdown-date,
.countdown-section .countdown-unit {
    opacity: 0;
    transform: translateY(60px);
    animation: none;
    transition: opacity .7s ease, transform .9s cubic-bezier(.22, .8, .3, 1);
}

.countdown-section.is-visible .countdown-title,
.countdown-section.is-visible .countdown-date,
.countdown-section.is-visible .countdown-unit {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

.countdown-section.is-visible .countdown-title { transition-delay: 0s }
.countdown-section.is-visible .countdown-date { transition-delay: .15s }
.countdown-section.is-visible .countdown-unit:nth-child(1) { transition-delay: .3s }
.countdown-section.is-visible .countdown-unit:nth-child(2) { transition-delay: .4s }
.countdown-section.is-visible .countdown-unit:nth-child(3) { transition-delay: .5s }
.countdown-section.is-visible .countdown-unit:nth-child(4) { transition-delay: .6s }

/* FOTO DE LOS PADRES */
.parents-photo {
    position: relative;
    z-index: 2;
    height: 100svh;
    background: #4a4036 url("../img/photos/padres.jpg") center/cover no-repeat;
}

.parents-photo.padrinos-photo {
    background-image: url("../img/photos/padrinos.jpg");
}

/* La tarjeta sobresale sobre la foto */
.blessing-section {
    display: flow-root;
}

.blessing-card {
    position: relative;
    margin-top: calc(-1 * clamp(36px, 8vw, 64px));
}

/* Transiciones de entrada y salida */
.blessing-card {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity .9s ease, transform 1s cubic-bezier(.22, .8, .3, 1);
}

.blessing-title,
.blessing-role,
.blessing-name {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .9s cubic-bezier(.22, .8, .3, 1);
}

.blessing-section.is-visible .blessing-card,
.blessing-section.is-visible .blessing-title,
.blessing-section.is-visible .blessing-role,
.blessing-section.is-visible .blessing-name {
    opacity: 1;
    transform: translateY(0);
}

.blessing-section.is-visible .blessing-title { transition-delay: .3s }
.blessing-section.is-visible .blessing-group:nth-of-type(1) .blessing-role { transition-delay: .5s }
.blessing-section.is-visible .blessing-group:nth-of-type(1) .blessing-name:nth-of-type(1) { transition-delay: .62s }
.blessing-section.is-visible .blessing-group:nth-of-type(1) .blessing-name:nth-of-type(2) { transition-delay: .74s }
.blessing-section.is-visible .blessing-group:nth-of-type(2) .blessing-role { transition-delay: .9s }
.blessing-section.is-visible .blessing-group:nth-of-type(2) .blessing-name:nth-of-type(1) { transition-delay: 1.02s }
.blessing-section.is-visible .blessing-group:nth-of-type(2) .blessing-name:nth-of-type(2) { transition-delay: 1.14s }

@media (prefers-reduced-motion: reduce) {
    .blessing-card,
    .blessing-title,
    .blessing-role,
    .blessing-name {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* =========================================
   FOTO DE LOS PADRINOS
========================================= */

.parents-photo.padrinos-photo {
    background-image: url("../img/photos/padrinos.jpg");
}

/* =========================================
   CARRUSEL DE PADRINOS
========================================= */

.padrinos-carousel-section {
    padding-top: 0;
}

.padrinos-carousel-card {
    max-width: 520px;
    padding: clamp(30px, 6vw, 48px)
             clamp(18px, 5vw, 36px) 34px;
}

.padrinos-heading {
    margin: 0 0 8px;
    color: #8b765b;
    font: 400 clamp(37px, 8vw, 49px)/1.1
          "Sloop Script Bold Two", cursive;
    text-transform: none;
    text-align: center;
}

.padrinos-carousel {
    max-width: 100%;
    gap: 4px;
    margin: 0 auto;
}

.padrinos-carousel .carousel-arrow {
    flex: 0 0 26px;
    padding: 0;
    font-size: 38px;
    line-height: 1;
}

.padrinos-carousel .carousel-slide {
    padding: 8px 4px 4px;
}

.padrinos-symbol {
    display: block;
    margin: 0 auto 8px;
    color: #a58b63;
    font: 400 clamp(66px, 13vw, 92px)/1 var(--serif);
    text-align: center;
}

.padrinos-role {
    margin: 0 0 16px;
    color: #a58b63;
    font: 400 clamp(25px, 6vw, 34px)/1.1 var(--script);
    text-align: center;
}

.padrino-name {
    margin: 0 0 8px;
    color: #8b765b;
    font: 400 clamp(15px, 5.4vw, 12px)/1.2 var(--serif);
    text-align: center;
}

.padrinos-dots {
    margin-top: 12px;
}

.padrinos-dots button {
    width: 9px;
    height: 9px;
    background: #dfd2bf;
}

.padrinos-dots button.active {
    background: #bda47c;
    transform: scale(1.15);
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .padrinos-carousel-card {
        padding: 28px 14px 30px;
    }

    .padrinos-carousel .carousel-arrow {
        flex-basis: 22px;
        font-size: 34px;
    }

    .padrinos-symbol {
        margin-bottom: 6px;
    }

    .padrinos-role {
        margin-bottom: 14px;
    }
}



/* =====================================
   INTERACCIÓN DEL CARRUSEL
===================================== */

.carousel-window {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-window:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* Botones de navegación */
.carousel-arrow {
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease;
}

.carousel-arrow:hover {
    transform: scale(1.2);
    opacity: .7;
}

/* Indicadores */
.carousel-dots button {
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

/* Móvil */
@media (max-width: 760px) {

    .carousel-window {
        touch-action: pan-y;
    }

    .carousel-track {
        transition: transform .4s ease;
    }

    .carousel-arrow {
        font-size: 34px;
    }
}


/* FRASE 3 */
.arrival-message-third {
    position: relative;
    z-index: 2;
    padding: clamp(64px, 10vw, 100px) 24px;
    background: var(--sand);
}

.arrival-message-third p {
    max-width: 760px;
    font: 400 clamp(34px, 6vw, 62px)/1.12 var(--serif);
}

/* FONDO DEL ITINERARIO */
.itinerary-photo-section {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(34px, 7vw, 64px) 18px;
    min-height: 100svh;
    background: #8b806e url("../img/photos/itinerario.jpg")
        center center / cover no-repeat;
}

/* TARJETA TRANSPARENTE */
.itinerary-card {
    position: relative;
    width: min(100%, 460px);
    padding: clamp(28px, 5vw, 40px) clamp(20px, 5vw, 34px) 0;
    overflow: hidden;
    color: #fffdf8;
    text-align: center;
    background: rgba(105, 91, 72, .72);
    box-shadow: 0 12px 34px rgba(35, 29, 20, .16);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.itinerary-title {
    margin: 0 0 22px;
    color: #fffdf8;
    font: 400 clamp(42px, 8vw, 56px)/1.1 var(--script);
}

/* LÍNEA CENTRAL */
.itinerary-list {
    position: relative;
    display: grid;
    gap: 0;
}

.itinerary-list::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 48px;
    bottom: 48px;
    left: 50%;
    width: 1.5px;
    background: rgba(255, 253, 248, .9);
    transform: translateX(-50%);
}

/* DISTRIBUCIÓN DE CADA EVENTO */
.itinerary-item {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    align-items: center;
    min-height: 142px;
    column-gap: 8px;
}

.itinerary-copy {
    min-width: 0;
    text-align: left;
}

.itinerary-left .itinerary-copy {
    grid-column: 3;
    grid-row: 1;
}

.itinerary-right .itinerary-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.itinerary-item h3 {
    margin: 0 0 5px;
    color: #fffdf8;
    font: 400 clamp(23px, 5vw, 29px)/1.1 var(--script);
}

.itinerary-item p {
    margin: 0;
    color: #fffdf8;
    font: 400 clamp(18px, 4vw, 23px)/1.2 var(--serif);
}

/* ICONOS SVG */
.itinerary-icon {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 86px;
    height: 100px;
    padding: 8px;
    background: rgba(116, 101, 81, .72);
}

.itinerary-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: #fffdf8;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* FIRMA INFERIOR */
.itinerary-signature {
    margin: 18px -34px 0;
    padding: 17px 12px 19px;
    color: #fffdf8;
    background: var(--sand);
    font: 400 27px/1.1 var(--serif);
    letter-spacing: .08em;
}

/* ANIMACIÓN */
.itinerary-card {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .85s ease,
                transform 1s cubic-bezier(.22, .8, .3, 1);
}

.itinerary-photo-section.is-visible .itinerary-card {
    opacity: 1;
    transform: translateY(0);
}

/* MÓVILES */
@media (max-width: 480px) {
    .itinerary-photo-section {
        min-height: auto;
        padding: 28px 12px;
    }

    .itinerary-card {
        width: 100%;
        padding: 25px 16px 0;
    }

    .itinerary-title {
        margin-bottom: 14px;
    }

    .itinerary-item {
        grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
        min-height: 126px;
        column-gap: 5px;
    }

    .itinerary-icon {
        width: 70px;
        height: 86px;
        padding: 6px;
    }

    .itinerary-item h3 {
        font-size: clamp(21px, 5.2vw, 25px);
    }

    .itinerary-item p {
        font-size: clamp(17px, 4.2vw, 20px);
    }

    .itinerary-signature {
        margin-right: -16px;
        margin-left: -16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itinerary-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}






/* =========================================
   LUGAR DE CEREMONIA
   MISMO DISEÑO QUE BENDICIÓN DE PADRES
========================================= */


.venue-blessing-section {
    display: flex;
    justify-content: center;
    align-items: center;

    /* Menos espacio arriba y abajo */
    padding: 28px 20px;

    /* Ya no ocupa toda la pantalla */
    min-height: auto;

    background: var(--sand);
}


/* TARJETA */

.venue-blessing-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;

    /* Reducimos espacio superior e inferior */
    padding: 28px 32px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* TÍTULO RECEPCIÓN */
.venue-script-title {
    margin: 0 0 12px;
    font-size: clamp(38px, 8vw, 48px);
}

/* NOMBRE DEL LOCAL */
.venue-title {
    margin: 0 0 22px;
    font: 300 clamp(24px, 5vw, 30px)/1.2
          "The Seasons", var(--serif);
    letter-spacing: 2px;
}

/* FOTO DEL LOCAL */
.venue-photo {
    display: block;
    width: 100%;
    height: clamp(230px, 65vw, 330px);

    object-fit: cover;
    object-position: center;

    margin: 0 0 20px;
}

/* BOTÓN DE UBICACIÓN */
.venue-map-button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 48px;

    padding: 10px 15px;

    border: 1px solid #b49b70;
    background: #ffffff65;

    color: #927b5b;
    text-decoration: none;

    font: 400 20px "The Seasons", var(--serif);

    transition: background .3s ease,
                transform .3s ease;
}

.venue-map-button:hover {
    background: #ffffffc9;
    transform: translateY(-2px);
}


@media (max-width: 480px) {

    .venue-blessing-section {
        padding: 22px 18px;
        min-height: auto;
    }

    .venue-blessing-card {
        max-width: 100%;
        padding: 24px 20px 20px;
    }

    .venue-photo {
        height: 280px;
    }
}


/* =========================================
   CÓDIGO DE VESTIMENTA
========================================= */

.dress-code-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
    background: var(--sand);
}

/* TARJETA FLORAL */
.dress-code-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 26px 24px;

    text-align: center;
    color: var(--ink);

    background:
        #f3ebe4
        url("../img/backgrounds/fondo-modelo-v.jpg")
        center / cover no-repeat;

    box-shadow: 0 10px 30px #4f432233;

    /* Estado inicial de la animación */
    opacity: 0;
    clip-path: inset(0 0 100% 0);

    transition:
        clip-path 1.1s cubic-bezier(.22,.75,.25,1),
        opacity .7s ease;
}

/* APERTURA VERTICAL */
.dress-code-section.is-visible .dress-code-card {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* TÍTULO */
.dress-code-header h2 {
    margin: 0;
    color: #8b765b;
    font: 400 clamp(37px, 8vw, 49px)/1.1
          "Sloop Script Bold Two", cursive;

    transform: translateY(-20px);
    opacity: 0;

    transition: transform .7s ease .35s,
                opacity .7s ease .35s;
}

.dress-code-header p {
    margin: 3px 0 0;
    color: #8b765b;
    font: 400 clamp(21px, 5vw, 27px)/1.2
          "The Seasons", var(--serif);

    letter-spacing: .04em;

    transform: translateY(-15px);
    opacity: 0;

    transition: transform .7s ease .5s,
                opacity .7s ease .5s;
}

.dress-code-formal {
    margin: 24px 0 20px;
    color: #8b765b;

    font: 400 clamp(36px, 7vw, 46px)/1.1
          "Sloop Script Bold Two", cursive;

    opacity: 0;
    transform: scale(.85);

    transition: opacity .7s ease .65s,
                transform .7s ease .65s;
}

/* ICONOS Y DISTRIBUCIÓN */
.dress-code-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    align-items: start;
    margin-top: 10px;
}

.dress-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* SVG */
.dress-code-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100px;
    margin-bottom: 12px;
}

.dress-code-icon svg {
    display: block;
    width: 85px;
    height: 100px;
}

/* TEXTOS */
.dress-code-copy h4 {
    margin: 0 0 5px;
    color: #8b765b;

    font: 400 25px/1.15
          "The Seasons", var(--serif);
}

.dress-code-copy p {
    margin: 0;
    color: #8b765b;

    font: 400 19px/1.3
          "The Seasons", var(--serif);
}

.dress-code-copy small {
    display: block;
    max-width: 175px;
    margin: 8px auto 0;

    color: #927d60;
    font: 500 20px/1.45
          "The Seasons", var(--serif);
}

/* DECORACIÓN */
.dress-code-decoration {
    margin-top: 25px;
    color: #bda982;
    font-size: 30px;
}

/* =========================================
   ANIMACIONES DIFERENCIADAS
========================================= */

/* HOMBRES: ENTRA DESDE LA IZQUIERDA */
.dress-code-men {
    opacity: 0;
    transform: translateX(-45px);

    transition:
        opacity .8s ease 1s,
        transform .9s cubic-bezier(.2,.8,.3,1) 1s;
}

/* MUJERES: ENTRA DESDE LA DERECHA */
.dress-code-women {
    opacity: 0;
    transform: translateX(45px);

    transition:
        opacity .8s ease 1.2s,
        transform .9s cubic-bezier(.2,.8,.3,1) 1.2s;
}

/* ACTIVACIÓN */
.dress-code-section.is-visible .dress-code-header h2,
.dress-code-section.is-visible .dress-code-header p,
.dress-code-section.is-visible .dress-code-formal,
.dress-code-section.is-visible .dress-code-men,
.dress-code-section.is-visible .dress-code-women {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* MÓVILES */
@media (max-width: 480px) {

    .dress-code-section {
        padding: 24px 16px;
    }

    .dress-code-card {
        padding: 27px 17px 22px;
    }

    .dress-code-icons {
        gap: 10px;
    }

    .dress-code-icon {
        height: 85px;
    }

    .dress-code-icon svg {
        width: 72px;
        height: 85px;
    }

    .dress-code-copy h4 {
        font-size: 22px;
    }

    .dress-code-copy p {
        font-size: 17px;
    }

    .dress-code-copy small {
        font-size: 12px;
    }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    .dress-code-card,
    .dress-code-header h2,
    .dress-code-header p,
    .dress-code-formal,
    .dress-code-men,
    .dress-code-women {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }
}



/* =========================================
   A TOMAR EN CUENTA
========================================= */

.take-note-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
    background: var(--sand);
}

/* TARJETA FLORAL */
.take-note-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 35px 27px 32px;

    color: #806c50;
    text-align: center;

    background:
        #f3ebe4
        url("../img/backgrounds/fondo-modelo-v.jpg")
        center / cover no-repeat;

    box-shadow: 0 10px 30px #4f432233;

    /* Estado inicial */
    opacity: 0;
    transform: translateY(45px) scale(.97);

    transition:
        opacity .9s ease,
        transform 1s cubic-bezier(.22,.75,.25,1);
}

/* TÍTULO */
.take-note-title {
    margin: 0 0 25px;

    color: #8b765b;

    font: 400 clamp(37px, 8vw, 49px)/1.12
          "Sloop Script Bold Two", cursive;

    opacity: 0;
    transform: translateY(15px);

    transition:
        opacity .7s ease .3s,
        transform .7s ease .3s;
}

/* LISTA */
.take-note-list {
    margin: 0;
    padding-left: 24px;

    text-align: left;

    color: #806c50;
    font: 400 clamp(16px, 4vw, 19px)/1.55
          "The Seasons", var(--serif);
}

/* CADA INDICACIÓN */
.take-note-item {
    padding-left: 3px;
    margin-bottom: 20px;

    opacity: 0;
    transform: translateY(20px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.take-note-item:last-child {
    margin-bottom: 0;
}

.take-note-item::marker {
    color: #a58b63;
    font-family: var(--serif);
}

.take-note-item p {
    margin: 0;
}

.take-note-item strong {
    color: #806b4f;
    font-weight: 600;
}

/* AVISO IMPORTANTE */
.important-title {
    display: block;
    margin-bottom: 5px;

    color: #927653;
}

.adults-only {
    color: #927653 !important;
    letter-spacing: .045em;
}

/* =========================================
   ACTIVACIÓN DE ANIMACIONES
========================================= */

.take-note-section.is-visible .take-note-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.take-note-section.is-visible .take-note-title {
    opacity: 1;
    transform: translateY(0);
}

.take-note-section.is-visible .take-note-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .55s;
}

.take-note-section.is-visible .take-note-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .8s;
}

.take-note-section.is-visible .take-note-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.05s;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 480px) {

    .take-note-section {
        padding: 24px 16px;
    }

    .take-note-card {
        padding: 28px 20px;
    }

    .take-note-title {
        margin-bottom: 22px;
        font-size: 39px;
    }

    .take-note-list {
        padding-left: 21px;
        font-size: 16px;
        line-height: 1.5;
    }

    .take-note-item {
        margin-bottom: 17px;
    }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {

    .take-note-card,
    .take-note-title,
    .take-note-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}



/* =========================================
   SECCIÓN #KAROLYRANDY
========================================= */

.hashtag-section {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
    overflow: hidden;
    background: var(--sand);
}

/* FOTOGRAFÍA */

/* FOTOGRAFÍA PRINCIPAL */
.hashtag-photo {
    position: relative;
    width: 100%;
    height: clamp(480px, 75vh, 750px);
    overflow: hidden;
}

.hashtag-photo img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    /* Mostrar más la parte superior */
    object-position: center 15%;

    transform: scale(1.12);
    transition: transform 1.8s cubic-bezier(.2,.7,.3,1);
}


/* TARJETA FLORAL */
.hashtag-card {
    position: relative;
    z-index: 2;

    width: min(92%, 480px);
    margin: -8px auto 0;

    padding: 30px 22px 23px;

    text-align: center;
    color: #8b765b;

    background:
        #f3ebe4
        url("../img/backgrounds/fondo-modelo-v.jpg")
        center / cover no-repeat;

    box-shadow: 0 9px 25px #44352225;

    opacity: 0;
    transform: translateY(55px);
    filter: blur(5px);

    transition:
        opacity 1s ease .25s,
        transform 1.1s cubic-bezier(.2,.8,.3,1) .25s,
        filter 1s ease .25s;
}

/* TÍTULO PRINCIPAL */
.hashtag-heading {
    margin: 0;

    color: #806b50;

    font: 400 clamp(20px, 4.5vw, 25px)/1.3
          "The Seasons", var(--serif);

    letter-spacing: .015em;
}

.hashtag-heading span {
    display: block;
    margin-top: 3px;

    color: #927b5b;

    font: 400 clamp(38px, 8vw, 49px)/1.2
          "Sloop Script Bold Two", cursive;
}

/* CÁMARA */
.hashtag-camera {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 13px auto 8px;

    color: #b49b70;
}

.hashtag-camera svg {
    display: block;
    width: 65px;
    height: 55px;
}

/* HASHTAG */
.hashtag-text {
    margin: 0;

    color: #927b5b;

    font: 400 clamp(21px, 5vw, 26px)/1.3
          "The Seasons", var(--serif);
}

/* =========================================
   TRANSICIÓN DIFERENTE
========================================= */

.hashtag-section.is-visible .hashtag-photo img {
    transform: scale(1);
}

.hashtag-section.is-visible .hashtag-card {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* =========================================
   RESPONSIVE
========================================= */


@media (max-width: 480px) {

    .hashtag-section {
        padding-bottom: 28px;
    }

    .hashtag-photo {
        height: 72svh;
        min-height: 480px;
        max-height: 650px;
    }

    .hashtag-photo img {
        object-position: center 10%;
    }

    .hashtag-card {
        width: 92%;
        padding: 25px 16px 20px;
    }

    .hashtag-camera svg {
        width: 58px;
        height: 48px;
    }
}


/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {

    .hashtag-photo img,
    .hashtag-card {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}



/* HASHTAG */
.hashtag-text {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2px;

    margin: 5px 0 0;

    color: #927b5b;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 5.5vw, 29px);
    font-weight: 400;
    font-style: normal;
    letter-spacing: .015em;
    line-height: 1.3;

    white-space: nowrap;
}

.hashtag-symbol {
    font-family: Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 400;
    line-height: 1;
    color: #b49b70;
}

.hashtag-text span:last-child {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}



/* ==========================================
   BUENOS DESEOS
========================================== */

.wishes-section {
    position: relative;
    width: 100%;
    padding-bottom: 45px;
    overflow: hidden;
    background: var(--sand);
}

/* FOTOGRAFÍA */
.wishes-photo {
    width: 100%;
    height: clamp(400px, 65vh, 620px);
    overflow: hidden;
}

.wishes-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

/* TARJETA FLORAL */
.wishes-card {
    position: relative;
    z-index: 2;

    width: min(92%, 480px);
    margin: -5px auto 0;

    padding: 28px 22px 26px;

    text-align: center;
    color: #8b765b;

    background:
        #f3ebe4
        url("../img/backgrounds/fondo-modelo-v.jpg")
        center / cover no-repeat;

    box-shadow: 0 9px 25px #44352225;

    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity .9s ease,
        transform 1s ease;
}

.wishes-section.is-visible .wishes-card {
    opacity: 1;
    transform: translateY(0);
}

/* TÍTULO */
.wishes-title {
    margin: 0;

    color: #927b5b;

    font: 400 39px/1.1
          "Sloop Script Bold Two", cursive;
}

.wishes-title span {
    display: block;
    margin-top: 3px;

    font: 400 27px/1.2
          "The Seasons", var(--serif);
    text-transform: uppercase;
}

/* DESCRIPCIÓN */
.wishes-description {
    margin: 15px auto 20px;
    max-width: 290px;

    color: #927b5b;

    font: 400 16px/1.5
          "The Seasons", var(--serif);
}

/* BOTÓN ABRIR MODAL */
.wishes-open-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 190px;
    min-height: 43px;

    padding: 9px 20px;

    border: 1px solid #b49b70;
    background: #ffffff70;

    color: #927b5b;

    font: 400 17px "The Seasons", var(--serif);

    cursor: pointer;

    transition: .3s ease;
}

.wishes-open-button:hover {
    background: #ffffffc9;
    transform: translateY(-2px);
}

/* MENSAJE DE CONFIRMACIÓN */
.wishes-feedback {
    min-height: 20px;
    margin: 12px 0 0;

    color: #71805e;
    font-size: 14px;
}


/* ==========================================
   MODAL
========================================== */

.wishes-modal[hidden] {
    display: none;
}

.wishes-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 18px;

    background: rgba(32, 27, 21, .62);

    opacity: 0;
    transition: opacity .3s ease;
}

.wishes-modal.is-open {
    opacity: 1;
}

/* TARJETA DEL MODAL */
.wishes-modal-dialog {
    position: relative;

    width: min(100%, 390px);
    max-height: 90vh;
    overflow-y: auto;

    padding: 34px 22px 25px;

    background:
        #f3ebe4
        url("../img/backgrounds/fondo-modelo-v.jpg")
        center / cover no-repeat;

    box-shadow: 0 12px 40px #00000035;

    transform: translateY(25px) scale(.97);
    transition: transform .35s ease;
}

.wishes-modal.is-open .wishes-modal-dialog {
    transform: translateY(0) scale(1);
}

/* CERRAR */
.wishes-modal-close {
    position: absolute;
    top: 8px;
    right: 13px;

    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    color: #927b5b;
    font-size: 29px;

    cursor: pointer;
}

/* TÍTULO MODAL */
.wishes-modal-dialog h2 {
    margin: 0 20px 16px;

    color: #806b50;
    text-align: center;

    font: 400 25px/1.2
          "The Seasons", var(--serif);
}

/* CAMPOS */
.wishes-field {
    margin-bottom: 19px;
}

.wishes-field label {
    display: block;
    margin-bottom: 8px;

    color: #927b5b;
    text-align: center;

    font: 400 18px "The Seasons", var(--serif);
}

.wishes-field input,
.wishes-field textarea {
    display: block;
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #bca989;
    border-radius: 0;

    background: #fffdf855;

    color: #806b50;

    font: 400 15px "The Seasons", var(--serif);

    outline: none;
}

.wishes-field input {
    height: 42px;
    text-align: center;
}

.wishes-field textarea {
    min-height: 105px;
    resize: vertical;
}

.wishes-field input:focus,
.wishes-field textarea:focus {
    border-color: #927b5b;
    background: #ffffffa0;
}

.wishes-field input::placeholder,
.wishes-field textarea::placeholder {
    color: #b5a58c;
}

/* CONTADOR */
.wishes-counter {
    display: block;
    margin-top: 5px;

    color: #a18b6d;
    text-align: right;
    font-size: 12px;
}

/* CAMPO ANTIBOTS */
.wishes-honeypot {
    position: absolute !important;
    left: -10000px !important;

    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* BOTÓN ENVIAR */
.wishes-submit-button {
    display: block;

    width: 150px;
    min-height: 42px;

    margin: 23px auto 0;

    border: 1px solid #927b5b;
    background: #fffdf855;

    color: #806b50;

    font: 400 15px "The Seasons", var(--serif);

    cursor: pointer;
    transition: .3s ease;
}

.wishes-submit-button:hover {
    background: #bda982;
    color: #ffffff;
}

.wishes-submit-button:disabled {
    opacity: .55;
    cursor: wait;
}

/* ESTADOS */
.wishes-modal-feedback {
    min-height: 20px;
    margin: 12px 0 0;

    color: #806b50;
    text-align: center;
    font-size: 13px;
}

/* IFRAME OCULTO */
.wishes-hidden-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    visibility: hidden;
}

/* MÓVILES */
@media (max-width: 480px) {

    .wishes-section {
        padding-bottom: 28px;
    }

    .wishes-photo {
        height: 58svh;
        min-height: 350px;
        max-height: 500px;
    }

    .wishes-card {
        width: 92%;
        padding: 25px 17px;
    }

    .wishes-modal {
        padding: 14px;
    }

    .wishes-modal-dialog {
        padding: 32px 18px 22px;
    }

    .wishes-modal-dialog h2 {
        font-size: 23px;
    }

}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {

    .wishes-card,
    .wishes-modal,
    .wishes-modal-dialog {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================
   MODAL DE CONFIRMACIÓN
========================================== */

.wishes-success-modal[hidden] {
    display: none;
}

.wishes-success-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 18px;

    background: rgba(32, 27, 21, .68);

    opacity: 0;
    transition: opacity .35s ease;
}

.wishes-success-modal.is-open {
    opacity: 1;
}

/* TARJETA */
.wishes-success-dialog {
    position: relative;

    width: min(100%, 370px);
    padding: 38px 25px 30px;

    text-align: center;

    background:
        #f3ebe4
        url("../img/backgrounds/fondo-modelo-v.jpg")
        center / cover no-repeat;

    box-shadow: 0 12px 40px #00000035;

    transform: translateY(25px) scale(.96);

    transition: transform .4s cubic-bezier(.2,.8,.3,1);
}

.wishes-success-modal.is-open
.wishes-success-dialog {
    transform: translateY(0) scale(1);
}

/* TÍTULO */
.wishes-success-dialog h2 {
    margin: 0 20px 15px;

    color: #927b5b;

    font: 400 38px/1.2
          "Sloop Script Bold Two", cursive;
}

/* CERRAR */
.wishes-success-close {
    position: absolute;
    top: 9px;
    right: 13px;

    border: none;
    background: transparent;

    color: #927b5b;
    font-size: 28px;

    cursor: pointer;
}

/* ICONO */
.wishes-success-icon {
    display: flex;
    justify-content: center;

    margin: 10px 0 15px;

    color: #b49b70;
}

.wishes-success-icon svg {
    width: 76px;
    height: 65px;
}

/* MENSAJES */
.wishes-success-message {
    margin: 10px 0;

    color: #806b50;

    font: 400 20px/1.4
          "The Seasons", var(--serif);
}

.wishes-success-description {
    margin: 12px auto 22px;
    max-width: 280px;

    color: #927b5b;

    font: 400 16px/1.5
          "The Seasons", var(--serif);
}

/* BOTÓN */
.wishes-success-button {
    min-width: 145px;
    min-height: 43px;

    padding: 9px 25px;

    border: 1px solid #927b5b;
    background: #bda982;

    color: #ffffff;

    font: 400 15px
          "The Seasons", var(--serif);

    cursor: pointer;

    transition: background .3s ease;
}

.wishes-success-button:hover {
    background: #927b5b;
}

/* MÓVIL */
@media (max-width: 480px) {

    .wishes-success-dialog {
        width: 100%;
        max-width: 340px;
        padding: 35px 20px 25px;
    }

    .wishes-success-dialog h2 {
        font-size: 34px;
    }

}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {

    .wishes-success-modal,
    .wishes-success-dialog {
        transition: none;
        transform: none;
    }

}



/* ==========================================
   GALERÍA DE FOTOS
   RANDY Y KAROL
========================================== */

.gallery-section {
    position: relative;
    width: 100%;
    padding: 35px 15px 55px;
    background: var(--primary-500);
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}


/* ==========================================
   ENCABEZADO GALERÍA
========================================== */

.gallery-header {
    text-align: center;
    margin-bottom: 22px;
    color: #FFFFFF;
}

.gallery-header h2 {
    margin: 0;
    color: #FFFFFF;

    font-family: "Sloop Script Bold Two", cursive;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
}

.gallery-header p {
    margin: 3px 0 0;
    color: #FFFFFF;

    font-family: "The Seasons", serif;
    font-size: 19px;
    letter-spacing: 1px;
}




/* ==========================================
   GALERÍA - MASONRY COMPACTO
   RANDY Y KAROL
========================================== */

.gallery-grid {
    display: block;

    width: 100%;

    column-count: 3;
    column-gap: 5px;
}

/* TARJETAS */

.gallery-item {
    display: inline-block;

    width: 100%;

    margin: 0 0 5px;
    padding: 0;

    border: none;

    vertical-align: top;

    overflow: hidden;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;

    background: #bda982;

    cursor: pointer;
}

/* IMÁGENES */

.gallery-item img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;

    transition:
        transform .5s ease,
        filter .4s ease;
}

/* VERTICALES */

.gallery-item.gallery-item--portrait img {
    width: 100%;
    height: auto;

    object-fit: contain;
}

/* HORIZONTALES */

.gallery-item.gallery-item--landscape img {
    width: 100%;
    height: auto;

    object-fit: contain;
}

/* CUADRADAS */

.gallery-item.gallery-item--square img {
    width: 100%;
    height: auto;

    object-fit: contain;
}

/* EFECTO HOVER */

.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(.93);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 480px) {

    .gallery-grid {
        column-count: 3;
        column-gap: 5px;
    }

    .gallery-item {
        margin-bottom: 5px;
    }

}

@media (max-width: 340px) {

    .gallery-grid {
        column-gap: 4px;
    }

    .gallery-item {
        margin-bottom: 4px;
    }

}



/* FOTOGRAFÍAS VERTICALES */
.gallery-item.gallery-item--portrait {
    background: #bda982;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item.gallery-item--portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;

}


.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(.90);
}

/* DISTRIBUCIÓN DEL COLLAGE */

.gallery-item:nth-child(1) {
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6),
.gallery-item:nth-child(7) {
    grid-row: span 1;
}

/* FIRMA */

.gallery-footer {
    text-align: center;
    margin-top: 18px;
    color: #fffaf2;
}

.gallery-footer span {
    font-family: var(--serif);
    font-size: 19px;
    letter-spacing: 2px;
}


/* ==========================================
   VISOR DE FOTOGRAFÍAS
========================================== */

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 42px 65px;

    background: rgba(43, 37, 30, .83);

    opacity: 0;
    transition: opacity .35s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
}

/* VISOR */

.gallery-viewer {
    width: min(100%, 430px);
    height: 100%;
    max-height: 78vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transform: scale(.94) translateY(15px);

    transition: transform .4s ease;
}

.gallery-lightbox.is-open .gallery-viewer {
    transform: scale(1) translateY(0);
}

/* IMAGEN */

.gallery-image-container {
    width: 100%;
    height: calc(100% - 35px);
    min-height: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 9px;

    background: #f8f5ef;
    box-shadow: 0 10px 35px #00000040;
}

.gallery-image-container img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: 100%;
    height: 100%;

    object-fit: contain;

    opacity: 1;
    transition: opacity .2s ease;
}

.gallery-image-container img.changing {
    opacity: .25;
}

/* CERRAR */

.gallery-close {
    position: absolute;
    top: 18px;
    right: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    color: #fffaf2;
    cursor: pointer;

    transition: transform .3s ease;
}

.gallery-close:hover {
    transform: rotate(90deg);
}

/* FLECHAS */

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 48px;

    border: none;
    background: transparent;

    color: #fffaf2;
    cursor: pointer;

    transition: opacity .3s ease;
}

.gallery-arrow:hover {
    opacity: .65;
}

.gallery-prev {
    left: 2px;
}

.gallery-next {
    right: 2px;
}

/* CONTADOR */

.gallery-counter {
    color: #fffaf2;
    font-family: "The Seasons", serif;
    font-size: 13px;
    margin-top: 12px;
    letter-spacing: 1px;
}

/* PUNTOS */

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 13px;
}

.gallery-dot {
    width: 8px;
    height: 8px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.45);

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;
}

.gallery-dot.active {
    background: #d0b58a;
    transform: scale(1.3);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 480px) {

    .gallery-section {
        padding: 30px 14px 48px;
    }

    .gallery-header h2 {
        font-size: 38px;
    }

    .gallery-grid {
        grid-auto-rows: 95px;
        gap: 8px;
    }

    .gallery-lightbox {
        padding: 55px 38px 65px;
    }

    .gallery-viewer {
        max-height: 75vh;
    }

    .gallery-close {
        top: 12px;
        right: 12px;
    }

    .gallery-arrow {
        width: 32px;
    }

    .gallery-prev {
        left: 0;
    }

    .gallery-next {
        right: 0;
    }

}

@media (max-width: 360px) {

    .gallery-grid {
        grid-auto-rows: 82px;
        gap: 6px;
    }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .gallery-item img,
    .gallery-lightbox,
    .gallery-viewer,
    .gallery-dot {
        transition: none;
    }

}



/* ==========================================
   CONTACTOS
   KAROL Y RANDY
========================================== */

.contacts-section {
    position: relative;

    width: 100%;

    padding: 35px 18px 45px;

    background: #bea17b;

    overflow: hidden;
}

.contacts-container {
    width: 100%;

    max-width: 520px;

    margin: 0 auto;

    display: flex;

    justify-content: center;
    align-items: center;
}

/* TARJETA */

.contacts-card {
    position: relative;

    width: 100%;

    padding: 25px 22px 28px;

    background-color: #f4ede4;

    background-image:
        url("../img/backgrounds/fondo-modelo-v.jpg");

    background-position: center;

    background-size: cover;

    background-repeat: no-repeat;

    box-shadow: 0 8px 22px rgba(69, 52, 31, .13);

    border: 1px solid rgba(180, 155, 117, .3);
}

/* ENCABEZADO */

.contacts-header {
    text-align: center;

    margin-bottom: 24px;
}

.contacts-header h2 {
    margin: 0;

    color: #927b5b;

    font-family:
        "Sloop Script Bold Two",
        cursive;

    font-size: 39px;

    font-weight: 400;

    line-height: 1.2;
}

/* DISTRIBUCIÓN */

.contacts-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    max-width: 350px;

    margin: 0 auto;
}

/* ELEMENTOS */

.contact-item {
    display: flex;

    flex-direction: column;

    justify-content: center;
    align-items: center;

    min-width: 0;

    gap: 13px;
}

/* ILUSTRACIONES */

 
/* ==========================================
   ILUSTRACIONES CONTACTOS
   NOVIA Y NOVIO
========================================== */

.contact-illustration {
    width: 100%;
    height: 140px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

/* IMÁGENES SVG */

.contact-icon {
    display: block;

    width: 105px;
    height: 125px;

    object-fit: contain;
    object-position: center;

    /* Color de la paleta de la invitación */
    filter: none;

    transition:
        transform .4s ease,
        opacity .4s ease;
}

/* EFECTO SUAVE */

.contact-item:hover .contact-icon {
    transform: translateY(-4px);
}

/* BOTONES */

.contact-button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 105px;
    min-height: 39px;

    padding: 8px 12px;

    border: 1px solid #c9b594;

    background: rgba(255, 252, 246, .45);

    color: #927b5b;

    text-decoration: none;
    text-align: center;

    font-family: "The Seasons", serif;
    font-size: 15px;

    transition: all .3s ease;
}

.contact-button:hover {
    background: #bda982;
    color: #ffffff;
    border-color: #bda982;
    transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 480px) {

    .contact-illustration {
        height: 125px;
    }

    .contact-icon {
        width: 95px;
        height: 115px;
    }

}

@media (max-width: 350px) {

    .contact-icon {
        width: 85px;
        height: 105px;
    }

}


/* ==========================================
   ANIMACIÓN DE ENTRADA
========================================== */

.contacts-section .contacts-card {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.contacts-section.is-visible .contacts-card {
    opacity: 1;

    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 480px) {

    .contacts-section {
        padding: 30px 18px 40px;
    }

    .contacts-card {
        padding: 23px 17px 25px;
    }

    .contacts-header {
        margin-bottom: 20px;
    }

    .contacts-header h2 {
        font-size: 36px;
    }

    .contacts-grid {
        gap: 12px;
        max-width: 300px;
    }

    .contact-illustration {
        height: 125px;
    }

    .contact-illustration svg {
        width: 95px;
        height: 120px;
    }

    .contact-button {
        width: 100px;
        min-height: 37px;
        font-size: 14px;
    }

}

/* PANTALLAS PEQUEÑAS */

@media (max-width: 350px) {

    .contacts-section {
        padding-left: 13px;
        padding-right: 13px;
    }

    .contacts-card {
        padding: 20px 12px 23px;
    }

    .contacts-grid {
        gap: 8px;
    }

    .contact-illustration svg {
        width: 85px;
    }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .contacts-section .contacts-card,
    .contact-button {
        transition: none;
    }

}



/* ==========================================
   SECCIÓN FINAL
   RANDY Y KAROL
========================================== */

.final-section {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;

    /* CAMBIAR POR LA FOTOGRAFÍA FINAL */
    background-image:
        url("../img/photos/galeria7.jpg");

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* CAPA OSCURA */

.final-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(35, 30, 25, .38) 0%,
            rgba(35, 30, 25, .08) 35%,
            rgba(35, 30, 25, .12) 70%,
            rgba(35, 30, 25, .28) 100%
        );

    z-index: 1;
}

/* MENSAJE SUPERIOR */

.final-content {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 28px 15px 0;

    text-align: center;

    color: #ffffff;

    animation: finalFadeIn 1.5s ease both;
}

.final-title {
    margin: 0;

    font-family: "Cinzel", serif;

    font-size: 17px;

    font-weight: 500;

    letter-spacing: .5px;

    line-height: 1.5;
}

.final-script {
    margin: 3px 0;

    font-family:
        "Sloop Script Bold Two",
        cursive;

    font-size: 31px;

    font-weight: 400;

    font-style: italic;

    line-height: 1.35;
    color: #ffffff;
}

.final-subtitle {
    margin: 0;

    font-family: "Cinzel", serif;

    font-size: 16px;

    letter-spacing: .5px;

    line-height: 1.5;
}



/* ==========================================
   FOOTER FINAL
========================================== */

.final-footer {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    min-height: 58px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 2px 6px;

    background: var(--primary-500, #bea17b);

    color: #ffffff;

    z-index: 5;
    text-align: center;
}

.final-footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 11px;

    margin: 0;

    color: #ffffff;

    font-family: "The Seasons", serif;

    font-size: 20px;

    letter-spacing: 2px;
    line-height: 1.4;
}

.footer-heart {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    color: #ffffff;
}

.final-footer a {
    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    transition: opacity .3s ease;
}

.final-footer a:hover {
    opacity: .75;
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 480px) {

    .final-footer {
        min-height: 24px;
        padding: 2px 6px;
    }

    .final-footer p {
        font-size: 22px;
        gap: 7px;
        letter-spacing: 1.3px;
    }

    .footer-heart {
        width: 19px;
        height: 19px;
    }

}



/* ANIMACIÓN */

@keyframes finalFadeIn {

    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 480px) {

    .final-section {
        min-height: 100svh;
        background-position: center center;
    }

    .final-content {
        padding: 18px 12px 0;
    }

    .final-title {
        font-size: 15px;
    }

    .final-script {
        font-size: 27px;
    }

    .final-subtitle {
        font-size: 14px;
    }

    .final-footer {
        min-height: 30px;
    }

    .final-footer p {
        font-size: 13px;
    }

}

/* COMPUTADORAS */

@media (min-width: 768px) {

    .final-section {
        background-position: center 45%;
    }

    .final-content {
        padding-top: 45px;
    }

    .final-title {
        font-size: 21px;
    }

    .final-script {
        font-size: 43px;
    }

    .final-subtitle {
        font-size: 19px;
    }

}

/* Animación de latido del corazón */
.footer-heart {
    display: inline-block;
    animation: latido 1.5s infinite ease-in-out;
}

/* Efecto de latido */
@keyframes latido {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}


/* BOTÓN CONFIRMAR ASISTENCIA */
.btn-confirmar-asistencia {
    display: block;
    position: relative;
    width: fit-content;
    margin: 25px auto 0;
    background-color: #bea17b;
    color: #ffffff;
    font-family: 'BagekiLuxury', serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-decoration: none;
    padding: 11px 25px;
    border-radius: 50px;
    border: 1px solid #bea17b;
    transition: all 0.3s ease;
}

.btn-confirmar-asistencia:hover {
    background-color: #2e2706;
    border-color: #b89a04;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .btn-confirmar-asistencia {
        font-size: 13px;
        padding: 10px 22px;
        margin-top: 12px;
    }
}


/* ===== REPRODUCTOR: VISIBILIDAD ===== */
/* Ocultar reproductor mientras se muestra el sobre */
.music-player {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Mostrar después de abrir la invitación */
body.invitation-open .music-player {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Botón circular */
.music-control {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(111,96,75,0.65);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.music-note {
    font-size: 22px;
}

/* Panel */
.music-panel {
    position: absolute;
    bottom: 55px;
    right: 0;

    width: 255px;
    padding: 16px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;

    border-radius: 17px;
    background: rgba(111,96,75,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: white;
}

.music-panel[hidden] {
    display: none;
}

.music-play-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #bea17b;
    cursor: pointer;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: Arial, sans-serif;
}

.music-info strong {
    font-size: 13px;
}

.music-info span {
    font-size: 10px;
}

.music-progress {
    grid-column: 1 / 3;
    width: 100%;
    accent-color: white;
    cursor: pointer;
}

/* ===== CORRECCIÓN FINAL: REPRODUCTOR VISIBLE TRAS ABRIR ===== */
.music-player {
    position: fixed !important;
    right: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    z-index: 2147483000 !important;
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.invitation-open .music-player,
body.invitation-open .music-player {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.music-player .music-control {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(111, 96, 75, 0.40) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.music-player .music-panel {
    position: absolute !important;
    right: 0 !important;
    bottom: 56px !important;
    top: auto !important;
    width: 255px !important;
    background: rgba(111, 96, 75, 0.347) !important;
    color: #ffffffd7 !important;
    z-index: 1 !important;
}

.music-player .music-panel[hidden] {
    display: none !important;
}

/* Botón principal de música */
.music-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control .music-note {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* Botón Play / Pause */
.music-play-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.40);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.music-play-button:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.music-play-button svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    stroke: none;
}

/* Ajuste óptico del triángulo Play */
.music-play-button svg.is-playing {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* Botón volver al inicio */
.back-to-top {
    position: fixed;
    left:10px;
    right: auto;
    bottom: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(111, 96, 75, 0.40);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition: opacity 0.3s ease,
                visibility 0.3s ease,
                transform 0.3s ease;
    z-index: 2147483000;
}

.back-to-top svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(111, 96, 75, 0.65);
    transform: translateY(-3px);
}