body{
    overflow-y: auto;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Prevenir scroll durante la carga */
body {
    overflow-y: auto !important;
}

/* Asegurar que no aparezca scroll en ningún momento */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* WebKit */
}

section{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.info-title {
    color: var(--text);
    font-size: var(--font-home-title-size);
    font-weight: var(--font-home-title-weight);
  }
  
  .info-description {
    color: var(--secondary-text);
    font-size: var(--font-text-size);
    font-weight: var(--font-text-weight);
    margin-top: 10px;
  }

.info-title {
    margin-bottom: 1.5rem;
}

.info-description {
    margin-bottom: 2.1rem;
    text-align: left;
    line-height: 1.3; 
}

.social-networks {
    width: 25%;
    margin-top: 20px;
    display: flex;
    font-size: 24px;
    justify-content: space-between;
}

.social-networks i {
    color: var(--primary-color);
    font-size: 1.6rem;
    transition: color 0.2s, transform 0.2s;
}

.social-networks a:hover i{
    color: #1e40af; /* Un tono más oscuro del primario */
    transform: scale(1.2);
}

.info {
    flex: 1;
    padding-right: 50px;
}

.personal-image {
    flex: 1;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.personal-image img {
    width: 70%;
    border-radius: 50%;
}

.bubble {
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(63, 129, 229, 0.2);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0);
    transition: none;
    animation-play-state: paused;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-12px) rotate(90deg) scale(1.05);
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.1);
    }
    75% {
        transform: translateY(-12px) rotate(270deg) scale(1.05);
    }
}

.bubble:nth-child(1) {
    width: 70px;
    height: 70px;
    top: 110px;
    right: -10px;
    background-color: rgba(63, 129, 229, 0.15);
    animation: float 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 1s;
}

.bubble:last-child {
    width: 100px;
    height: 100px;
    bottom: 75px;
    left: -30px;
    animation: float 10s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 2s;
}

/* Animación más suave para la aparición */
@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: scale(0) translateX(30px) translateY(10px) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1) translateX(-5px) translateY(-3px) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0) rotate(360deg);
    }
}

/* Primera burbuja - viene desde la derecha (más suave) */
@keyframes bubbleAppearRight {
    0% {
        opacity: 0;
        transform: scale(0) translateX(40px) translateY(8px) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15) translateX(-8px) translateY(-4px) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0) rotate(360deg);
    }
}

/* Segunda burbuja - viene desde la izquierda (más suave) */
@keyframes bubbleAppearLeft {
    0% {
        opacity: 0;
        transform: scale(0) translateX(-40px) translateY(8px) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15) translateX(8px) translateY(-4px) rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0) translateY(0) rotate(360deg);
    }
}

/* Mostrar burbujas con animación más suave */
.bubble.animate__fadeIn {
    animation: bubbleAppear 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, float 8s cubic-bezier(0.4, 0, 0.6, 1) infinite 1.8s !important;
}

/* Primera burbuja - desplazamiento desde la derecha (más suave) */
#bubble1.animate__fadeIn {
    animation: bubbleAppearRight 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, float 8s cubic-bezier(0.4, 0, 0.6, 1) infinite 1.8s !important;
}

/* Segunda burbuja - desplazamiento desde la izquierda (más suave) */
#bubble2.animate__fadeIn {
    animation: bubbleAppearLeft 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, float 10s cubic-bezier(0.4, 0, 0.6, 1) infinite 1.8s !important;
}

/* Activar animaciones cuando se agreguen las clases */
.bubble.animate__animated {
    animation-play-state: running !important;
}

@media screen and (max-width: 1000px) {
    .personal-image img {
        width: 90%;
    }

    .info {
        padding-right: 20px;
    }

    .social-networks {
        width: 40%;
    }
    
    .buttons {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .buttons a {
        width: 80%;
        text-align: center;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 768px) {
    main {
        flex-direction: column-reverse;
        gap: 20px;
        padding: 24px 10%;
        height: auto;
    }

    .info, .personal-image {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .info {
        margin-bottom: 28px;
    }

    .info-title { margin-top: 8px; }
    .info-description { margin-bottom: 24px; line-height: 1.5; }

    .personal-image img {
        width: 55%;
    }

    /* Ocultar burbujas decorativas en móvil para limpiar el layout */
    .bubble { display: none; }

    .buttons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .buttons a {
        width: 100%;
        max-width: 480px;
        text-align: center;
        margin-bottom: 0;
        padding: 14px 28px;
    }

    .social-networks {
        width: 100%;
        margin: 32px auto 0;
        justify-content: center;
        gap: 32px;
    }
}