@import url('https://fonts.googleapis.com/css2?family=Pompiere&display=swap');

/* Design tokens & Custom variables */
:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --text-light: #ffffff;
    --text-muted: #e2e8f0;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* Base resets & snap scrolling */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    color: var(--text-light);
    background-color: #0b0f19;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screen-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments for 100vh columns on desktop */
@media (min-width: 768px) {
    .h-100-md {
        height: 100vh !important;
    }
}

/* Background Image for each Screen */
#pantalla-1,
#pantalla-2,
#pantalla-3,
#pantalla-4,
#pantalla-5,
#pantalla-6,
#pantalla-7,
#pantalla-8,
#pantalla-9 {
    background: url('assets/fondo.jpg') no-repeat center center / cover;
}

/* Typography styles */
.font-script {
    font-family: var(--font-script) !important;
}

.font-serif {
    font-family: var(--font-serif) !important;
}

.font-pompiere {
    font-family: 'Pompiere', sans-serif !important;
}

.quote-text.font-pompiere {
    font-size: 1.8rem;
    font-weight: 300 !important;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

/* Cinematic Preloader & Intro */
.cinema-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    /* Black background */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cinema-intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-phrase {
    font-size: 2.2rem !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.intro-phrase.show {
    opacity: 1;
}

/* Custom Music Button */
.music-control-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.music-control-btn:hover {
    background: var(--gold);
    color: #fff;
    transform: scale(1.1);
}

.music-control-btn.paused i {
    animation: none;
}

.music-control-btn i {
    font-size: 1.2rem;
    animation: rotateMusic 4s linear infinite;
}

@keyframes rotateMusic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Navigation dots for desktop */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    flex-direction: column;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    transform: scale(1.3);
}

/* Screen 1 specific elements */
.corner-deco {
    position: absolute;
    width: 250px;
    /* Large enough to serve as an elegant frame */
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.corner-tl {
    top: -70px;
    left: -70px;
}

.corner-br {
    bottom: -70px;
    right: -70px;
    transform: rotate(180deg);
}

.z-2 {
    z-index: 2 !important;
}

.logo-nombre {
    max-height: 600px;
    width: auto;
    max-width: 90%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    animation: zoomPulse 8s ease-in-out infinite alternate;
}

@keyframes zoomPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Screen 2 specific elements */
.screen-2-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.screen-2-img-container {
    height: 100%;
    width: 100%;
    max-width: 56.25vh;
    /* 9:16 aspect ratio */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}

.screen-2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*transform: scaleX(-1); Mirror horizontally */
    display: block;
}

.zoom-blur-img {
    transform: scale(1.15);
    filter: blur(10px);
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), filter 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-screen .zoom-blur-img {
    transform: scale(1);
    filter: blur(0);
}

.mask-reveal-img {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-screen .mask-reveal-img {
    clip-path: inset(0 0 0 0);
}

.moon-logo-container {
    position: absolute;
    top: 25%;
    left: 0%;
    width: 55%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-2.active-screen .moon-logo-container {
    opacity: 1;
    transform: scale(1);
}

.moon-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.bottom-right-title {
    position: absolute;
    bottom: 3rem;
    right: 40px;
    z-index: 5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    text-align: right;
}

.bottom-right-title h3 {
    font-size: 3rem;
}

#pantalla-2.active-screen .bottom-right-title {
    opacity: 1;
    transform: translateY(0);
}

/* Screen 2 desktop override */
@media (min-width: 768px) {
    #pantalla-2 .screen-2-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        height: 100vh;
    }

    #pantalla-2 .screen-2-img-container {
        width: 50% !important;
        height: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
    }

    #pantalla-2 .bottom-right-title {
        position: static !important;
        width: 50% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 50px !important;
        text-shadow: none !important;
    }

    #pantalla-2 .bottom-right-title h3 {
        font-size: 5.5rem !important;
        color: var(--gold-light) !important;
    }
}

/* Screen 3 animation */
#pantalla-3 .card-deco {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-3.active-screen .card-deco {
    opacity: 1;
    transform: translateY(0);
}

/* Screen 4 styling & responsiveness */
#pantalla-4 .section-title {
    font-size: 2.8rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#pantalla-4 .date-text {
    font-size: 2.2rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#pantalla-4 .card-deco {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-4.active-screen .card-deco {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    #pantalla-4 .pantalla-4-img-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1;
    }

    #pantalla-4 .pantalla-4-text-side {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 10;
        padding-bottom: 50px !important;
        padding-top: 30px !important;
        background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.6) 70%, transparent 100%);
    }

    #pantalla-4 .card-deco {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
}

