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

/* General body styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
    color: black;
    line-height: 1.6;
    width: 100%;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 40px;
    background-color: #C4A76B;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-nav img {
    width: 100px;
    transform: scale(1.5);
}

.links-nav {
    display: flex;
    gap: 20px;
    white-space: nowrap;
}

.links-nav a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
}

.links-nav a:hover {
    color: #7E1F1E;
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .links-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 120px;
        right: 0;
        width: 250px;
        background-color: #C4A76B;
        padding: 20px;
        z-index: 999;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        color: white;
        text-decoration: none;
        font-size: 1em;
        font-weight: bold;
        padding: 10px 0;
    }

    .menu a:hover {
        color: #7E1F1E;
    }
}

@media (min-width: 769px) {
    .menu {
        display: none !important;
    }
}

header {
    background-image: url('/resources/pngtree-an-empty-warehouse-with-many-shelves-picture-image_2457177.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    width: 100%;
    margin-top: 60px;
}

header:hover {
    filter: grayscale(0%);
    transition: filter 0.5s ease;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-us {
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    background-color: white;
}

.about-us h2 {
    max-width: 800px;
    margin: 0 auto;
    color: black;
    padding: 0 20px;
}

.country {
    display: flex;
    justify-content: center; /* Centra las imágenes horizontalmente */
    gap: 20px; /* Espacio entre las imágenes */
    padding: 20px 0; /* Espacio superior e inferior para la sección */
    flex-direction: row; /* Start with images in a row */
    flex-wrap: wrap; /* Allow wrapping */
}

.country img {
    display: block; /* Ensure each image is a block element */
    width: 140px; /* Ajusta el tamaño de las imágenes según sea necesario */
    height: auto; /* Mantiene la proporción de la imagen */
    transition: all 0.3s ease; /* Smooth transition for resizing */
    flex-wrap: wrap; /* Allow wrapping */
}

.services {
    background-image: url('/resources/curiosidades-del-Mar-Mediterráneo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    color: white;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
    width: 100%;
    color: #f4f4f4;
    display: flex;
    flex-direction: row;
    align-items: center; /* Alinea el contenido hacia la derecha */
    justify-content: space-between;
}

.services:hover {
    filter: grayscale(0%);
    transition: filter 0.5s ease;
}

.services h2 {
    flex: 1;
    text-align: left;
    margin: 0;
}

/* Media Query for small screens */
@media (max-width: 480px) {
    .country {
        display: flex; /* Use flexbox for layout */
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center align images */
        justify-content: center; /* Center images in the container */
        flex-wrap: wrap; /* Allow wrapping */
    }

    .country img {
        width: 60px; /* Smaller width for images */
        margin: 5px 0; /* Space between images */
        max-width: 300px; /* Limit max width for better appearance */
        flex-wrap: wrap; /* Allow wrapping */
    }

    .services-box {
        flex-direction: column; /* Stack services vertically */
        width: 60px; /* Smaller width for images */
    }

    .services-box p {
        font-size: 0.9em; /* Slightly smaller font for services */
        margin: 5px 0; /* Margin between items */
    }

    h2 {
        font-size: 1.2em; /* Smaller font size for headings */
    }

    .about-us, .services {
        padding: 5px; /* Reduced padding */
        flex-direction: column; /* Stack services vertically */
    }

    .animated-services {
        font-size: 1.3em; /* Adjust font size for animated services */
    }
}

/* Tamaño y animación del encabezado */
.animated-services {
    font-family: 'Poppins', sans-serif; /* Aplica la fuente moderna */
    font-size: 3em; /* Tamaño de fuente grande */
    font-weight: 600; /* Peso para un estilo más impactante */
    color: #ffffff; /* Cambia el color según el diseño */
    opacity: 0; /* Inicia transparente */
    transform: translateY(30px); /* Inicia más abajo */
    animation: fadeInUp 1.5s ease-out forwards; /* Efecto de desvanecimiento y desplazamiento */
}

/* Keyframes para la animación */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Comienza desde abajo */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Termina en la posición original */
    }
}


.services-box {
    display: flex;
    flex-direction: column; /* Organiza los elementos de forma vertical */
    gap: 30px; /* Espacio entre cada elemento */
    align-items: center;
}

