/* Fuentes y colores */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Teko:wght@400;700&display=swap');

:root {
    --color-rojo: #E53935;
    --color-azul: #1E88E5;
    --color-verde: #43A047;
    --color-amarillo: #FBC02D;
    --color-negro: #212121;
    --color-blanco: #FFFFFF;
    --color-fondo: #F4F4F4; /* Color de fondo */
    --color-texto: #333; /* Color de texto */
}

/* Estilos para el body */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header con degradado */
header {
    display: flex;
    align-items: center;
    background: var(--color-negro);
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Logo con animación de movimiento */
.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    animation: mover-lateral 5s ease-in-out infinite alternate;
}

/* Animación del logo de derecha a izquierda */
@keyframes mover-lateral {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(40px);
    }
}

/* Contenedor del título */
.header-content {
    flex-grow: 1;
    text-align: center;
}

/* Título animado */
h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-amarillo);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: iluminar 2s infinite alternate;
}

/* Efecto de iluminación en el título */
@keyframes iluminar {
    0% {
        text-shadow: 0px 0px 5px var(--color-amarillo);
    }
    100% {
        text-shadow: 0px 0px 15px var(--color-amarillo);
    }
}

/* Menú de navegación estilizado */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px; /* Más espacio entre elementos */
}

nav ul li {
    display: inline;
}

/* Estilos de los enlaces del menú */
nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: var(--color-blanco);
    padding: 10px 20px;
    background: transparent; /* Sin fondo en los enlaces */
    border-radius: 0;
    transition: all 0.3s ease-in-out;
}

/* Animación al pasar el mouse */
nav ul li a:hover {
    color: var(--color-azul); /* Cambio de color en el hover */
    transform: scale(1.1);
    box-shadow: none; /* Sin sombra al pasar el mouse */
}

/* Footer */
footer {
    background-color: var(--color-negro);
    color: var(--color-blanco);
    padding: 20px 0;
    text-align: center;
    position: relative;
    margin-top: auto; /* Asegura que siempre esté en la parte inferior */
}

/* Contenido del footer */
.footer-content p {
    margin: 0;
    font-size: 1.1em;
}

.social-media {
    margin: 10px 0;
}

.social-icon {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--color-amarillo);
}

/* Botón de WhatsApp fuera del footer */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    outline: none;
    box-shadow: none;
}
.whatsapp-button {
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Efecto al pasar el mouse */
.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
}
/* Estilo general del contacto */
#contacto {
    padding: 60px 20px;
    background: #f4f4f4;
    color: #333;
    text-align: center;
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo para la información de contacto */
.contacto-info {
    flex: 1;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contacto-info h2 {
    font-size: 2.5em;
    color: #3f5efb;
    margin-bottom: 20px;
}

.contacto-info p {
    font-size: 1.2em;
    margin: 15px 0;
}

.contacto-info a {
    color: #3f5efb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-info a:hover {
    color: #3f5efb;
}

.contacto-info i {
    margin-right: 10px;
    color: #3f5efb;
}

/* Estilo para el mapa */
.mapa-container {
    flex: 1;
    max-width: 800px;
    width: 100%;
    height: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mapa-cuadrada {
    width: 100%;
    height: 100%;
}

.mapa-cuadrada iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Añadir una animación de aparición */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#contacto {
    animation: fadeIn 2s ease-in;
}

/* Estilo de la sección de bienvenida */
#bienvenida {
    background: linear-gradient(to right, #a8c0ff, #3f5efb), url('../img/bienvenido.webp') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 2s ease-in;
    background-size: cover;
}

/* Contenedor de la bienvenida */
.bienvenida-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8); /* Fondo más suave para resaltar el texto */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Título de bienvenida */
#bienvenida h2 {
    font-size: 3em;
    font-family: 'Teko', sans-serif;
    margin-bottom: 20px;
    animation: slideUp 1s ease-out;
    color: #333; /* Un color gris oscuro para el título */
}

/* Descripción */
#bienvenida p {
    font-size: 1.2em;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInText 2s ease-out;
    color: #444; /* Gris suave para la descripción */
}

/* Botón de acción */
.btn-iniciar {
    margin-top: 30px;
}

.btn-explorar {
    padding: 15px 40px;
    background-color: #64b5f6; /* Azul suave para el botón */
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-explorar:hover {
    background-color: #42a5f5; /* Azul un poco más oscuro para el hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Fondo de la sección */
#bienvenida {
    background: linear-gradient(to right, #a8c0ff, #3f5efb), url('../img/bienvenido.webp') no-repeat center center/cover;
    background-size: cover;
}

/* Estilo general de la sección de servicios */
#servicios {
    background: linear-gradient(to right, #f0f4f8, #cce7ff);
    padding: 80px 20px;
    text-align: center;
    color: #333;
}

/* Contenedor de servicios */
.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* Título de la sección de servicios */
#servicios h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #3f5efb;
}

#servicios p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #666;
}

/* Contenedor de los elementos de servicio */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* Estilo de cada item de servicio */
.servicio-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-out;
}

.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Iconos */
.servicio-item i {
    font-size: 3em;
    color: #3f5efb;
    margin-bottom: 15px;
}

/* Títulos de cada servicio */
.servicio-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

/* Descripción del servicio */
.servicio-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Sección de las máquinas utilizadas */
.maquinas-container {
    margin-top: 60px;
    background-color: #fff;
    padding: 60px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.maquinas-container h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #3f5efb;
}

.maquinas-container p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Contenedor de las máquinas */
.maquinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Estilo de cada item de máquina */
.maquina-item {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-out;
}

.maquina-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.maquina-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.maquina-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    color: #333;
    margin-bottom: 15px;
}

.maquina-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* Animación de aparición */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo para tablets */
@media screen and (max-width: 1024px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .contacto-container,
    .servicios-container,
    .maquinas-grid {
        flex-direction: column;
        padding: 20px;
    }
}

/* Responsivo para móviles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    #bienvenida h2 {
        font-size: 2em;
    }

    #bienvenida p,
    #servicios p,
    .contacto-info p {
        font-size: 1em;
    }

    .btn-explorar {
        font-size: 1em;
        padding: 10px 25px;
    }

    .servicios-grid,
    .maquinas-grid {
        grid-template-columns: 1fr;
    }

    .contacto-container {
        flex-direction: column;
        gap: 30px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
