/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header y Navegación */
header {
    background-color: #ff6f61;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo a {
    color: #fff;
    font-size: 1.8em;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #333;
}

/* Hero Sections */
.hero, .products-hero, .about-hero, .testimonials-hero, .contact-hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 10rem 1rem; /* Ajustado para pantallas pequeñas */
    text-align: center;
}

.products-hero, .about-hero, .testimonials-hero, .contact-hero {
    background-color: #ff6f61;
    background-image: none;
}

.hero h1, .products-hero h1, .about-hero h1, .testimonials-hero h1, .contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p, .products-hero p, .about-hero p, .testimonials-hero p, .contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Botones */
.btn-whatsapp, .btn {
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-whatsapp:hover, .btn:hover {
    background-color: #128C7E;
}

/* Secciones de Características y Productos */
.features, .products-list {
    display: flex;
    justify-content: space-around;
    padding: 5rem 1rem;
    flex-wrap: wrap;
}

.feature, .product-item, .service-item {
    background-color: #fff;
    padding: 1.5rem;
    margin: 0.5rem;
    width: 30%;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover, .product-item:hover, .service-item:hover {
    transform: translateY(-0.3rem);
}

.feature img, .product-item img {
    height: 12.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.feature h3, .product-item h2 {
    margin: 1rem 0;
    color: #ff6f61;
}

.feature p, .product-item p, .service-item p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Sección de SEO Local */
.local-seo {
    background-color: #ff6f61;
    color: #fff;
    padding: 5rem 1rem;
    text-align: center;
}

.local-seo h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.local-seo p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: auto;
    margin-bottom: 1.5rem;
}

/* Sección de Testimonios */
.testimonials-preview, .testimonials-list {
    padding: 5rem 1rem;
    text-align: center;
}

.testimonials-list .testimonial {
    background-color: #fff;
    padding: 1.5rem;
    margin: 1rem auto;
    width: 60%;
    border-left: 5px solid #ff6f61;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonials-list .testimonial:hover {
    transform: translateY(-0.3rem);
}

.testimonials-list .testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonials-list .testimonial span {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    color: #ff6f61;
}

/* Formularios de Contacto */
.contact-form {
    padding: 5rem 1rem;
    max-width: 600px;
    margin: auto;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

/* Media Queries */
@media (max-width: 1024px) {
    .feature, .product-item, .service-item, .testimonial {
        width: 45%;
    }
}

@media (max-width: 768px) {
   .navbar {
      flex-direction: column;
      align-items: center;
   }
   .navbar a {
      display: block;
      width: 100%;
      text-align: center;
   }
}

    .feature, .product-item, .service-item, .testimonial {
        width: 80%;
    }

    .testimonials-list .testimonial {
        width: 80%;
    }

    .hero h1, .products-hero h1, .about-hero h1, .testimonials-hero h1, .contact-hero h1 {
        font-size: 2rem;
    }

    .btn-whatsapp, .btn {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1, .products-hero h1, .about-hero h1, .testimonials-hero h1, .contact-hero h1 {
        font-size: 1.5rem;
    }

    .hero p, .products-hero p, .about-hero p, .testimonials-hero p, .contact-hero p {
        font-size: 1rem;
    }

    .feature img, .product-item img {
        height: 10rem;
    }
}
