* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

header {
    background: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .logo {
    height: 50px;
}

header .menu {
    list-style: none;
    display: flex;
}

header .menu li {
    margin: 0 10px;
}

header .menu a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s, color 0.3s;
}

header .menu a:hover {
    background: white;
    color: #2c3e50;
    border-radius: 5px;
}

.hero {
    background: url('img/background.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}
.hero p {
    color: white;
}
    
.hero .btn {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.hero .btn:hover {
    background: #c0392b;
}

/* Secciones */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

section p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #555;
}

/* About */
.about {
    background: #ecf0f1;
    padding: 60px 40px;
}

.about .features {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.about .features div {
    max-width: 400px;
}

.about .features h3 {
    color: #e74c3c;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Servicios */
.services {
    background: #ffffff;
}

.service-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 30%;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card:hover {
    transform: scale(1.05);
}

.card h3 {
    margin: 10px 0;
    color: #2c3e50;
}

.card p {
    font-size: 1rem;
    color: #777;
}

/* Testimonios */
.testimonials {
    background: #ecf0f1;
    padding: 60px 20px;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
}

.testimonial {
    scroll-snap-align: start;
    flex: 0 0 80%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial h4 {
    margin-top: 10px;
    color: #2c3e50;
}

/* Galería */
.gallery {
    padding: 60px 20px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Blog */
.blog {
    background: #ecf0f1;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.post {
    flex: 0 0 30%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.post:hover {
    transform: scale(1.05);
}

.post h3 {
    margin-bottom: 10px;
    color: #e74c3c;
}

/* Contacto */
.contact {
    background: white;
    padding: 60px 20px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s;
}

.contact button:hover {
    background: #c0392b;
}

.contact .map iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
}
/* Compromiso con el Medio Ambiente */
.sustainability {
    background: #f7fcf5;
    padding: 60px 20px;
    text-align: center;
}

.sustainability h2 {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.sustainability p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.sustainability .sustainability-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding-bottom: 10px;
}

.sustainability .sustainability-images div {
    flex: 1 1 300px; /* Limita el ancho de cada contenedor de imagen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sustainability .sustainability-images img {
    width: 100%;
    max-width: 400px; /* Ajustamos el tamaño máximo de las imágenes */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.sustainability .sustainability-images img:hover {
    transform: scale(1.05); /* Efecto suave para ampliar la imagen */
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .sustainability .sustainability-images img {
        max-width: 100%; /* Hace que las imágenes ocupen todo el contenedor en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    .sustainability .sustainability-images img {
        max-width: 90%; /* Reduce aún más el tamaño en pantallas más pequeñas */
    }
}



/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}
