body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

.bus-header {
    background: var(--color-primary);
}


.search-container {
    background: linear-gradient(to bottom, var(--color-primary) 60%, white 40%);
    padding: 6rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.search-container h1 {
    color: white;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin: 0 0 1rem;
    font-weight: 700;
    font-family: "Poppins1";
}

.search-container h1 span {
    display: inline-block;
    min-width: 200px;
    text-align: left;
    font-weight: 700;
    font-family: "Poppins1";
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--color-secondary);
    border-radius: 40px;
    overflow: hidden;
    max-width: 90%;
    width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    margin-bottom: 1rem;
    max-width: 1100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-form input {
    border: none;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    font-size: clamp(14px, 2.5vw, 16px);
    outline: none;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    transition: background-color 0.3s;
    color: var(--color-text);
}

.search-form input:focus {
    background-color: #f9f9f9;
}

.search-form input:not(:last-child) {
    border-right: 1px solid #ddd;
}

.search-form button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 35px;
    padding: 1.2rem 1.8rem;
    font-size: clamp(14px, 2.5vw, 16px);
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Poppins1";
}

.search-form button:hover {
    background-color: #023bb5;
}

#location-input, #service-input-container {
    position: relative;
    flex: 1;
    width: 100%;
}

#location-input input#location-search, 
#service-input-container input#service-input {
    width: 100%;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    z-index: 2;
}

.bold-placeholder::placeholder {
    font-weight: 600;
    color: #666;
    opacity: 1;
}

#service-input::placeholder {
    color: var(--color-subtitle);
}

#location-search::placeholder {
    color: var(--color-subtitle);
}

.autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    will-change: transform;
    border-radius: 20px;
}

.autocomplete-suggestions div {
    padding: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.autocomplete-suggestions div:hover {
    background-color: #f0f0f0;
}

.carousel-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    background-color: #fff;
}

.section-title {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin: 20px auto;
    overflow-x: auto;
    scrollbar-width: none;
    scrollbar-color: var(--color-subtitle) #f4f4f4;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    --slides-to-show: 3;
    --peek-percentage: 0.2;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--color-subtitle);
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.carousel {
    display: flex;
    flex-wrap: nowrap;
    padding: 10px;
    width: calc((33.33% + 20px) * (var(--slides-to-show) + var(--peek-percentage)));
}

.city-slide {
    flex: 0 0 calc(33.33% - 20px);
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    margin: 0 10px;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.city-slide:hover {
    transform: translateY(-5px);
}

.city-name {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-subtitle);
    margin-bottom: 15px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
}

.service-link {
    display: block;
    text-decoration: none;
    color: var(--color-subtitle);
    font-size: 1.1em;
    padding: 10px;
    border-radius: 4px;
    transition: color 0.3s ease, transform 0.3s ease, border-left 0.3s ease;
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
    border-left: 4px solid transparent;
}

.service-link:hover {
    border-left: 4px solid var(--color-primary);
    color: var(--color-primary);
    transform: translateX(4px);
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.carousel-button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.carousel-button:hover {
    background-color: #023bb5;
}

@media (max-width: 768px) {
    .search-container {
        min-height: 250px;
        padding: 6rem 0.5rem 2rem 0.5rem;
    }

    .search-form {
        flex-direction: column;
        max-width: 95%;
    }
    
    .search-form input {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 1.5rem 1rem 1.5rem 3rem; 
        border-radius: 0;
        height: 60px; 
    }

    .search-form input, 
    .search-form button {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 1rem 1rem 1rem 3rem;
        border-radius: 0;
    }

    .search-form input:first-child {
        border-top-left-radius: 35px;
        border-top-right-radius: 35px;
    }

    .search-form button {
        border-bottom: none;
        border-bottom-left-radius: 35px;
        border-bottom-right-radius: 35px;
        margin: 0;
        padding: 1.2rem;
    }

    .search-form input:not(:last-child) {
        border-right: none;
    }
    
    #location-input {
        position: relative;
        z-index: 2;
    }
    
    .autocomplete-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1001;
        margin-top: 5px;
    }

    .carousel-container {
        --slides-to-show: 2;
        --peek-percentage: 0.2;
    }
    .city-slide {
        flex: 0 0 calc(50% - 20px);
    }
    .carousel {
        width: calc((50% + 20px) * (var(--slides-to-show) + var(--peek-percentage)));
    }

    .city-name {
        font-size: 1.6em;
        max-width: 250px;
        padding-left: 10px;
    }

    .service-link {
        font-size: 1em;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .search-container h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .search-form input, 
    .search-form button {
        font-size: 16px;
    }
    
    .input-icon {
        font-size: 1rem;
    }

    .carousel-container {
        max-width: 100%;
        margin: 10px;
        --slides-to-show: 1;
        --peek-percentage: 0.1;
        padding: 0 5px;
    }
    .city-slide {
        flex: 0 0 calc(80% - 20px);
        padding: 15px;
    }
    .carousel {
        width: calc((80% + 10px) * (var(--slides-to-show) + var(--peek-percentage)));
        padding: 10px 0;
    }

    .city-name {
        font-size: 1.5em;
        max-width: 90%;
        padding-left: 10px;
        font-family: "Poppins1";
        font-weight: 700;
    }

    .service-link {
        font-size: 0.95em;
        padding: 10px;
        max-width: 90%;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 15px;
        font-family: "Poppins1", Sans-Serif;
        font-weight: 700;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--color-subtitle);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    max-width: 1220px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
    background-color: #ffffff;
    padding: 15px;
    margin-top: 80px;
}

