/* ============================================
   Javier Núñez Fotografía — Estilos
   ============================================ */

::selection { background: rgba(180, 83, 9, 0.2); color: #18181b; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #fafafa; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 3px; }

/* Image hover zoom */
.img-zoom {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.img-zoom:hover {
    transform: scale(1.06);
}

/* Gallery card - premium hover */
.gallery-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-card:hover {
    transform: translateY(-4px);
}
.gallery-card .overlay {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gallery-card:hover .overlay {
    opacity: 1;
}

/* Masonry */
.masonry { columns: 3; column-gap: 0.75rem; }
.masonry > * { break-inside: avoid; margin-bottom: 0.75rem; }
@media (max-width: 1024px) { .masonry { columns: 2; } }
@media (max-width: 640px) { .masonry { columns: 1; } }

/* Fade in on scroll — con fallback visible si JS no carga */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    animation: fadeInFallback 0.8s ease forwards;
    animation-delay: 0.1s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}
@keyframes fadeInFallback {
    to { opacity: 1; transform: translateY(0); }
}

/* Lightbox */
.lightbox-overlay {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Prose for blog */
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* Blog article card hover */
article.group a:hover h2 { color: #b45309; }

/* Responsive nav improvements */
@media (max-width: 768px) {
    .gallery-card { border-radius: 0.75rem; }
    h1 { font-size: 2rem !important; }
}

/* Smooth page transitions */
main {
    animation: fadeInPage 0.4s ease;
}
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
