/* ============================================
   RESET Y VARIABLES GLOBALES
   ============================================ */
:root {
    /* Colores principales */
    --parchment: #F5F1E8;
    --gold: #C5A059;
    --dark-gold: #8B6914;
    --emerald: #1B3022;
    --ivory: #FFFDF5;
    --rose: #B76E79;
    --champagne: #F7E7CE;
    --dark-emerald: #0f1f15;
    
    /* Fuentes */
    --font-script: 'Great Vibes', 'Brush Script MT', cursive;
    --font-cursive: 'Dancing Script', 'Brush Script MT', cursive;
    --font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Sombras */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 5px 20px rgba(197, 160, 89, 0.3);
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 1s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2416 100%);
    font-family: var(--font-sans);
    color: var(--emerald);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================
   MENSAJE DE MÚSICA ESPECIAL
   ============================================ */
.music-invitation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 48, 34, 0.95) 0%, rgba(15, 31, 21, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-slow);
    backdrop-filter: blur(5px);
}

.music-invitation.hidden {
    opacity: 0;
    pointer-events: none;
}

.music-invitation-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.music-icon {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.music-invitation h3 {
    font-family: var(--font-cursive);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.music-invitation p {
    color: var(--champagne);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.music-invitation-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-medium);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
}

.music-invitation-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.6);
}

.music-invitation-btn:active {
    transform: scale(0.98);
}

.music-invitation-btn i {
    font-size: 1.8rem;
}

.music-note {
    margin-top: 20px;
    font-size: 0.9rem !important;
    opacity: 0.8;
    font-style: italic;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-emerald);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-heart {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.loader p {
    color: var(--champagne);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.invitation-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--parchment);
    box-shadow: var(--shadow-heavy);
    border-radius: 10px;
    overflow: hidden;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
    position: relative;
}

.invitation-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .invitation-container {
        margin: 10px;
        border-radius: 5px;
    }
}

/* ============================================
   PORTADA
   ============================================ */
.cover {
    height: 100vh;
    min-height: 600px;
    position: relative;
    background: linear-gradient(rgba(27, 48, 34, 0.85), rgba(27, 48, 34, 0.9)), 
                url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.cover-title {
    font-family: var(--font-cursive);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold);
    margin-bottom: 30px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
}

.cover-names {
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--ivory);
    margin: 20px 0;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
    opacity: 0;
    transform: scale(0.8);
}

.cover-date {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 8px;
    color: var(--champagne);
    margin-top: 40px;
    padding: 20px 40px;
    border: 2px solid rgba(197, 160, 89, 0.4);
    display: inline-block;
    background: rgba(27, 48, 34, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
}

/* Corazones flotantes */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    color: var(--rose);
    font-size: 24px;
    opacity: 0;
    animation: floatAnimation 15s linear infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Botón para abrir */
.open-invitation {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--emerald);
    border: 2px solid var(--gold);
    padding: 15px 40px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-medium);
    opacity: 0;
    z-index: 3;
    box-shadow: var(--shadow-gold);
}

.open-invitation:hover {
    background: var(--dark-gold);
    color: white;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
}

.open-invitation:active {
    transform: translateX(-50%) scale(0.98);
}

/* ============================================
   CONTENIDO DE LA INVITACIÓN
   ============================================ */
.invitation-content {
    display: none;
}

/* Títulos de sección */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

/* ============================================
   SECCIÓN DE BIENVENIDA MEJORADA
   ============================================ */
