* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gold: #daa520;
    --light-gold: #f4e5c2;
    --dark-gold: #b8860b;
    --black: #000000;
    --deep-black: #0a0a0a;
    --white: #ffffff;
    --light-gray: #e8e8e8;
}

html { font-size: 16px; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* Efecto de luces colgantes animadas */
.string-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 100;
}

.light-string {
    position: absolute;
    width: 100%;
    height: 100%;
}

.light {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold);
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* Partículas doradas flotantes */
.golden-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(-20px); }
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(218, 165, 32, 0.4));
    border: 3px solid var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.5);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    backdrop-filter: blur(10px);
}

.music-toggle:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.7);
}

.music-toggle.active {
    animation: soundWave 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.4), rgba(218, 165, 32, 0.6));
}

@keyframes soundWave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.08) rotate(5deg); }
    75% { transform: scale(1.08) rotate(-5deg); }
}

.main-wrapper {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
    width: 100%;
}

/* Hero Banner Principal */
.hero-banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(218, 165, 32, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.pre-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
    animation: slideDown 1s ease 0.3s both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-invitation {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--light-gold);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInZoom 1.2s ease 0.6s both;
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 120px;
    color: var(--gold);
    margin: 40px 0;
    line-height: 1.2;
    animation: fadeInScale 1.5s ease 0.9s both;
    text-shadow: 0 0 40px rgba(218, 165, 32, 0.6);
    font-weight: 400;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--white);
    margin: 30px 0;
    animation: slideUp 1s ease 1.2s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.company-name {
    font-family: 'Italiana', serif;
    font-size: 48px;
    color: var(--light-gold);
    margin: 30px 0;
    animation: slideUp 1s ease 1.5s both;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
}

.ornamental-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 40px auto;
    position: relative;
    animation: expandLine 1s ease 1.8s both;
}

.ornamental-line::before,
.ornamental-line::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 12px;
}

.ornamental-line::before { left: -20px; }
.ornamental-line::after { right: -20px; }

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 200px; opacity: 1; }
}

/* Sección de detalles del evento */
.event-details {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: center;
    margin: 80px 0;
    animation: slideUp 1s ease 2.1s both;
}

.detail-box {
    text-align: center;
}

.detail-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 15px;
}

.detail-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.6;
}

.divider {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

/* Content Blocks */
.content-block {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.05), rgba(218, 165, 32, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.3);
    margin: 80px 0;
    padding: 80px 50px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.content-block::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block-heading {
    font-family: 'Italiana', serif;
    font-size: 42px;
    text-align: center;
    color: var(--gold);
    margin-bottom: 50px;
    text-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
}

.message-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--light-gray);
}

/* Ubicación y mapa */
.location-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 60px 0;
}

.location-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border: 3px solid rgba(218, 165, 32, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.location-image:hover img {
    transform: scale(1.1);
}

.location-details {
    padding: 20px;
}

.location-details h3 {
    font-family: 'Italiana', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 30px;
}

.location-details p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--light-gray);
    margin: 15px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 18px;
}

.detail-item i {
    font-size: 24px;
    margin-right: 20px;
    color: var(--gold);
}

/* Galería de momentos memorables */
.gallery-section {
    margin: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    border: 2px solid rgba(218, 165, 32, 0.3);
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(218, 165, 32, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--gold);
    letter-spacing: 2px;
}

.gallery-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
}

.action-btn {
    padding: 20px 55px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 3px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gold);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.action-btn:hover::before {
    width: 500px;
    height: 500px;
}

.action-btn:hover {
    color: var(--black);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.6);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--black);
    position: relative;
    z-index: 1;
}

.action-btn.primary::before {
    background: linear-gradient(135deg, var(--light-gold), var(--gold));
}

.action-btn.confirmed {
    background: #666;
    border-color: #666;
    color: #fff;
    cursor: not-allowed;
}

.action-btn.confirmed:hover {
    transform: none;
}

/* Footer con logo */
.footer-section {
    text-align: center;
    padding: 80px 20px;
    margin-top: 100px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
}

.logo-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 165, 32, 0.05);
    box-shadow: 0 0 40px rgba(218, 165, 32, 0.3);
    overflow: hidden;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.footer-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: var(--light-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Mensaje de estado */
.status-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--gold);
    padding: 15px 30px;
    border: 1px solid var(--gold);
    z-index: 10001;
    font-size: 14px;
    display: none;
    max-width: 90%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

#youtubePlayer { display: none; }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    html { font-size: 14px; }
    
    .main-title { font-size: 90px; }
    
    .event-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .divider { display: none; }
    
    .location-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    html { font-size: 13px; }
    
    .music-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    .main-title { 
        font-size: 70px; 
        margin: 30px 0;
    }
    
    .subtitle {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .company-name {
        font-size: 36px;
    }
    
    .content-block {
        padding: 60px 30px;
        margin: 60px 0;
    }
    
    .block-heading {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .location-image {
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
    }
}

@media (max-width: 480px) {
    html { font-size: 12px; }
    
    .music-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
    
    .main-title { 
        font-size: 55px; 
    }
    
    .subtitle {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .company-name {
        font-size: 28px;
    }
    
    .content-block {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .block-heading {
        font-size: 28px;
    }
    
    .logo-container {
        width: 150px;
        height: 150px;
    }
}