/* Variables de colores */
:root {
    --primary-color: #0d2538;
    --secondary-color: #01b4e4;
    --accent-color: #90cea1;
    --white: #ffffff;
    --black: #000000;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Desplazamiento suave */
html {
    scroll-behavior: smooth;
}

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f0f0f0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 9999;
}

.loader {
    border: 16px solid var(--secondary-color);
    border-top: 16px solid var(--accent-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 10;
}

nav .logo img {
    width: 150px;
    /* Aseguramos que la imagen se ajuste */
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    color: var(--white);
    font-size: 24px;
}

/* Hero Section */
.hero {
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 37, 56, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* Secciones */
section {
    padding: 80px 20px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content, .about-image {
    flex: 1 1 500px;
    padding: 20px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* Aseguramos que la imagen rellene su contenedor manteniendo proporciones */
    object-fit: cover;
}

/* Proyectos */
.projects h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--primary-color);
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background-color: var(--white);
    margin: 15px;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--primary-color);
}

.project-info p {
    color: #666;
    line-height: 1.5;
}

/* Equipo */
.team h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--primary-color);
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.member-card {
    background-color: var(--white);
    margin: 15px;
    width: 250px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-card h3 {
    margin: 15px 0 5px 0;
    font-size: 20px;
    color: var(--primary-color);
}

.member-card p {
    color: #666;
    margin-bottom: 15px;
}

/* Contacto */
.contact h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--primary-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact form, .contact-info {
    flex: 1 1 400px;
    padding: 20px;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact form button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact form button:hover {
    background-color: var(--accent-color);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Pie de página */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-media a {
    color: var(--white);
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: var(--primary-color);
        width: 200px;
        height: calc(100% - 70px);
        transition: right 0.3s ease-in;
    }

    nav ul.open {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .container {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }
}
/* Navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra verticalmente los elementos */
    background-color: var(--primary-color);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    z-index: 10;
    height: 70px; /* Establece una altura fija para el banner */
}

nav .logo {
    display: flex;
    align-items: center; /* Centra verticalmente el logo */
    height: 100%; /* Asegura que el logo ocupa toda la altura del nav */
}

nav .logo img {
    height: 100%; /* La altura del logo se ajusta al contenedor */
    width: auto; /* El ancho se ajusta automáticamente manteniendo la proporción */
    max-height: 50px; /* Ajusta si es necesario para limitar la altura máxima */
    /* Elimina márgenes y padding extra */
    margin: 0;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Centra verticalmente los enlaces */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger i {
    color: var(--white);
    font-size: 24px;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    nav {
        height: 60px; /* Ajusta la altura en móviles */
    }

    nav .logo img {
        height: 80%; /* Ajusta la altura del logo en móviles */
        width: auto;
        max-height: 40px;
    }
}
/* Proyectos */
.projects h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    color: var(--primary-color);
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background-color: var(--white);
    margin: 15px;
    width: 300px; /* Puedes ajustar el ancho según tus necesidades */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column; /* Asegura que el contenido se apile verticalmente */
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: auto; /* Ajusta la altura automáticamente */
    object-fit: contain; /* Ajusta la imagen para que quepa en el contenedor sin recortarse */
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.project-info {
    padding: 20px;
    flex-grow: 1; /* Permite que el contenido se expanda para llenar el espacio restante */
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--primary-color);
}

.project-info p {
    color: #666;
    line-height: 1.5;
}
