/* ===== Variables y Reset Global ===== */
:root {
    --primary-color: #8B4B5B;
    --secondary-color: #B8860B;
    --accent-color: #D4A574;
    --dark-color: #2C2C2C;
    --light-color: #FEFCF7;
    --gray-light: #F8F6F0;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-overlay: linear-gradient(135deg, rgba(139, 75, 91, 0.8), rgba(184, 134, 11, 0.6));
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.hearts-loader {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hearts-loader .heart {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    position: relative;
    transform: rotate(-45deg);
    animation: heartbeat 1.2s infinite;
}

.hearts-loader .heart:nth-child(2) {
    animation-delay: 0.2s;
}

.hearts-loader .heart:nth-child(3) {
    animation-delay: 0.4s;
}

.hearts-loader .heart::before,
.hearts-loader .heart::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.hearts-loader .heart::before {
    top: -10px;
    left: 0;
}

.hearts-loader .heart::after {
    left: 10px;
    top: 0;
}

@keyframes heartbeat {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
    }
    50% {
        transform: rotate(-45deg) scale(1.2);
    }
}

.loading-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

/* ===== Navegación Flotante ===== */
.floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(-100%);
}

.floating-nav.show {
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background: url('imagenes/3.jpg') center/cover;
    will-change: transform;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    from {
        transform: translateY(100vh) rotate(0deg);
    }
    to {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.date-day,
.date-month,
.date-year {
    font-weight: 400;
}

.date-separator {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-names {
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    font-weight: 700;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

.name-container {
    position: relative;
    display: inline-block;
    animation: containerFloat 6s ease-in-out infinite;
}

.name-one-container {
    animation-delay: 0s;
}

.name-two-container {
    animation-delay: 1s;
}

.name-one,
.name-two {
    position: relative;
    display: inline-block;
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 30px rgba(212, 175, 55, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: textGlow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.letter {
    display: inline-block;
    animation: letterDance 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.name-one .letter:nth-child(1) { animation-delay: 0.1s; }
.name-one .letter:nth-child(2) { animation-delay: 0.2s; }
.name-one .letter:nth-child(3) { animation-delay: 0.3s; }
.name-one .letter:nth-child(4) { animation-delay: 0.4s; }
.name-one .letter:nth-child(5) { animation-delay: 0.5s; }
.name-one .letter:nth-child(6) { animation-delay: 0.6s; }
.name-one .letter:nth-child(7) { animation-delay: 0.7s; }

.name-two .letter:nth-child(1) { animation-delay: 0.8s; }
.name-two .letter:nth-child(2) { animation-delay: 0.9s; }
.name-two .letter:nth-child(3) { animation-delay: 1.0s; }
.name-two .letter:nth-child(4) { animation-delay: 1.1s; }

.name-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(212, 175, 55, 0.3) 40%,
        transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.ampersand-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ampersand {
    font-size: 4rem;
    font-family: 'Cormorant Garamond', serif;
    color: white;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(212, 175, 55, 0.7),
        0 0 35px rgba(212, 175, 55, 0.5),
        2px 2px 6px rgba(0, 0, 0, 0.6);
    animation: heartBeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.heart-particle {
    position: absolute;
    font-size: 1.5rem;
    animation: heartParticle 3s ease-in-out infinite;
    opacity: 0;
}

.heart-particle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.heart-particle:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.75s;
}

.heart-particle:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
}

.heart-particle:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 2.25s;
}

@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-15px) rotateY(2deg);
    }
    50% {
        transform: translateY(-10px) rotateY(0deg);
    }
    75% {
        transform: translateY(-20px) rotateY(-2deg);
    }
}

@keyframes letterDance {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotateZ(2deg) scale(1.1);
    }
    50% {
        transform: translateY(-15px) rotateZ(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-5px) rotateZ(-2deg) scale(1.08);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(212, 175, 55, 0.6),
            0 0 30px rgba(212, 175, 55, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(212, 175, 55, 0.8),
            0 0 40px rgba(212, 175, 55, 0.6),
            0 0 50px rgba(255, 255, 255, 0.4),
            2px 2px 6px rgba(0, 0, 0, 0.7);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) rotateZ(5deg);
    }
    50% {
        transform: scale(1.1) rotateZ(-3deg);
    }
    75% {
        transform: scale(1.15) rotateZ(2deg);
    }
}

@keyframes heartParticle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-top: -4rem;
}

