/* Custom Styles for GOG Logística */

/* Font Family */
body {
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
.imglogo{
    width: 5%;
}
/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

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

.animate-slide-in {
    animation: slideIn 0.8s ease-out;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Nav Link Active State */
.nav-link {
    position: relative;
}

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

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

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Form Input Focus */
input:focus,
textarea:focus {
    outline: none;
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

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

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    nav,
    #scrollToTop,
    #cookieBanner {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gradient-to-br {
        background: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Gallery Styles */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    scroll-snap-align: start;
}

#galleryContainer {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Gallery Hover Effects */
.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Styles */
#imageModal {
    backdrop-filter: blur(10px);
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Zoom Effect for Modal Image */
.modal-image-zoom {
    animation: zoomIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Zoom Out Animation */
.modal-image-zoom-out {
    animation: zoomOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
}

/* Image Hover Zoom Effect in Gallery */
.gallery-item img {
    cursor: zoom-in;
}

/* Smooth transitions */
#modalImage {
    transition: transform 0.3s ease-out;
}

#modalImage:hover {
    transform: scale(1.05);
}

/* Loading state for modal image */
#modalImage.loading {
    opacity: 0.5;
}

/* Smooth Scroll for Gallery */
#galleryContainer {
    scroll-behavior: smooth;
}

/* Bookings Modal Styles */
#bookingsModal {
    animation: fadeInModal 0.3s ease-out;
}

#bookingsModal form input[type="text"],
#bookingsModal form input[type="email"],
#bookingsModal form input[type="tel"],
#bookingsModal form select,
#bookingsModal form textarea {
    transition: all 0.3s ease;
}

#bookingsModal form input:focus,
#bookingsModal form select:focus,
#bookingsModal form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Flatpickr Customization */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
    background: #2563eb;
    border-color: #2563eb;
}

.flatpickr-day.selected:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
    background: #f3f4f6;
}