.welcome-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--parchment) 0%, #f8f4e9 100%);
    position: relative;
    overflow: hidden;
}

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Decoraciones florales */
.floral-decoration {
    position: absolute;
    top: 50px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.floral-decoration i {
    display: block;
    color: var(--gold);
    font-size: 2rem;
    margin: 15px 0;
    opacity: 0.7;
    transform: rotate(-45deg);
}

.left-floral {
    left: 20px;
    animation-delay: 0.5s;
}

.right-floral {
    right: 20px;
    animation-delay: 0.7s;
    transform: scaleX(-1);
}

.bottom-decoration {
    text-align: center;
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.bottom-decoration i {
    color: var(--rose);
    font-size: 1.5rem;
    margin: 0 15px;
    animation: float 3s ease-in-out infinite;
}

.bottom-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.bottom-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Contenedor del título */
.title-container {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.title-word {
    display: inline-block;
    font-family: var(--font-cursive);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark-gold);
    margin: 0 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: wordSlideUp 0.8s ease forwards;
}

.title-word-1 { animation-delay: 0.2s; }
.title-word-2 { animation-delay: 0.4s; }
.title-word-3 { animation-delay: 0.6s; }
.title-word-4 { animation-delay: 0.8s; }

@keyframes wordSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-underline {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
    opacity: 0;
    animation: growLine 1s ease 1s forwards;
}

@keyframes growLine {
    from { width: 0; opacity: 0; }
    to { width: 200px; opacity: 1; }
}

/* Imagen de bienvenida */
.welcome-image {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 8px solid var(--gold);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s ease 0.5s forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.welcome-image:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.welcome-image:hover .image-overlay {
    opacity: 1;
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.welcome-image:hover .image-caption {
    opacity: 1;
    transform: translateY(0);
}

.image-caption i {
    color: var(--rose);
    margin-right: 10px;
}

/* Mensaje de bienvenida */
.welcome-message {
    max-width: 800px;
    margin: 60px auto;
}

.message-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(197, 160, 89, 0.1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease 0.8s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-light);
}

.message-content {
    margin-top: 20px;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
}

.intro-text {
    font-size: 1.3rem;
    color: var(--emerald);
    font-style: italic;
    margin-bottom: 40px;
}

/* Cita romántica */
.quote-box {
    background: rgba(247, 231, 206, 0.3);
    border-left: 4px solid var(--gold);
    padding: 25px;
    margin: 40px 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.5;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gold);
    margin-bottom: 10px;
    padding-left: 30px;
    line-height: 1.6;
}

.quote-author {
    text-align: right;
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
}

.story-text {
    margin-top: 40px;
    text-align: justify;
}

.closing-text {
    font-size: 1.2rem;
    color: var(--emerald);
    font-weight: 600;
    margin-top: 40px;
    padding: 20px;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

/* Detalles de la boda */
.wedding-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all var(--transition-medium);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--gold);
}

.detail-item i {
    font-size: 2rem;
    color: var(--gold);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
}

.detail-item h4 {
    font-family: var(--font-serif);
    color: var(--emerald);
    margin-bottom: 5px;
    font-size: 1rem;
}

.detail-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Frase romántica */
.romantic-phrase {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.phrase-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.phrase-text {
    padding: 0 30px;
    font-family: var(--font-cursive);
    font-size: 2rem;
    color: var(--dark-gold);
    text-align: center;
    white-space: nowrap;
}

.phrase-text i {
    margin: 0 15px;
    color: var(--rose);
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Contador de días */
.countdown-container {
    text-align: center;
    margin-top: 60px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(27, 48, 34, 0.05) 0%, rgba(247, 231, 206, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease 1.4s forwards;
    max-width: 100%;
    overflow: hidden;
}

.countdown-container h3 {
    font-family: var(--font-serif);
    color: var(--dark-gold);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 70px;
    max-width: 90px;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: var(--emerald);
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    margin-bottom: 8px;
    border: 2px solid var(--gold);
    padding: 0 5px;
    box-sizing: border-box;
}

.countdown-label {
    font-family: var(--font-serif);
    color: var(--dark-gold);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.countdown-separator {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    height: 60px;
}

.countdown-message {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #666;
    font-style: italic;
    margin-top: 20px;
    padding: 0 10px;
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .countdown-container {
        padding: 25px 15px;
        margin-top: 40px;
    }
    
    .countdown-container h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .countdown {
        gap: 8px;
        margin: 20px 0;
    }
    
    .countdown-item {
        min-width: 60px;
        max-width: 70px;
    }
    
    .countdown-number {
        font-size: 2rem;
        min-width: 50px;
        height: 50px;
        border-radius: 10px;
        margin-bottom: 6px;
    }
    
    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .countdown-message {
        font-size: 0.9rem;
        margin-top: 15px;
    }
}

/* Para tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 80px;
        max-width: 90px;
    }
    
    .countdown-number {
        font-size: 2.8rem;
        min-width: 70px;
        height: 70px;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
        height: 70px;
    }
}

/* Opción alternativa: 2 filas en móviles muy pequeños */
@media (max-width: 360px) {
    .countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .countdown-separator {
        display: none; /* Ocultamos los separadores en esta vista */
    }
    
    .countdown-item {
        min-width: auto;
        max-width: none;
    }
}

/* Opción con diseño compacto */
@media (max-width: 400px) {
    .countdown {
        justify-content: space-around;
    }
    
    .countdown-number {
        min-width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}
/* ============================================
   MEJORAS PARA LA SECCIÓN DEL PROGRAMA
   ============================================ */
.program-section {
    padding: 80px 20px;
    background: var(--ivory);
}

.program-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease 0.5s forwards;
}

.program-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.program-header {
    text-align: center;
    margin-bottom: 50px;
}

.program-icon-header {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.program-header h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--emerald);
    margin-bottom: 10px;
}

.program-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Timeline mejorado con iconos */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gold);
    opacity: 0;
}

.timeline.visible::before {
    opacity: 1;
    transition: opacity 1s ease 0.5s;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
    opacity: 0;
}

.timeline-item:nth-child(odd) {
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.timeline-time {
    flex: 1;
    text-align: center;
    padding: 20px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--dark-gold);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.timeline-time::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--gold);
}

/* Iconos para cada hora específica */
.timeline-item[data-time="15:00"] .timeline-time::before {
    content: '\f0c0'; /* users */
}

.timeline-item[data-time="17:00"] .timeline-time::before {
    content: '\f02d'; /* book */
}

.timeline-item[data-time="18:30"] .timeline-time::before {
    content: '\f030'; /* camera */
}

.timeline-item[data-time="19:30"] .timeline-time::before {
    content: '\f57d'; /* cocktail */
}

.timeline-item[data-time="21:00"] .timeline-time::before {
    content: '\f2e7'; /* utensils */
}

.timeline-item[data-time="23:00"] .timeline-time::before {
    content: '\f001'; /* music */
}

.timeline-content {
    flex: 2;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--gold);
    position: relative;
    transition: all var(--transition-medium);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.timeline-content::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Iconos específicos para cada actividad */
.timeline-item[data-time="15:00"] .timeline-content::before {
    content: '\f0c0'; /* users */
}

.timeline-item[data-time="17:00"] .timeline-content::before {
    content: '\f004'; /* heart */
}

.timeline-item[data-time="18:30"] .timeline-content::before {
    content: '\f302'; /* camera-retro */
}

.timeline-item[data-time="19:30"] .timeline-content::before {
    content: '\f57d'; /* champagne-glass */
}

.timeline-item[data-time="21:00"] .timeline-content::before {
    content: '\f2e7'; /* utensils */
}

.timeline-item[data-time="23:00"] .timeline-content::before {
    content: '\f001'; /* music */
}

.timeline-content h3 {
    font-family: var(--font-serif);
    color: var(--emerald);
    margin-bottom: 10px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
    margin-top: 10px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background: var(--gold);
    border-radius: 50%;
    border: 5px solid var(--ivory);
    z-index: 1;
    transform: translateX(-50%) scale(0);
    transition: transform 0.5s ease 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.timeline-item.visible .timeline-marker {
    transform: translateX(-50%) scale(1);
}

.program-footer {
    margin-top: 50px;
    text-align: center;
}

.program-note {
    background: rgba(197, 160, 89, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.program-note i {
    font-size: 1.5rem;
    color: var(--gold);
}

.program-note p {
    color: #666;
    margin: 0;
    text-align: left;
}

/* ============================================
   GALERÍA
   ============================================ */
.gallery-section {
    padding: 80px 20px;
    background: var(--parchment);
}

.gallery-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.photo-item.visible {
    opacity: 1;
    transform: scale(1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.photo-item:hover::after {
    opacity: 1;
}

.gallery-note {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #666;
    font-style: italic;
}

.gallery-note i {
    color: var(--gold);
    font-size: 1.5rem;
}

/* ============================================
   DETALLES
   ============================================ */
.details-section {
    padding: 80px 20px;
    background: var(--ivory);
}

.details-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-style: italic;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-medium);
}

.detail-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold);
}

.detail-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: inline-block;
    transform: scale(0);
}

.detail-card.visible .detail-icon {
    transform: scale(1);
    transition: transform 0.6s ease 0.2s;
}

.detail-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--emerald);
    margin-bottom: 15px;
}