/* Screen 5 transition */
#pantalla-5 .card-deco {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-5.active-screen .card-deco {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    #pantalla-5 .card-deco {
        max-width: 600px !important;
    }
}

/* Screen 6 transition */
#pantalla-6 .loc-title {
    font-size: 1.8rem;
    font-weight: 300 !important;
    letter-spacing: 2px;
}

#pantalla-6 .loc-name {
    font-size: 2.3rem;
    font-weight: 300 !important;
    letter-spacing: 1px;
    color: var(--gold-light) !important;
}

#pantalla-6 .loc-time {
    font-size: 1.4rem;
    font-weight: 300 !important;
}

#pantalla-6 .card-deco {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-6.active-screen .card-deco {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    #pantalla-6 .pantalla-6-img-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1;
    }

    #pantalla-6 .pantalla-6-text-side {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 10;
        padding-bottom: 50px !important;
        padding-top: 30px !important;
        background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.6) 70%, transparent 100%);
    }

    #pantalla-6 .card-deco {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 10px !important;
    }
}


/* Screen 7 transition */
#pantalla-7 .card-deco {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-7.active-screen .card-deco {
    opacity: 1;
    transform: translateY(0);
}

/* Screen 8 styling & responsiveness */
#pantalla-8 .dress-title-1 {
    font-size: 2.6rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
}

#pantalla-8 .dress-title-2 {
    font-size: 2.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
}

#pantalla-8 .dress-code-sub {
    font-size: 3.2rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
}

#pantalla-8 .dress-code-details p {
    font-size: 1.6rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
}

#pantalla-8 .dress-footer-1 {
    font-size: 1.8rem;
    font-weight: 300 !important;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}

#pantalla-8 .dress-footer-2 {
    font-size: 1.6rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
}

#pantalla-8 .card-deco {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-8.active-screen .card-deco {
    opacity: 1;
    transform: translateY(0);
}

#pantalla-9 .card-deco {
    backdrop-filter: blur(0px);
}

#pantalla-9 .corner-br {
    bottom: -90px;
    right: -80px;
}

@media (max-width: 767.98px) {
    #pantalla-8 .pantalla-8-img-side {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }

    #pantalla-8 .pantalla-8-text-side {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 10;
        display: flex !important;
        flex-direction: column;
        justify-content: center !important;
        align-items: center;
        padding: 20px !important;
        background: rgba(11, 15, 25, 0.55) !important;
    }

    #pantalla-8 .card-deco {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 10px !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Screen 9 styling & responsiveness */
#pantalla-9 .farewell-logo {
    max-height: 340px;
    width: auto;
    max-width: 90%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

#pantalla-9 .farewell-footer-text {
    font-size: 3.5rem;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#pantalla-9 .pantalla-9-text-side {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

#pantalla-9.active-screen .pantalla-9-text-side {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    #pantalla-9 .pantalla-9-img-side {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }

    #pantalla-9 .pantalla-9-text-side {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 10;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between !important;
        align-items: center;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        background: linear-gradient(to top, rgba(11, 15, 25, 0.45) 0%, rgba(11, 15, 25, 0.1) 40%, transparent 100%) !important;
        transform: none !important;
        opacity: 1 !important;
    }

    #pantalla-9 .farewell-logo-container {
        opacity: 1 !important;
        transform: none !important;
    }

    #pantalla-9 .farewell-text-container {
        opacity: 1 !important;
        transform: none !important;
    }
}


.text-gold-light {
    color: var(--gold-light) !important;
}


/* Custom Scroll Down Button with Heartbeat effect */
.btn-scroll-down {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: transform 0.2s ease;
}

.btn-scroll-down span {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-scroll-down i {
    color: var(--gold) !important;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.pulse-heartbeat {
    animation: heartbeat 1.8s infinite ease-in-out;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

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

/* Buttons style */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    color: #111;
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    padding: 12px 35px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    color: #000;
}

.btn-blue-info {
    background: linear-gradient(135deg, #17a2b8 0%, #1fc8db 50%, #85f4ff 100%);
    color: #0c333a !important;
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    padding: 12px 35px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-blue-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.6);
    color: #051619 !important;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 35px;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Side Layouts on Desktop vs Mobile */
.full-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-side {
    height: 50vh;
    overflow: hidden;
}

.text-side {
    height: 50vh;
}

.glass-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0) 60%, rgba(11, 15, 25, 0.8) 100%);
}

