* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: radial-gradient(circle at top right, #f5e6d3 0%, #e8d4c0 50%, #d4b5a0 100%);
    overflow-x: hidden;
    color: #4a4a4a;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 165, 165, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(248, 200, 220, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 212, 229, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.frame-border-container {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 3px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, 
            #d4a5a5 0%, 
            #f8c8dc 25%,
            #ffd4e5 50%,
            #f8c8dc 75%,
            #d4a5a5 100%
        ) border-box;
    border-radius: 5px;
    box-shadow: 
        0 0 30px rgba(212, 165, 165, 0.3),
        inset 0 0 20px rgba(212, 165, 165, 0.1);
}

.corner-ornament {
    position: absolute;
    width: 180px;
    height: 180px;
    pointer-events: none;
}

.corner-ornament.top-left {
    top: -5px;
    left: -5px;
}

.corner-ornament.top-right {
    top: -5px;
    right: -5px;
    transform: scaleX(-1);
}

.corner-ornament.bottom-left {
    bottom: -5px;
    left: -5px;
    transform: scaleY(-1);
}

.corner-ornament.bottom-right {
    bottom: -5px;
    right: -5px;
    transform: scale(-1, -1);
}

.floating-frame-flowers {
    position: fixed;
    pointer-events: none;
    z-index: 2;
    animation: float-gentle 6s ease-in-out infinite;
}

.frame-flower-1 {
    top: 15%;
    left: 5%;
    font-size: 40px;
    animation-delay: 0s;
}

.frame-flower-2 {
    top: 20%;
    right: 8%;
    font-size: 35px;
    animation-delay: 1s;
}

.frame-flower-3 {
    bottom: 25%;
    left: 7%;
    font-size: 45px;
    animation-delay: 2s;
}

.frame-flower-4 {
    bottom: 30%;
    right: 6%;
    font-size: 38px;
    animation-delay: 3s;
}

.frame-flower-5 {
    top: 50%;
    left: 3%;
    font-size: 30px;
    animation-delay: 1.5s;
}

.frame-flower-6 {
    top: 60%;
    right: 4%;
    font-size: 33px;
    animation-delay: 2.5s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.decorative-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 165, 165, 0.5) 20%, 
        rgba(212, 165, 165, 0.8) 50%, 
        rgba(212, 165, 165, 0.5) 80%, 
        transparent 100%);
}

.decorative-line.top {
    top: 25px;
    left: 15%;
    right: 15%;
}

.decorative-line.bottom {
    bottom: 25px;
    left: 15%;
    right: 15%;
}

.main-content {
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf7 100%);
    margin: 30px;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.15),
        0 10px 40px rgba(212, 165, 165, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    min-height: calc(100vh - 60px);
}

.scroll-progress {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #d4a5a5 0%, #f8c8dc 50%, #d4a5a5 100%);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 15px rgba(212, 165, 165, 0.6);
    border-radius: 2px;
}

.music-control {
    position: fixed;
    top: 40px;
    right: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 250, 0.95) 100%);
    border: 2px solid rgba(212, 165, 165, 0.3);
    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, 165, 165, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    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, 165, 165, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.15);
}

.music-control.playing {
    animation: pulse-music 2s ease-in-out infinite;
    border-color: rgba(212, 165, 165, 0.6);
}

