/* ===================================
   Custom Styles - eLunch Website
   =================================== */

/* Smooth scrolling behavior */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===================================
   Geometric Pattern Background
   =================================== */

/* Subtle dot pattern for testimonials section */
.pattern-dots {
    background-color: #f9fafb;
    background-image: radial-gradient(#fed7aa 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* Alternative: Grid pattern */
.pattern-grid {
    background-color: #f9fafb;
    background-image: 
        linear-gradient(#fed7aa1a 1px, transparent 1px),
        linear-gradient(90deg, #fed7aa1a 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Alternative: Diagonal lines pattern */
.pattern-lines {
    background-color: #f9fafb;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        #fed7aa15 10px,
        #fed7aa15 11px
    );
}

/* Hide scrollbar for cleaner UI */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================================
   Nosotros Section - Hero Background
   =================================== */

/* Smooth image loading */
#nosotros img {
    transition: opacity 0.5s ease-in-out;
}

/* Enhance small grid images with better shadows on hero background */
#nosotros .grid.grid-cols-2 img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Contact Form Hero Section
   =================================== */

/* Ensure background image covers properly */
#contacto img {
    transition: opacity 0.5s ease-in-out;
}

/* Enhanced overlay for mobile - darker for better readability */
@media (max-width: 1023px) {
    #contacto .bg-gradient-to-r {
        background: linear-gradient(
            to bottom,
            rgba(17, 24, 39, 0.90) 0%,
            rgba(17, 24, 39, 0.85) 50%,
            rgba(17, 24, 39, 0.80) 100%
        ) !important;
    }
}

/* Ensure form card stands out on all devices */
#contacto .bg-white {
    position: relative;
    z-index: 2;
}

/* ===================================
   Testimonials Carousel Styles
   =================================== */

/* Testimonials track container */
.testimonials-track {
    position: relative;
    width: 100%;
    min-height: 400px;
}

/* Individual testimonial slides */
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

/* Active slide - visible */
.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Fade out animation */
.testimonial-slide.fade-out {
    opacity: 0;
    visibility: visible;
}

/* Smooth transitions for all testimonial cards */
.testimonial-slide .bg-gray-50 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for testimonial cards */
.testimonial-slide .bg-gray-50:hover {
    transform: translateY(-4px);
}

/* Ensure proper stacking context */
.testimonials-track {
    position: relative;
    z-index: 1;
}

/* Navigation arrows in header - top right positioning */
#testimonial-prev,
#testimonial-next {
    transition: all 0.3s ease;
}

#testimonial-prev:hover,
#testimonial-next:hover {
    transform: scale(1.1);
    border-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-track {
        min-height: 450px;
    }
}

/* For very small screens, reduce button size slightly */
@media (max-width: 640px) {
    #testimonial-prev,
    #testimonial-next {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #testimonial-prev i,
    #testimonial-next i {
        width: 1.25rem;
        height: 1.25rem;
    }
}
