/* Distribution Page Styles */

/* Modelo Operativo Section */
.modelo-operativo-section {
    background-color: #000;
    padding: 80px 0;
    color: #fff;
}

/* Override section title for black background */
.modelo-operativo-section .global-h2 {
    color: #fff;
}

/* Counters and Coverage Section */
.counters-coverage-section {
    background-color: #000;
    background-image: url('../images/distribution_counter_bg.png');
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding: 0 0 150px 0;
    color: #fff;
}

/* Counter Items */
.counter-item {
    text-align: center;
    margin-bottom: 30px;
    background-color: #000;
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: 0 0px 30px rgba(255, 255, 255, 0.15);
    border: 1px solid transparent;
}

.counter-prefix {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-right: 8px;
}

.counter-number {
    display: inline-block;
    background-color: #002d85;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 6px;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(0, 45, 133, 0.4);
}

.counter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 8px;
}

/* Coverage Section */
.coverage-section {
    margin-top: 60px;
    text-align: left;
}

.coverage-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.map-container {
    position: relative;
    margin-bottom: 30px;
}

.google-map {
    margin-bottom: 20px;
}

.google-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.coverage-text {
    margin-top: 20px;
}

/* Nuestra Flota Section */
.nuestra-flota-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 100px 0;
    color: #fff;
}

.flota-content .global-h2 {
    color: #fff;
}

/* Gallery Section */
.gallery-section {
    background-color: #f8f9fa;
    padding: 80px 0 40px 0;
}

/* Gallery Title */
.gallery-title {
    color: #002d85;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom 4-column grid for large screens */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.gallery-widget {
    margin-bottom: 40px;
}
.gallery-widget .outer{
    padding-top: 10px;
}
.widget-content {
    position: relative;
}

.outer.clearfix {
    overflow: hidden;
}

/* Gallery Images */
.image {
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lightbox-image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.lightbox-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.lightbox-image:hover img {
    transform: scale(1.05);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 45, 133, 0.8); /* MALATIC brand color with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.image-overlay i {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.image:hover .image-overlay {
    opacity: 1;
}

@media (max-width: 991px) {
    .nuestra-flota-section {
        background-attachment: scroll;
    }
}