/* ============================================
   BOTÓN FLOTANTE DE DESCARGA - SOLO ÍCONO
   ============================================ */

.float-download-btn {
    position: fixed;
    bottom: 7.5rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Botón principal (solo ícono) */
.float-download-icon-btn {
    position: fixed;
    bottom: 150px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
    z-index: 250;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
       animation: fadeInUp 0.5s ease;
       color: white;
    font-size: 24px;
}

.float-download-icon-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #8183f5 0%, #9b6eff 100%);
}

.float-download-icon-btn:active {
    transform: scale(0.96);
}

/* Botón de cerrar (pequeño, transparente) */
.float-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.float-download-btn:hover .float-close-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.float-close-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
    transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODAL DE DESCARGA - MODERNO COLORES CLAROS
   ============================================ */

.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-modal.active {
    display: block;
    opacity: 1;
}

.download-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.download-modal-container {
    position: relative;
    width: 90%;
    max-width: 560px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 32px;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .download-modal-container {
        margin: 0 auto;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(-40%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.download-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.download-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.05);
}

.download-modal-header {
    text-align: center;
    padding: 40px 24px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.download-modal-icon {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.download-modal-icon i {
    font-size: 56px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.download-modal-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.download-modal-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.download-modal-body {
    padding: 32px;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.benefit-item {
    text-align: center;
    padding: 20px 12px;
    background: #f8fafc;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.benefit-item:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.benefit-item i {
    font-size: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

.benefit-item h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.benefit-item p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.download-links {
    margin-bottom: 28px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #053122 0%, #292b2a 100%);
    color: white;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 60px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.download-btn i:first-child {
    font-size: 32px;
}

.download-btn-text {
    flex: 1;
    text-align: center;
}

.download-btn-text small {
    font-size: 12px;
    opacity: 0.9;
    display: block;
}

.download-btn-text strong {
    font-size: 18px;
}

.download-btn i:last-child {
    font-size: 20px;
    opacity: 0.9;
}

.ios-message {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.ios-message i {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: inline-block;
}

.ios-message p {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.ios-message small {
    font-size: 11px;
    color: #94a3b8;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 12px;
}

.info-item i {
    color: #6366f1;
    font-size: 14px;
    width: 16px;
}

.download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 16px;
    font-size: 12px;
    color: #92400e;
}

.download-note i {
    font-size: 16px;
}

.download-note a {
    color: #d97706;
    text-decoration: none;
    font-weight: 500;
}

.download-note a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .float-download-icon-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .float-close-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .download-modal-container {
        width: 95%;
        border-radius: 24px;
    }
    
    .download-modal-header {
        padding: 28px 20px 24px;
    }
    
    .download-modal-header h2 {
        font-size: 24px;
    }
    
    .download-modal-body {
        padding: 24px;
    }
    
    .benefits-grid {
        gap: 12px;
    }
    
    .benefit-item {
        padding: 14px 8px;
    }
    
    .benefit-item i {
        font-size: 24px;
    }
    
    .benefit-item h4 {
        font-size: 12px;
    }
    
    .download-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .download-btn {
        padding: 14px 20px;
    }
    
    .download-btn i:first-child {
        font-size: 28px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .float-download-icon-btn {
        width: 52px;
        height: 52px;
    }
}
