/* Bodegas Specific Styles */

/* Hero Section */
.bodegas-hero {
    background: var(--primary-orange);
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 80px 80px, 100px 100px, 60px 60px, 60px 60px;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bodegas-hero::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 100 100"><path d="M25,25 Q35,15 45,25 T65,25" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/><path d="M15,55 Q25,45 35,55 T55,55" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/><circle cx="75" cy="35" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.bodegas-title {
       color: white;
   font-family: "lubaline", sans-serif;
   font-size: 138px;
    font-weight: 300;
    font-style: normal;
    line-height: 100px;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Main Bodegas Section */
.main-bodegas {
    background: rgbawhite;
    padding: 80px 0;
}

.bodega-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    cursor: pointer;
    height: 400px;
    position: relative;
}

.bodega-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.bodega-header {
    background: var(--primary-orange);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bodega-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.bodega-image {
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.5s ease;
}

.bodega-card:hover .bodega-image {
    transform: scale(1.05);
}

.la-azul-image {
    background-image: url("../images/BODEGASLAAZUL.jpg");
}

.corral-palos-image {
    background-image: url("../images/BODEGACORRAL.jpg");
}

.bodega-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.bodega-card:hover .bodega-image::after {
    background: linear-gradient(to bottom, transparent, rgba(204, 132, 86, 0.4));
}

/* Gallery Section */
.gallery-section {
    background: white;
    padding: 60px 0 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background: var(--primary-orange);
    height: 180px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(204, 132, 86, 0.3);
}

.gallery-item:hover::before {
    width: 100%;
    height: 100%;
}

.gallery-navigation {
    text-align: center;
    margin-top: 30px;
}

.nav-btn {
    background: var(--dark-gray);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 15px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 132, 86, 0.3);
}

.nav-btn:active {
    transform: translateY(-1px);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Click effect for bodega cards */
.bodega-card.clicked {
    animation: clickPulse 0.3s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bodegas-title {
        font-size: 3rem;
    }
    
    .bodega-card {
        height: 350px;
        margin-bottom: 30px;
    }
    
    .bodega-image {
        height: 270px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 140px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {

    .bodegas-hero {
        padding: 20px;
    }
    .bodegas-title {
        font-size: 50px;
    }
    
    .bodega-header h3 {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        height: 120px;
    }
    
    .main-bodegas {
        padding: 10px 0;
    }
}