@keyframes pulse-music {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 8px 25px rgba(212, 165, 165, 0.4),
            0 2px 10px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: scale(1.12);
        box-shadow: 
            0 12px 35px rgba(212, 165, 165, 0.6),
            0 4px 15px rgba(0, 0, 0, 0.15);
    }
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(212, 165, 165, 0.35), rgba(248, 200, 220, 0.35)),
                url('https://images.unsplash.com/photo-1470337458703-46ad1756a187?w=1200') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    padding: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-section::after {
    content: '✿';
    position: absolute;
    font-size: 300px;
    color: rgba(255, 255, 255, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-slow 40s linear infinite;
}

@keyframes rotate-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.personal-invitation {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease 0.2s forwards;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.invitation-label {
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,212,229,1), rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.invitado-nombre {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
    color: #ffd4e5;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}

.invitado-nombre::before,
.invitado-nombre::after {
    content: '❀';
    position: absolute;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.invitado-nombre::before {
    left: -40px;
}

.invitado-nombre::after {
    right: -40px;
}

.hero-ornament {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
    opacity: 0;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 1.5s ease forwards, rotate-ornament 20s linear infinite 2s;
    position: relative;
    z-index: 2;
}

@keyframes rotate-ornament {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-invitation {
    font-size: 18px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.3s forwards;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 110px;
    margin: 25px 0;
    text-shadow: 
        4px 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 212, 229, 0.5);
    opacity: 0;
    animation: fadeInScale 1.5s ease 0.6s forwards, floatNames 4s ease-in-out 2s infinite;
    position: relative;
    z-index: 2;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatNames {
    0%, 100% {
        transform: translateY(0px) scale(1);
        text-shadow: 
            4px 4px 20px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(255, 212, 229, 0.5);
    }
    50% {
        transform: translateY(-18px) scale(1.03);
        text-shadow: 
            6px 6px 25px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(255, 212, 229, 0.7);
    }
}

.hero-age {
    font-size: 90px;
    font-weight: 300;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.8s forwards;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', serif;
}

.hero-date {
    font-size: 24px;
    letter-spacing: 4px;
    font-weight: 300;
    margin-top: 25px;
    opacity: 0;
    animation: fadeIn 1.5s ease 1s forwards;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    margin: 30px 0;
    opacity: 0;
    animation: expandWidth 1s ease 1.2s forwards;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1.5s ease 1.5s forwards, bounce 2s infinite 2.5s;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-indicator span {
    font-size: 45px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    display: block;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    }
    50% {
        text-shadow: 
            2px 2px 10px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(212, 165, 165, 0.3), transparent);
}

.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.7;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 25s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 100vh) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translate(40vw, 50vh) scale(1.3) rotate(180deg);
        opacity: 0.5;
    }
    90% {
        opacity: 0.4;
    }
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px 3px rgba(212, 165, 165, 0.9);
    animation: sparkle-anim 4s infinite ease-in-out;
}

@keyframes sparkle-anim {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(2) rotate(180deg);
    }
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 65px;
    text-align: center;
    color: #d4a5a5;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
    position: relative;
    text-shadow: 2px 2px 4px rgba(212, 165, 165, 0.2);
}

.section-title::before {
    content: '❀';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -50px;
    font-size: 30px;
    opacity: 0.5;
    animation: float-gentle 3s ease-in-out infinite;
}

.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);
}

.quote-section {
    background: 
        linear-gradient(135deg, rgba(255, 245, 248, 0.8) 0%, rgba(253, 248, 243, 0.8) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(212,165,165,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.quote-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.6);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(212, 165, 165, 0.2);
    backdrop-filter: blur(10px);
}

.quote-text {
    font-size: 28px;
    line-height: 1.9;
    color: #2c2c2c;
    font-style: italic;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    position: relative;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 60px;
    color: rgba(212, 165, 165, 0.3);
    font-family: 'Playfair Display', serif;
    position: absolute;
    line-height: 0;
}

.quote-text::before {
    top: 20px;
    left: -30px;
}

.quote-text::after {
    bottom: -20px;
    right: -20px;
}

.quote-author {
    font-size: 20px;
    color: #d4a5a5;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s;
}

.quote-section.visible .quote-text {
    opacity: 1;
    transform: translateY(0);
}

.quote-section.visible .quote-author {
    opacity: 1;
    transform: translateY(0);
}

.quote-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 180px;
    color: rgba(212, 165, 165, 0.08);
    z-index: 1;
    font-family: 'Great Vibes', cursive;
    animation: rotate-slow 60s linear infinite;
}