.detail-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ============================================
   SECCIÓN RSVP MEJORADA
   ============================================ */
.rsvp-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--dark-emerald) 100%);
    color: white;
    text-align: center;
}

.rsvp-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

.rsvp-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.rsvp-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    /* Añade sombra en hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.rsvp-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.rsvp-card:nth-child(1) .rsvp-icon {
    color: #4CAF50; /* Verde para confirmar */
}

.rsvp-card:nth-child(2) .rsvp-icon {
    color: #f44336; /* Rojo para declinar */
}

.rsvp-card:nth-child(3) .rsvp-icon {
    color: #FFC107; /* Amarillo para tal vez */
}

.rsvp-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.rsvp-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    flex-grow: 1;
}

.rsvp-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-medium);
    margin-top: auto;
}

.confirm-btn {
    background: #25D366; /* Verde WhatsApp */
    color: white;
}

.confirm-btn:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.decline-btn {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

.decline-btn:hover {
    background: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

.maybe-btn {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.maybe-btn:hover {
    background: #FFA000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.whatsapp-instructions {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border-left: 4px solid #25D366;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}

.whatsapp-instructions.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 0.3s;
}

.whatsapp-instructions h4 {
    color: #25D366;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-instructions ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.whatsapp-instructions li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.whatsapp-instructions .note {
    background: rgba(37, 211, 102, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #25D366;
    font-style: italic;
    /* Añade margen superior */
    margin-top: 15px;
}

.alternative-contact {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    opacity: 0;
    transform: translateY(30px);
}

.alternative-contact.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 0.6s;
}

.alternative-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-medium);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-btn i {
    font-size: 1.2rem;
}

/* Mensaje de confirmación */
.confirmation-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.confirmation-message.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirmation-message h3 {
    color: var(--emerald);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.confirmation-message p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.confirmation-message .whatsapp-number {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1.2rem;
    color: #333;
    margin: 20px 0;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.confirmation-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.confirmation-actions .btn-primary {
    background: var(--gold);
    color: var(--emerald);
}

.confirmation-actions .btn-primary:hover {
    background: var(--dark-gold);
    color: white;
    transform: translateY(-2px);
}

.confirmation-actions .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.confirmation-actions .btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Overlay para el modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .rsvp-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rsvp-card {
        padding: 30px 20px;
    }
    
    .contact-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 200px;
        justify-content: center;
    }
    
    .confirmation-message {
        padding: 30px 20px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}
/* Footer */
.footer {
    padding: 80px 20px;
    background: var(--dark-emerald);
    color: var(--champagne);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-hearts {
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: scale(0);
}

.footer-hearts.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s ease;
}

.footer-names {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.footer-names.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 0.2s;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}

.footer-text.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 0.4s;
}

.footer-date {
    font-family: var(--font-serif);
    letter-spacing: 5px;
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.footer-date.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease 0.6s;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--champagne);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-credits {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.6;
}

/* ============================================
   REPRODUCTOR DE MÚSICA
   ============================================ */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.music-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--emerald);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

.music-btn.playing {
    animation: pulse 2s infinite;
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    display: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    top: -20px;
    opacity: 0;
    /* Añade bordes redondeados para mejor apariencia */
    border-radius: 2px;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform var(--transition-medium);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: var(--parchment);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.map-link {
    background: var(--gold);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all var(--transition-fast);
}

.map-link:hover {
    background: var(--dark-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .cover {
        min-height: 500px;
    }
    
    .cover-names {
        font-size: clamp(3rem, 8vw, 5rem);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-time {
        flex: 0 0 100px;
        text-align: left;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 200px;
        justify-content: center;
    }
    
    .music-player {
        bottom: 20px;
        right: 20px;
    }
    
    .music-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cover-date {
        padding: 15px 25px;
        letter-spacing: 4px;
    }
    
    .open-invitation {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .rsvp-form {
        padding: 25px 20px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de scroll suave para elementos */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Indicador de campo requerido */
.required::after {
    content: ' *';
    color: var(--rose);
}

/* Mensajes de validación */
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(197, 160, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* Asegúrate de que el botón de música tenga la clase .playing */
.music-btn.playing {
    animation: musicPulse 1.5s infinite;
}
/* Notificación de WhatsApp */
.whatsapp-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10001;
    max-width: 400px;
}

.whatsapp-notification i {
    font-size: 1.5rem;
}

.whatsapp-notification div {
    flex: 1;
}

.whatsapp-notification strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-serif);
}

.whatsapp-notification p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Animaciones para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    /* Añade estos ajustes adicionales */
    
    .whatsapp-notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
    
    .confirmation-message {
        width: 95%;
        padding: 25px 15px;
    }
    
    .whatsapp-number {
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    /* Ajustes adicionales para móviles pequeños */
    
    .rsvp-card {
        padding: 25px 15px;
    }
    
    .rsvp-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .whatsapp-instructions {
        padding: 20px 15px;
    }
    
    .alternative-contact {
        padding: 20px 15px;
    }
}
/* Estilizar scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--parchment);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}
.music-invitation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 48, 34, 0.95) 0%, rgba(15, 31, 21, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-slow);
    backdrop-filter: blur(5px);
}

.music-invitation.hidden {
    opacity: 0;
    pointer-events: none;
}

.music-invitation-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.music-icon {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.music-invitation h3 {
    font-family: var(--font-cursive);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.music-invitation p {
    color: var(--champagne);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.music-invitation-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-medium);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
}

.music-invitation-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.6);
}

.music-invitation-btn:active {
    transform: scale(0.98);
}

.music-invitation-btn i {
    font-size: 1.8rem;
}

.music-note {
    margin-top: 20px;
    font-size: 0.9rem !important;
    opacity: 0.8;
    font-style: italic;
}
.btn-qr {
    background: #C5A059; /* El dorado de tu boda */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-qr:hover {
    background: #a38241;
    transform: scale(1.05);
}

/* Si decides generar el QR, esta clase ayudará a mostrarlo */
.qr-container img {
    max-width: 180px;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}