.services-box p {
    background-color: rgba(244, 244, 244, 0.7); /* Fondo con transparencia */
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1em;
    width: 250px; /* Ancho fijo para cada contenedor */
    height: 50px; /* Altura fija para cada contenedor */
    text-align: left;
    transition: background-color 0.3s ease; /* Suavizado de la transición */
}

.services-box p:hover {
    background-color: rgba(244, 244, 244, 0.9); /* Fondo menos transparente al pasar el mouse */
}

.services-box p i {
    margin-right: 10px;
    color: black; /* Color del icono */
    font-size: 1.2em;
}

/* Contenedor de estadísticas */
.stats-container {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: center; /* Centra los elementos verticalmente */
    flex-wrap: wrap; /* Permite que los elementos se ajusten si no hay espacio suficiente */
    max-width: 1800px; /* Limita el ancho del contenedor para alinearlo mejor en pantallas grandes */
    margin: 0 auto; /* Centra el contenedor horizontalmente */
    padding: 20px; /* Espaciado interno */
    position: relative; /* Necesario para capas como el overlay */
    z-index: 1;
}

/* Cada estadística */
.stat {
    text-align: center;
    margin: 20px;
    flex: 1 1 calc(33.333% - 40px); /* Ocupa 1/3 del ancho con espacio para márgenes */
    box-sizing: border-box; /* Asegura que padding y bordes no desborden */
}

/* Estilos del texto */
.stat h2 {
    font-size: 2.5em;
    position: relative;
}

.stat h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background-color: #C4A76B;
    margin: 10px auto 0;
    border-radius: 2px;
}

.stat p {
    font-size: 1.2em;
    margin-top: 10px;
    text-transform: uppercase;
}

/* Fondo con imagen */
.statistics {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw; /* Ocupa todo el ancho */
    height: 100vh; /* Ocupa toda la altura */
    background: url('/resources/puerto-mercante.jpg') no-repeat center center; /* Imagen de fondo */
    background-size: cover; /* Hace que la imagen cubra toda la sección */
    position: relative;
    overflow: hidden; /* Evita desbordes */
    color: white; /* Asegura visibilidad del texto */
}

/* Overlay con transparencia */
.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo negro con transparencia */
    z-index: 0; /* Mantiene el overlay detrás del contenido */
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column; /* Los elementos se apilan verticalmente */
        height: auto;
    }

    .stat {
        flex: 1 1 100%; /* Cada elemento ocupa el 100% del ancho */
        margin: 10px 0;
    }

    .stat h2 {
        font-size: 2em;
    }

    .stat p {
        font-size: 1em;
    }
}



.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 40px 20px;
    background-color: #f4f4f4;
    color: black;
}

.contact-form label {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 8px;
    color: black;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid black;
    border-radius: 2px;
    font-size: 16px;
    color: black;
    resize: vertical; /* Permite redimensionar solo en la dirección vertical */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form .name-fields {
    display: flex;
    gap: 10px;
    width: 100%;
}

.contact-form button[type="submit"] {
    background-color: black;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #333;
}

/* Confirmation message styling */
#confirmation-message {
    display: none; /* Hidden by default */
    margin-top: 20px;
    color: #28a745;
    font-weight: bold;
    text-align: center;
}

/* Footer */
footer {
    background-color: #C4A76B;
    color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
}

/* Contenedor de información del footer */
.information {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Espacio entre elementos */
    padding: 20px 0;
    text-align: left;
}

/* Cada sección dentro de .information ocupa la misma anchura */
.information > div {
    flex: 1 1 200px; /* Ocupa espacio igual y permite un mínimo de 200px */
    min-width: 200px;
    padding: 10px;
}

/* Centrado y estilo del logo */
.logo-footer img {
    width: 100px; /* Ajusta el tamaño del logo */
    margin: 0 auto;
    display: block;
    transform: scale(1.75);
}

h5 {
    margin-bottom: 10px;
    font-weight: bold;
}

p {
    margin: 0;
    line-height: 1.4;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .information {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .information > div {
        width: 100%;
    }
}

/* Media query para pantallas entre 770px y 900px */
@media (min-width: 770px) and (max-width: 900px) {
    .information {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    /* Cambia el orden de los elementos */
    .location {
        order: 1;
    }
    .email {
        order: 2;
    }
    .logo-footer {
        order: 3;
    }
}

/* Sección de copyright */
.copyright {
    margin-top: 10px; /* Espaciado superior */
}