body {
    /*display: grid;*/
    place-items: center;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 2px;
    background-image: url("img/fondo.jpg");
    max-width: 100%;
    background-size: cover; /* Esto hará que la imagen cubra todo el viewport */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-repeat: no-repeat; /* Para evitar que la imagen se repita */
    background-position: center center; /* Centra la imagen en la pantalla */
    background-attachment: fixed; /* La imagen de fondo permanecerá fija al hacer scroll */
    touch-action: manipulation;
    cursor: url('img/pointer4.png'), auto;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* color negro con 40% de opacidad */
    z-index: -1; /* para que el fondo quede detrás del contenido */
}

header {
    /* ... otros estilos que ya tienes para el header ... */
    display: flex;
    justify-content: center;
    border-radius: 10px;
    z-index: 1000; /* Asegura que el header esté por encima de otros elementos */
    background-color: rgba(245, 245, 245, 0.80); /* Puede cambiar según tu diseño, esto le da una ligera transparencia */
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%; /* para que ocupe todo el alto del header */
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    padding-left: 1mm;
    padding-right: 1mm;
    margin-top: 3mm;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

nav a:hover {
    background-color: #ddd;
}

main {
    padding: 2rem;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

p {
    color: #ffffff;
}

.image-slider {
    display: flex;
    overflow: hidden;
    width: 900px;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
}

.image-slider img {
    width: 300px;
    height: 300px;
    border-radius: 25px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    transform: scale(0.95);
    /*object-fit: cover;*/
}

#contact-form {
    width: 300px;
    color: white;
    margin: 0 auto;
}

#contact-form label,
#contact-form input,
#contact-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#contact-form input[type="submit"] {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

#contact-form input[type="submit"]:hover {
    background-color: #555;
}

#testimonial-section {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.testimonial p {
    font-size: 24px;
    font-style: italic;
}

.testimonial-carousel .slick-slide {
    transition: all 0.2s ease-in-out;
    opacity: 0;
    transform: scale(0.9);
}

.testimonial-carousel .slick-current {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .image-slider {
        width: 300px;
    }
}