/* Custom styles for El Rincón Botanero */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom font loading */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/playfairdisplay/v28/nuFiD-vYK_YHW1IkSazT.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2') format('woff2');
}

/* Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magazine-style asymmetric grid */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #C06C54;
    border-radius: 4px;
}

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

/* Image frame effect */
.image-frame {
    position: relative;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(192, 108, 84, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Decorative line */
.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #C06C54, transparent);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #C06C54 0%, #A85A42 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 108, 84, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 108, 84, 0.4);
}

.btn-secondary {
    border: 2px solid #C06C54;
    color: #C06C54;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #C06C54;
    color: white;
}

/* Navigation link underline effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #C06C54;
    transition: width 0.3s ease;
}

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

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(to right, 
        rgba(253, 248, 246, 0.95) 0%, 
        rgba(253, 248, 246, 0.85) 40%, 
        rgba(253, 248, 246, 0) 70%);
}

/* Text shadow for hero */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        transition: none;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #C06C54;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .btn-primary,
    .btn-secondary {
        background: #C06C54 !important;
        color: white !important;
    }
}
