html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: "Poppins", serif;
}


header {
    position: relative;
    height: 100vh; /* Ocupa toda la altura del viewport */
    width: 100%;
    overflow: hidden;
    z-index: 5;
    background-color: #000;
}

.titulo {
    position: absolute;
    line-height: 1.5;
    overflow: hidden;
    white-space: normal;
    transform: translate(-50%, -50%);
    width: 80%; /* Ajusta el ancho de manera responsiva */
    max-width: 1070px;
    top: 70%;
    left: 46%;
}

.titulo h1 {
    color: #fff;
    font-family: Poppins;
    font-weight: 700;
    font-size: 4.5vw;
}

.titulo h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: typewave 0.6s ease-in-out forwards;
}

/* Asigna un retraso a cada letra */
.titulo h1 span:nth-child(n) {
    animation-delay: calc(var(--n) * 0.06s);
}

  /* Estilo especial para ", o hablar de una idea" */
.especial {
    font-size: 4.5vw;
    color: transparent;
    -webkit-text-stroke: 1px #FFDD00; /* Borde amarillo */
    -webkit-background-clip: text;
    background-clip: text;
}
/* Animación ola */
@keyframes typewave {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    50% {
      opacity: 1;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

.main {
    display: grid;
    grid-template-columns: 48% 48%;
    gap: 30px;
    padding-top: 3rem;
    margin-top: 0;
    margin-bottom: 0;
}
.informaciones {
    padding: 0px 20px 0px 35px;
}
.informaciones-informacion h2 {
    font-size: 45;
    font-weight: 600;
    margin: 10px 0 0;
}
.informaciones-informacion p {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #888;
    line-height: 2;
    margin: 0;
}
.informaciones-informacion .conversemos {
    font-size: 28px;
    font-weight: 800;

}
.informaciones-enlaces {
    margin: 0;
    padding: 0;
}
.informaciones-enlaces h3{
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    padding: 0 0 10px;
}
.informaciones-enlaces h4{
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* Redes sociales */
.redes {
    display: flex;
    align-items: center;
    margin-top: 10px;
}
  
.redes-item {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
  
.redes-item-icon {
    text-decoration: none;
    width: 3rem;
    height: 3rem;
    border-radius: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Asegura que el icono esté por encima del pseudo-elemento */
}
.redes-item-icon svg, 
.redes-item-icon i {
    position: relative;
    z-index: 2; /* Contenido interno del icono */
}
.redes-item-icon svg:hover {
    fill: #fff; /* Cambia el color de relleno a blanco */
}
  
.redes-item-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 0; /* Fondo debajo del contenido */
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s ease;
}
  
.redes-item-icon:hover::before {
    transform: scaleY(1);
}
  
/* Variables de color para cada ícono */
.redes-item-icon:nth-child(1)::before {
    --bg-color: linear-gradient(to bottom right, #f9ce34, #ee2a7b, #6228d7);

}
.redes-item-icon:nth-child(2)::before {
    --bg-color: #0077b5;
}
/* Cierre de Redes sociales */

/* Formulario*/
.formulario {
    width: 100%;
    max-width: 600px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formulario-titulo {
    text-align: center;
}

.formulario-nombre-apellido {
    display: flex;
    gap: 40px;
}

.formulario-item {
    display: flex;
    flex-direction: column;
    
}
.formulario-seleccion {
    appearance: none;
}


input,
textarea,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    resize: none;
}

.footer {
    margin-top: 0px;
    background-color: #000;
    color: #FFDD00;
    padding: 1rem 3rem 3rem;
}

/* Adaptaciones para tablet y móviles */
@media (max-width: 768px) {
    .main {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }


    .titulos h1 {
        font-size: 36px; /* Texto más pequeño */
        padding-right: 0%;
    }
    .especial {
        font-size: 36px; /* Ajustar tamaño para móviles */
        -webkit-text-stroke: 1px #FFDD00; /* Mantiene el borde amarillo */
    }
    .titulos h1 span {
        transform: translateY(20px); /* Ajuste menor en la animación */
    }
    .titulos h1 span:nth-child(n) {
        animation-delay: calc(var(--n) * 0.05s); /* Animación más rápida */
    }

    .informaciones {
        padding: 0 15px;
    }

    .informaciones-informacion h2 {
        font-size: 30px;
    }

    .informaciones-informacion p {
        font-size: 14px;
    }

    .informaciones-informacion .conversemos {
        font-size: 24px;
    }

    .formulario {
        width: 90%;
        margin: 30px auto;
    }

    .formulario-nombre-apellido {
        flex-direction: column;
        gap: 10px;
    }

    .footer {
        padding: 1rem;
        text-align: center;
    }
    .redes {
        display: flex;
    }

    .redes-item {
        flex-direction: row;
        gap: 20px;
    }

    .redes-item-icon {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 480px) {
    .titulo h1 {
        font-size: 40px;
    }

    .titulo {
        font-size: 1.2rem;
    }

    .informaciones-informacion h2 {
        font-size: 24px;
    }

    .informaciones-informacion p {
        font-size: 12px;
    }

    .informaciones-informacion .conversemos {
        font-size: 20px;
    }

    .formulario {
        width: 95%;
        margin: 20px auto;
    }

    .redes-item-icon {
        width: 2rem;
        height: 2rem;
    }

    .footer {
        padding: 1rem;
        font-size: 14px;
    }
}