.scroll-indicator {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== Countdown Flotante ===== */
.floating-countdown {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 4;
}

.countdown-item {
    text-align: center;
    padding: 0 1rem;
}

.count-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    font-family: 'Cormorant Garamond', serif;
}

.count-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    color: white;
}

/* ===== Secciones Generales ===== */
section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.decoration-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.title-decoration i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--dark-color);
    opacity: 0.8;
    margin-top: 1rem;
}

.hacienda-highlight {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.hacienda-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

/* ===== Timeline Interactivo ===== */
.timeline-container {
    position: relative;
    padding: 2rem 0;
    margin: 4rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 2rem 0;
    position: relative;
    width: 50%;
}

.timeline-item.right {
    left: 50%;
    justify-content: flex-start;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    width: 90%;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--dark-color);
    line-height: 1.6;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 2;
}

.timeline-item.left .timeline-icon {
    right: -25px;
    transform: translateY(-50%);
}

.timeline-item.right .timeline-icon {
    left: -25px;
    transform: translateY(-50%);
}

/* ===== Quote Romántico ===== */
.romantic-quote {
    text-align: center;
    padding: 3rem;
    background: var(--gray-light);
    border-radius: 20px;
    margin: 4rem 0;
    position: relative;
}

.romantic-quote i {
    color: var(--secondary-color);
    font-size: 2rem;
    opacity: 0.3;
}

.quote-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 1rem 0;
    line-height: 1.4;
}

/* ===== Event Cards Interactivas ===== */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.event-card {
    position: relative;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    backface-visibility: hidden;
    transition: transform 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg);
    background: var(--gradient-primary);
    color: white;
}

.event-card:hover .card-front {
    transform: rotateY(-180deg);
}

.event-card:hover .card-back {
    transform: rotateY(0);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-back .card-icon {
    color: white;
}

.event-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.card-back .card-time {
    color: white;
}

.card-flip-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: var(--secondary-color);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-map {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Itinerario del Día ===== */
.day-schedule {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 3rem 0;
}

.day-schedule h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.schedule-timeline {
    position: relative;
    padding-left: 3rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-primary);
}

.schedule-item {
    position: relative;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -3rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-5px);
}

.schedule-time {
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 80px;
}

.schedule-event {
    color: var(--dark-color);
}

/* ===== Galería con Filtros ===== */
.gallery-section {
    background: var(--gray-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}


/* ===== GALERÍA PROFESIONAL DINÁMICA ===== */

/* Paleta de colores profesional refinada */
:root {
    --gallery-pearl: #FFFEF7;
    --gallery-cream: #FAF6F0;
    --gallery-champagne: #F4EFE4;
    --gallery-gold: #D4AF37;
    --gallery-rose-gold: #E8C5A0;
    --gallery-warm-gold: #B8860B;
    --gallery-charcoal: #2C2925;
    --gallery-warm-gray: #8B8680;
    --gallery-soft-shadow: rgba(44, 41, 37, 0.08);
    --gallery-hover-shadow: rgba(44, 41, 37, 0.15);
    --gallery-active-shadow: rgba(212, 175, 55, 0.25);
    
    /* Transiciones fluidas */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-swift: all 0.2s ease-out;
}

.professional-gallery-section {
    background: linear-gradient(145deg, var(--gallery-pearl) 0%, var(--gallery-cream) 50%, var(--gallery-champagne) 100%);
    padding: 5rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.professional-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gallery-rose-gold) 25%, 
        var(--gallery-gold) 50%, 
        var(--gallery-rose-gold) 75%, 
        transparent 100%);
    opacity: 0.6;
}

.professional-gallery-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    animation: subtleGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes subtleGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.05); }
}

/* ===== ENCABEZADO ELEGANTE ===== */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: var(--gallery-warm-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.gallery-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gallery-gold) 50%, transparent 100%);
}

.gallery-divider i {
    color: var(--gallery-gold);
    font-size: 1.5rem;
}