.hero-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero-container:after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.hero-content {
    width: 45%;
    z-index: 2;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    color: var(--color-subtitle);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    font-weight: 700;
    display: block;
    color: var(--color-primary);
    font-family: "Poppins1", Sans-Serif;
    font-weight: 700;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--color-secondary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins1', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.hero-image {
    width: 50%;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.device-mockup {
    width: 100%;
    transition: all 0.5s ease;
    border: none;
}

.device-mockup:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        padding: 40px;
        max-width: 90%;
        flex-wrap: wrap;
    }

    .hero-content {
        width: 50%;
    }

    .hero-image {
        width: 45%;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 17px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }

    .funcion {
        padding: 15px 12px;
    }

    .icono {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .hero-section {
        margin-top: 40px;
    }

    .hero-content, .hero-image {
        width: 100%;
    }

    .hero-content {
        margin-bottom: 30px;
        text-align: left;
    }

    .hero-title {
        font-size: 32px;
        font-family: "Poppins1", Sans-Serif;
        font-weight: 700;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .device-mockup:hover {
        transform: none;
    }
    
    .about-section {
        margin-top: 60px;
        padding: 50px 25px;
        border-radius: 15px;
        max-width: 95%;
    }
    
    .about-section h2 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 25px;
    }
    
    .about-section h2::after {
        width: 60px;
        height: 3px;
    }
    
    .about-section p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .about-section {
        margin-top: 40px;
        padding: 40px 20px;
        border-radius: 12px;
        max-width: 95%;
    }
    
    .about-section h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 20px;
        font-family: "Poppins1", Sans-Serif;
    }
    
    .about-section h2::after {
        width: 50px;
        height: 3px;
    }
    
    .about-section p {
        font-size: 15px;
        margin-bottom: 18px;
    }
}

@media (max-width: 350px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
.destacados-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #fff;
    margin-top: 40px;
}

.destacados-section .section-title {
    align-self: flex-start;
    max-width: 1200px;
    width: 100%;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.destacados-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin: 20px auto;
    overflow: hidden;
}

.destacados-carousel {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
    padding: 10px;
}

.negocio-card {
    flex: 0 0 280px;
    background: white;
    border-radius: var(--border-radius-cards);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.negocio-card:hover {
    transform: translateY(-2px);
}

.negocio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.negocio-imagen {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.negocio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.negocio-card:hover .negocio-imagen img {
    transform: scale(1.05);
}

.imagen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.negocio-info {
    padding: 20px;
}

.negocio-nombre {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-subtitle);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Poppins1";
}

.negocio-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.negocio-categoria {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 8px;
    border: 1px solid var(--color-border);
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    background-color: #fff;
}

.negocio-ubicacion {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.negocio-ubicacion::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .destacados-section {
        padding: 40px 15px;
    }
    
    .destacados-container {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .destacados-container::-webkit-scrollbar {
        display: none;
    }
    
    .destacados-carousel {
        width: fit-content;
        transform: none !important;
        padding: 10px 5px;
    }
    
    .negocio-card {
        flex: 0 0 250px;
        scroll-snap-align: start;
    }
    
    .carousel-buttons {
        display: none;
    }
}

@media (max-width: 576px) {
    .destacados-section {
        padding: 30px 10px;
    }
    
    .negocio-card {
        flex: 0 0 220px;
    }
    
    .negocio-imagen {
        height: 150px;
    }
    
    .negocio-info {
        padding: 15px;
    }
    
    .negocio-nombre {
        font-size: 0.9rem;
    }
}