/* Slider IA basado en estructura del slider de hosting */
.slider-container-ia {
    width: 99vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    /*background: linear-gradient(130deg, #0c1220 0%, #1a2436 62%, #b87a68 100%);*/
    background-image: url("../img/bg-rocoia2.png");
  background-size: cover;
}

.ia-content {
    position: absolute;
    z-index: 20;
    text-align: left;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    max-width: 560px;
}

.ia-slider-title {
    font-size: clamp(2.5rem, 4.2vw, 3.85rem);
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -1px;
    opacity: 0;
    animation: iaFadeIn 1s ease-out 0.5s forwards;
}

.ia-slider-subtitle {
    font-size: clamp(1.25rem, 1.95vw, 1.65rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 34px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.48;
    font-weight: 350;
    opacity: 0;
    animation: iaFadeIn 1s ease-out 1s forwards;
}

.ia-cta-button {
    display: inline-block;
    padding: 20px 55px;
    background: linear-gradient(to right, #2563eb, #3558a8);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 22px rgba(31, 78, 170, 0.32);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    animation: iaFadeIn 1s ease-out 1.5s forwards, iaPulse 2s infinite 2.5s;
}

.ia-cta-button:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 14px 26px rgba(31, 78, 170, 0.45);
}

.ia-cta-button:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: 0.6s;
    z-index: -1;
}

.ia-cta-button:hover:after {
    left: 100%;
}

.ia-paper-plane {
    position: absolute;
    top: 35%;
    right: 15%;
    z-index: 15;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
    transform-origin: center;
    animation: iaFloat 5s ease-in-out infinite, iaSlightRotate 8s linear infinite;
}

.ia-plane {
    width: 300px;
    height: 300px;
    position: relative;
}

.ia-rocket {
    width: 83%;
}

.ia-wind-line {
    position: absolute;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.8), transparent);
    height: 2px;
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
    z-index: 5;
}

.ia-wind-line:nth-child(1) {
    top: 42%;
    right: 30%;
    width: 70px;
    animation: iaWind 4s infinite 0.1s;
}

.ia-wind-line:nth-child(2) {
    top: 46%;
    right: 28%;
    width: 100px;
    animation: iaWind 4s infinite 0.7s;
}

.ia-wind-line:nth-child(3) {
    top: 44%;
    right: 26%;
    width: 60px;
    animation: iaWind 4s infinite 1.3s;
}

.ia-cloud {
    position: absolute;
    background: rgba(214, 228, 255, 0.12);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 10;
    animation: iaDrift 40s linear infinite;
}

.ia-cloud-1 {
    width: 300px;
    height: 100px;
    top: 20%;
    right: -300px;
    animation-delay: 0s;
}

.ia-cloud-2 {
    width: 250px;
    height: 80px;
    top: 40%;
    right: -250px;
    animation-delay: 10s;
    animation-duration: 50s;
}

.ia-cloud-3 {
    width: 200px;
    height: 70px;
    top: 60%;
    right: -200px;
    animation-delay: 5s;
    animation-duration: 45s;
}

.ia-cloud-4 {
    width: 350px;
    height: 120px;
    top: 30%;
    right: -350px;
    animation-delay: 15s;
    animation-duration: 60s;
}

.ia-particle {
    position: absolute;
    background: rgba(198, 213, 240, 0.45);
    border-radius: 50%;
    animation: iaFloatParticle 12s infinite ease-in-out;
    z-index: 1;
}

@keyframes iaFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@keyframes iaSlightRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes iaWind {
    0% { opacity: 0; transform: translateX(0); }
    10% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(-100px); }
}

@keyframes iaDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-150vw); }
}

@keyframes iaFloatParticle {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    50% { transform: translate(50px, -40px); opacity: 0.3; }
}

@keyframes iaFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes iaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 78, 170, 0.44);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(31, 78, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@media (max-width: 1200px) {
    .ia-paper-plane {
        right: 10%;
    }

    .ia-slider-title {
        font-size: 3.35rem;
    }
}

@media (max-width: 992px) {
    .slider-container-ia {
        height: 92vh;
    }

    .ia-content {
        left: 5%;
        max-width: 500px;
    }

    .ia-slider-title {
        font-size: 2.9rem;
    }

    .ia-slider-subtitle {
        font-size: 1.28rem;
        line-height: 1.44;
    }

    .ia-paper-plane {
        top: 32%;
        right: 6%;
    }
}

@media (max-width: 768px) {
    .slider-container-ia {
        height: 72vh;
    }

    .ia-content {
        left: 5%;
        right: 5%;
        max-width: unset;
    }

    .ia-slider-title {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .ia-slider-subtitle {
        font-size: 1.05rem;
        margin-bottom: 26px;
    }

    .ia-cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .ia-paper-plane {
        opacity: 0.45;
        top: 14%;
        right: 3%;
    }

    .ia-plane {
        width: 200px;
        height: 200px;
    }
}
