/* Banner de Descarga de Aplicación UltraGol - Diseño Ultra Profesional */

.app-download-banner {
    position: relative;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #2d3748 50%, #1a2332 75%, #0f1419 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    padding: 80px 20px;
    margin-top: 50px;
    overflow: hidden;
    box-shadow: 
        0 -15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.app-download-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    opacity: 1;
    animation: ambientGlow 15s ease infinite;
}

.app-download-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,53,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
}

.app-banner-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 80px;
    z-index: 2;
    width: 100%;
}

.app-banner-text {
    color: white;
    padding: 20px 0;
}

.app-banner-pretitle {
    font-size: 1rem;
    color: #ff6b35;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0;
    animation: slideInLeft 1s ease 0.2s forwards;
}

.app-banner-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ffffff, #ff6b35, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease infinite;
    line-height: 1.1;
    opacity: 0;
    animation: slideInLeft 1s ease 0.4s forwards, shimmerText 3s ease 1s infinite;
    position: relative;
}

.app-banner-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, transparent);
    border-radius: 2px;
}

.app-banner-subtitle {
    font-size: 1.4rem;
    margin: 0 0 40px 0;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
    color: #e2e8f0;
    opacity: 0;
    animation: slideInLeft 1s ease 0.6s forwards;
}

.app-banner-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    opacity: 0;
    animation: slideInLeft 1s ease 0.8s forwards;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.app-feature:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.app-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: iconPulse 2s ease infinite;
    animation-delay: var(--delay);
}

.app-feature-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.app-feature-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.app-banner-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
    opacity: 0;
    animation: slideInLeft 1s ease 1s forwards;
}

.download-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.download-btn i {
    font-size: 1.3rem;
    animation: downloadPulse 1.5s ease-in-out infinite;
}

.github-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.github-link:hover {
    color: white;
    transform: translateY(-2px);
}

.github-link i {
    font-size: 1.1rem;
}

.app-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.phones-container {
    position: relative;
    width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 180px;
    height: 360px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 30px;
    padding: 8px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: absolute;
    transition: all 0.6s ease;
    border: 3px solid #333;
}

.phone-mockup.main-phone {
    z-index: 3;
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-mockup.left-phone {
    left: -120px;
    transform: rotateY(35deg) scale(0.85);
    z-index: 1;
    opacity: 0.7;
    animation: phoneFloatLeft 6s ease-in-out infinite;
}

.phone-mockup.right-phone {
    right: -120px;
    transform: rotateY(-35deg) scale(0.85);
    z-index: 1;
    opacity: 0.7;
    animation: phoneFloatRight 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #2d5016 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
    display: flex;
    flex-direction: column;
    color: white;
    padding: 15px;
    opacity: 0;
    animation: screenFadeIn 2s ease 1.5s forwards, gradientMove 8s ease 2s infinite;
    overflow: hidden;
}

.screen-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(255,107,53,0.1) 0%, transparent 40%);
    animation: ambientMove 12s ease infinite;
    pointer-events: none;
}

.screen-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.2));
    pointer-events: none;
}

.screen-header {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.screen-content-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.screen-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 10px 0;
    padding: 8px 0;
}

.screen-stat {
    text-align: center;
    flex: 1;
}

.screen-stat-number {
    font-size: 0.8rem;
    font-weight: 900;
    color: #ff6b35;
    display: block;
}

.screen-stat-label {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.screen-match-card {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,107,53,0.2);
}

.screen-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
}

.screen-team {
    display: flex;
    align-items: center;
    gap: 4px;
}

.screen-team-logo {
    width: 16px;
    height: 16px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
}

.screen-score {
    font-weight: 900;
    color: #ff6b35;
    font-size: 0.8rem;
}

.screen-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
    margin-bottom: 5px;
    animation: logoGlow 3s ease infinite;
    position: relative;
}

.screen-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
}

.screen-tagline {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 300;
}

.screen-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,0,0,0.2);
    color: #ff4444;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    border: 1px solid rgba(255,68,68,0.3);
}

.screen-live-dot {
    width: 4px;
    height: 4px;
    background: #ff4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease infinite;
}

.screen-mini-chart {
    width: 100%;
    height: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
}

.screen-chart-bar {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #ff6b35, #f7931e);
    border-radius: 2px 2px 0 0;
    width: 3px;
    animation: chartGrow 2s ease infinite;
}

