/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #093d52;
    --secondary-color: #95d0ce;
    --accent-color: #ffd700;
    --text-color: #093d52;
    --light-text: #ffffff;
    --teal-color: #20b2aa;
    --blue-color: #1a5f7a;
    --purple-color: #8e3482;
    --yellow-color: #f7ce46;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation - Same as other pages */
.navbar {
    font-family: 'Montserrat', sans-serif;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: var(--primary-color) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle,rgba(0, 108, 250, 0.65) 15%, rgba(161, 206, 206, 0.31) 58%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(42, 155, 147, 1) 0%, rgba(87, 199, 171, 0) 50%, rgba(83, 237, 232, 0) 100%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
   
}
.container-fluid{
    --bs-gutter-x: 0;

}
/* Event Categories Section */
.event-categories-section {
    margin: 0;
    padding: 0;
}

.category-card {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-size: cover;
    background-position: center;
}

.social-events {
    background-image: url('../images/eventos/f-eventos-sociales.jpg');    
    background-size: cover;
}

.business-events {
    background-image: url('../images/eventos/f-eventos-empresariales.jpg');    
    background-size: cover;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    margin: 0;
    padding: 0;
}

/* Custom Carousel Styles */
.custom-carousel {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 33.333%;
    height: 100%;
    padding: 0;
    min-width: 33.333%;
}

.gallery-item {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.carousel-nav:hover i {
    color: var(--secondary-color);
}

/* Dots Indicator */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Hide arrows on mobile for better UX */
@media (max-width: 768px) {
    .carousel-nav {
        display: none;
    }
    
    .carousel-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
    
    .carousel-dots {
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* Description Section */
.description-section {
    background: var(--purple-color);
    padding: 3rem 0;
    text-align: center;
}

.description-text {
    font-size: 1.3rem;
    color: white;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.description-text em {
    font-style: italic;
    font-weight: 600;
}


/* Exclusive Card - Integrated with Catering Card */
.exclusive-card {
    background: var(--yellow-color);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.exclusive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.1)"/></svg>') repeat;
    background-size: 20px 20px;
    opacity: 0.3;
}

.exclusive-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #093d52;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.exclusive-subtitle {
    font-size: 1.1rem;
    color: #093d52;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Catering & Video Section */
.catering-video-section {
    margin: 0;
    padding: 0;
}

/* Quote Section */
.quote-section {
    margin: 0;
    padding: 0;
}

.catering-card {
    background: #2c3e50;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.catering-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
}

.catering-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.video-card {
    position: relative;
    height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-card {
    background: whitesmoke;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.quote-card-full {
    background: #95d0ce;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.quote-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="rgba(0,0,0,0.1)"/></svg>') repeat;
    background-size: 20px 20px;
    opacity: 0.3;
}

.quote-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #093d52;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.btn-whatsapp {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 149, 232, 0.8);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-whatsapp:hover::before {
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #8eb8b8;
    border-color: rgba(0, 149, 232, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* Footer - Same as other pages */
.footer {
    background-image: url('../images/b-footer-alberca.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-logo {
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

.certifications {
    text-align: right;
}

.certifications h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.certification-logos {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.certification-logos img {
    max-width: 100px;
    height: auto;
}

.footer a {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .category-card {
        height: 250px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .woodslider {
        height: 300px;
    }
    
    .woodslider-slide {
        flex: 0 0 50%;
    }
    
    .video-card {
        height: 667px;
    }
    
    .exclusive-title {
        font-size: 2rem;
    }
    
    .quote-title {
        font-size: 2.5rem;
    }
    
    .quote-card-full {
        height: 150px;
    }
    
    .catering-title {
        font-size: 1.2rem;
    }
    
    /* Footer Responsive Adjustments */
    .footer {
        padding: 2rem 0;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .certifications {
        text-align: center;
    }
    
    .certification-logos {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-logo {
        margin: 1rem auto;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .category-card {
        height: 200px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .woodslider {
        height: 250px;
    }
    
    .woodslider-slide {
        flex: 0 0 100%;
    }
    
    .video-card {
        height: 533px;
    }
    
    .exclusive-title {
        font-size: 1.8rem;
    }
    
    .quote-title {
        font-size: 2rem;
    }
    
    .quote-card-full {
        height: 120px;
    }
    
    .btn-whatsapp {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    
    /* Footer Responsive Adjustments */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    .certification-logos img {
        max-width: 80px;
        margin: 0.5rem;
    }
    
    .contact-info p {
        justify-content: center;
    }
}

// Initialize Gallery Carousel with Custom Implementation
function initGalleryCarousel() {
    const carousel = document.getElementById('galleryCarousel');
    const track = carousel.querySelector('.carousel-track');
    const slides = carousel.querySelectorAll('.carousel-slide');
    const prevBtn = document.getElementById('prevBtn');
    const nextBtn = document.getElementById('nextBtn');
    const dotsContainer = document.getElementById('carouselDots');
    
    let currentSlide = 0;
    let autoplayInterval;
    const totalSlides = slides.length;
    const slidesToShow = window.innerWidth >= 768 ? 3 : window.innerWidth >= 576 ? 2 : 1;
    
    // Create dots
    function createDots() {
        dotsContainer.innerHTML = '';
        for (let i = 0; i < totalSlides; i++) {
            const dot = document.createElement('button');
            dot.className = 'carousel-dot';
            if (i === 0) dot.classList.add('active');
            dot.addEventListener('click', () => goToSlide(i));
            dotsContainer.appendChild(dot);
        }
    }
    
    // Update carousel position
    function updateCarousel() {
        const slideWidth = 100 / slidesToShow;
        const translateX = -currentSlide * slideWidth;
        track.style.transform = `translateX(${translateX}%)`;
        
        // Update dots
        const dots = dotsContainer.querySelectorAll('.carousel-dot');
        dots.forEach((dot, index) => {
            dot.classList.toggle('active', index === currentSlide);
        });
    }
    
    // Go to specific slide
    function goToSlide(slideIndex) {
        currentSlide = slideIndex;
        updateCarousel();
    }
    
    // Next slide
    function nextSlide() {
        currentSlide = (currentSlide + 1) % totalSlides;
        updateCarousel();
    }
    
    // Previous slide
    function prevSlide() {
        currentSlide = (currentSlide - 1 + totalSlides) % totalSlides;
        updateCarousel();
    }
    
    // Start autoplay
    function startAutoplay() {
        autoplayInterval = setInterval(nextSlide, 4000);
    }
    
    // Stop autoplay
    function stopAutoplay() {
        clearInterval(autoplayInterval);
    }
    
    // Event listeners
    if (nextBtn) {
        nextBtn.addEventListener('click', () => {
            nextSlide();
            stopAutoplay();
            startAutoplay();
        });
    }
    
    if (prevBtn) {
        prevBtn.addEventListener('click', () => {
            prevSlide();
            stopAutoplay();
            startAutoplay();
        });
    }
    
    // Pause on hover
    carousel.addEventListener('mouseenter', stopAutoplay);
    carousel.addEventListener('mouseleave', startAutoplay);
    
    // Handle window resize
    window.addEventListener('resize', () => {
        updateCarousel();
    });
    
    // Initialize
    createDots();
    updateCarousel();
    startAutoplay();
}