@media (min-width: 768px) {
    .img-side {
        height: 100vh;
    }

    .text-side {
        height: 100vh;
    }

    .glass-gradient-overlay {
        background: linear-gradient(to right, rgba(11, 15, 25, 0) 60%, rgba(11, 15, 25, 0.8) 100%);
    }
}

/* Elegant Cards for text content */
.card-deco {
    /*background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);*/
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 100%;
    width: 100%;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);*/
}

.divider-gold {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
}

.intro-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold-light);
}

.title-name {
    font-size: 4rem;
    color: var(--gold-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-xv {
    font-size: 1.2rem;
    color: #fff;
}

.desc-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.icon-gold {
    font-size: 2rem;
    color: var(--gold);
}

/* Countdown component styles */
.time-box {
    background: rgba(11, 15, 25, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px;
    border-radius: 10px;
    min-width: 70px;
}

.time-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.time-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Star animations system (screens 1, 3, 7, 9) */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.falling-stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px #fff, 0 0 16px #F3E5AB;
    animation: twinkle linear infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

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

/* Story Timeline/Itinerario component */
.story-timeline {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding-left: 0;
}

.story-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 21px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent 100%);
    z-index: 1;
}

.story-item {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.story-icon-box {
    width: 42px;
    height: 42px;
    background: #0b0f19;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-light);
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.story-item:hover .story-icon-box {
    background: var(--gold);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.story-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 12px;
    flex-grow: 1;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.story-item:hover .story-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateX(5px);
}

.story-time {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.story-title {
    font-size: 2.3rem;
    margin: 0;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.timeline-footer {
    font-size: 1.6rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

/* Dress Code styles */
.dress-code-title {
    font-size: 1.8rem;
    color: var(--gold-light);
}

.dress-code-sub {
    font-size: 2.2rem;
    color: #fff;
}

.dress-code-details p {
    font-size: 0.95rem;
}

/* Screen 9 specific elements */
.farewell-title {
    font-size: 3rem;
    color: var(--gold-light);
}

/* General containers limits */
.max-w-lg {
    max-width: 480px !important;
}

.max-w-xl {
    max-width: 550px !important;
}

.family-title {
    font-size: 2.8rem;
    color: var(--gold-light) !important;
    font-weight: 300 !important;
    margin-bottom: 0.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.family-name {
    font-size: 2.1rem;
    font-weight: 300 !important;
    margin-bottom: 0.1rem;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-bless {
    font-size: 2rem;
    font-weight: 300 !important;
    line-height: 1.5;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.loc-title {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold-light);
}

.loc-name {
    font-size: 2.2rem;
    color: #fff;
}

.loc-time {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Hamburger Menu */
.menu-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
    /* Must be on top of all elements */
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: var(--gold);
}

.menu-toggle-btn .hamburger-bar {
    width: 18px;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle-btn:hover .hamburger-bar {
    background-color: #000;
}

/* Hamburger to 'X' animation */
.menu-toggle-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: #fff;
}

.menu-toggle-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle-btn.open .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: #fff;
}

.menu-toggle-btn.open:hover .hamburger-bar {
    background-color: #000;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(-100%);
}

.fullscreen-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    padding: 20px 0;
}

.menu-link {
    font-size: 1.6rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 3px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    text-transform: uppercase;
}

.fullscreen-menu-overlay.open .menu-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger links delay */
.fullscreen-menu-overlay.open .menu-link:nth-child(1) {
    transition: all 0.4s ease 0.1s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(2) {
    transition: all 0.4s ease 0.15s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(3) {
    transition: all 0.4s ease 0.2s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(4) {
    transition: all 0.4s ease 0.25s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(5) {
    transition: all 0.4s ease 0.3s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(6) {
    transition: all 0.4s ease 0.35s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(7) {
    transition: all 0.4s ease 0.4s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(8) {
    transition: all 0.4s ease 0.45s;
}

.fullscreen-menu-overlay.open .menu-link:nth-child(9) {
    transition: all 0.4s ease 0.5s;
}

.menu-link:hover {
    color: var(--gold);
    transform: scale(1.08);
}

.menu-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -6px;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-link:hover::after {
    width: 50px;
}

/* Media query for smaller mobile screens or screens with active browser bars (e.g. iPhone 13, SE, etc.) */
@media (max-width: 767.98px) and (max-height: 850px) {

    /* Screen 1 */
    #pantalla-1 .bottom-action {
        transform: translateY(-1rem);
    }

    /* Screen 2 */
    #pantalla-2 .bottom-right-title {
        bottom: 6rem;
    }

    /* Screen 3 */
    #pantalla-3 .text-side {
        padding: 20px !important;
    }

    #pantalla-3 .quote-text {
        font-size: 1.4rem !important;
    }

    /* Screen 4 */
    #pantalla-4 .btn-calendario {
        margin-bottom: 1rem;
    }

    #pantalla-4 .pantalla-4-text-side {
        padding-bottom: 25px !important;
        padding-top: 20px !important;
    }

    #pantalla-4 .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    #pantalla-4 .date-text {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    #pantalla-4 .countdown-container {
        margin-bottom: 0.8rem !important;
    }

    #pantalla-4 .countdown-value {
        font-size: 1.5rem !important;
    }

    #pantalla-4 .countdown-label {
        font-size: 0.7rem !important;
    }

    /* Screen 5 */
    #pantalla-5 .card-deco {
        padding: 20px !important;
    }

    #pantalla-5 .intro-bless {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
    }

    #pantalla-5 .family-title {
        font-size: 2.2rem !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.2rem !important;
    }

    #pantalla-5 .family-name {
        font-size: 1.7rem !important;
    }

    #pantalla-5 .divider-gold {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Screen 6 */
    #pantalla-6 .pantalla-6-text-side {
        padding-bottom: 25px !important;
        padding-top: 20px !important;
    }

    #pantalla-6 .loc-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.2rem !important;
    }

    #pantalla-6 .loc-name {
        font-size: 1.8rem !important;
        margin-top: 0.2rem !important;
        margin-bottom: 0.2rem !important;
    }

    #pantalla-6 .loc-time {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    #pantalla-6 .card-deco {
        padding: 8px !important;
    }

    #pantalla-6 .btn-gold {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }

    #pantalla-6 .area-recepcion {
        margin-bottom: 1rem;
    }

    /* Screen 7 */
    #pantalla-7 .card-deco {
        padding: 20px !important;
    }

    #pantalla-7 .section-title {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    #pantalla-7 .story-timeline::before {
        top: 10px;
        bottom: 10px;
    }

    #pantalla-7 .story-icon-box {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.9rem !important;
    }

    #pantalla-7 .story-timeline::before {
        left: 17px !important;
    }

    #pantalla-7 .story-content {
        padding: 6px 15px !important;
    }

    #pantalla-7 .story-title {
        font-size: 1.4rem !important;
    }

    #pantalla-7 .story-time {
        font-size: 0.8rem !important;
    }

    #pantalla-7 .timeline-footer {
        font-size: 1.3rem !important;
        margin-top: 0.5rem !important;
    }

    /* Screen 8 */
    #pantalla-8 .pantalla-8-text-side {
        padding: 20px !important;
    }

    #pantalla-8 .dress-title-1 {
        font-size: 2rem !important;
    }

    #pantalla-8 .dress-title-2 {
        font-size: 1.6rem !important;
    }

    #pantalla-8 .dress-code-sub {
        font-size: 2.4rem !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    #pantalla-8 .dress-code-details p {
        font-size: 1.3rem !important;
        margin-bottom: 0.3rem !important;
    }

    #pantalla-8 .dress-footer-1 {
        font-size: 1.4rem !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    #pantalla-8 .dress-footer-2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    #pantalla-9 .btn-whatsapp {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    /* Screen 9 */
    #pantalla-9 .pantalla-9-text-side {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    #pantalla-9 .farewell-logo {
        max-height: 160px !important;
    }

    #pantalla-9 .farewell-title {
        font-size: 2.2rem !important;
    }

    #pantalla-9 .title-name {
        font-size: 2.8rem !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    #pantalla-9 .desc-text {
        font-size: 1.4rem !important;
    }

    #pantalla-9 .farewell-text-container {
        padding: 10px !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Gallery Styles */
.gallery-wrapper {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 5px;
    width: 100%;
}

/* Custom Scrollbar for gallery-wrapper */
.gallery-wrapper::-webkit-scrollbar {
    width: 6px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-bottom: 30px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

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

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-hover-overlay i {
    color: var(--gold-light);
    font-size: 1.8rem;
    transform: scale(0.8);
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-hover-overlay i {
    transform: scale(1);
}

/* Lightbox Modal Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.96);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 100000;
}

.lightbox-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: scale(1.05);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 767.98px) {
    .gallery-wrapper {
        max-height: 80vh;
    }

    .lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}