/* ==================== Downloads Page Shared Styles ==================== */

.download-page {
    min-height: 100vh;
}

/* ==================== VERSIÓN 1: Hero Centrado ==================== */

.download-hero-v1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 4rem;
}

.download-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.download-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

/* ===== Logo Showcase V1 - Anillos Animados ===== */
.app-logo-showcase {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container-main {
    position: relative;
    z-index: 10;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    animation: float-main 4s ease-in-out infinite;
}

.logo-container-main img {
    width: 85%;
    height: auto;
    object-fit: contain;
}

@keyframes float-main {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    animation: ring-pulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 220px;
    height: 220px;
    border-color: rgba(102, 126, 234, 0.3);
    animation-delay: 0s;
}

.ring-2 {
    width: 260px;
    height: 260px;
    border-color: rgba(118, 75, 162, 0.2);
    animation-delay: 0.5s;
}

.ring-3 {
    width: 300px;
    height: 300px;
    border-color: rgba(102, 126, 234, 0.1);
    animation-delay: 1s;
}

@keyframes ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.5; }
}

.logo-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.floating-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

.floating-particles span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.floating-particles span:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-particles span:nth-child(3) { bottom: 15%; left: 10%; animation-delay: 2s; }
.floating-particles span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 3s; }

@keyframes particle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.2); opacity: 1; }
}

.download-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.download-version {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.download-cta {
    margin-bottom: 2.5rem;
}

.btn-download-main {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-download-main i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.btn-download-main small {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.incompatible-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.download-badges .badge i {
    color: var(--secondary-color);
}

/* Requirements Section V1 */
.requirements-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.requirements-section h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.requirements-section h2 i {
    color: var(--secondary-color);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.req-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.req-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.req-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.req-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}


/* ==================== VERSIÓN 2: Split Layout ==================== */

.download-hero-v2 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 2rem 4rem;
}

.download-split-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.download-info-side {
    color: var(--primary-color);
}

.download-label {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.download-info-side h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.download-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
}

.highlight i {
    color: #10b981;
    font-size: 1.1rem;
}

/* Download Card V2 */
.download-card-v2 {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.25);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 90px rgba(102, 126, 234, 0.3);
}

.card-header-v2 {
    background: var(--gradient-primary);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: shimmer-v2 4s ease-in-out infinite;
}

@keyframes shimmer-v2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(5deg); }
}

.card-header-v2 .logo-showcase-v2 {
    position: relative;
    display: inline-block;
}

.card-header-v2 .card-icon {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255,255,255,0.6));
    position: relative;
    z-index: 2;
    animation: float-logo-v2 3s ease-in-out infinite;
}

@keyframes float-logo-v2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.logo-ring-v2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ring-expand 2s ease-in-out infinite;
}

.logo-ring-v2:nth-child(2) {
    width: 220px;
    height: 220px;
    animation-delay: 0.5s;
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes ring-expand {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.2; }
}

.card-body-v2 {
    padding: 2rem;
}

.version-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.version-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.version-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.info-row i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.btn-download-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.btn-download-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.incompatible-msg-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-bg);
}

.security-badges span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.security-badges i {
    color: #10b981;
}

.card-footer-v2 {
    padding: 1.5rem 2rem;
    background: var(--light-bg);
}

.card-footer-v2 h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.card-footer-v2 ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-footer-v2 ul li {
    font-size: 0.85rem;
    color: var(--text-light);
}


/* ==================== VERSIÓN 3: Card Compacta ==================== */

.download-hero-v3 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 4rem;
}

.download-compact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.download-card-v3 {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.card-top-v3 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.card-top-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.app-badge {
    position: relative;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 24px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badge-float 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.app-badge::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    border-radius: 28px;
    z-index: -1;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.app-badge img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.app-title {
    position: relative;
    z-index: 2;
}

.app-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-title .meta-item {
    color: rgba(255, 255, 255, 0.85);
}

.app-title .meta-item i {
    color: rgba(255, 255, 255, 0.9);
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-item i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.card-download-v3 {
    padding: 2rem;
}

.btn-download-v3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.btn-download-v3:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.45);
}

.btn-download-v3 .btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn-download-v3 .btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-download-v3 .btn-main {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-download-v3 .btn-sub {
    font-size: 0.85rem;
    opacity: 0.9;
}

.incompatible-msg-v3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 500;
}

.incompatible-msg-v3 i {
    font-size: 1.5rem;
}

.card-security-v3 {
    padding: 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.security-item i {
    font-size: 1.5rem;
    color: #10b981;
}

.security-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.security-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-requirements-v3 {
    border-top: 1px solid #e2e8f0;
}

.req-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background 0.2s ease;
}

.req-toggle:hover {
    background: var(--light-bg);
}

.req-toggle span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.req-toggle i:first-child {
    color: var(--secondary-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.req-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.req-content.open {
    max-height: 200px;
}

.req-content ul {
    list-style: none;
    padding: 0 2rem 1.5rem;
}

.req-content ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.req-content ul li i {
    color: #10b981;
    font-size: 0.8rem;
}

.card-footer-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: var(--light-bg);
    border-top: 1px solid #e2e8f0;
}

.card-footer-v3 span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-footer-v3 a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--whatsapp-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.card-footer-v3 a:hover {
    opacity: 0.8;
}

.download-extra-info {
    text-align: center;
    margin-top: 1.5rem;
}

.download-extra-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.download-extra-info a {
    color: #fff;
    text-decoration: underline;
}


/* ==================== Responsive ==================== */

@media (max-width: 900px) {
    .download-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .download-info-side {
        text-align: center;
    }
    
    .download-info-side h1 {
        font-size: 2.5rem;
    }
    
    .feature-highlights {
        align-items: center;
    }
    
    .download-card-side {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .download-hero-v1,
    .download-hero-v2,
    .download-hero-v3 {
        padding: 100px 1rem 2rem;
    }
    
    .download-title {
        font-size: 2rem;
    }
    
    .download-info-side h1 {
        font-size: 2rem;
    }
    
    .btn-download-main {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .download-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .app-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-top-v3 {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-download-v3 {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-download-v3 .btn-content {
        align-items: center;
    }
    
    .card-footer-v3 {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Logo showcase responsive */
    .app-logo-showcase {
        width: 220px;
        height: 220px;
    }
    
    .logo-container-main {
        width: 140px;
        height: 140px;
    }
    
    .ring-1 { width: 170px; height: 170px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 230px; height: 230px; }
    
    .app-badge {
        width: 80px;
        height: 80px;
    }
}
