/* Configuración básica */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden; /* Asegura que no haya desplazamiento horizontal */
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Íconos */
.icons {
    position: absolute;
    top: 10px;
    left: 10px; /* Alineados a la izquierda */
    display: flex;
    gap: 8px;
}

.icon {
    width: 30px;
    height: 30px;
}

/* El contenedor principal */
.container {
    position: relative;
    min-height: 100vh; /* Garantiza que el contenedor ocupe al menos el alto de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Asegura que el footer se mantenga abajo */
    align-items: center;
}

/* Fondo degradado */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('images/HOLAAP...\ \(2\).jpg') no-repeat center center;
    background-size: 100% 100%; /* Hace zoom en la imagen para cubrir todo */
    z-index: -1;
}


/* Logo */
.logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px; /* Reduce el tamaño del logo */
    max-width: 100%;
}

/* Contenedor principal */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* Ajusta el ancho general */
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
    gap: 15px; /* Espacio entre los elementos */
}

/* Texto principal */
.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px; /* Reduce la distancia desde la parte superior */
    width: 100%;
    flex: 1;
}

.text-content img {
    max-width: 500px; /* Ajusta el tamaño de la imagen */
    margin-top: 20px;
}

.text-content h1 {
    font-size: 4.5rem;
    font-weight: bold;
    margin: 0;
    color: black;
    text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.8);
}

.text-content p {
    font-size: 2.2rem;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.8);
    
}

/* Teléfono y corazones */
.phone-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 50%;
    flex: 1;
}

.phone-image {
    width: 90%; /* Asegura que la imagen no se desborde */
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.phone-bubble {
    width: 250px; /* Ajusta el tamaño de la burbuja */
    position: relative;
    z-index: 1;
    transform: translateY(150%);
}

/* Corazones */
.hearts {
    position: absolute;
    top: 5%;
    left: 130px; /* Ajusta la distancia desde el borde izquierdo */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 0;
}

.hearts img {
    width: 60px; /* Reduce el tamaño de los corazones */
}

.hearts img:nth-child(2) {
    width: 45px; /* Ajusta el tamaño del segundo corazón */
    transform: scale(-1, 1);
}

.hearts img:nth-child(3) {
    width: 35px; /* Ajusta el tamaño del tercer corazón */
}

.hearts2 {
    position: absolute;
    top: 35%;
    right: 130px; /* Ajusta la distancia desde el borde derecho */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 0;
}

.hearts2 img {
    width: 60px; /* Tamaño inicial */
    transform: scale(-1, 1); /* Voltea horizontalmente */
}

.hearts2 img:nth-child(2) {
    width: 45px; /* Ajusta el tamaño del segundo corazón */
}

.hearts2 img:nth-child(3) {
    width: 35px; /* Ajusta el tamaño del tercer corazón */
}

/* Botón "Conversemos" */
.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px; /* Ajusta el espacio entre el contenido y el botón */
    margin-bottom: 10px; /* Ajusta la distancia al borde inferior */
}

.btn {
    padding: 8px 120px; /* Ajusta el tamaño del botón */
    font-size: 1rem; /* Ajusta el tamaño de la fuente */
    font-weight: bold;
    color: white;
    background: #4e00c2;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: #ff80b5;
}

/* Footer */
.footer {
    width: 100%;
    padding: 8px 20px; /* Reduce el padding del footer */
    font-size: 0.85rem; /* Ajusta el tamaño del texto */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto; /* Esto asegura que el footer siempre esté al final */
}

/* Estilo para dispositivos móviles y tabletas */
@media (max-width: 768px) {
    /* Ajustar el contenedor principal */
    
    .main-content {
        flex-direction: column; /* Cambia a disposición vertical */
        align-items: center; /* Centra los elementos */
        gap: 15px; /* Espacio entre elementos */
        width: 100%; /* Ajusta el ancho para móviles */
    }
    .logo {
        position: relative;
        width: 150px;
    }

    /* Texto principal */
    .text-content {
        align-items: center;
        text-align: center; /* Centra el texto en móviles */
        margin-top: 10px; /* Reduce la distancia superior */
        width: 100%; /* Toma todo el ancho */
    }

    .text-content img {
        margin: 0 auto; /* Centra la imagen horizontalmente */
        display: block; /* Asegura que se respete el centrado */
        max-width: 70%; /* Ajusta el tamaño para móviles */
    }
    

    /* Teléfono */
    .phone-content {
        width: 100%; /* Toma todo el ancho disponible */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .phone-image {
        width: 60%; /* Reduce ligeramente el teléfono */
    }
    .phone-bubble {
        transform: translateY(0%);
        width: 40%; /* Reduce ligeramente el teléfono */
    }

    /* Footer */
    footer {
        font-size: 0.75rem; /* Reduce el texto en el footer */
        padding: 10px 8px;
    }
}

/* Estilo para tabletas (entre 768px y 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Ajustar el contenedor principal */
    .main-content {
        flex-direction: column;
        align-items: center;
        width: 90%;
    }
    .text-content {
        align-items: center; 
    }

    /* Teléfono */
    .phone-content {
        width: 100%; /* Toma todo el ancho disponible */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .phone-image {
        width: 60%; /* Reduce ligeramente el teléfono */
    }
    .phone-bubble {
        width: 30%; /* Reduce ligeramente el teléfono */
    }

    /* Footer */
    footer {
        font-size: 0.75rem; /* Reduce el texto en el footer */
        padding: 10px 8px;
    }
}
