@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}
html{
    font-size: 62.5%;
}
body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}
header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover{
    transform: scale(1.1);
}
nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}
@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }
    nav.active{
        display: block;
    }
    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}
section{
    display: block;
    padding: 5rem 9% 5rem;
    margin: 30px;
    min-height: 100vh;
    width: 100%;    
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
    margin: 0px;
    padding: 0px;
}

.home-content{
    width: 50%;
}


.home .home-content h2{
    color: #434894;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
}
.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0;
}
span{
    color: #b74b4b;
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0;
}
.home-content p{
    margin: 10px 0;
    font-size: 1.6rem;
    opacity: 0;
}

.home-img img {
    position: relative; 
    width: 32vw; 
    box-shadow: 30 30 100px solid #b74b4b; 
    cursor: pointer; 
    transition: 0.2s linear; 
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
    transform: scale(1.03);
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}
.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}
.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}
.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
    opacity: 0;
    width: 100%;
}
.typing-text span{
    position: relative;
    width: 100%;
}
.typing-text span::before{
    content: "Proactiva";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}
    
.about{
    margin: 1px;
    display: flex;
    background-color: black;
    color: white;
    padding: 0px;
    width: 63%;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 1.4s;
    text-align: left;
    margin-left: 120px;
}

.about-content h2{
    font-size: 5rem;
    color: #434894;
    margin-bottom: 4rem;
    margin: 5px;
}

.about-content p{
    font-size: 1.6rem;
    line-height: 1.6;
    color: white;
    width: 70%;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Soluciones tecnológicas";
    }
    21%, 40%{
        content: "Equipamiento técnico";
    }
    41%, 60%{
        content: "Asesoría personalizada";
    }
    61%, 80%{
        content: "Soluciones interactivas";
    }
    81%, 100%{
        content: "Guiarte al sgte nivel";
    }
}
@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}


@media (max-width: 995px) {
    .home {
        flex-direction: column; /* Cambiar a diseño en columna */
        align-items: center;
        gap: 3rem; /* Reducir el espacio entre elementos */
        margin: 0px; /* Menor margen */
        padding: 0;
        text-align: left;
    }

    .home .home-content {
        margin: 10px;
        padding: 10px;
        text-align: left; /* Centrar el texto */
        width: 100%; /* Ajustar al ancho de la pantalla */
    }

    .home .home-content h2 {
        font-size: 4rem; /* Reducir el tamaño del subtítulo */
    }

    .home .home-content h1 {
        font-size: 5rem; /* Ajustar el título */
        line-height: 1.2; /* Espaciado más ajustado */
    }

    .home-content h3 {
        font-size: 3rem; /* Hacer más compacto */
    }

    .home-content p {
        font-size: 1.5rem; /* Reducir el tamaño del texto */
        margin: 1rem 0; /* Espaciado vertical */
    }

    .home-img {
        width: 100%; /* Reducir el contenedor de la imagen */
        margin-top: 2rem;
        display: flex;
        justify-content: center; /* Centrar la imagen horizontalmente */
    }

    .home-img img {
        width: 100%; /* Ajustar el ancho de la imagen al 50% */
        max-width: 250px; /* Límite máximo para evitar que sea muy grande */
    }

    .social-icons {
        margin: 2rem 0;
        gap: 1rem; /* Espacio reducido entre íconos */
        justify-content: center;
        margin-left: 10px;
    }

    .social-icons a {
        width: 6rem; /* Tamaño más grande para los íconos */
        height: 6rem;
        font-size: 3rem; /* Aumentar el tamaño del icono */
    }

    
    .about {
        flex-direction: column; /* Cambiar a diseño en columna */
        align-items: center;
        gap: 3rem; /* Reducir el espacio entre elementos */
        margin: 0px; /* Menor margen */
        padding: 0;
        text-align: left;
        margin-left: 10px;
        width: 100%; /* Ajustar al ancho de la pantalla */
    }

    .about-content {
        margin: 10px;
        padding: 10px;
        text-align: left; /* Centrar el texto */
        width: 100%; /* Ajustar al ancho de la pantalla */
    }

    .about-content h2 {
        margin: 10px 0px;
        font-size: 4rem; /* Reducir el tamaño del subtítulo */
        margin-right: 10px;
    }

    .about-content p {
        margin-right: 10px;
        font-size: 1.5rem; /* Reducir el tamaño del texto */
        margin: 1rem 0; /* Espaciado vertical */
        width: 100%; /* Ajustar al ancho de la pantalla */
    }
    
}

/* Efecto Slide-Up */
@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0s;
}
