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

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

.home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    z-index: +1;
}

.home-content {
    padding: 50px;
    max-width: 600px;
    backdrop-filter: blur(30px);
    border-radius: 15px;
}
.home-content h1 {
    color: aliceblue;
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}
.home-content h1::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.home-content h3 {
    position: relative;
    font-size: 32;
    font-weight: 700;
    color: white;
}
.home-content h3::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.home-content p {
    color: #ffffff;
    position: relative;
    font-size: 16px;
    margin: 20px 0 40px;
}
.home-content p::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.home-content .btn-box {
    position: relative;
    display: flex;
    justify-content: center;
    /* width: 345px; */
    height: 50px;
}
.home-content .btn-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: showRight 1s ease forwards;
    animation-delay: 0.1s;
    z-index: 2;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 50px;
    font-size: 30px;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
    margin: auto;
}
.btn-box a:hover {
    color: #ffffff;
}

.btn-box a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000000;
    z-index: -1;
    transition: 0.5s;
}

.btn-box a:hover::before {
    width: 100%;
}

/* Estilos para el contenedor de correo electrónico */
.email-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 30px;
    width: 100%;
    max-width: 300px; /* Reducido de 400px a 300px */
}

.email-container input {
    width: 80%; /* Reducido de 85% a 80% */
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #00abf0;
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    text-align: center; /* Centra el texto */
}

.copy-btn {
    position: relative; /* Cambiado de absolute a relative */
    margin-left: 10px; /* Espacio entre el input y el botón */
    background: #00abf0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #000000;
    color: #ffffff;
}

.copy-btn i {
    font-size: 20px;
}

#copy-msg {
    position: absolute;
    bottom: -25px;
    color: #00abf0;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* KEYFRAMES ANIMATION */
@keyframes showRight {
    100% {
        width: 0;
    }
}
@media (max-width: 574px) {
    .home {
        padding-top: 50px;
    }
}
@media (max-width: 460px) {
    .home {
        padding-top: 50px;
        width: 100%;
    }
    .btn-box a {
        width: 60px;
    }
    .home-content {
        padding: 5px;
    }
    .email-container {
        max-width: 250px; /* Reducido de 300px a 250px para móviles */
    }
    .email-container input {
        width: 80%;
        font-size: 14px;
    }

    .copy-btn {
        width: 35px;
        height: 35px;
    }
}
