/*
        *******************************************************
        *                                                     *
        *    NEWDA Agencia Creativa - Firma de Autor          *
        *    ============================================     *
        *                                                     *
        *    Código creado por: Azzari Villagrana             *
        *    para NEWDA Agencia Creativa                      *
        *                                                     *
        *    Contacto: 311 417 0762                           *
        *    Facebook: https://www.facebook.com/newdacreativa *
        *                                                     *
        *    Fecha de creación: 2025-01-10                    *
        *                                                     *
        *******************************************************
        
            NNN   N   EEEEE  w     WW     W   DDDD    AAAAA
            N  N  N   E      W    W  W    W   D   D  A     A
            N   N N   EEEE   W   W    W   W   D   D  AAAAAAA
            N    NN   E      W  W      W  W   D   D  A     A
            N     N   EEEEE  W W        W W   DDDD   A     A
*/

/* Reset de estilos generales para asegurar consistencia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales del body */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #364659;
    background-color: #ffffff;
    margin: 0;
}

/* Estilos del encabezado (Header) */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.header .logo img {
    max-height: 50px;
}

/* Estilos para el menú de navegación */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #364659;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4a8da9;
}

/* Sección Footer */
.footer {
    padding: 2rem 0;
    background: #364659;
    color: #ffffff;
    text-align: center;
}

.footer p {
    font-size: 1rem;
}

.footer a {
    color: #ffffff; /* Cambia el color del texto a blanco */
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff; /* Puedes mantener este color o cambiarlo si lo prefieres */
}

/* Diseño móvil */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Muestra el botón hamburguesa en pantallas pequeñas */
    }

    .nav {
        display: none; /* Oculta el menú por defecto */
        position: absolute;
        top: 60px; /* Ajusta la distancia respecto al header */
        right: 10px;
        background-color: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        z-index: 1000;
    }

    .nav.open {
        display: block; /* Muestra el menú cuando está abierto */
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu a {
        color: #364659;
        font-size: 1.2rem; /* Ajuste en el tamaño de fuente para mejorar la legibilidad en móviles */
    }
}

/* Diseño para escritorio (mantiene el menú visible) */
@media (min-width: 769px) {
    .nav {
        display: block;
        position: static;
        background: none;
        box-shadow: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: none;
    }
}

/* Sección principal Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    height: 100vh;
    margin-top: -25px;
    background: linear-gradient(to right, #364659, #42779b);
    color: #ffffff;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Estilos para ocultar la imagen del Hero en dispositivos móviles */
@media screen and (max-width: 768px) {
    .hero-image {
        display: none;
    }

    .hero {
        flex-direction: column; /* Centra todo el contenido en columna */
        justify-content: center; /* Centra el contenido verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        padding: 2rem; /* Reduce el padding en móviles */
        height: 1; /* Ajuste en la altura */
        margin-top: +10; /* Ajuste del margen */
    }

    .hero-content {
        max-width: 100%; /* Asegura que el contenido no se desborde */
        text-align: center; /* Centra el texto */
    }

    .hero-content h1 {
        font-size: 2rem; /* Ajuste en tamaño de fuente */
    }

    .hero-content p {
        font-size: 1rem; /* Ajuste en tamaño de fuente */
    }

    /* Botón primario del Hero */
    .btn-primary {
        width: 100%; /* Hace que el botón ocupe todo el ancho en móviles */
        padding: 1rem;
        font-size: 1.2rem;
    }
}

/* Botón primario en la sección Hero */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #ffffff;
    background: #4a8da9;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #3d6786;
}

/* Imagen en la sección Hero */
.hero-image img {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sección Nosotros */
.about {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #364659;
}

/* Contenido de la sección Nosotros */
.about-content {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #42779b;
}

.about-item p,
.about-item ul {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    text-align: left;
}

.about-item ul li {
    margin-bottom: 0.5rem;
}

/* Ajustes en la sección "Nosotros" */
@media screen and (max-width: 768px) {
    .about-content {
        display: flex;
        flex-direction: column; /* Cambio para que se apilen verticalmente */
        justify-content: center; /* Centra el contenido */
        align-items: center; /* Centra el contenido horizontalmente */
        gap: 2rem;
    }
}

/* Sección Fletes */
.fletes {
    padding: 4rem 2rem;
    background-color: #f4f4f4;
    text-align: center;
}

.fletes h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #364659;
}

/* Contenido de la sección Fletes */
.fletes-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.fletes-image {
    max-width: 300px;
    height: auto;
}

.fletes-description {
    max-width: 500px;
    text-align: left;
}

.fletes-description p {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Botón en la sección Fletes */
.btn-fletes {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #ffffff;
    background: #4a8da9;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-fletes:hover {
    background: #3d6786;
}

/* Ajustes en la sección "Fletes" */
@media screen and (max-width: 768px) {
    .fletes-content {
        display: flex;
        flex-direction: column; /* Cambio para que se apilen verticalmente */
        justify-content: center; /* Centra el contenido */
        align-items: center; /* Centra el contenido horizontalmente */
        gap: 2rem;
    }

    .fletes-description p{
        display: flex;
        flex-direction: column; /* Cambio para que se apilen verticalmente */
        justify-content: center; /* Centra el contenido */
        align-items: center; /* Centra el contenido horizontalmente */
        gap: 2rem;
    }

    .btn-fletes {
        display: flex;
        flex-direction: column; /* Cambio para que se apilen verticalmente */
        justify-content: center; /* Centra el contenido */
        align-items: center; /* Centra el contenido horizontalmente */
        gap: 2rem;
    }
}