/* styles.css */
body {
    font-family: Poppins, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #0074cc;
}

header .logo img {
    height: 50px;
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    height: 5px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
}

@media (max-width: 1055px) {
    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .menu ul li {
        margin: 10px 0;
    }

    .menu-icon {
        display: flex; /* Mostrar el ícono en pantallas pequeñas */
    }
}

/* Animación de deslizamiento del menú */
.menu-show {
    display: flex !important;
    animation: slideIn 0.3s ease-out;
}

/* Animación para el menú */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}


nav .menu ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .menu ul li {
    padding: 10px;
    margin: 0 10px;
}

@media (max-width: 1055px) {
    nav .menu ul {
        flex-direction: column; /* El menú será vertical */
        align-items: center;
    }

    nav .menu li {
        padding: 15px 0; /* Espaciado entre los elementos */
    }
}

nav .menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    position: relative; /* Necesario para la pseudo-clase ::after */
    transition: color 0.3s ease; /* Efecto de transición en el color del texto */
}

nav .menu ul li a:hover {
    color: #ffd700; /* Cambia el color del texto al pasar el mouse (opcional) */
}

nav .menu ul li a::after {
    content: ""; /* Pseudo-elemento vacío para la línea */
    position: absolute;
    left: 0;
    bottom: -2px; /* Ajusta la posición debajo del texto */
    width: 0;
    height: 2px; /* Grosor de la línea */
    background-color: white; /* Color de la línea */
    transition: width 0.3s ease; /* Suaviza el efecto */
}

nav .menu ul li a:hover::after {
    width: 100%; /* Extiende la línea completamente al pasar el mouse */
}


.hero {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
    background-image: url(img/mano_tierra.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: center;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    animation: slide s infinite;
}

.carousel-slide {
    min-width: 100%;
    transition: transform 1s ease-in-out;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.service {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 910px) {
    .hero {
        background-size: auto;
        background-position-x: center;
        overflow-y: hidden;
        height: fit-content;
    }
    .services {
        flex-direction: column;
        flex-flow: wrap;
    }
}

.service img {
    height: 100px;
    margin-bottom: 10px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #0074cc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-icons .icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icons .icon:hover {
    transform: scale(1.2); /* Efecto de zoom */
}

.social-icons .icon svg {
    width: 100%; /* Ajusta el tamaño automáticamente */
    height: auto;
    fill: currentColor; /* Usa el color actual del texto o CSS */
}


.clock-text {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background-color: #0074cc;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 50px;
}

/* Keyframes for slide animation */
@keyframes slide {
    0%, 50% { transform: translateX(0); } /* Muestra la primera imagen durante el 50% del tiempo */
    51%, 100% { transform: translateX(-100%); } /* Muestra la segunda imagen durante el resto del tiempo */
}
