/* ========================================
   MAIN STYLES - ANIMATIONS & EFFECTS
   ======================================== */

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

body {
    font-family: 'Inter', sans-serif;
}

/* Subtle Gradient Background with Mouse-Interactive Cloud */
.background-gradient-animation {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.5) 0%, rgba(255, 0, 213, 0.4) 30%, rgba(10, 180, 210, 0.5) 60%, rgba(8, 153, 197, 0.5) 100%);
}

/* CTA Section Gradient - Similar to Hero */
.cta-gradient-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.6) 0%, rgba(255, 0, 213, 0.5) 30%, rgba(10, 180, 210, 0.6) 60%, rgba(8, 153, 197, 0.6) 100%);
}

.cta-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    transition: all 0.4s ease;
    pointer-events: none;
    opacity: 0.7;
}

.cta-gradient-bg:hover::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(147, 51, 234, 0.3) 0%, transparent 50%);
    transform: scale(1.1);
    opacity: 0.9;
}

.cta-gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(12, 192, 223, 0.25) 0%, transparent 80%);
    transition: all 0.5s ease;
    pointer-events: none;
    opacity: 0;
}

.cta-gradient-bg:hover::after {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(12, 192, 223, 0.3) 0%, transparent 70%);
    transform: scale(1.3);
    opacity: 0.6;
}

.background-gradient-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transition: all 0.4s ease;
    pointer-events: none;
    opacity: 0.8;
}

.background-gradient-animation:hover::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(147, 51, 234, 0.4) 0%, transparent 50%);
    transform: scale(1.2);
    opacity: 1;
}

.background-gradient-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(12, 192, 223, 0.2) 0%, transparent 80%);
    transition: all 0.5s ease;
    pointer-events: none;
    opacity: 0;
}

.background-gradient-animation:hover::after {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.5) 0%, transparent 60%);
    transform: scale(1.3);
    opacity: 1;
}

/* Floating Cloud Animations - Optimizado */
.floating-cloud {
    position: absolute;
    width: 300px; /* Reducido de 400px */
    height: 300px; /* Reducido de 400px */
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, rgba(124, 58, 237, 0.15) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatAround 30s ease-in-out infinite; /* Solo una animación, más lenta */
    z-index: 1;
}

.floating-cloud:nth-child(2) {
    animation: floatAround2 35s ease-in-out infinite; /* Solo una animación, más lenta */
    animation-delay: -5s;
}

.floating-cloud-small {
    position: absolute;
    width: 200px; /* Reducido */
    height: 200px; /* Reducido */
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(147, 51, 234, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatAroundSmall 25s ease-in-out infinite; /* Solo una animación, más lenta */
    z-index: 1;
}

.floating-cloud-small:nth-child(4) {
    animation: floatAroundSmall2 18s ease-in-out infinite, morphShape2 7s ease-in-out infinite, changeColor2 13s ease-in-out infinite;
    animation-delay: -3s;
}

.floating-cloud-medium {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, rgba(124, 58, 237, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatAroundMedium 22s ease-in-out infinite, morphShape 9s ease-in-out infinite, changeColor 11s ease-in-out infinite;
    z-index: 1;
}

.floating-cloud-medium:nth-child(7) {
    animation: floatAroundMedium2 28s ease-in-out infinite, morphShape2 8s ease-in-out infinite, changeColor2 14s ease-in-out infinite;
    animation-delay: -8s;
}

.floating-cloud-tiny {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(147, 51, 234, 0.2) 50%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatAroundTiny 12s ease-in-out infinite, morphShape 5s ease-in-out infinite, changeColor 9s ease-in-out infinite;
    z-index: 1;
}

.floating-cloud-right {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.2) 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatFromRight 24s ease-in-out infinite, morphShape 8s ease-in-out infinite, changeColor 12s ease-in-out infinite;
    z-index: 1;
}

.floating-cloud-small-right {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(147, 51, 234, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatFromRightSmall 19s ease-in-out infinite, morphShape2 7s ease-in-out infinite, changeColor2 13s ease-in-out infinite;
    z-index: 1;
}

.floating-cloud-medium-right {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, rgba(124, 58, 237, 0.15) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatFromRightMedium 26s ease-in-out infinite, morphShape 9s ease-in-out infinite, changeColor 11s ease-in-out infinite;
    z-index: 1;
}

/* Globe 3D Animation - Optimizado */
.globe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1440px; /* Aumentado 20% desde 1200px */
    height: 1440px; /* Aumentado 20% desde 1200px */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    perspective: 2400px; /* Aumentado proporcionalmente */
}

.globe-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(23.5deg) rotateY(45deg) rotateZ(15deg);
}

