* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #f8f5f0;
    overflow-x: hidden;
    color: #4a4a4a;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #c9a86a 0%, #f4e4c1 50%, #c9a86a 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(201, 168, 106, 0.5);
}

.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.music-control.playing {
    animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
                url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1200') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.personal-invitation {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease 0.2s forwards;
    opacity: 0;
}

.invitation-label {
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 10px;
}

.invitado-nombre {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    color: #f4e4c1;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.hero-ornament {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInDown 1.5s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-invitation {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    text-align: center;
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInScale 1.5s ease 0.6s forwards, floatNames 3s ease-in-out 2s infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatNames {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.hero-date {
    font-size: 22px;
    letter-spacing: 3px;
    font-weight: 300;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.9s forwards;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: white;
    margin: 25px 0;
    opacity: 0;
    animation: expandWidth 1s ease 1.2s forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1.5s ease 1.5s forwards, bounce 2s infinite 2.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

.scroll-indicator span {
    font-size: 40px;
    color: white;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
    opacity: 0.6;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(201, 168, 106, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 100vh) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% {
        transform: translate(30vw, 50vh) scale(1.2);
        opacity: 0.4;
    }
    90% {
        opacity: 0.3;
    }
}

.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(201, 168, 106, 0.8);
    animation: sparkle-anim 3s infinite ease-in-out;
}

@keyframes sparkle-anim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 55px;
    text-align: center;
    color: #c9a86a;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.content-section.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.content-section.visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.content-section.visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.content-section.visible .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.content-section.visible .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.content-section.visible .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.content-section.visible .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.content-section.visible .stagger-item:nth-child(6) { transition-delay: 0.6s; }

.zoom-in-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease-out;
}

.content-section.visible .zoom-in-item {
    opacity: 1;
    transform: scale(1);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.content-section.visible .slide-left {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.content-section.visible .slide-right {
    opacity: 1;
    transform: translateX(0);
}

/* SECCIÓN PARA EL LEMA BÍBLICO */
.bible-section {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f5f0 100%);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.bible-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bible-text {
    font-size: 24px;
    line-height: 1.8;
    color: #2c2c2c;
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.bible-verse {
    font-size: 18px;
    color: #c9a86a;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s;
}

.bible-section.visible .bible-text {
    opacity: 1;
    transform: translateY(0);
}

.bible-section.visible .bible-verse {
    opacity: 1;
    transform: translateY(0);
}

.bible-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    color: rgba(201, 168, 106, 0.1);
    z-index: 1;
    font-family: 'Great Vibes', cursive;
}

.parents-section {
    background: #fdfbf7;
    text-align: center;
}

.parents-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.parent-card {
    padding: 30px;
}

.parent-card h3 {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a86a;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.parent-card p {
    font-size: 24px;
    color: #4a4a4a;
    margin: 8px 0;
}

.event-details {
    background: white;
    text-align: center;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.event-card {
    padding: 40px 30px;
    background: #fdfbf7;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.2), transparent);
    transition: left 0.6s ease;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(201, 168, 106, 0.2);
}

.event-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 24px;
    color: #c9a86a;
    margin-bottom: 15px;
    font-weight: 600;
}

.event-card p {
    font-size: 18px;
    margin: 10px 0;
    color: #6b6b6b;
}

.event-card .time {
    font-size: 22px;
    font-weight: 600;
    color: #4a4a4a;
    margin: 15px 0;
}

.venue-section {
    background: #fdfbf7;
}

.venue-image {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.venue-image:hover img {
    transform: scale(1.1);
}

.padrinos-section {
    background: white;
    text-align: center;
}

.padrinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.padrino-card {
    padding: 30px;
    background: #fdfbf7;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.padrino-card h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9a86a;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.padrino-card p {
    font-size: 20px;
    color: #4a4a4a;
}

.gallery-section {
    background: #fdfbf7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(20%);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(201, 168, 106, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: grayscale(0%);
}

.cta-section {
    background: white;
    text-align: center;
    padding: 100px 20px;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.btn {
    padding: 18px 50px;
    border: 2px solid #c9a86a;
    background: transparent;
    color: #c9a86a;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #c9a86a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(201, 168, 106, 0.4);
}

.btn-primary {
    background: #c9a86a;
    color: white;
}

.btn-primary::before {
    background: #b8975a;
}

.btn-primary:hover {
    border-color: #b8975a;
}

.btn.confirmed {
    background: #9E9E9E;
    border-color: #9E9E9E;
    color: white;
    cursor: not-allowed;
}

.btn.confirmed:hover {
    transform: none;
    box-shadow: none;
}

.footer {
    background: #2c2c2c;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.footer-ornament {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    opacity: 0.8;
}

.footer p {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0.9;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 25px auto;
}

@media (max-width: 768px) {
    .hero-names {
        font-size: 50px;
    }

    .section-title {
        font-size: 40px;
    }

    .bible-text {
        font-size: 20px;
    }

    .bible-verse {
        font-size: 16px;
    }

    .event-cards,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .invitado-nombre {
        font-size: 32px;
    }

    .invitation-label {
        font-size: 16px;
    }
}

#youtubePlayer {
    display: none;
}