.parents-section {
    background: linear-gradient(180deg, white 0%, #fffbf7 100%);
    text-align: center;
}

.parents-text {
    font-size: 22px;
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #6b6b6b;
    font-style: italic;
}

.parents-names {
    font-size: 32px;
    color: #4a4a4a;
    margin: 15px 0;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: block;
    width: 100%;
}

.parents-names.ampersand {
    font-size: 24px;
    margin: 5px 0;
    font-style: italic;
}

.event-details {
    background: linear-gradient(180deg, #fffbf7 0%, #fdf8f3 100%);
    text-align: center;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.event-card {
    padding: 50px 40px;
    background: linear-gradient(135deg, white 0%, #fffbf7 100%);
    border-radius: 20px;
    box-shadow: 
        0 15px 40px rgba(212, 165, 165, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 165, 0.1);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 165, 0.15), transparent);
    transition: left 0.7s ease;
}

.event-card::after {
    content: '✿';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: rgba(212, 165, 165, 0.1);
    animation: rotate-slow 20s linear infinite;
}

.event-card:hover::before {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(212, 165, 165, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-card .icon {
    font-size: 60px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 10px rgba(212, 165, 165, 0.3));
}

.event-card h3 {
    font-size: 28px;
    color: #d4a5a5;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.event-card p {
    font-size: 19px;
    margin: 12px 0;
    color: #6b6b6b;
}

.event-card .time {
    font-size: 26px;
    font-weight: 600;
    color: #4a4a4a;
    margin: 20px 0;
    font-family: 'Playfair Display', serif;
}

/* SECCIÓN DEL LUGAR - SOLO FOTO */
.venue-section {
    background: linear-gradient(135deg, #fffbf7 0%, #fdf8f3 100%);
    text-align: center;
}

.venue-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(212, 165, 165, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.venue-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 70px rgba(212, 165, 165, 0.4),
        0 12px 35px rgba(0, 0, 0, 0.2);
}

.venue-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.venue-image:hover img {
    transform: scale(1.1);
}

.dress-code-section {
    background: linear-gradient(135deg, white 0%, #fffbf7 100%);
    text-align: center;
}

.dress-code-content {
    max-width: 850px;
    margin: 0 auto;
}

.dress-code-items {
    max-width: 450px;
    margin: 50px auto 0;
}

.dress-code-item {
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 251, 247, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 
        0 15px 40px rgba(212, 165, 165, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 165, 0.15);
}

.dress-code-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.1) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
}

.dress-code-item .icon {
    font-size: 80px;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 15px rgba(212, 165, 165, 0.3));
    position: relative;
    z-index: 2;
}

.dress-code-item h4 {
    font-size: 30px;
    color: #d4a5a5;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
}

.dress-code-item p {
    font-size: 19px;
    color: #6b6b6b;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.gallery-section {
    background: linear-gradient(180deg, #fdf8f3 0%, #fffbf7 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(212, 165, 165, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.5s ease;
    border: 3px solid rgba(212, 165, 165, 0.2);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.3) 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;
    filter: grayscale(5%) brightness(1.05);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(212, 165, 165, 0.35),
        0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 165, 165, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.2);
    filter: grayscale(0%) brightness(1.1);
}

.cta-section {
    background: linear-gradient(135deg, white 0%, #fffbf7 100%);
    text-align: center;
    padding: 120px 20px;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 60px;
}

.btn {
    padding: 20px 55px;
    border: 3px solid #d4a5a5;
    background: transparent;
    color: #d4a5a5;
    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 15px rgba(212, 165, 165, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #d4a5a5;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn::after {
    content: '✦';
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: all 0.4s ease;
}

.btn:hover::before {
    width: 400%;
    height: 400%;
}

.btn:hover::after {
    opacity: 1;
    right: 15px;
}

.btn:hover {
    color: white;
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(212, 165, 165, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #d4a5a5;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a5a5 0%, #c49494 100%);
    color: white;
    border-color: #d4a5a5;
    box-shadow: 
        0 8px 20px rgba(212, 165, 165, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    background: linear-gradient(135deg, #c49494 0%, #b38383 100%);
}

.btn-primary:hover {
    border-color: #c49494;
    box-shadow: 
        0 20px 40px rgba(212, 165, 165, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn.confirmed {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    border-color: #9E9E9E;
    color: white;
    cursor: not-allowed;
}

.btn.confirmed:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(158, 158, 158, 0.3);
}

.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 165, 0.5), transparent);
}

.footer-ornament {
    width: 100px;
    height: 100px;
    margin: 0 auto 35px;
    opacity: 0.9;
    filter: drop-shadow(0 5px 15px rgba(212, 165, 165, 0.3));
    animation: float-gentle 5s ease-in-out infinite;
}

.footer p {
    font-size: 19px;
    margin: 12px 0;
    opacity: 0.95;
}

.footer-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 165, 0.5), transparent);
    margin: 30px auto;
    box-shadow: 0 0 10px rgba(212, 165, 165, 0.3);
}

@media (max-width: 768px) {
    .main-content {
        margin: 20px;
    }

    .corner-ornament {
        width: 120px;
        height: 120px;
    }

    .floating-frame-flowers {
        display: none;
    }

    .music-control {
        top: 30px;
        right: 30px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .hero-names {
        font-size: 70px;
    }

    .hero-age {
        font-size: 70px;
    }

    .section-title {
        font-size: 48px;
    }

    .quote-text {
        font-size: 22px;
    }

    .quote-content {
        padding: 30px;
    }

    .venue-image {
        margin: 0 20px;
    }

    .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: 36px;
    }

    .invitation-label {
        font-size: 17px;
    }

    .invitado-nombre::before,
    .invitado-nombre::after {
        display: none;
    }

    .parents-names {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .parents-names.ampersand {
        font-size: 24px;
        margin: 5px 0;
    }
}

#youtubePlayer {
    display: none;
}