.globe-parallel-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.globe-parallel-3d:nth-child(1) { transform: rotateX(15deg); opacity: 0.4; }
.globe-parallel-3d:nth-child(2) { transform: rotateX(30deg); opacity: 0.5; }
.globe-parallel-3d:nth-child(3) { transform: rotateX(45deg); opacity: 0.6; }
.globe-parallel-3d:nth-child(4) { transform: rotateX(60deg); opacity: 0.7; }
.globe-parallel-3d:nth-child(5) { transform: rotateX(75deg); opacity: 0.6; }
.globe-parallel-3d:nth-child(6) { transform: rotateX(90deg); opacity: 0.5; }
.globe-parallel-3d:nth-child(7) { transform: rotateX(105deg); opacity: 0.4; }
.globe-parallel-3d:nth-child(8) { transform: rotateX(120deg); opacity: 0.3; }
.globe-parallel-3d:nth-child(9) { transform: rotateX(135deg); opacity: 0.2; }
.globe-parallel-3d:nth-child(10) { transform: rotateX(150deg); opacity: 0.1; }

.globe-meridian-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.globe-meridian-3d:nth-child(11) { transform: rotateY(0deg); opacity: 0.7; }
.globe-meridian-3d:nth-child(12) { transform: rotateY(30deg); opacity: 0.6; }
.globe-meridian-3d:nth-child(13) { transform: rotateY(60deg); opacity: 0.5; }
.globe-meridian-3d:nth-child(14) { transform: rotateY(90deg); opacity: 0.4; }
.globe-meridian-3d:nth-child(15) { transform: rotateY(120deg); opacity: 0.3; }
.globe-meridian-3d:nth-child(16) { transform: rotateY(150deg); opacity: 0.2; }
.globe-meridian-3d:nth-child(17) { transform: rotateY(180deg); opacity: 0.1; }

.globe-equator-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: rotateX(90deg);
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.globe-prime-meridian-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: rotateY(0deg);
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Particles Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(12, 192, 223, 0.6);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 8s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; animation-duration: 10s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; animation-duration: 12s; }
.particle:nth-child(9) { left: 15%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(10) { left: 25%; animation-delay: 1.5s; animation-duration: 11s; }
.particle:nth-child(11) { left: 35%; animation-delay: 2.5s; animation-duration: 8s; }
.particle:nth-child(12) { left: 45%; animation-delay: 3.5s; animation-duration: 10s; }
.particle:nth-child(13) { left: 55%; animation-delay: 4.5s; animation-duration: 12s; }
.particle:nth-child(14) { left: 65%; animation-delay: 5.5s; animation-duration: 9s; }
.particle:nth-child(15) { left: 75%; animation-delay: 6.5s; animation-duration: 11s; }

/* Keyframe Animations */
@keyframes floatAround {
    0% { transform: translate(200px, 100px) scale(0.8); opacity: 0.6; }
    25% { transform: translate(800px, -300px) scale(1.3); opacity: 0.8; }
    50% { transform: translate(1200px, 200px) scale(1.0); opacity: 0.4; }
    75% { transform: translate(600px, 600px) scale(1.2); opacity: 0.7; }
    100% { transform: translate(200px, 100px) scale(0.8); opacity: 0.6; }
}

@keyframes floatAround2 {
    0% { transform: translate(-300px, -200px) scale(0.9); opacity: 0.5; }
    25% { transform: translate(400px, -500px) scale(1.4); opacity: 0.7; }
    50% { transform: translate(1000px, -300px) scale(0.7); opacity: 0.3; }
    75% { transform: translate(800px, 300px) scale(1.1); opacity: 0.6; }
    100% { transform: translate(-300px, -200px) scale(0.9); opacity: 0.5; }
}

@keyframes floatAroundSmall {
    0% { transform: translate(1000px, 400px) scale(0.6); opacity: 0.5; }
    30% { transform: translate(600px, 100px) scale(1.1); opacity: 0.8; }
    60% { transform: translate(200px, -100px) scale(0.8); opacity: 0.3; }
    100% { transform: translate(1000px, 400px) scale(0.6); opacity: 0.5; }
}

@keyframes floatAroundSmall2 {
    0% { transform: translate(-400px, 500px) scale(0.7); opacity: 0.4; }
    30% { transform: translate(100px, 200px) scale(1.2); opacity: 0.7; }
    60% { transform: translate(800px, -200px) scale(0.5); opacity: 0.2; }
    100% { transform: translate(-400px, 500px) scale(0.7); opacity: 0.4; }
}

@keyframes floatAroundMedium {
    0% { transform: translate(700px, -400px) scale(0.7); opacity: 0.4; }
    25% { transform: translate(1200px, -200px) scale(1.1); opacity: 0.6; }
    50% { transform: translate(1400px, 300px) scale(0.8); opacity: 0.3; }
    75% { transform: translate(900px, 600px) scale(1.0); opacity: 0.5; }
    100% { transform: translate(700px, -400px) scale(0.7); opacity: 0.4; }
}

@keyframes floatAroundMedium2 {
    0% { transform: translate(-600px, 200px) scale(0.8); opacity: 0.3; }
    30% { transform: translate(-800px, 500px) scale(1.2); opacity: 0.6; }
    60% { transform: translate(-1200px, 300px) scale(0.6); opacity: 0.2; }
    100% { transform: translate(-600px, 200px) scale(0.8); opacity: 0.3; }
}

@keyframes floatAroundTiny {
    0% { transform: translate(0px, 0px) scale(0.5); opacity: 0.6; }
    20% { transform: translate(500px, 300px) scale(0.8); opacity: 0.8; }
    40% { transform: translate(1000px, 100px) scale(0.6); opacity: 0.4; }
    60% { transform: translate(800px, 500px) scale(0.9); opacity: 0.7; }
    80% { transform: translate(300px, 400px) scale(0.7); opacity: 0.5; }
    100% { transform: translate(0px, 0px) scale(0.5); opacity: 0.6; }
}

@keyframes floatFromRight {
    0% { transform: translate(1500px, 200px) scale(0.8); opacity: 0.6; }
    25% { transform: translate(1000px, -200px) scale(1.3); opacity: 0.8; }
    50% { transform: translate(500px, 100px) scale(1.0); opacity: 0.4; }
    75% { transform: translate(200px, 400px) scale(1.2); opacity: 0.7; }
    100% { transform: translate(-200px, 200px) scale(0.8); opacity: 0.6; }
}

@keyframes floatFromRightSmall {
    0% { transform: translate(1400px, 300px) scale(0.6); opacity: 0.5; }
    30% { transform: translate(800px, 50px) scale(1.1); opacity: 0.8; }
    60% { transform: translate(300px, -100px) scale(0.8); opacity: 0.3; }
    100% { transform: translate(-100px, 300px) scale(0.6); opacity: 0.5; }
}

@keyframes floatFromRightMedium {
    0% { transform: translate(1600px, -100px) scale(0.7); opacity: 0.4; }
    25% { transform: translate(1200px, -300px) scale(1.1); opacity: 0.6; }
    50% { transform: translate(600px, 200px) scale(0.8); opacity: 0.3; }
    75% { transform: translate(100px, 500px) scale(1.0); opacity: 0.5; }
    100% { transform: translate(-300px, 100px) scale(0.7); opacity: 0.4; }
}

@keyframes morphShape {
    0% { border-radius: 50%; }
    25% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    75% { border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%; }
    100% { border-radius: 50%; }
}

@keyframes morphShape2 {
    0% { border-radius: 50%; }
    20% { border-radius: 60% 40% 40% 60% / 40% 60% 60% 40%; }
    40% { border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%; }
    60% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
    80% { border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%; }
    100% { border-radius: 50%; }
}

@keyframes changeColor {
    0% { background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.2) 30%, transparent 70%); }
    20% { background: radial-gradient(circle, rgba(120, 80, 240, 0.3) 0%, rgba(100, 70, 220, 0.2) 30%, transparent 70%); }
    40% { background: radial-gradient(circle, rgba(80, 120, 255, 0.3) 0%, rgba(60, 100, 240, 0.2) 30%, transparent 70%); }
    60% { background: radial-gradient(circle, rgba(60, 150, 255, 0.3) 0%, rgba(40, 130, 235, 0.2) 30%, transparent 70%); }
    80% { background: radial-gradient(circle, rgba(40, 180, 255, 0.3) 0%, rgba(20, 160, 235, 0.2) 30%, transparent 70%); }
    100% { background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.2) 30%, transparent 70%); }
}

