/* Reset básico y tipografía global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}


/* declaracion de variables*/
:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

/* html*/
html {
    font-size: 62.5%;
    overflow-x: hidden;
}

/*body*/
body {
    background: var(--bg-color);
    color: var(--text-color);
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    ;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar,
.navbar ul,
.navbar li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    display: none;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Sección principal (home) y contenido */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 9%;
    background-size: cover;
    background-position: center;
}

.home-content {
    max-width: 100rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content .text-animate {
    position: relative;
    width: 32.8rem;
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.nombrePrincipal {
    width: 100%;
}

.contenedorImg {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 15%;

}

img {
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: contain;
    mask-image: linear-gradient(var(--second-bg-color) 60%, transparent);
    max-width: 100%;
    width: 100%;
    height: auto;
}


/* Footer */
footer {
    background-color: var(--second-bg-color);
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-size: 1.4rem;
    border-top: 1px solid var(--main-color);
}

.Titulo3 {
    text-align: center;
}

.Titulo1 {
    text-align: center;
    color: aquamarine;
}

@media (min-width: 769px) {
    #menu-icon {
        display: none;
    }

    .navbar {
        display: flex;
    }

    .navbar ul {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
        .home {
            grid-template-columns: 1fr 1fr;
        }

}

    @media (max-width: 768px) {
        #menu-icon {
            display: block;
        }

        .navbar {
            display: none;
            width: 100%;
            background: var(--bg-color);
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            padding: 1rem 2rem;
        }

        .navbar.active {
            display: block;
        }

        .navbar ul {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        /* Pone la sección home en una sola columna para móvil */
        .home {
            grid-template-columns: 1fr;
            padding: 12rem 5% 2rem;
        }

        .home-content h1 {
            font-size: 4.2rem;
        }

        .home-content .text-animate {
            width: auto;
            font-size: 2.6rem;
        }

        .contenedorImg {
            padding-right: 0;
            margin-top: 2rem;
        }

        img {
            max-width: 80%;
        }

        /* Ajustes de header para móvil */
        .header {
            padding: 1.5rem 5%;
        }
    }