/* ===== NAVEGACIÓN ELEGANTE POR PESTAÑAS ===== */
.gallery-nav {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.nav-tabs {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 50px;
    padding: 0.6rem;
    box-shadow: 
        0 12px 40px rgba(44, 41, 37, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.05) 50%,
        rgba(212, 175, 55, 0) 100%);
    border-radius: 50px;
}

.nav-tab {
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    color: var(--gallery-warm-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    z-index: 1;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gallery-gold), var(--gallery-rose-gold));
    border-radius: 40px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.nav-tab:hover {
    color: var(--gallery-charcoal);
    transform: translateY(-2px);
}

.nav-tab:hover::before {
    opacity: 0.1;
}

.nav-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--gallery-gold), var(--gallery-rose-gold));
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nav-tab.active::before {
    opacity: 0;
}

.nav-tab i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.nav-tab.active i {
    transform: scale(1.1);
}

/* Animación de cambio suave */
.nav-tab.switching {
    transform: scale(0.95);
    opacity: 0.7;
}

/* ===== LOADING STATES ELEGANTES ===== */
.gallery-loading {
    text-align: center;
    padding: 6rem 0;
    color: var(--gallery-warm-gray);
    position: relative;
}

.gallery-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: loadingGlow 2s ease-in-out infinite alternate;
}

@keyframes loadingGlow {
    from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.spinner-ring {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gallery-gold), var(--gallery-rose-gold));
    animation: elegantPulse 1.8s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.spinner-ring:nth-child(1) { animation-delay: 0s; }
.spinner-ring:nth-child(2) { animation-delay: 0.3s; }
.spinner-ring:nth-child(3) { animation-delay: 0.6s; }

@keyframes elegantPulse {
    0%, 60%, 100% { 
        transform: scale(0.8) translateY(0); 
        opacity: 0.4; 
        box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    }
    30% { 
        transform: scale(1.2) translateY(-8px); 
        opacity: 1; 
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Loading overlay para transiciones suaves */
.gallery-transition-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.gallery-transition-loading.active {
    opacity: 1;
    visibility: visible;
}

.transition-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid var(--gallery-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estado de carga de imágenes individuales */
.image-skeleton {
    background: linear-gradient(
        90deg,
        var(--gallery-cream) 0%,
        var(--gallery-champagne) 50%,
        var(--gallery-cream) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.masonry-item.loading .item-image {
    opacity: 0;
}

.masonry-item.loading::after {
    opacity: 0;
}

/* Indicador discreto de progreso */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gallery-gold), var(--gallery-rose-gold));
    z-index: 10001;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== INFORMACIÓN DE CATEGORÍA ===== */
.category-info {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.category-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--gallery-charcoal);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--gallery-warm-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.category-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gallery-warm-gray);
}

.category-stats .divider {
    opacity: 0.5;
}

/* ===== GRID MASONRY TIPO PINTEREST ===== */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding: 1rem;
}

.masonry-item {
    background: var(--gallery-pearl);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.1);
    transform-origin: center;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.masonry-item:hover {
    transform: translateY(-25px) scale(1.08) rotateY(8deg) rotateX(5deg);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(212, 175, 55, 0.4),
        0 8px 20px rgba(232, 197, 160, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--gallery-rose-gold);
    z-index: 100;
}

/* Overlay dorado elegante */
.masonry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.03) 40%,
        rgba(232, 197, 160, 0.06) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
    border-radius: 16px;
}

.masonry-item:hover::before {
    opacity: 1;
}

/* Tamaños uniformes y centrados */
.masonry-item.size-small .item-image { 
    height: 220px; 
    object-fit: contain;
    background: var(--gallery-pearl);
}
.masonry-item.size-medium .item-image { 
    height: 280px; 
    object-fit: contain;
    background: var(--gallery-pearl);
}
.masonry-item.size-large .item-image { 
    height: 350px; 
    object-fit: contain;
    background: var(--gallery-pearl);
}

/* Algunos items destacados más grandes */
.masonry-item.featured {
    border: 2px solid var(--gallery-rose-gold);
    box-shadow: 0 4px 20px var(--gallery-active-shadow);
}

