/* Base Styles */
html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    margin-bottom: 50px;
}

.navbar li:hover {
    font-size: large;
}

/* Hero Section */
.hero {
    background-image: url('tu-imagen-de-fondo.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero img {
    margin: 1rem 0;
}

.hero .container {
    padding: 2rem 0;
}

/* Image Styles */
.rounded-img {
    border-radius: 15px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Products Section */
.products {
    margin: 50px 0;
}

/* Carousel Styles */
.custom-carousel {
    display: flex;
    align-items: center;
}

.custom-carousel-control {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.custom-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-container {
    padding: 0 0 48px 0;
}

/* Brands & Products Section Styles */
.brand-container,
.product-container {
    margin-top: 3rem;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    overflow-x: hidden;
}

#searchContainer {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 5px 10px;
    max-width: 300px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#searchBox {
    border: none;
    padding: 10px 15px;
    flex: 1;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
}

#searchButton {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #555;
    font-size: 18px;
}

#searchButton:hover {
    color: #333;
}

#navContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn {
    order: 1;
}

#searchContainer {
    order: 2;
}

@media (max-width: 768px) {
    .img-fixed-size {
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    #navContainer {
        flex-direction: column;
    }

    .nav-btn {
        margin-bottom: 15px;
    }

    #searchContainer {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #searchButton i {
        font-size: 0.8rem;
    }

    #searchBox {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    #searchButton {
        padding: 5px 8px;
    }
}



/* Responsive Media Queries */
@media screen and (max-width: 576px) {
    .hero .col-sm-10 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 20px 10px;
    }

    .hero h1,
    .hero p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.8rem;
        text-align: left;
    }

    .hero img.img-fluid {
        width: 100%;
        height: auto;
        max-width: none;
    }

    .hero .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
        margin-top: 10px;
        display: block;
    }

    .brand-container,
    .product-container {
        max-height: none;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    .hero {
        padding: 20px 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        text-align: left;
    }

    .hero img.img-fluid {
        max-width: 90%;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 1rem;
        display: block;
        margin-top: 10px;
        width: 100%;
    }
}

@media screen and (min-width: 992px) {
    .hero {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
    }

    .hero .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero .row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hero h1 {
        text-align: center;
    }

    .hero p {
        order: 1;
    }

    .hero .text-center {
        text-align: left;
    }

    .hero .img-fluid {
        order: 4;
    }

    .hero .text-center .btn {
        order: 3;
        margin: 20px 0;
        width: 90%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 1100px) {
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero img {
        margin-top: 20px;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Estilo por defecto para móviles: las ubicaciones encima y el mapa debajo */
.locations-section {
    order: 1;
}

.map-section {
    order: 2;
    margin-top: 20px;
    /* Añade espacio entre las secciones en móviles */
}

/* Estilo para pantallas grandes */
@media (min-width: 992px) {
    .locations-section {
        order: 2;
        margin-left: 20px;
        /* Añade espacio entre las secciones en pantallas grandes */
    }

    .map-section {
        order: 1;
    }
}