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

html {
    font-size: 16px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

body {
    width: 100%;
    height: 100%;
    background-image: url('assets/fondo.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow-x: hidden; /* Evitar scroll horizontal */
}

/* Navbar */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.logo_padre {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Menú de navegación */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 36px;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #f39c12;
}

/* Botón hamburguesa (oculto en escritorio) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger:focus {
    outline: none;
}

.bar {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Animación botón hamburguesa cuando activo */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Contenido */
.content {
    margin-top: 50px;
    position: relative;
    padding: 180px 20px 20px;
    background-color: rgba(0, 0, 0, 0);
    min-height: 100vh;
}

.content-container,
.content-container2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 40px auto;
    gap: 40px;
    background-color: black;
}

.text-container,
.image-container,
.text-container2,
.image-container2 {
    width: 50%;
}

.text-container,
.text-container2 {
    padding: 30px;
    text-align: justify;
    font-size: 22px;
}

.home_title,
.home_title2 {
    text-align: center;
}

.parrafo_home,
.parrafo_home2 {
    font-size: 25px;
}

.parrafo_home2 {
    padding: 80px;
}

.image-container img,
.image-container2 img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Black container footer */
.black_container {
    height: 300px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.black_logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* Responsive: versión móvil */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .logo_padre {
        margin-bottom: 20px;
    }

    /* Mostrar botón hamburguesa */
    .hamburger {
        display: flex;
    }

    /* Ocultar menú por defecto */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        gap: 40px;
        padding: 0;
        margin: 0;
    }

    /* Mostrar menú al activar */
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 28px;
    }

    /* Contenido se apila vertical */
    .content-container,
    .content-container2 {
        flex-direction: column;
        text-align: center;
    }

    .text-container,
    .image-container,
    .text-container2,
    .image-container2 {
        width: 100%;
        padding: 10px 20px;
    }

    .parrafo_home2 {
        padding: 20px;
    }
}