/* Custom Styles & Animations */
body {
    background-color: #FAF7F2;
    color: #5A4634;
}

/* Fade In Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #C8A88E;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #FAF7F2;
    border: 2px solid #C8A88E;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background-color: #C8A88E;
    transform: translate(-50%, -50%) scale(1.3);
}

.timeline-col {
    width: 50%;
    display: flex;
    align-items: center;
}

/* Audio Player Floating Button */
#audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #C8A88E;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 50;
    transition: transform 0.2s;
}

#audio-control:hover {
    transform: scale(1.1);
}

.spin {
    animation: spin 4s linear infinite;
}

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

/* Section Divider Styles */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
    padding: 0 2rem;
    max-width: 600px;
    width: 100%;
}

@media (min-width: 768px) {
    .section-divider {
        margin: 5rem auto;
    }
}

.section-divider::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, rgba(200, 168, 142, 0.8), transparent);
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(200, 168, 142, 0.8), transparent);
}

.section-divider-icon {
    margin: 0 1.5rem;
    color: #C8A88E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-divider-dot {
    width: 5px;
    height: 5px;
    background-color: #C8A88E;
    border-radius: 50%;
    opacity: 0.6;
}

/* Dialog animation styles using modern standard entry/exit transitions */
dialog#rsvp-modal {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), display 0.35s allow-discrete;
}

dialog#rsvp-modal[open] {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@starting-style {
    dialog#rsvp-modal[open] {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

dialog#rsvp-modal::backdrop {
    background-color: rgba(90, 70, 52, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease, display 0.35s allow-discrete;
}

dialog#rsvp-modal[open]::backdrop {
    background-color: rgba(90, 70, 52, 0.45);
    backdrop-filter: blur(8px);
}

@starting-style {
    dialog#rsvp-modal[open]::backdrop {
        background-color: rgba(90, 70, 52, 0);
        backdrop-filter: blur(0px);
    }
}

/* Animation helper */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.first-letter {
     font-family: "Ms Madi", cursive;
  font-weight: 400;
  font-style: normal;
}

.demas {
    font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Animación de Brillo para el logotipo */
@keyframes logo-brillo {
    0%, 100% {
        filter: drop-shadow(0 0 0px rgba(200, 168, 142, 0)) brightness(1);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(200, 168, 142, 0.6)) brightness(1.15);
        transform: scale(1.02);
    }
}

.animate-brillo {
    animation: logo-brillo 3.5s infinite ease-in-out;
    transition: filter 0.3s ease, transform 0.3s ease;
}