.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    padding-top: 8rem; /* Espacio para el menú fijo */
    min-height: 100vh; /* Altura completa de la ventana */
    box-sizing: border-box; /* Incluir padding en el cálculo del tamaño */
}

.home-contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Mejor que 'baseline' para consistencia */
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
    max-width: 600px; /* Limitar ancho para mejor lectura */
}

.home-contenido span {
    color: var(--main-color);
}

.home-contenido h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.text-animation {
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    color: #333;
}

.animated-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent; /* Opcional: borde para simular cursor */
    animation: typing 3s steps(30, end) forwards;
}

.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 0.7s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.home-contenido h1 {
    font-size: clamp(3rem, 5vw, 5rem); /* Mejor responsividad con clamp() */
    font-weight: 600;
    margin-top: 1.5rem;
    line-height: 1.1;
}

.home-img {
    border-radius: 50%;
    flex-shrink: 0;
    aspect-ratio: 1/1; /* Mantener relación de aspecto cuadrada */
    margin-bottom: 20px;
}

.home-img img {
    position: relative;
    width: 48vw;
    height: 48vw;
    min-width: 250px;
    min-height: 250px;
    max-width: 450px;
    max-height: 450px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
    object-fit: cover;
    object-position: center;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color), 
                0 0 50px var(--main-color), 
                0 0 100px var(--main-color);
    transform: scale(1.02);
}

.home-contenido p {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 100%;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    transition: all 0.3s ease-in-out;
    text-decoration: none; /* Mejor accesibilidad */
}

.social-icons a:hover,
.social-icons a:focus { /* Mejor accesibilidad para focus */
    color: var(--bg-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 15px var(--main-color);
    background-color: var(--main-color);
    outline: none; /* Evitar outline por defecto al hacer focus */
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    border-radius: 4rem;
    font-size: 1.4rem;
    color: var(--bg-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    text-decoration: none; /* Para cuando se usa como enlace */
    cursor: pointer; /* Para cuando se usa como botón */
}

.btn:hover,
.btn:focus { /* Mejor accesibilidad */
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
    outline: none;
    color: var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap; /* Para mejor responsividad */
    justify-content: flex-start;
}

/* Media Queries */
@media (max-width: 1200px) {
    .home {
        gap: 8rem;
        padding-top: 7rem;
    }
    
    .home-contenido h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 992px) {
    .home {
        gap: 5rem;
    }
    
    .home-contenido h1 {
        font-size: 4rem;
    }
    
    .home-img img {
        width: 30vw;
        height: 30vw;
    }
}

@media (max-width: 768px) {
    .home {
        flex-direction: column-reverse;
        gap: 3rem;
        padding-top: 6rem;
        text-align: center;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .home-contenido {
        align-items: center;
        text-align: center;
        margin-top: 0;
    }
    
    .home-img {
        margin-top: 2rem;
    }
    
    .home-img img {
        width: 60vw;
        height: 60vw;
        max-width: 300px;
        max-height: 300px;
    }
    
    .home-contenido h1 {
        font-size: 3.5rem;
    }
    
    .home-contenido h3 {
        font-size: 1.8rem;
    }
    
    .text-animation {
        font-size: 1.8rem;
    }

    .btn-group {
        justify-content: center; /* Centrar botones en móvil */
    }
}

@media (max-width: 576px) {
    .home-contenido h1 {
        font-size: clamp(2.5rem, 8vw, 3rem); /* Mejor responsividad */
    }
    
    .home-contenido p {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }
    
    .social-icons a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
    }
}   