* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f0f0f0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding: 20px;
}

.stars-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent);
    background-size: 200% 200%, 250% 250%, 300% 300%, 180% 180%, 220% 220%, 290% 290%, 240% 240%;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 200px 180px, 90px 230px;
    animation: stars-twinkle 3s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes stars-twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.golden-frame {
    position: fixed;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 4px solid transparent;
    background: 
        linear-gradient(#0f3460, #0f3460) padding-box,
        linear-gradient(45deg, #d4af37 0%, #f4e5c2 25%, #d4af37 50%, #c9a227 75%, #d4af37 100%) border-box;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 
        inset 0 0 20px rgba(212, 175, 55, 0.2),
        0 0 30px rgba(212, 175, 55, 0.3);
}

.golden-corner {
    position: fixed;
    width: 120px; height: 120px;
    border: 3px solid #d4af37;
    pointer-events: none;
    z-index: 1;
}
.golden-corner.top-left { top: 30px; left: 30px; border-right: none; border-bottom: none; }
.golden-corner.top-right { top: 30px; right: 30px; border-left: none; border-bottom: none; }
.golden-corner.bottom-left { bottom: 30px; left: 30px; border-right: none; border-top: none; }
.golden-corner.bottom-right { bottom: 30px; right: 30px; border-left: none; border-top: none; }

.music-control {
    position: fixed; top: 40px; right: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 252, 255, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    width: 65px; height: 65px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; cursor: pointer; z-index: 10001;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.music-control:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-control.playing {
    animation: pulse-music 2s ease-in-out infinite;
    border-color: rgba(212, 175, 55, 0.8);
}

@keyframes pulse-music {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); }
    50% { transform: scale(1.12); box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6); }
}

.main-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(rgba(15, 52, 96, 0.7), rgba(22, 33, 62, 0.8)), url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600') center/cover;
    background-attachment: fixed;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.celebration-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float-icon 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.5));
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 90px;
    color: #fff;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInScale 1.2s ease 0.6s forwards;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 2px 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: 64px;
    color: #d4af37;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.couple-names .name {
    display: inline-block;
}

.couple-names .ampersand {
    display: inline-block;
    font-size: 0.8em;
    opacity: 0.9;
}

.hero-years {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    color: #d4af37;
    font-weight: 700;
    margin: 30px 0;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    color: #f0f0f0;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 30px auto;
    opacity: 0;
    animation: expandWidth 1s ease 1.8s forwards;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

@keyframes expandWidth {
    from { width: 0; opacity: 0; }
    to { width: 120px; opacity: 1; }
}

.content-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(212, 175, 55, 0.08) 100%);
    margin: 60px 0;
    padding: 80px 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    text-align: center;
    color: #d4af37;
    margin-bottom: 50px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.story-text {
    font-size: 20px;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #e0e0e0;
    font-style: italic;
}

/* NUEVA SECCIÓN: FOTO DEL LUGAR */
.venue-section {
    text-align: center;
}

.venue-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.venue-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(212, 175, 55, 0.4);
    transition: all 0.5s ease;
}

.venue-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.7);
}

.venue-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.venue-image:hover img {
    transform: scale(1.05);
}

.venue-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.venue-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

.venue-info p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 15px 0;
}

.venue-feature {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 16px;
}

.venue-feature i {
    font-size: 20px;
    margin-right: 15px;
    color: #d4af37;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.5s ease;
    border: 3px solid rgba(212, 175, 55, 0.3);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.event-details-section {
    text-align: center;
}

.event-info {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.event-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #d4af37;
    margin-bottom: 20px;
    word-wrap: break-word;
    hyphens: auto;
}

.event-info p {
    font-size: 20px;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 10px 0;
    word-wrap: break-word;
}

.event-time {
    font-size: 28px;
    font-weight: 600;
    color: #d4af37;
    margin: 20px 0;
    font-family: 'Cinzel', serif;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 50px;
}

.btn {
    padding: 18px 50px;
    border: 3px solid #d4af37;
    background: transparent;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.5s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: #d4af37;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 400%; height: 400%;
}

.btn:hover {
    color: #0f3460;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #c9a227 100%);
    color: #0f3460;
    border-color: #d4af37;
}

.btn-primary::before {
    background: linear-gradient(135deg, #f4e5c2 0%, #d4af37 100%);
}

.btn.confirmed {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-color: #666;
    color: #fff;
    cursor: not-allowed;
}

.btn.confirmed:hover {
    transform: none;
}

.location-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

@media (max-width: 768px) {
    .hero-title { font-size: 60px; }
    .hero-years { font-size: 36px; }
    .section-title { font-size: 36px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .music-control { top: 30px; right: 30px; width: 55px; height: 55px; font-size: 26px; }
    .golden-corner { width: 80px; height: 80px; }
    .golden-corner.top-left { top: 25px; left: 25px; }
    .golden-corner.top-right { top: 25px; right: 25px; }
    .golden-corner.bottom-left { bottom: 25px; left: 25px; }
    .golden-corner.bottom-right { bottom: 25px; right: 25px; }
    .golden-frame { top: 10px; left: 10px; right: 10px; bottom: 10px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; justify-content: center; }
    
    .couple-names {
        font-size: 48px;
        flex-direction: column;
        gap: 5px;
        line-height: 1.2;
    }
    
    .couple-names .ampersand {
        font-size: 36px;
        margin: 5px 0;
    }
    
    .event-info h3 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .event-info p {
        font-size: 18px;
    }
    
    .event-time {
        font-size: 24px;
    }
    
    .venue-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .venue-info {
        text-align: center;
    }
}

#youtubePlayer { display: none; }