.masonry-item.featured .item-image {
    height: 320px;
    object-fit: contain;
    background: var(--gallery-pearl);
}

.masonry-item.featured::after {
    content: '✨';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
    z-index: 3;
    background: var(--gallery-gold);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.item-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    filter: brightness(1) saturate(1) contrast(1);
    transform-origin: center;
    border-radius: 18px;
    background: var(--gallery-pearl);
}

.masonry-item:hover .item-image {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.2) saturate(1.3) contrast(1.1) hue-rotate(5deg);
}

/* Overlay sofisticado con glassmorphism */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(44, 41, 37, 0.1) 20%,
        rgba(44, 41, 37, 0.6) 60%,
        rgba(44, 41, 37, 0.9) 100%
    );
    backdrop-filter: blur(8px);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.masonry-item:hover .item-overlay {
    transform: translateY(0);
}

/* Overlay alternativo para items grandes */
.masonry-item.featured .item-overlay,
.masonry-item.size-tall .item-overlay {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(44, 41, 37, 0.4) 40%,
        rgba(44, 41, 37, 0.9) 100%
    );
}

.item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.item-category {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.item-category::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 30px;
    height: 1px;
    background: var(--gallery-gold);
    opacity: 0.6;
}

/* Efecto de brillo mejorado al hover */
.masonry-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 240%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 20%,
        rgba(255, 255, 255, 0.05) 35%,
        rgba(212, 175, 55, 0.15) 50%,
        rgba(255, 255, 255, 0.3) 65%,
        transparent 80%
    );
    transform: rotate(-45deg) scale(0.8);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    z-index: 3;
    animation: shimmer 3s ease-in-out infinite;
}

.masonry-item:hover::after {
    opacity: 1;
    transform: rotate(-45deg) translate(120%, 50%) scale(1);
    animation: sparkle 0.8s ease-out forwards;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

@keyframes sparkle {
    0% { transform: rotate(-45deg) translate(0%, 0%) scale(0.8); opacity: 0; }
    50% { transform: rotate(-45deg) translate(60%, 25%) scale(1.1); opacity: 1; }
    100% { transform: rotate(-45deg) translate(120%, 50%) scale(1); opacity: 0.7; }
}

/* ===== BOTÓN CARGAR MÁS ===== */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-rose-gold) 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== MODAL/LIGHTBOX PREMIUM ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 41, 37, 0.95) 0%,
        rgba(44, 41, 37, 0.98) 50%,
        rgba(44, 41, 37, 0.95) 100%
    );
    backdrop-filter: blur(12px);
    animation: modalBackdropFade 0.4s ease-out;
}

@keyframes modalBackdropFade {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

.modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    background: var(--gallery-pearl);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(44, 41, 37, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1;
    transform: scale(0.9);
    transition: var(--transition-bounce);
}

.image-modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(44, 41, 37, 0.9), rgba(44, 41, 37, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--gallery-gold), var(--gallery-warm-gold));
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gallery-cream), var(--gallery-champagne));
    width: 100%;
    height: 70vh;
    overflow: visible;
    border-radius: 20px 20px 0 0;
    padding: 1rem;
}

.modal-image {
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(44, 41, 37, 0.15);
}

.modal-image:hover {
    transform: scale(1.02);
}

.modal-image.zoomed {
    cursor: zoom-out;
    transform: scale(2);
    transition: var(--transition-smooth);
}

/* Controles de zoom */
.zoom-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background: rgba(44, 41, 37, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    z-index: 4;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-swift);
    font-size: 1rem;
}

.zoom-btn:hover {
    background: var(--gallery-gold);
    border-color: var(--gallery-gold);
    transform: scale(1.1);
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gallery-gold);
    animation: loadingPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingPulse {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

.modal-info {
    padding: 2rem 2.5rem;
    background: linear-gradient(180deg, var(--gallery-pearl), var(--gallery-cream));
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.image-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--gallery-charcoal);
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.image-category {
    color: var(--gallery-warm-gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 300;
    position: relative;
}

.image-category::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gallery-gold), transparent);
}