.screen-chart-bar:nth-child(1) { left: 10%; height: 60%; animation-delay: 0s; }
.screen-chart-bar:nth-child(2) { left: 25%; height: 80%; animation-delay: 0.2s; }
.screen-chart-bar:nth-child(3) { left: 40%; height: 45%; animation-delay: 0.4s; }
.screen-chart-bar:nth-child(4) { left: 55%; height: 90%; animation-delay: 0.6s; }
.screen-chart-bar:nth-child(5) { left: 70%; height: 65%; animation-delay: 0.8s; }
.screen-chart-bar:nth-child(6) { left: 85%; height: 75%; animation-delay: 1s; }

.screen-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 140px;
}

.screen-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screen-btn.primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.screen-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.screen-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.screen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.screen-dot.active {
    background: #ff6b35;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff6b35;
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }

.floating-elements {
    position: absolute;
    top: 10%;
    left: -50px;
    right: -50px;
    height: 80%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 107, 53, 0.1);
    animation: elementFloat 12s ease-in-out infinite;
    filter: blur(1px);
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 35%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 40%;
    left: 5%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

.floating-element:nth-child(5) {
    top: 60%;
    left: 50%;
    animation-delay: 8s;
}

/* Animaciones Avanzadas */
@keyframes gradientShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 0% }
    50% { background-position: 100% 100% }
}

@keyframes ambientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) }
    33% { transform: translate(10px, -10px) rotate(120deg) }
    66% { transform: translate(-10px, 10px) rotate(240deg) }
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1) }
    50% { opacity: 0.5; transform: scale(1.2) }
}

@keyframes chartGrow {
    0%, 100% { transform: scaleY(0.8) }
    50% { transform: scaleY(1.1) }
}

@keyframes ambientGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1.2; }
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0) }
    100% { transform: translateX(10px) translateY(10px) }
}

@keyframes shimmerText {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInLeft {
    0% { 
        opacity: 0; 
        transform: translateX(-50px);
    }
    100% { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes phoneFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg);
    }
    50% { 
        transform: translateY(-15px) rotateX(5deg);
    }
}

@keyframes phoneFloatLeft {
    0%, 100% { 
        transform: rotateY(35deg) scale(0.85) translateY(0px);
    }
    50% { 
        transform: rotateY(35deg) scale(0.85) translateY(-10px);
    }
}

@keyframes phoneFloatRight {
    0%, 100% { 
        transform: rotateY(-35deg) scale(0.85) translateY(0px);
    }
    50% { 
        transform: rotateY(-35deg) scale(0.85) translateY(-10px);
    }
}

@keyframes screenFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 15px rgba(255, 107, 53, 0.6); }
    50% { text-shadow: 0 0 25px rgba(255, 107, 53, 0.9); }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { 
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% { 
        opacity: 1;
        transform: translateY(-10vh) scale(1);
    }
    100% { 
        transform: translateY(-20vh) scale(0);
        opacity: 0;
    }
}

@keyframes elementFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    33% { 
        transform: translateY(-20px) rotate(120deg);
        opacity: 0.3;
    }
    66% { 
        transform: translateY(-10px) rotate(240deg);
        opacity: 0.2;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .app-banner-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .phones-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .phone-mockup.left-phone,
    .phone-mockup.right-phone {
        display: none;
    }
    
    .phone-mockup.main-phone {
        position: relative;
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {
    .app-download-banner {
        padding: 60px 20px;
        min-height: 500px;
    }
    
    .app-banner-title {
        font-size: 2.8rem;
    }
    
    .app-banner-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .app-feature {
        padding: 15px;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .app-download-banner {
        padding: 40px 15px;
    }
    
    .app-banner-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .app-banner-subtitle {
        font-size: 1.1rem;
    }
    
    .app-banner-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-btn {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .github-link {
        text-align: center;
    }
    
    .phone-mockup {
        width: 130px;
        height: 260px;
    }
}

/* Efectos Especiales */
.app-download-banner:hover .floating-particles {
    animation-play-state: paused;
}

.download-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.phones-container:hover .phone-mockup.main-phone {
    transform: translateY(-20px) rotateX(10deg) scale(1.05);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
}

.phones-container:hover .phone-mockup.left-phone {
    transform: rotateY(25deg) scale(0.9) translateY(-5px);
    opacity: 0.9;
}

.phones-container:hover .phone-mockup.right-phone {
    transform: rotateY(-25deg) scale(0.9) translateY(-5px);
    opacity: 0.9;
}

/* Estados de carga de pantalla */
.screen-content.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efectos de brillo en hover */
.app-feature:hover .app-feature-icon {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    transform: scale(1.1);
}

/* Animación de entrada escalonada */
.app-feature:nth-child(1) {
    animation-delay: 0.8s;
}
.app-feature:nth-child(2) {
    animation-delay: 1s;
}
.app-feature:nth-child(3) {
    animation-delay: 1.2s;
}

/* Efecto de texto brillante */
.github-link:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}