body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

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

header {
    position: relative;
    text-align: center;
    color: white;
    padding-bottom: 10px; /* Añadido padding inferior */
}

.logo {
    width: 100px; /* Tamaño del logo reducido */
    z-index: 1001;
}

nav {
    background-color: rgba(51, 51, 51, 0.7);
    overflow: hidden;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.nav-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

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

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1600px;
    margin: auto;
}

.carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.carousel h1 {
    font-size: 2.5em;
    margin: 0;
}

.carousel button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #757575;
    border: none;
    color: white;
    cursor: pointer;
}

@keyframes slide {
    0% { left: 0%; }
    45% { left: 0%; }
    50% { left: -100%; }
    95% { left: -100%; }
    100% { left: 0%; }
}

.carousel-container {
    display: flex;
    width: 200%;
    position: relative;
    animation: slide 10s infinite;
}

.slide {
    width: 100%;
    flex: 1 0 100%;
    position: relative;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.service {
    position: relative;
    width: 33.33%;
}

.service img {
    width: 100%;
    height: auto;
}

.service .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.service:hover .overlay {
    opacity: 1;
}

.service h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.service ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 1em;
}

.service ul li {
    margin: 5px 0;
}

.contact-section {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    background-color: #e0e0e0;
    padding: 20px;
}

.contact-form, .contact-info {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}

.contact-form h2, .contact-info h2 {
    margin: 0;
}

.contact-form p, .contact-info p {
    margin: 10px 0 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: white;
    resize: none;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #757575;
    border: none;
    color: white;
    cursor: pointer;
}

.contact-details {
    text-align: center;
    margin-top: 20px;
}

.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.whatsapp-chat svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Estilos adicionales para la página de servicios */
.service-header img {
    max-width: 100%;
    height: auto;
}

.service-header {
    padding: 0px;
    text-align: center;
    background-color: #f4f4f4;
}

.service-header h1 {
    font-size: 2em;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #333;
}

.service-content {
    padding: 20px;
    font-size: 1.1em;
    line-height: 1.6em;
    color: #555;
}

.service-content ul {
    padding-left: 20px;
}

.service-content ul li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 100%;
    }

    .contact-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-form, .contact-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .carousel h1 {
        font-size: 1.5em;
    }

    .service .overlay {
        opacity: 1;
    }
}
.social-icons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icons a {
    display: block;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
}

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

.social-icons svg {
    width: 24px;
    height: 24px;
}
