/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* Carrusel de texto para ofertas */
.text-carousel-container {
    width: 100%;
    background-color: #333;
    color: white;
    overflow: hidden;
    padding: 5px 0;
}

.text-carousel {
    display: flex;
    white-space: nowrap;
    animation: textScroll 20s linear infinite;
}

.text-slide {
    padding: 0 20px;
    font-size: 14px;
}

@keyframes textScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Header y navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 5px;
}

.social-cart {
    display: flex;
    align-items: center;
}

.social-icon, .cart {
    margin-left: 15px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

/* Carrusel de imágenes */
.image-carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.image-carousel {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.image-slide {
    position: relative;
    width: 33.333%;
    height: 100%;
    display: none;
}

.image-slide.active {
    display: block;
}

.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e65c00;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* Sección de empresas de envío */
.shipping-companies {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.shipping-companies h2 {
    text-align: center;
    color: #ff6600;
    margin-bottom: 20px;
    font-size: 28px;
}

.shipping-companies p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.logos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logos-container img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(0.5);
    transition: filter 0.3s, transform 0.3s;
}

.logos-container img:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Sección de productos más vendidos */
.best-sellers {
    padding: 40px 0;
    background-color: white;
}

.best-sellers h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff6600;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.price-major {
    font-weight: bold;
    color: #ff6600;
}

.price-minor {
    font-size: 14px;
    color: #999;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #0055aa;
}

/* Sección de servicios de mantenimiento */
.maintenance-services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.service-image {
    flex: 1;
    max-width: 500px;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-info {
    flex: 1;
}

.service-info h2 {
    color: #ff6600;
    margin-bottom: 20px;
    font-size: 32px;
}

.service-info p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.feature-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ff6600;
    border-radius: 50%;
    margin-right: 10px;
}

.service-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.service-button:hover {
    background-color: #e65c00;
}

/* Sección de contacto y ubicación */
.contact-location {
    padding: 60px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.contact-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 25px;
}

.contact-details p {
    margin-bottom: 10px;
}

.business-hours {
    margin-bottom: 25px;
}

.business-hours h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.business-hours p {
    margin-bottom: 5px;
}

.whatsapp-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #20BD5C;
}

.map-container {
    flex: 1;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff6600;
}

.footer-links, .footer-contact, .footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-contact h3, .footer-info h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}

.footer-links h3:after, .footer-contact h3:after, .footer-info h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6600;
}

.footer-links ul, .footer-info ul {
    list-style: none;
}

.footer-links ul li, .footer-info ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-info ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover, .footer-info ul li a:hover {
    color: #ff6600;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: #ff6600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .social-cart {
        margin-top: 10px;
    }
    
    .image-carousel-container {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .logos-container img {
        height: 40px;
    }
    
    .service-content {
        flex-direction: column;
    }
    
    .service-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .map-container {
        height: 300px;
        margin-top: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}