@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --white: #e2e8f0;
    --grey: #94a3b88e;
    --blue: #090d1759;
    --lightblue: #1d2531;
    --text-color: rgb(247, 239, 239);
    --highlight-color: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    -webkit-overflow-scrolling: touch; /* Mejora el scroll en iOS */
    min-height: 100vh;
    height: auto; /* Permite que el contenido crezca según sea necesario */
    overflow: visible; /* Asegura que el scroll esté habilitado */
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: var(--lightblue);
    padding: 3rem 0;
    gap: 1rem;
    font-family: 'Poppins', sans-serif;
    overflow: visible; /* Habilita el scroll si el contenido es más largo */
}

/* Fondo con efecto blur */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.jpg'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
    pointer-events: none; /* Permite interacciones con el contenido principal */
}

/* Capa oscura opcional */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad según prefieras */
    z-index: -1;
    pointer-events: none; /* Permite interacciones con el contenido principal */
}

img {
    height: 100%;
    width: 100%;
}

.img {
    height: 150px;
    width: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero span:nth-child(2) {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
}

.hero span:nth-child(3) {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 5px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 468px;
    padding: 2rem 0;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: var(--blue);
    padding: 10px;
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transition: .3s;
    padding: 12px; /* Aumenta el padding para mejorar la experiencia de clic */
}

.item:hover {
    transform: scale(1.1);
}

.item-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-wrap div {
    padding: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lightblue);
    border-radius: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Espacio entre los íconos */
    margin-top: 1rem; /* Espacio entre "Frontend Engineer" y los íconos */
  }
  
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Ajusta el tamaño del área clickeable */
    transition: background 0.2s;
    border-radius: 50%;
  }
  
.social-links a:hover {
    background: var(--highlight-color);
  }

.social-links ion-icon {
    color: var(--white); /* Usa tu variable CSS para el color blanco */
    font-size: 24px; /* Ajusta el tamaño si es necesario */
}

.map {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 468px;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.cta {
    margin-top: 2rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--blue);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.1);
    background-color: var(--highlight-color);
}

.cta-icon {
    font-size: 1rem; /* Mismo tamaño que el texto */
    color: inherit; /* Hereda el color del texto */
}


/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed; /* Fija el botón en la pantalla */
    bottom: 20px; /* Distancia desde el borde inferior */
    right: 20px; /* Distancia desde el borde derecho */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Tamaño del botón */
    height: 60px; /* Tamaño del botón */
    background-color: #25D366; /* Color verde de WhatsApp */
    color: white; /* Color del ícono */
    border-radius: 50%; /* Forma circular */
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para destacarlo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999; /* Asegura que esté sobre otros elementos */
}

.whatsapp-button:hover {
    transform: scale(1.1); /* Efecto de agrandamiento al pasar el mouse */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
    font-size: 2rem; /* Tamaño del ícono */
    color: white; /* Color del ícono */
}

@media (max-width: 468px) {
    .links, .hero {
        width: 100%;
        padding: 0 1rem;
    }
}