/* Custom styles beyond Tailwind */

body {
    scroll-behavior: smooth;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FDF8F3;
}

::-webkit-scrollbar-thumb {
    background: #E8B4B8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C67B7B;
}

/* Selection color */
::selection {
    background: rgba(198, 123, 123, 0.3);
    color: #2C2C2C;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Video autoplay optimization */
video {
    display: block;
    will-change: transform;
}

video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Ensure video is visible and above other elements */
video.autoplay-ready {
    opacity: 1;
    visibility: visible;
}

/* Button pulse animation on CTA */
@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(198, 123, 123, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(198, 123, 123, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(198, 123, 123, 0);
    }
}

#comprar a[href="#"] {
    animation: pulse-shadow 2s infinite;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* FAQ transitions */
.faq-content {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.faq-content.active {
    max-height: 500px;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

/* Footer icons styling */
footer i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    stroke-width: 2;
}

footer li {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C67B7B;
    outline-offset: 2px;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 100px;
}