.image-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.image-counter {
    color: var(--gallery-gold);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Navegación premium */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(44, 41, 37, 0.9), rgba(44, 41, 37, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 4;
    font-size: 1.4rem;
}

.modal-nav:hover {
    background: linear-gradient(135deg, var(--gallery-gold), var(--gallery-warm-gold));
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.modal-prev { 
    left: 1.5rem; 
}
.modal-next { 
    right: 1.5rem; 
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
    background: rgba(44, 41, 37, 0.4);
}

.modal-nav:disabled:hover {
    transform: translateY(-50%);
    box-shadow: none;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.15s; }
.masonry-item:nth-child(3) { animation-delay: 0.2s; }
.masonry-item:nth-child(4) { animation-delay: 0.25s; }
.masonry-item:nth-child(5) { animation-delay: 0.3s; }
.masonry-item:nth-child(6) { animation-delay: 0.35s; }

/* ===== EFECTOS ADICIONALES LLAMATIVOS ===== */

/* Partículas flotantes en cada imagen */
.masonry-item .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
    border-radius: 20px;
}

.masonry-item .floating-particles::before,
.masonry-item .floating-particles::after {
    content: '✨';
    position: absolute;
    color: rgba(212, 175, 55, 0.8);
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.masonry-item .floating-particles::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.masonry-item .floating-particles::after {
    top: 70%;
    right: 20%;
    animation-delay: 2s;
}

.masonry-item:hover .floating-particles::before,
.masonry-item:hover .floating-particles::after {
    opacity: 1;
    animation: sparkleFloat 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 0.6; }
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.8; }
    25% { transform: translateY(-20px) rotate(90deg) scale(1.2); opacity: 1; }
    50% { transform: translateY(-10px) rotate(180deg) scale(0.9); opacity: 0.9; }
    75% { transform: translateY(-25px) rotate(270deg) scale(1.1); opacity: 1; }
}

/* Efecto de pulso en los bordes */
.masonry-item.pulse-effect {
    position: relative;
}

.masonry-item.pulse-effect::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--gallery-gold), 
        var(--gallery-rose-gold), 
        var(--gallery-gold));
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

