/* Add these styles at the beginning of the file */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Estilos generales */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

/* Hero section */
.hero {
    background-image: url("images/zeifco_wide.png");
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative; /* Necesario para posicionar el pseudo-elemento */
    color: #000000; /* Adjust text color as needed */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7); /* Fondo blanco semitransparente */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el fondo semitransparente */
}

.hero h1, .hero .logo {
    font-size: 2.8em;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.015em;
}

.hero .tagline {
    font-size: 1.2em;
    margin: 15px 0;
    font-weight: 400;
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

nav ul li {
    position: relative;
    padding: 5px 0;
}

nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #000000;
    border-radius: 50%;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0071e3;
}

/* Main content */
main {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Footer */
footer {
    background-color: #f5f5f7;
    color: #86868b;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

footer .duns-number {
    font-size: 0.9em;
    margin-top: 10px;
}

/* Estilos específicos para index.html */
.hero .logo {
    font-size: 3.5em;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.015em;
}

.hero .tagline {
    font-size: 1.5em;
    margin: 20px 0;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #0077ED;
    transform: scale(1.05);
}

/* Estilos específicos para projects.html */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project {
    background-color: #f5f5f7;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 30px;
}

.project h2 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 12px;
}

.learn-more {
    background-color: #6D919F; /* Color gris del footer */
    border: none;
    color: white;
    padding: 3px 6px; /* Reducido el tamaño del óvalo */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px; /* Reducido el tamaño de la fuente */
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    right: 20px; /* Alineado al margen derecho */
}

.project h2 {
    color: #4666E7; /* Royal Blue */
    margin-top: 0;
    text-align: center;
}

/* Estilos específicos para contact.html */
.contact-info, .contact-form {
    margin-bottom: 40px;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form button {
    background-color: #4666E7; /* Royal Blue */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #3451b2; /* Darker Royal Blue */
}

/* Estilos específicos para about.html */
.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.015em;
}

.team-members {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    margin: 20px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #46B9E7;
}

@media (max-width: 768px) {
    .hero {
        background-position: center;
        justify-content: center;
        align-items: center;
    }

    .hero h1, .hero .logo, .hero .tagline {
        text-align: center;
        max-width: 100%;
    }
}

/* Add these media queries at the end of the file */
@media screen and (max-width: 767px) {
    .hero h1, .hero .logo {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1em;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        flex: 1 0 100%;
        text-align: center;
    }

    nav ul li:not(:last-child)::after {
        display: none;
    }

    .projects {
        grid-template-columns: 1fr;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Añade este nuevo media query para orientación horizontal en dispositivos móviles */
@media screen and (max-width: 767px) and (orientation: landscape) {
    nav ul {
        flex-wrap: nowrap;
    }

    nav ul li {
        flex: 0 1 auto;
    }

    nav ul li:not(:last-child)::after {
        display: block;
    }
}