        html {
            scroll-behavior: smooth;
        }

        :root {
            --azul-floral: #9eb5d1;
        }

        body {
            background-color: #869fBE;
            font-family: 'Montserrat', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            padding: 20px;
        }

        .invitacion-container {
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
            background-color: #f9f9f9;
            background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
            width: 100%;
            max-width: 450px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow-x: hidden;
        }

        .floral-header {
            width: 100%;
            height: 220px;
            background: url('../img/FlorEditada.png') no-repeat top left;
            background-size: contain;
        }

        .font-serif {
            font-family: 'Playfair Display', serif;
        }

        .font-cursive {
            font-family: 'Great Vibes', cursive;
        }

        .vertical-divider {
            width: 1px;
            height: 50px;
            background: linear-gradient(to bottom, transparent, #9eb5d1, transparent);
            margin: 0 20px;
        }

        .torn-paper {
            width: 100%;
            height: 50px;
            background-color: #f9f9f9;
            clip-path: polygon(0% 0%, 5% 40%, 10% 0%, 15% 50%, 20% 0%, 25% 30%, 30% 0%, 35% 60%, 40% 10%, 45% 40%, 50% 0%, 55% 50%, 60% 10%, 65% 30%, 70% 0%, 75% 50%, 80% 10%, 85% 40%, 90% 0%, 95% 30%, 100% 0%, 100% 100%, 0% 100%);
            margin-top: -30px;
            position: relative;
            z-index: 10;
        }

        .torn-paper-bottom {
            width: 100%;
            height: 50px;
            background-color: #f9f9f9;
            clip-path: polygon(0% 100%, 5% 60%, 10% 100%, 15% 50%, 20% 100%, 25% 70%, 30% 100%, 35% 40%, 40% 90%, 45% 60%, 50% 100%, 55% 50%, 60% 90%, 65% 70%, 70% 100%, 75% 50%, 80% 90%, 85% 60%, 90% 100%, 95% 70%, 100% 100%, 100% 0%, 0% 0%);
            margin-bottom: -30px;
            position: relative;
            z-index: 10;
        }

        .couple-photo {
            width: 100%;
            height: 450px;
            background-size: cover;
            background-position: center;
            filter: brightness(0.95);
        }

        .btn-custom {
            background-color: #9eb5d1;
            color: white;
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            display: inline-block;
            box-shadow: 0 4px 10px rgba(158, 181, 209, 0.3);
        }

        .bank-card {
            background: white;
            border: 1px solid #eee;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 1rem;
        }

        .couple-names-container {
            position: relative;
            padding: 35px 0;
            overflow: visible;
        }

        .floral-side {
            position: absolute;
            width: 120px;
            z-index: 5;
            pointer-events: none;
        }

        .floral-left {
            left: -10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .floral-right {
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .name-title {
            font-family: 'Great Vibes', cursive;
            font-size: 3.5rem;
            color: #333;
            line-height: 1;
        }

        .and-symbol {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 2rem;
            color: #333;
            margin: 10px 0;
            animation: andBreath 3s ease-in-out infinite;
        }

        @keyframes andBreath {

            0%,
            100% {
                opacity: 0.6;
                transform: scale(1);
            }

            50% {
                opacity: 1;
                transform: scale(1.1);
            }
        }

        @keyframes soft-pulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.05);
                opacity: 0.9;
            }
        }

        .animate-pulse-slow {
            animation: soft-pulse 2s infinite ease-in-out;
        }

        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 1.1s ease, transform 1.1s ease;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }


        .countdown-box {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(5px);
            border: 1px solid rgba(158, 181, 209, 0.2);
        }

        @keyframes fade-in-left {
            from {
                opacity: 0;
                transform: translate(-60px, -50%);
            }

            to {
                opacity: 1;
                transform: translate(0, -50%);
            }
        }

        @keyframes fade-in-right {
            from {
                opacity: 0;
                transform: translate(60px, -50%) scaleX(-1);
            }

            to {
                opacity: 1;
                transform: translate(0, -50%) scaleX(-1);
            }
        }

        @keyframes scale-in {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes heartbeat {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.07);
            }
        }

        .animate-fade-in-left {
            animation: fade-in-left 1.4s ease-out forwards;
        }

        .animate-fade-in-right {
            animation: fade-in-right 1.4s ease-out forwards;
        }

        .animate-scale-in {
            animation: scale-in 1.2s ease-out forwards;
        }

        #open-invitation {
            opacity: 0;
            transform: translateY(12px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        /* aparece */
        #open-invitation.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* palpita después */
        #open-invitation.pulse {
            animation: pulseElegant 2.2s ease-in-out infinite;
        }



        /* =====================================
    TEXTO ANIMADO OVERLAY (TYPEWRITER)
===================================== */
        .overlay-caret::after {
            content: "│";
            margin-left: 2px;
            animation: blink 1s infinite;
            opacity: 0.6;
        }

        @keyframes blink {

            0%,
            50%,
            100% {
                opacity: 0;
            }

            25%,
            75% {
                opacity: 1;
            }
        }

        /* ================================
   OVERLAY LUJOYAL / PREMIUM
================================ */

        /* Animaciones internas del overlay */
        #wedding-overlay .animate-scale-in,
        #wedding-overlay p,
        #wedding-overlay h2 {
            animation-fill-mode: both;
        }


        /* Texto superior */
        #wedding-overlay p:first-child {
            animation: fadeUp 1s ease forwards;
        }

        /* Nombres */
        #wedding-overlay h2 {
            animation: fadeUp 1.4s ease forwards;
        }


        /* =====================================
    EFECTO PAPEL ABRIÉNDOSE (OVERLAY)
===================================== */

        .paper-open {
            transform-origin: top center;
            animation: paperOpen 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
        }

        @keyframes paperOpen {
            from {
                opacity: 0;
                transform: scaleY(0.85) translateY(-10px);
            }

            to {
                opacity: 1;
                transform: scaleY(1) translateY(0);
            }
        }

        /* =====================================
   PÉTALOS FLORALES (OVERLAY)
===================================== */

        /* ==============================
   PÉTALOS FLORALES - OVERLAY
============================== */

        .petals-container {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 2;
            /* debajo del texto, encima del fondo */
        }

        .petal {
            position: absolute;
            top: -10%;
            width: 12px;
            height: 12px;
            background: radial-gradient(circle at 30% 30%,
                    #fde8ef 0%,
                    #f1c6d5 55%,
                    #e3a7bb 100%);
            border-radius: 60% 40% 60% 40%;
            opacity: 0.95;
            filter: blur(0.3px);
            animation-name: petalFall;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }

        .petal:nth-child(odd) {
            transform: scale(0.9);
            opacity: 0.55;
        }

        .petal:nth-child(even) {
            transform: scale(1.1);
            opacity: 0.7;
        }


        @keyframes petalFall {
            0% {
                transform: translate(0, -10vh) rotate(0deg);
            }

            25% {
                transform: translate(10px, 25vh) rotate(90deg);
            }

            50% {
                transform: translate(-10px, 55vh) rotate(180deg);
            }

            75% {
                transform: translate(8px, 80vh) rotate(270deg);
            }

            100% {
                transform: translate(-6px, 110vh) rotate(360deg);
            }
        }


        body.night {
            background-color: #2e3440;
        }

        body.night .invitacion-container {
            background-color: #1f232b;
            color: #eaeaea;
        }

        body.night .btn-custom {
            background-color: #bfa27a;
        }

        .pulse-elegant {
            animation: pulseElegant 2.2s ease-in-out infinite;
        }

        @keyframes pulseElegant {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 6px 18px rgba(158, 181, 209, 0.35);
            }

            50% {
                transform: scale(1.06);
                box-shadow: 0 10px 30px rgba(158, 181, 209, 0.55);
            }
        }

        .gold-dust {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
        }

        .gold-dot {
            position: absolute;
            width: 4px;
            height: 4px;
            background: radial-gradient(circle, #f7e7b4, #d4af37);
            border-radius: 50%;
            opacity: 0.65;
            animation: goldFloat linear infinite;
        }

        @keyframes goldFloat {
            from {
                transform: translateY(110vh) scale(0.8);
                opacity: 0;
            }

            20% {
                opacity: 0.4;
            }

            to {
                transform: translateY(-10vh) scale(1.1);
                opacity: 0;
            }
        }

        .text-focus {
            animation: focusText 1.6s ease forwards;
        }

        @keyframes focusText {
            from {
                letter-spacing: 6px;
                opacity: 0;
                filter: blur(3px);
            }

            to {
                letter-spacing: normal;
                opacity: 1;
                filter: blur(0);
            }
        }

        .icon-breath {
            animation: iconBreath 3.5s ease-in-out infinite;
        }

        @keyframes iconBreath {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.85;
            }

            50% {
                transform: scale(1.08);
                opacity: 1;
            }
        }