.masonry-item.pulse-effect:hover::before {
    opacity: 1;
    animation: pulseHover 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

@keyframes pulseHover {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-container {
        max-width: 92vw;
        max-height: 92vh;
    }
    
    .image-container {
        min-height: 65vh;
        max-height: 75vh;
        max-width: 88vw;
    }
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .nav-tabs {
        padding: 0.3rem;
        flex-wrap: wrap;
        gap: 0.2rem;
    }
    
    .nav-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .modal-container {
        max-width: 95vw;
        max-height: 95vh;
        width: auto;
        height: auto;
    }
    
    .image-container {
        height: 60vh;
        width: 100%;
        padding: 0.5rem;
    }
    
    .modal-image {
        max-width: calc(100% - 1rem);
        max-height: calc(100% - 1rem);
    }
    
    .modal-info {
        padding: 1rem 1.5rem;
    }
    
    .image-title {
        font-size: 1.3rem;
    }
    
    .image-category {
        font-size: 0.9rem;
    }
    
    .modal-nav {
        width: 45px;
        height: 45px;
    }
    
    .category-info {
        padding: 1.5rem 1rem;
    }
    
    .category-name {
        font-size: 2rem;
    }
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-view {
    background: white;
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover {
    transform: scale(1.1);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Sección de Ubicación ===== */
.location-section {
    background: white;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.location-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.location-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.location-address {
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.location-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.transport-tips {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
}

.transport-tips h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.transport-tips ul {
    list-style: none;
}

.transport-tips li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transport-tips i {
    color: var(--secondary-color);
}

.interactive-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== Mesa de Regalos ===== */
.gifts-section {
    background: var(--gray-light);
}

.gifts-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gift-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gift-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gift-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gift-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.gift-card p {
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.btn-gift {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Modal de Regalo ===== */
.gift-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.gift-modal.show {
    display: flex;
}

.gift-modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.gift-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-color);
    transition: var(--transition);
}

.gift-modal-close:hover {
    transform: scale(1.2);
}

/* ===== Formulario RSVP ===== */
.rsvp-section {
    background: white;
}

.rsvp-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.confirmation-message {
    text-align: center;
    padding: 3rem;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    margin-top: 2rem;
}

.confirmation-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-names {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-names i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-hashtag {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== WhatsApp Flotante ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: var(--transition);
    z-index: 100;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-names {
        font-size: 4rem;
    }
    
    .ampersand {
        font-size: 3rem;
    }
    
    .heart-burst {
        width: 80px;
        height: 80px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-names {
        font-size: 3rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .ampersand-container {
        order: 2;
        margin: 15px 0;
    }
    
    .name-one-container {
        order: 1;
    }
    
    .name-two-container {
        order: 3;
    }
    
    .ampersand {
        font-size: 2.5rem;
    }
    
    .heart-burst {
        width: 60px;
        height: 60px;
    }
    
    .heart-particle {
        font-size: 1rem;
    }
    
    .floating-countdown {
        top: auto;
        bottom: 5rem;
        right: 50%;
        transform: translateX(50%);
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3rem;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-line {
        left: 0;
    }
    
    .timeline-item .timeline-icon {
        left: -25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .event-cards {
        grid-template-columns: 1fr;
    }
    
    .gifts-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-names {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ampersand {
        font-size: 2rem;
    }
    
    .heart-burst {
        width: 50px;
        height: 50px;
    }
    
    .heart-particle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        padding: 0 0.5rem;
    }
    
    .count-number {
        font-size: 1.5rem;
    }
    
    .floating-countdown {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    /* ===== FIX PARA CÍRCULOS CORTADOS EN MÓVIL ===== */
    
    /* Premium Countdown Mobile - Evitar círculos cortados */
    .premium-countdown-section {
        padding: 2rem 0.5rem !important;
        overflow: visible !important;
    }
    
    .premium-countdown-container {
        padding: 0 1rem !important;
        overflow: visible !important;
        max-width: 100% !important;
    }
    
    .premium-countdown-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 1rem 1.5rem !important;
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        padding: 1rem !important;
        overflow: visible !important;
        justify-items: center !important;
        align-items: center !important;
    }
    
    .premium-time-unit {
        width: 140px !important;
        height: auto !important;
        padding: 20px 10px 25px 10px !important;
        margin: 5px auto !important;
        transform: scale(0.75) !important;
        overflow: visible !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    
    .progress-ring {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 10px auto !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .progress-ring svg {
        width: 100px !important;
        height: 100px !important;
        overflow: visible !important;
    }
    
    .progress-ring circle {
        cx: 50px !important;
        cy: 50px !important;
        r: 40px !important;
        stroke-width: 6px !important;
    }
    
    .ring-content {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100px !important;
        height: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .premium-number {
        font-size: 1.3rem !important;
        line-height: 1 !important;
        font-weight: bold !important;
    }
    
    .premium-label {
        font-size: 0.8rem !important;
        margin-top: 8px !important;
        text-align: center !important;
    }
    
    .premium-countdown-title h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .premium-countdown-title p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

/* ===== FIX PARA TABLET (768px) ===== */
@media (max-width: 768px) and (min-width: 481px) {
    .premium-countdown-section {
        padding: 3rem 1rem !important;
        overflow: visible !important;
    }
    
    .premium-countdown-container {
        padding: 0 1.5rem !important;
        overflow: visible !important;
    }
    
    .premium-countdown-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 1.5rem !important;
        overflow: visible !important;
    }
    
    .premium-time-unit {
        width: 200px !important;
        padding: 30px 20px 40px 20px !important;
        margin: 15px auto !important;
        transform: scale(0.9) !important;
        overflow: visible !important;
    }
    
    .progress-ring {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto 15px auto !important;
        overflow: visible !important;
    }
    
    .progress-ring svg {
        width: 120px !important;
        height: 120px !important;
        overflow: visible !important;
    }
    
    .progress-ring circle {
        cx: 60px !important;
        cy: 60px !important;
        r: 50px !important;
        stroke-width: 8px !important;
    }
    
    .ring-content {
        width: 120px !important;
        height: 120px !important;
    }
    
    .premium-number {
        font-size: 1.6rem !important;
    }
    
    .premium-label {
        font-size: 0.9rem !important;
        margin-top: 10px !important;
    }
}

/* ===== REGLAS GENERALES PARA EVITAR CORTES ===== */
/* Aplicar a todos los tamaños para prevenir problemas */

.premium-countdown-section,
.premium-countdown-container,
.premium-countdown-grid,
.premium-time-unit {
    overflow: visible !important;
}

.progress-ring svg {
    overflow: visible !important;
}

/* Asegurar que los contenedores padre no corten elementos */
@media (max-width: 768px) {
    body, section {
        overflow-x: visible !important;
    }
    
    .container {
        overflow: visible !important;
    }
}

/* ===== Fixes específicos por navegador ===== */
.chrome-browser .hero-names {
    will-change: transform;
    transform: translateZ(0);
}

.chrome-browser .premium-countdown-grid {
    will-change: transform;
    transform: translateZ(0);
}

.firefox-browser video {
    /* Firefox maneja mejor sin muted por defecto */
}

/* Fallbacks para navegadores sin soporte de custom properties */
@supports not (color: var(--primary-color)) {
    :root {
        --primary-color: #8B4B5B;
        --secondary-color: #B8860B;
        --accent-color: #D4A574;
    }
}

/* ===== Animaciones Adicionales ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Utilidades ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* ===== Video Sections ===== */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff 0%, var(--gray-light) 100%);
    position: relative;
}

.video-section.historia-video {
    background: linear-gradient(135deg, var(--gray-light) 0%, #fff 100%);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wedding-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 450px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    background: #000;
    cursor: pointer;
    transition: var(--transition);
}

.wedding-video:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* Mobile video optimizations */
@media (max-width: 768px) {
    .wedding-video {
        border-radius: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    
    .wedding-video:fullscreen {
        object-fit: contain;
        background: #000;
    }
    
    .wedding-video:-webkit-full-screen {
        object-fit: contain;
        background: #000;
    }
    
    .wedding-video:-moz-full-screen {
        object-fit: contain;
        background: #000;
    }
    
    .wedding-video:-ms-fullscreen {
        object-fit: contain;
        background: #000;
    }
}

.video-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--primary-color);
    font-size: 14px;
}

@media (max-width: 768px) {
    .video-container {
        padding: 10px;
    }
    
    .video-section {
        padding: 60px 0;
    }
}

/* ===== Location Section Styles ===== */
.location-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--gray-light) 50%, var(--light-color) 100%);
    position: relative;
    overflow: hidden;
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 75, 91, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.address-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.address-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.address-details h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.address-details p {
    color: var(--dark-color);
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(139, 75, 91, 0.1);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.date-info i {
    font-size: 16px;
}

.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    opacity: 0.8;
}

.nav-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-btn i {
    font-size: 14px;
}

.nav-btn.google-maps {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    border: 1px solid rgba(66, 133, 244, 0.2);
}

.nav-btn.google-maps:hover {
    background: rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.3);
}

.nav-btn.waze {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-btn.waze:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.nav-btn.calendar {
    background: var(--gradient-primary);
    color: white;
}

.nav-btn.calendar:hover {
    background: linear-gradient(135deg, #7a4052, #a0740a);
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    pointer-events: none;
}

.location-marker {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Calendar Modal Styles */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calendar-modal.show {
    opacity: 1;
    visibility: visible;
}

.calendar-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.calendar-modal.show .calendar-modal-content {
    transform: scale(1);
}

.calendar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px 20px 0 0;
}

.calendar-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.calendar-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-modal-body {
    padding: 30px;
}

.calendar-modal-body p {
    margin: 0 0 20px 0;
    color: var(--dark-color);
    font-size: 16px;
}

.calendar-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.calendar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #eee;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.calendar-option:hover {
    border-color: var(--primary-color);
    background: rgba(139, 75, 91, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.calendar-option i {
    font-size: 20px;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .address-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .navigation-buttons {
        margin-top: 20px;
    }
    
    .calendar-options {
        grid-template-columns: 1fr;
    }
    
    .calendar-modal-content {
        width: 95%;
    }
    
    .calendar-modal-header {
        padding: 20px;
    }
    
    .calendar-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .location-section {
        padding: 60px 0;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .address-details h3 {
        font-size: 20px;
    }
    
    .location-marker {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===== Music Control Styles ===== */
.music-control-section {
    padding: 20px 0;
    background: transparent;
    position: relative;
    text-align: center;
}

.music-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 75, 91, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.music-toggle-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 75, 91, 0.3);
}

.music-toggle-btn i {
    font-size: 12px;
    transition: var(--transition);
}

.music-toggle-btn.paused {
    background: rgba(139, 75, 91, 0.1);
    border-color: rgba(139, 75, 91, 0.3);
}

.music-toggle-btn.paused i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .music-control-section {
        padding: 15px 0;
    }
    
    .music-toggle-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .music-toggle-btn i {
        font-size: 11px;
    }
}

/* Premium Countdown Styles */
.premium-countdown-section {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(232, 197, 160, 0.15) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(232, 197, 160, 0.15) 75%, 
        rgba(212, 175, 55, 0.1) 100%);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.countdown-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.heart {
    position: absolute;
    font-size: 24px;
    opacity: 0.7;
    animation: floatHeart 15s infinite linear;
}

.heart-1 { left: 10%; animation-delay: 0s; }
.heart-2 { left: 25%; animation-delay: 3s; }
.heart-3 { left: 40%; animation-delay: 6s; }
.heart-4 { left: 55%; animation-delay: 9s; }
.heart-5 { left: 70%; animation-delay: 12s; }

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    font-size: 16px;
    color: var(--accent-color);
    animation: sparkleFloat 12s infinite;
}

.sparkle-1 { left: 20%; top: 20%; animation-delay: 0s; }
.sparkle-2 { left: 80%; top: 30%; animation-delay: 2s; }
.sparkle-3 { left: 15%; top: 60%; animation-delay: 4s; }
.sparkle-4 { left: 85%; top: 70%; animation-delay: 6s; }
.sparkle-5 { left: 50%; top: 10%; animation-delay: 8s; }

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.premium-countdown-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.premium-countdown-title {
    text-align: center;
    margin-bottom: 60px;
}

.premium-countdown-title p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    color: var(--secondary-color);
    margin: 10px 0 0 0;
}

.premium-countdown-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
    }
}

.premium-countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}


.premium-time-unit:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 30px rgba(212, 175, 55, 0.3);
}

.premium-time-unit:nth-child(1) { animation-delay: 0s; }
.premium-time-unit:nth-child(2) { animation-delay: 1s; }
.premium-time-unit:nth-child(3) { animation-delay: 2s; }
.premium-time-unit:nth-child(4) { animation-delay: 3s; }

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.progress-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.ring-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.premium-time-unit {
    text-align: center;
    position: relative;
    padding: 30px 20px 50px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFloat 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(212, 175, 55, 0.2);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease-in-out;
    animation: pulseRing 2s ease-in-out infinite;
}

.days-fill,
.hours-fill,
.minutes-fill,
.seconds-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease-in-out;
}

@keyframes pulseRing {
    0%, 100% {
        stroke-width: 8;
        opacity: 1;
    }
    50% {
        stroke-width: 12;
        opacity: 0.8;
    }
}

.premium-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0 5px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.premium-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 15px 0 0 0;
}

@media (max-width: 768px) {
    .premium-countdown-section {
        padding: 60px 0;
    }
    
    .premium-countdown-title h2 {
        font-size: 2.5em;
    }
    
    .premium-countdown-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
        max-width: 300px;
        margin: 0 auto;
    }

    .premium-countdown-grid .premium-time-unit:nth-child(1),
    .premium-countdown-grid .premium-time-unit:nth-child(2) {
        flex: 1 1 45%;
    }

    .premium-countdown-grid .premium-time-unit:nth-child(3),
    .premium-countdown-grid .premium-time-unit:nth-child(4) {
        flex: 1 1 45%;
    }
    
    .premium-time-unit {
        padding: 20px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .premium-number {
        font-size: 2em;
    }
    
    .premium-label {
        font-size: 0.9em;
    }
    
    .heart {
        font-size: 18px;
    }
    
    .sparkle {
        font-size: 12px;
    }
}