body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
    /* Fondo oscuro */
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
    /* Fondo oscuro */
    color: #ffffff;
    /* Texto claro */
    padding: 20px 10%;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 20px;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
}

.nav-links li {
    padding: 0px 20px;
}

.nav-links a {
    transition: color 0.3s ease-out;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 16px;
}

.nav-links a:hover {
    color: #c0b283;
    /* Color de acento */
}

.burger {
    display: none;
}


@media screen and (max-width: 768px) {
    .navbar {
        padding: 20px;
        /* Valor fijo para evitar desbordamiento */
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
        flex-direction: column;
        align-items: center;
        width: 100%;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 30px;
        /* Espacio para el navbar */
    }

    .nav-links a {
        font-size: 14px;
        margin-bottom: -5rem;
        /* Ajustar los márgenes si es necesario */
        line-height: 1;
        /* Disminuir el line-height para reducir el espacio vertical */
        display: block;
        /* Asegurar que los enlaces se traten como bloques para aplicar padding y margin correctamente */
    }

    .nav-links li {
        margin: 5px 0;
        /* Ajustar el margen entre elementos de lista si es necesario */
    }

    .nav-links {
        padding: 0;
        /* Ajuste del padding superior del contenedor de enlaces */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
        z-index: 1001;
        cursor: pointer;
    }
}

/* Base del burger */
.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    /* Color inicial del burger */
    margin: 5px;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Estilos cuando el navbar está activo (burger en forma de 'X') */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #c0b283;
    /* Color de la 'X' */
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #c0b283;
    /* Color de la 'X' */
}

.section {
    text-align: center;
    padding: 60px 20px;
    color: #e5e8eb;
    /* Azul oscuro para el texto */
    background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* 4 tarjetas por fila */
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 10px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: cardAnimation 0.5s forwards;
}

.card h3 {
    color: #1c0381;
    /* Azul brillante para títulos de las tarjetas */
    margin-bottom: 15px;
}



.card p {
    color: #003973;
    /* Azul oscuro para el texto */
    font-size: 1rem;
}

@keyframes cardAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
    color: #fff;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    color: #003973;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    text-align: left;
}

.card h3 {
    color: #007BFF;
}

.card p {
    color: #003973;
}

.card.animate:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
}

.section {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    background: linear-gradient(135deg, #0A0F0D 0%, #003973 50%, #007BFF 100%);
}

.galeria-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.imagen-galeria {
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
    /* Proporción para mantener la relación de aspecto */
    border-radius: 8px;
}

.imagen-galeria img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cubre el área del contenedor sin perder la proporción */
    transition: transform 0.3s ease-in-out;
}

.imagen-galeria img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.footer {
    position: relative;
    /* Set to relative to position the overlay */
    background-image: url('banner.webp');
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    color: #ffffff;
    /* Text color */
    z-index: 1000;
    /* Adjust the z-index to be above the content */
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
                rgba(10, 15, 13, 0.7) 0%,
                rgba(0, 57, 115, 0.7) 50%,
                rgba(0, 123, 255, 0.7) 100%);
    
    z-index: -1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1 1 calc(25% - 30px);
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #c0b283;
    /* Hover color */
}

@media (max-width: 768px) {
    .footer {
        padding: 20px;
    }

    .footer-section {
        flex: 1 1 50%;
    }

    .footer-section.about,
    .footer-section.services,
    .footer-section.portfolio,
    .footer-section.contact {
        flex: 1 1 100%;
    }
}