@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Previene el scroll horizontal */
    background-color: black;
    color: white;
}

nav{
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 100;
    background: black;
}

.nav-container{
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    font-size: 2rem;
    font-weight: bold;
}

.logo span{
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.hamburg, .cancel {
    display: none; /* Ocultos por defecto */
    cursor: pointer;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
}

.links a{
    position: relative;
    font-size: 1.1rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #077b32;
    transition: 0.2s ease;
}

.links a:hover::before{
    width: 100%;
}

.links a:hover{
    color: #077b32;
}

/* --- Menú Desplegable --- */
.dropdown{
    z-index: 99;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-110%);
    transition: transform 0.4s ease-in-out;
}

.dropdown.activo {
    transform: translateY(0);
}

.dropdown .cancel {
    display: block;
    position: absolute;
    top: 25px;
    right: 5%;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.dropdown-links a{
    color: white;
    text-decoration: none;
    padding: 15px 50px;
    font-size: 1.5rem;
    transition: 0.2s ease;
}

.dropdown-links a:hover{
    background-color: #077b32;
    transform: scale(1.1);
}

/* --- Sección Principal --- */
section{
    width: 100%;
    min-height: 90vh; /* Altura mínima para asegurar visibilidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container{
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.main-container .image{
    width: 100%;
    max-width: 450px; /* Tamaño máximo para la imagen */
    aspect-ratio: 1 / 1; /* Mantiene la forma circular */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px #077b32;
    animation: animate-pulse 3s ease-in-out infinite;
}

.main-container .image img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme */
}

@keyframes animate-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.main-container .content{
    width: 100%;
    max-width: 600px;
}

.content h1{
    font-size: clamp(2rem, 5vw, 3rem);
}

.content h1 span{
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.content .typewriter{
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
}

.content .typewriter-text{
    color: #077b32;
    text-shadow: 0 0 10px #077b32;
}

.content p{
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin: 20px 0;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #077b32;
    border-radius: 50%;
    color: #077b32;
    margin-right: 15px;
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-links a:hover{
    transform: scale(1.2) translateY(-5px);
    color: black;
    background-color: #077b32;
    box-shadow: 0 0 20px #077b32;
}

.content .btn {
    margin-top: 20px;
}

.content button{
    padding: 12px 30px;
    background-color: #077b32;
    color: white;
    border: 2px solid #077b32;
    outline: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.content button:hover{
    transform: scale(1.05);
    color: #077b32;
    background-color: transparent;
    box-shadow: 0 0 20px #077b32;
}

/* --- Media Queries para Responsive --- */

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .social-links {
        justify-content: center;
    }
    .content {
        order: 2; /* El contenido va después de la imagen */
    }
    .image {
        order: 1; /* La imagen va primero */
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    nav .links {
        display: none; /* Oculta los links del nav */
    }
    nav .hamburg {
        display: block; /* Muestra el botón de hamburguesa */
    }
    .image {
        max-width: 300px;
    }
}