@keyframes changeColor2 {
    0% { background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.2) 30%, transparent 70%); }
    25% { background: radial-gradient(circle, rgba(100, 100, 250, 0.3) 0%, rgba(80, 80, 230, 0.2) 30%, transparent 70%); }
    50% { background: radial-gradient(circle, rgba(70, 130, 255, 0.3) 0%, rgba(50, 110, 240, 0.2) 30%, transparent 70%); }
    75% { background: radial-gradient(circle, rgba(50, 160, 255, 0.3) 0%, rgba(30, 140, 240, 0.2) 30%, transparent 70%); }
    100% { background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.2) 30%, transparent 70%); }
}


@keyframes float {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-75%); }
}

/* Globe depth effect */
.globe-parallel-3d::before,
.globe-meridian-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: inherit;
    border-radius: inherit;
    filter: blur(3px);
    opacity: 0.2;
    z-index: -1;
}

/* iOS Safari Hero Text Fix */
.hero-content h1,
.hero-content p,
.gradient-text {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

/* Hero Section - Solo aumentar altura para ver caja completa */
#hero-section {
    min-height: 120vh !important; /* Solo aumentar altura */
}

/* Hero Content - Valores que funcionaban */
.hero-content {
    padding-top: 8rem !important; /* Valor base que funcionaba */
    padding-bottom: 4rem !important; /* Padding-bottom para ver caja completa */
}

/* Solo para escritorio - aumentar altura del Hero 20% */
@media screen and (min-width: 769px) {
    #hero-section {
        min-height: 144vh !important; /* 120vh + 20% = 144vh */
    }
}

/* Ajuste específico para Windows - más separación del menú */
.hero-content.windows-desktop {
    padding-top: 14rem !important; /* Aumentado para Windows desktop */
    padding-bottom: 8rem !important; /* Más espacio hacia abajo para Windows */
}

/* Aumentar altura del Hero específicamente para Windows */
#hero-section.windows-desktop {
    min-height: 160vh !important; /* Más altura para Windows */
}